A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: URL String

  1. #1
    Junior Member
    Join Date
    Jul 2003
    Posts
    2

    URL String

    I have a client who has a site designed 100% in FLASH. For special email promotions they want to send the user directly to the product in the swf file. Is this possible to do? I want to create a url string like this…. http://www.mysite.com/site.swf=productID2

    Is this possible and if so how would I go about doing it.


    Thanks

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    http://www.mysite.com/site.swf?myvar=productID2

    this will create a variable myvar on the main timeline of site.swf (in this case it will have the value productID2), the value of this variable can then be used to determine which product is displayed.

  3. #3
    Junior Member
    Join Date
    Jul 2003
    Posts
    2
    How would you handle it if the products are dynamically generated and stored in XML? I can create the myvar on the main timeline but still can't figure out how to pull each product if the one keyframe runs the entire online store.


    Thanks

  4. #4
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    I guess it depends on the structure of the XML and so on, but you could load all the content from the XML into an array (or maybe an array of objects) and then use the variable passed into the movie to determine which of this content is displayed.

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