...

View Full Version : loading external swf using xml menu



cassisdesign
12-11-2008, 05:20 PM
I am trying to get my xml menu which is an external movieclip that is loaded into my main.swf. I can get the buttons to load the same movieclip into a movieclip loader in my main.swf, but that's the problem I can only load one external movieclip from each button. Any ideas?

Here is my menu actionscript:


// On roll over turns over=true
area.onRollOver = function(){

over = true

}
// On roll out turns over=false
area.onRollOut = function(){

over = false

}
// get the urlturns over=true
area.onPress=function(){
_root.clipLoader.loadClip("print2.swf", _root.swfHolder);


}


this.onEnterFrame = function(){
// The scale is equal to the target size
this._xscale += (targetSize - this._xscale)/3

this._yscale = this._xscale


// over = true
if (over){

// resizes to the max scale
targetSize = maxScale

// Shows the color
if (txtColor._alpha < 100){

txtColor._alpha += 12

}
// over = false
} else {

// Goes to the regular size
targetSize = minScale

// Hides the color
if (txtColor._alpha > 0){

txtColor._alpha -= 12


}

}

}

Here is my source.xml:


<settings>

<centered>true</centered>

<max>250</max>

</settings>



<menu>

<item name = "about" color = "CC3300" "link="about.swf"></item>

<item name = "contact" color = "CC3300" link="contact.swf"></item>

<item name = "expertise" color = "CC3300" link="expertise.swf"></item>

<item name = "interactive" color = "CC3300" link="interactive.swf"></item>

<item name = "logotypes" color = "CC3300" link="logotypes.swf"></item>

<item name = "print" color = "CC3300" link="prints.swf"></item>

</menu>

Alex Vincent
12-11-2008, 08:52 PM
I don't grok this. How are you loading your source.xml file?

gnomeontherun
12-11-2008, 11:26 PM
Please do not post the same question over 3 different threads. Recommend two to be closed.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum