A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: add variable

  1. #1
    Junior Member
    Join Date
    Mar 2006
    Posts
    21

    Question add variable

    i'm trying to add a variable that I can control within the Html doc that hosts my flash document. So what I need to do is call an item in my library...which I have done here

    var allplates_mc:MovieClip = outer_container_mc.createEmptyMovieClip("allplates ", outer_container_mc.getNextHighestDepth());
    allplates_mc._x = Stage.width / 2;
    allplates_mc._y = Stage.height / 2;
    allplates_mc.attachMovie("allplates", "allplates_mc" , allplates_mc.getNextHighestDepth());

    Now I want to enter a destination in the HTML and make the item hot so I can direct the viewer to a URL... how would I do that? Add variable???

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    you can add variables from html by adding them after the swf name like

    yourFile.swf?link=http://someLink.com
    Evolve Designs Interactive Media
    the natural selection

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