image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old October 3rd, 2003, 01:28 AM
Nummi_G4's Avatar
New Rhapsody User
 
Join Date: Feb 2002
Location: Concord, Ohio
Posts: 1,538
Thanks: 0
Thanked 0 Times in 0 Posts
Nummi_G4 is on a distinguished road
Flash Expert Needed !

I need some help with Flash. I decided to make a band website in Flash...

In Scene-1, I have the text "News" first converted to a Movie Clip Symbol, then that was converted to a Button Symbol.
Scene-1 > MovieClip > Button.
The reason I did that was so I could have animation on a rollover. Here is the problem: When the user clicks the "News" button/movie clip thing, I want Scene-1 to skip to frame 90. Seems simple enough right? Just go to the news button symbol, open the Actions Panel and type:

on (release) {
gotoAndPlay(90);
}

It does not work. Any ideas? Can a button not control Scene-1 when it is inside a movie clip? If anyone can help, I will send them the *.fla file.

thank you, thank you, thank you.

jerry
Reply With Quote
  #2  
Old October 3rd, 2003, 02:03 AM
Arden's Avatar
Don't drink and derive.
 
Join Date: Dec 2002
Location: San Francisco
Posts: 7,743
Thanks: 0
Thanked 0 Times in 0 Posts
Arden is on a distinguished road
Ask Habilis, he did some nice stuff with his design stuff.

Also, it might be helpful if you could post a .swf file of what you're currently working on and update with major improvements.
__________________
System:
2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 200 GB hard drive, runs 10.5.4
1.6 GHz iMac G5, 1.5 GB RAM, 250 GB hard drive, runs 10.4.11
iPhone, 4 GB, OS X 2.0.2
Reply With Quote
  #3  
Old October 3rd, 2003, 02:35 AM
Mat's Avatar
Mat Mat is offline
iSmell
 
Join Date: May 2003
Location: A Land Down Under
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Mat is on a distinguished road
The code you have above is telling the button to go to frame 90 in its own timeline, not scene-1's timeline.

Try this

on (release) {
_parent.gotoAndPlay(90);
}

It will tell the button to go and play from frame 90 in the scene-1 timeline.

Mat - The Flash Expert.
__________________
Truth hurts. Maybe not as much as jumping on a bicycle with a seat missing, but it hurts.
- Drebin, Naked Gun 2 1/2
Reply With Quote
  #4  
Old October 3rd, 2003, 09:59 AM
Nummi_G4's Avatar
New Rhapsody User
 
Join Date: Feb 2002
Location: Concord, Ohio
Posts: 1,538
Thanks: 0
Thanked 0 Times in 0 Posts
Nummi_G4 is on a distinguished road
thanks mat. That works when I do not have any animation inside of the movie clip. But here is the problem. Inside a movie clip, I have 30 frames of animation, every frame has a keyframe in it. Do I have to put your:
on (release) {
_parent.gotoAndPlay(90);
}

in every single frame?!

Last edited by Nummi_G4; October 3rd, 2003 at 10:06 AM.
Reply With Quote
  #5  
Old October 3rd, 2003, 10:25 AM
Mat's Avatar
Mat Mat is offline
iSmell
 
Join Date: May 2003
Location: A Land Down Under
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Mat is on a distinguished road
I'm not quite sure what you mean. The movie clip you mention is that the scence-1 or the button movie clip?

Mat
__________________
Truth hurts. Maybe not as much as jumping on a bicycle with a seat missing, but it hurts.
- Drebin, Naked Gun 2 1/2
Reply With Quote
  #6  
Old October 3rd, 2003, 10:50 AM
Pardus's Avatar
Lurks: 15,289
 
Join Date: Aug 2001
Location: Vancouver BC
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
Pardus is on a distinguished road
Just put the button on its on layer inside the animation movie clip and add blank frames so the button spans the total frames of the animation.

you can also use _root.gotoAndPlay(90); if you are tageting the main timeline of your clip.

Another option is to use homemade functions. That starts getting a little advanced.
__________________
http://www.panthermedia.com
http://www.e-brochures.ca
Mac Pro Dual 2.8 Quad | Macbook 2.2 Black | G5 Dual 2.0 | G4 867 Quicksilver | G4 iBook 933 | G3 Beige 300 | G3 iMac 266
Reply With Quote
  #7  
Old October 3rd, 2003, 08:34 PM
Nummi_G4's Avatar
New Rhapsody User
 
Join Date: Feb 2002
Location: Concord, Ohio
Posts: 1,538
Thanks: 0
Thanked 0 Times in 0 Posts
Nummi_G4 is on a distinguished road
Quote:
Originally posted by Mat
I'm not quite sure what you mean. The movie clip you mention is that the scence-1 or the button movie clip?
The Movie clip is inside of Scene-1, and the button is inside of the movie clip.

scene-1 > movie clip > button

Would it be a big help if I posted a *.fla example?
Reply With Quote
  #8  
Old October 3rd, 2003, 09:07 PM
Pardus's Avatar
Lurks: 15,289
 
Join Date: Aug 2001
Location: Vancouver BC
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
Pardus is on a distinguished road
sure fire it up
__________________
http://www.panthermedia.com
http://www.e-brochures.ca
Mac Pro Dual 2.8 Quad | Macbook 2.2 Black | G5 Dual 2.0 | G4 867 Quicksilver | G4 iBook 933 | G3 Beige 300 | G3 iMac 266
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:48 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.