Hello all this is my first time posting in the forum and your help would be greatly appreciated!
The issue I am having is that the animation will play fine on my mac but when opened on a Windows OS it just loops and all the movieclips overlapp.
I am looking for a quick clean code solutiion I used code snippets to control the movie and do not have a knowledge of hand-coding AS.
Download animation here: http://dl.dropbox.com/u/1491983/frac_animation.swf
Note:
It is all set in one scene and one frame all of the movies are nested.
What I want the animation to do:
Button 1 activates a series of movieclips, stops when another button is selected and resumes at the begining again when clicked.
Button 2 Same action ability as button 1
Button 3 Same action ability as button 1
This is the snippet based code I am using now:
step1.arrows1b.stop();
step1.arrows1a.stop();
step1.arrows1c.stop();
step2.arrows1a2.stop();
step2.arrows1d.stop();
step2.focusWin.stop();
step2.waterjets.stop();
step3.focusWin2.stop();
step3.gasDot.stop();
step3.arrowsOut.stop();
step3.fractures.visible=false
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_11);
function fl_ClickToGoToAndPlayFromFrame_11(event:MouseEvent):void
{
gotoAndPlay(1);
step1.arrows1b.play();
step1.arrows1a.play();
step1.arrows1c.play();
step1.arrows1b.visible=true
step1.arrows1a.visible=true
step1.arrows1c.visible=true
step2.arrows1a2.visible=false
step2.arrows1d.visible=false
step2.focusWin.visible=false
step2.waterjets.visible=false
step3.focusWin2.visible=false
step3.gasDot.visible=false
step3.arrowsOut.visible=false
step3.fractures.visible=false
}
button_2.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_12);
function fl_ClickToGoToAndPlayFromFrame_12(event:MouseEvent):void
{
gotoAndPlay(1);
step2.arrows1a2.play();
step2.arrows1d.play();
step2.focusWin.play();
step2.waterjets.play();
step2.arrows1a2.visible=true
step2.arrows1d.visible=true
step2.focusWin.visible=true
step2.waterjets.visible=true
step1.arrows1b.visible=false
step1.arrows1a.visible=false
step1.arrows1c.visible=false
step3.focusWin2.visible=false
step3.gasDot.visible=false
step3.arrowsOut.visible=false
step3.fractures.visible=false
}
/* Click to Go to Frame and Play
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and continues playback from that frame.
Can be used on the main timeline or on movie clip timelines.
Instructions:
- Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
*/
button_3.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_13);
function fl_ClickToGoToAndPlayFromFrame_13(event:MouseEvent):void
{
gotoAndPlay(1);
step3.focusWin2.play();
step3.gasDot.play();
step3.arrowsOut.play();
step2.arrows1a2.stop();
step2.arrows1d.stop();
step2.focusWin.stop();
step2.waterjets.stop();
step2.arrows1a2.visible=false
step2.arrows1d.visible=false
step2.focusWin.visible=false
step2.waterjets.visible=false
step1.arrows1b.visible=false
step1.arrows1a.visible=false
step1.arrows1c.visible=false
step3.focusWin2.visible=true
step3.gasDot.visible=true
step3.arrowsOut.visible=true
step3.fractures.visible=true
}