views:

1800

answers:

1

I manage the cache of the client by adding a version parameter to each request of an swf. Now I want to be able to use RSL in the Flash IDE, there I need to specify the path to the swf file where the MovieClip (graphic asset) will be at runtime.

It will be impossible for me to get into the Flash IDE and add the version parameter to the path of library each time I release a new version.

Is there a way to overcome this problem?

A: 

as i understand there is 2 solution for this problem
1. user JSFL and loop throw all the movie clip in
by main movie and select only the ones that are imported
changing the url from of the library
From : libray.swf?appVer?2008-01-01
TO : libray.swf?appVer?2009-01-01 along and probably painful proses

  1. this option is "thinking out of the box"
    instead of adding parameter during the packaging of the new version
    i will add to my media library folder the name of the version
    so my folder name will change.

    FROM: Media_2008-01-01
    TO: Media_2008-01-01

    this is the main idea.
    yes i will need to change few path in my application,
    so each call the the media folder i will add to the name of that folder the version name

but in the end , call to library file will be different, and will not save in cash because the url will be different .

Shvilam