Send timeline to frame label from HTML

Posted on 2005-04-28
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

    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

    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

    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 :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    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 come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
    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 how to how to record live broadcast.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now