I am customizing a flash template in cs3. i don’t know AS except for a little tweaking here and there and i’m stumped with this one.
so, mc “im_over” when clicked brings out the pop-up mc “scroller”. scroller contains different frames with diff content. the AS that is in the template works fine bringing up pop-up scroller showing frame 1. but now i can’t get it to show frame 2.
here is the AS for the working one.
on (release) {
_root.popup_pressed=1;
_root.scrHEIGHT=280
_root.scroller.scroller.gotoAndStop(2);
_root.TM_title = "Privacy Policy";
_root.READ = 1;
_root.scroller.gotoAndPlay("s1");
}
i have tried changing “s1” to “s2” and no go. all that happens is the title shows up. is this enough info for someone to help me? and please talk me through it as if i was a small child!!
thanks!!!
seeing the rest of the code would be a great place to start for errors can be anywhere and its very hard to see where the error is without seeing all of the code.
thanks cooldude. other than the code i posted above, can you tell me what else i need to post? the scroller doesn’t have any actions to it.
is that all of your code? like every piece that you are using because the error may be in more than that little segment.
Or even to upload the fla From the little bit you gave us, it looks like one of those TemplateMonster pieces. Those are sometimes not put together in the most logical fashion.
there is also a as3 section in the forums which may get you better help
the code you gave us doesn’t appear to be what you need to change because if you change it and it doesn’t do anything different your in the wrong place.
how many classes does your code use?
the problem maybe be how your accessing your data and what the variables you are changing.
often to communicate i stay away from root assigned variables but set pointers to the variables needed for the movieclips themselves
also _root isn’t used in as3 so…
“_” died in flash actionscript 3.0
I am glad as3 is more efficient method of class controlled scripting
which is great
if you awesome with classes
and listeners
well, i was able to solve it after some trial & error.
on (release) {
_root.popup_pressed=1;
_root.scrHEIGHT=280
_root.scroller.scroller.gotoAndStop(2);
_root.TM_title = “Privacy Policy”;
[COLOR=“Red”]_root.READ = 1;[/COLOR]
_root.scroller.gotoAndPlay(“s1”);
}
[COLOR=“Red”]_root.READ = 1;[/COLOR]
is where i needed to change the frame #'s
thanks all!