[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Send timeline to frame label from HTML

Posted on 2005-04-28
Medium Priority
Last Modified: 2010-04-03
I am sending the timeline in a flash movie to a frame number through the <param> tag and it works fine but I need to send it to a frame label because I will be moving the frames around as I develop the movie and I always want make sure I am going to the right frame.

Here's what I have to go to a frame number:

This is on a movie clip in my first frame


This is in my HTML page to call the frame number

<param name="movie" value="images/header.swf?frameNumber=3&">
<embed src="images/header.swf?frameNumber=3&" and so forth

I want to use frame labels instead but am having no luck in getting labels to work.  This is urgent because I need to show the client a working site tomorrow.
Question by:bwalz01
LVL 16

Expert Comment

ID: 13887843
It will work fine as is, just change it to the label name:

<param name="movie" value="images/header.swf?frameNumber=Label">

You can change the variable name to frameLabel if you want, but doesn't matter.

LVL 37

Accepted Solution

CyanBlue earned 2000 total points
ID: 13887881
Howdy...   :)

The same concept should work...  Check out my sample...

Just as a note, you do not need to run onClipEvent() handler all the time because it just needs to be fired...
Also, I have used FlashVars instead, and I think that's more preferrable than attaching it at the end of the file name...


Author Comment

ID: 13888276
Thank you both for your replies.  You are both correct but I can only accept one, sorry.  

Sam, I tried that before getting frustrated and making this post. It wasn't working and when I saw your post I tried again and it work. Must have been an error in spelling or something *duh*

CyanBlue, your solution just seemed to be a better way to do this than what I origanlly doing.

Thanks again to both of you.


P.S. I am just getting into doing more than simple little animations on a page (if you couldn't tell) so I may have more simple questions for you guys in the future. Got the action script book out and getting a headache :-)

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

834 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