A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: how to ensure that the correct version of the swf is refreshed

  1. #1
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342

    how to ensure that the correct version of the swf is refreshed

    Hi Ppl.

    I know of the method where one can pass a query string to the embed tag of the swf with a randomly generated number... that, somehow doesnt seem to work anymore. Anyone know of a better way of doing this?

    Need a solution ASAP. Very urgent.

    regs
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    "filename.swf?nocache="+getTimer()

    does this help ?

  3. #3
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    shud i do this in the embed tag's query string?

    regs
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    query string within OBJECT and EMBED tags is required, you can also use FlashVars
    PHP Code:
     <PARAM NAME=movie VALUE="aquery.swf?var1=Hello"
    <
    PARAM NAME=FlashVars VALUE="var1=Hello">

    <
    EMBED src="aquery.swf?var1=Hello"
    FlashVars="var1=Hello"... 
    hth

  5. #5
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    but how does that ensure that the latest version of the swf is loaded???
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

  6. #6
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    i provided an example of the format required, i thought you might be able to insert the correct params for no-cache ?

    http://www.macromedia.com/support/fl...nt_caching.htm

    http://www.macromedia.com/support/fl...no_caching.htm

    these links should help

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