Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Testing within the IDE & caching of loaded SWF

Testing within the IDE & caching of loaded SWF

2004-03-17       - By brook elgie

 Back
I usually use a cache killer on the query string for things like this,
using the Data object.

cacheKiller = new Date().getTime();

Then append this onto the end of your reference to the swf to be loaded.

myMC.loadMovie("loaded.swf?ck=" + cacheKiller);

This generates a unique number each time that prevents the movie from
fetching from the cache.

brook

Brook Davies wrote:

> Hello,
>
> I do have a project set up. How does that help. Lets say I have two
> movies. Main.fla and loaded.fla. Lets say I preview main.fla (which
> loads loaded.fla) in the IDE. So now I have main.swf open in the IDE
> and it has loaded loaded.swf. Now I want to change loaded.swf and
> preview it again within main.swf. So I unload the movie within
> main.swf and then switch to loaded.fla to make the change and
> re-publish the file.
>
> All is well, except when I toggle back to main.swf, and load the newly
> generated loaded.swf, it does not reflect the changes I just made. I
> have to actually close the main.swf and reload it even though I made
> no changes to it....
>
> Is there a way around this?
>
> Brook
>
> At 02:51 PM 3/16/2004, you wrote:
>
>> If you are using 2004 setup a project.
>>
>> Vince
>>
>> On Tue, 16 Mar 2004 14:48:19 -0800, Brook Davies wrote
>> > I have a main movie that loads other movies into it. Is there a way,
>> > that while testing within the IDE I do not have to generate a
>> > preview of both the main movie and the movie that gets loaded. What
>> > I mean is, if I change the movie that gets loaded and publish it,
>> >  how can I force the main movie to load the new movie and not load
>> > the movie from the cache without re-publishing the main movie?
>> >
>> > I don't know if that made sense...
>> >
>> > Brook
>> >
>> >
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> > Supported by Fig Leaf Software
>> >
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> > Be sure to check the archives and the wiki:
>> >  http://chattyfig.figleaf.com/
>> >
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> > http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107150
>> >
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> > To unsubscribe send a blank e-mail to:
>> > Normal Mode: flashcoders-unsubscribe@(protected)
>> > Digest Mode: flashcoders-digest-unsubscrive@(protected)
>>
>>
>>
>>
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> Supported by Fig Leaf Software
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> Be sure to check the archives and the wiki:
>>  http://chattyfig.figleaf.com/
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107152
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> To unsubscribe send a blank e-mail to:
>> Normal Mode: flashcoders-unsubscribe@(protected)
>> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>
>
>
>
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Supported by Fig Leaf Software
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Be sure to check the archives and the wiki:
> http://chattyfig.figleaf.com/
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107155
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> To unsubscribe send a blank e-mail to: Normal Mode:
> flashcoders-unsubscribe@(protected)
> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>
>


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107176
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)