Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

53 users online



Do a action and then open a new swf without changing frames?

Do a action and then open a new swf without changing frames?

Currently viewing this thread: 1 (0 members and 1 guests)


prewe

prewe

Rated 'R'
Status: Offline!

Do a action and then open a new swf without changing frames?

Hi.
I have a pretty fatal (for me) problem, i'm just wondering if there are anyway to launch a new script after a special event (in this case, i click a bar which slides and after the slide i want to launch a nestled swf) without having to move in the timeline.
Any help appreciated.
/prewe

___________________

We reserve the right to reserve your rights.

Musoka

Musoka

Freelance Designer
Status: Offline!

Create a empty movieclip and place it in the desired area. Create a new document, do the desired "new swf" there and then use the following AS to include the "new swf" into your empty movieclip.

clipName.loadMovie("new.swf");

___________________

http://img290.echo.cx/img290/9808/emoteheadphonessig611ui.jpg

prewe

prewe

Rated 'R'
Status: Offline!

oh i forgot to mention.. the barslide is AS only, i'm still on frame 1 when it's completed. isn't there any way to make a script like.. "when blabla happened then play blabla" ?

___________________

We reserve the right to reserve your rights.

fmx

fmx

null
Status: Offline!

you could test your bar's _x position against a conditional...

Code:

// this would have to go into your onEnterFrame function
if(myBar._x >= 20){ //whatever number you need
_root.myEmptyMovieClip.loadMovie("myNew.swf");
}

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0064 seconds.