A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: pass variable to embedded flash via url

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    28
    Hi

    Does anyone know a way to pass a variable contained in a url to an embedded flash file?

    the url would look something like:
    http://www.mydomain.com/application?...e=passed_value

    I want to pass an id number to the embedded flash file so that it can load the right xml template.

    If anyone can help, I would greatly appreciate it.

    thanks,
    mr

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    my guess that you could do something with Javascript. However I don't think any XML code is going to help you ;-)

    Why don't you try:

    Flash 5 ActionScript Forum:
    http://board.flashkit.com/board/foru...php?forumid=30

    Flash MX Forum:
    http://board.flashkit.com/board/foru...php?forumid=61

    or even Genral Help:
    http://board.flashkit.com/board/foru....php?forumid=2

    Thanks

    Luke

  3. #3
    you'll need to use asp or similar thing to hold the swf file.

    if you're page was called test.asp the following should work:

    on you first page, link to test.asp?xmlitem=<%=xmlitem%>

    then in your page containing the flash file embed the file, but query that too, like:
    <object embed src=flashfile.swf?xmlid=<%=request("xmlitem)%>

    then you can you reference _root.xmlitem in your flash file and use that as a variable.


  4. #4
    wikkid.

    it didn't like my html and know I can't edit the post.

    just an idea - have edit details for each post above the post, not below it.

    that way people can edit it if they break it like I just did

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