SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast IBFreddy's Avatar
    Join Date
    Dec 2004
    Location
    San Francisco
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Controling flash via javascript

    Hi all, I have a small problem I'm trying to figure out.

    I'd like to have a drop-down form pass a variable to an embedded flash file. I know the basic idea of how to stop, rewind and play a flash file via JS, and I obviously know how to pass a variable into Flash, but my experience in forms is keeping me from understanding how I would use the form to pass a javascript variable to the flash file.

    Thanks ahead of time.
    www.somerandomdude.net (that's me)

    Current project: http://www.cyark.org

  2. #2
    SitePoint Member
    Join Date
    Dec 2004
    Location
    xi'an,china
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.macromedia.com/support/fl...hflash_03.html

    TSetProperty 4, 5 4, 5
    Syntax TSetProperty( target, property, value)

    For the timeline indicated by target, sets the value of the property specified by property to the value specified by value, which can be a string or a number. For property, enter the integer corresponding to the desired property. For a list of all properties and their corresponding integers, see Getting and setting properties.
    SetVariable 4, 5 4, 5
    Syntax SetVariable( variableName, value )

    Description Sets the value of the Flash variable specified by variableName to the value specified by value. The argument type for both arguments is string.
    Example movie.SetVariable("/Form:UserName", "John Smith");


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •