A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How do I access a variable in my html / swf parameters?

  1. #1
    Senior Member
    Join Date
    Apr 2004
    Posts
    231

    How do I access a variable in my html / swf parameters?

    So I'm trying to do something like this....

    <param name="movie" value="comp.swf?rootDomain=3" />

    where I have a variable called 'rootDomain' in my html, as a parameter.

    I want to be able to call that from my flash, but whenever I try it comes up as undefined.


    I'm using this code in my flash..

    on(release){getURL (_root.rootDomain + '/news/'), "_self"

    }



    I don't know if I'm just wrong, if it's syntax or what, but how do I reference that variable in the html with my code?

    Thanks.

  2. #2
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    PHP Code:
    <param name="movie" value="comp.swf" />
    <
    param name="flashvars" value="rootDomain=3" /> 

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