Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: Ultra simple Flash problem

date posted 20th August 2003 14:17

Steve

Thanks a million, knew it was something simple.

Deborah



:::::: A t o m i c P h u s e ::::::



-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Steve
Webster
Sent: 19 August 2003 22:22
To: FN-FORUM / [EMAIL REMOVED]
Subject: Re: FN-FORUM: Ultra simple Flash problem


Hi Deborah,

> I'm scratching my head over this ultra simple flash menu. It worked,
and
> now it doesn't and I can't for the life of me work out why. If anyone
> has a minute.. I'd very much appreciate it if anyone could work out
why.

I've had a look at your .fla file and there are a few issues that are
combining to cause your problem. Firstly, the code for all of the
buttons
looks similar to the following...

on (rollOver) {
gotoAndStop(2);
redMovie.gotoAndPlay(2);
}

In the event of the mouse being rolled over this button, the movie is
sent
to frame 2, where there is a keyframe that contains the redMovie movie
clip.
The problem is that the gotoAndStop action doesn't actually get actioned
until the end of the frame current frame, meaning that the second line
is
executed before the play head is advanced, and thus redMovie doesn't
exist
at that point for Flash to manipulate.

You may ask why, then, do the other menus work? Well, if you look at
where
the redMovie and yellowMovie clips differ from the others, you'll see
that
the former have a stop() action on frame 1 whereas the latter do not.
So, in
the case of the other buttons, the playhead advanced to the appropriate
frame, the movie clips come into existance and just play because there's
nothing to stop them. However, because the redMovie and yellowMovie
clips
have a stop() action on the first frame, they sit there doing nothing!

The solution is either...

a) give each submenu movie clip a stop() action on the first frame, and
expand the keyframes of the submenu clips to cover the entire timeline
of
the menu (so that they exist when you want to manipulate them from the
button code);

or b) remove the stop() actions from frame 1 of both redMovie and
yellowMovie to that the submenu clips play as soon as they come into
existance. You may as well also remove the second line of code from each
of
the buttons if you take this route, as they'll be redundant.

I hope this helps! If you need a fixed .fla for either of the above
methods,
let me know!

Regards,

Steve W



==========
redmail.com - webmail with a difference!
10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a year
IMAP, POP3, Spam Filtering and Anti Virus as standard.
Visit http://www.redmail.com/?fl-signup to join.

To advertise here: http://www.freelancers.net/advertising.html



Messages by Day
August 31st 2003
August 30th 2003
August 29th 2003
August 28th 2003
August 27th 2003
August 26th 2003
August 25th 2003
August 24th 2003
August 23rd 2003
August 22nd 2003
August 21st 2003
August 20th 2003
August 19th 2003
August 18th 2003
August 17th 2003
August 16th 2003
August 15th 2003
August 14th 2003
August 13th 2003
August 12th 2003
August 11th 2003
August 10th 2003
August 9th 2003
August 8th 2003
August 7th 2003
August 6th 2003
August 5th 2003
August 4th 2003
August 3rd 2003
August 2nd 2003
August 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003


Messages by Year
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000