Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

naming keyframes

Posted on 2001-08-06
11
Medium Priority
?
626 Views
Last Modified: 2006-11-17
Hello all.
I am new to flash and need some assistance.

How do I name keyframes.

Lets say I have 4 keyframes, how would I name them to use gotoAndPlay("nameofkeyframe") from one keyframe to another to manipulate their control.

Thanks.
0
Comment
Question by:TryHarder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6358064
go to your windows drop down then choose panels then select frame.
This will produce a panel.
On this panel it will say "label".
Select the frame you wish to label.
Then fill in the name for that frame on the panel

note:
It is good to have a seprate layer just for frame labels.
any time you need to create a new label choose the frame push f6 to create a new key frame the place name.

Let me know,
Jeff
0
 

Author Comment

by:TryHarder
ID: 6359783
Hello jeffbeasley.

I placed the labels on each of my keyframes like you indicated...

On the start of 2nd keyframe I inputted gotoAndPlay("frame4"); and on the end of my 4th keyframe I inputted gotoAndPlay("frame1");   Now when I select play, the movie goes in sequential order from the first till last without jumping from 2 to 4 and from 4 to 1. Is there any missing points on my part?


Thanks.
0
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6360065
try putting a stop action before you put the gotoAndPlay();
Another thing you might try is just useing the default value in flah for goto and play
for example if you new you  wanted play frame 10
just type
stop();
gotoAndPlay(10);

Jeff
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:TryHarder
ID: 6360131
I tried the stop() and trace("in 4")...

It seems like some option is off which tells flash to inspect actionscript for different keyframes. Maybe I have to save it first?
0
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6360254
I created an example file for you.
It is at http://www.jeffbeasley.com/downloads
called frame_label
right click on it to save it

Jeff
0
 

Author Comment

by:TryHarder
ID: 6360421
I got your example. Im sure it worked for you. When I play it, the vertical line goes through all the frames. The two parts where you have actionscrips to skip into label 'a' and then 'b' didnt work. I saw the message 'You should not see this' two times. This means that the scripts are not executed on my flash-software. COuld it be that I have to connect the script together with the frames through some sort of check-boxes from the settings or options. This makes me believe because your environment lets you execute the scruipts and my doesnt. There must be something one other little detail.

Thank you.

0
 

Author Comment

by:TryHarder
ID: 6360443
Jeff, I think your example workds when I click on TEST MOVIE from Control menu item. It doesnt work when I click PLAY from Control menu. Why is that?
0
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6360446
What version of Flash do you have?

Jeff
0
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6360467
when you generate the flash file push
<CTRL><ENTER>
at the same time this will genrate an swf for you then open it in your browser and see what happens
If you still get the problem
right click on the movie in your browser
it should say
About Macromedi Flash 5 Player
If it has a lower version goto Macromedia and download the latest version
Jeff
0
 
LVL 3

Accepted Solution

by:
jeffbeasley earned 200 total points
ID: 6360479
Test movie
plays your frames without reading the script
when you press
<CTRL><ENTER> this generates an swf file
this is how your movie will actually function

you should be fine now,
Jeff
0
 

Author Comment

by:TryHarder
ID: 6360544
Thank you for your help.

My first flash movie works !!!

Max
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question