A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: passing a value to a flash movie

  1. #1
    Member
    Join Date
    Jun 2001
    Location
    melbourne, australia
    Posts
    66
    my collegue asks:

    could you find out what you need to do to read in the value that I pass to the flash movie.
    In the HTML page that holds the movie there is this line in the code:

    <PARAM NAME=movie VALUE="debug.swf?src=gotit">

    I need you to be able to read the value of the variable 'src', which in this instance is 'gotit',
    and have that appear as one of the values when your form submits.


  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Manchester, UK
    Posts
    454
    This is quite simple
    If you pass src into the movie in the way you suggested it does become part of the movie
    To reference the value of src from any part of your movie you need to look for _root.src or _level0.src
    both of these will return the value "gotit"
    Hope this helps,
    Jon 8o)

  3. #3
    Member
    Join Date
    Jun 2001
    Location
    melbourne, australia
    Posts
    66
    k - i'v put in a text field called 'src' on the main stage (which i assume is _root).

    i am ammending this fla, so the original builder had built the form within a movie (which is called intro).

    is this right?

    i have sent the swf on, but i don't think we can test it tonight, might have to w8 till mondya .. but wud appreciate knowing if this is correct or not so as i know if/what to do.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center