A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: pass a variable to flash without .TXT??

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    4

    resolved

    Hi guys
    i want to make the various getURL in a flash movie be variable. in particular i use web publisher to generate html document in wich i have embed the flash movie .now the web publisher use a script(in a ASP page) to make the link to the next/precedent page i want to pass this string in flash so i dont have to make a movie for each page

    Thank in advance
    MK

  2. #2
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    You can attach the variable when you embed the movie:
    movie.swf?link=next_page.html
    Now you can use 'link' within flash.

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Posts
    4
    thanks nucleuz
    but is there something else i have to do in the movie or in the html code to get this working?
    the code for button is the classic:
    on (release)
    getURL(link, "_self")

    is this correct? since when i click on the button no action start

    MK

  4. #4
    Junior Member
    Join Date
    Jun 2002
    Posts
    4
    Originally posted by nucleuz
    You can attach the variable when you embed the movie:
    movie.swf?link=next_page.html
    Now you can use 'link' within flash.
    Ok it was my fault
    i was changing only the part in embed tag instead you have to change also the <PARAM NAME=movie VALUE="..."> tag.
    now the links in my principal movie work , what about the ones in the nested movie? why aren't them working properly?

    thanks again
    MK

  5. #5
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    Can't you just reference "_root.link"???
    Or what are you trying to do?

  6. #6
    Junior Member
    Join Date
    Jun 2002
    Posts
    4
    Originally posted by nucleuz
    Can't you just reference "_root.link"???
    Or what are you trying to do?
    yes just that
    so simple and i was missing it

    thanks again
    MK

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