cassisdesign
12-11-2008, 06: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>
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>