all groups > flash actionscript > september 2004 >
You're in the

flash actionscript

group:

Urgent Help. PLEASE!


Urgent Help. PLEASE! Keffcop
9/8/2004 9:09:33 PM
flash actionscript: I have been trying for a while to achieve an effect for navigating between
pages after a button has been pressed. An example of this effect can be found
http://www.theworkframe.com/sample/prototype_a/

I have posted to these forums in the past couple of weeks and finally got to
what I thought were two working solutions, using two separate techniques. The
files that I have created are attached for each method. I need someone to
inspect the movies and tell me why they won't work. I've followed the guidance
to the letter, and when it didn't work initiall, I read a Flash book to try and
modify them so they did work, but to no avail. So in the two examples I have
restored all actions and movies to the original code and construction.

Please can someone look through these two files and tell me where it's going
wrong. There are no actionScript errors reported, but nothing happens at all.

Many thanks for your anticipated help.
Re: Urgent Help. PLEASE! _jrh_
9/8/2004 9:13:22 PM
Re: Urgent Help. PLEASE! Keffcop
9/8/2004 9:30:05 PM
Re: Urgent Help. PLEASE! _jrh_
9/8/2004 9:44:21 PM
Here you are!

Re: Urgent Help. PLEASE! Keffcop
9/8/2004 9:51:05 PM
Thankyou SO much. You are a brainsaver! I was about to start beating my head
against the computer screen in frustration. That's exactly what I have been
after.

I'm very grateful for that revised file and will explore it and alter it to
fit my actual website, but could you possibly talk me through the code so that
I can understand what you've done and how it works?

Give a man a fish and he'll eat for a day.
Teach a man to fish and he'll eat for life.
Or words to that effect.

Once again, many thanks for your help.
Re: Urgent Help. PLEASE! _jrh_
9/8/2004 9:57:43 PM
Well, I think I explained it in the other thread, but I'll go through it again.

When the button is pressed, it sets the newPage variable to the appropriate
linked library item you want to attach (ie "Mov1", "Mov2"). Now, take a look at
the transition.

At the middle of the transition, it pauses to load the movie according to the
newPage variable. The code is best centralized there because if you want to
change your loading method, the only code you need to change is there. (For
example, you may want to load the movie(s) into a movieclip holder right below
the transition. As of now, they're actually loading right on top of it, and
would be visible if not for the fact that they're the same color as the
transition. Another way to change this is set the new loaded movieclip's
_visible property to false, and then when the transition ends, set it to true.)

Anyway, take a look at the transition and the code that it's executing. It's
fairly simplified, so if you need to make it more complex, all the info you
need is right there.

Enjoy!
AddThis Social Bookmark Button