I’m trying to target, from a button, the timeline of a loaded swf. Here’s sort of a rundown of the structure…
the swf files are loaded from an xml file.
the buttons are also created from the xml file.
there’s an imageHolder on the main stage.
the swf files are first preloaded into a preloadHolder.
They are then attached to an “image” holder within an “imageBox” movieclip. This is then attached to the imageHolder.
From the buttons created, onRollOver (function rOver), I would like to target the loaded swf timeline to just gotoAndStop frame(“b”) and onRollOut (function rOut), to go back to frame(“a”). How would I write this?
Thanks for any help.
Button code:
ActionScript Code:
[LEFT][COLOR=#000000]function[/COLOR] rOverCOLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]for[/COLOR][COLOR=#000000]([/COLOR]i = [COLOR=#000080]0[/COLOR]; i<imageTotal; i++[COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]_root[/COLOR].[COLOR=#000080]imageHolder[/COLOR][COLOR=#000000][[/COLOR][COLOR=#ff0000]“imageBox”[/COLOR]+ [COLOR=#0000ff]this[/COLOR].[COLOR=#000080]rID[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000080]image[/COLOR].[COLOR=#0000ff]gotoAndStop[/COLOR]COLOR=#000000[/COLOR]; [COLOR=#808080]//<<<----------------???[/COLOR]
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]function[/COLOR] rOutCOLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]for[/COLOR][COLOR=#000000]([/COLOR]i = [COLOR=#000080]0[/COLOR]; i<imageTotal; i++[COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]_root[/COLOR].[COLOR=#000080]imageHolder[/COLOR][COLOR=#000000][[/COLOR][COLOR=#ff0000]“imageBox”[/COLOR]+ [COLOR=#0000ff]this[/COLOR].[COLOR=#000080]rID[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000080]image[/COLOR].[COLOR=#0000ff]gotoAndStop[/COLOR]COLOR=#000000[/COLOR]; [COLOR=#808080]//<<<----------------???[/COLOR]
[COLOR=#808080]//trace(_root.imageHolder[“imageBox”+ this.rID]);[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]