Hi Andrew,

both are possible, either loading it in a child, or replacing root
completely. Look into loadmovie and loadmovienum.
With respect to the flashvars, no clue, you'll have to try, but if not, I
think:
loadMovieNum ("oldswf.swf?"+[replace by string with original flashvars], 0);

will do the trick, you'll have to experiment first though, maybe the
originals vars are retained automatically.

regards
JC

On Sat, May 23, 2009 at 4:35 PM, Andrew Sinning <[email protected]>wrote:

> That's exactly what I was looking for Hans.  Thanks so much.
>
> I didn't mention that this is AS2, but it is and it looks like you're
> assuming that, too.
> Will using loadMovie without specifying a target cause myOldSwf.swf to
> become _root, or will it become a child of _root?
>
> Will myOldSwf.swf have access to flashVars?
>
> Of course, I should figure this out for myself, but if you happen to know
> .....
>
>
> Hans Wichman wrote:
>
>> Hi,
>>
>> by far the easiest way, if you don't have the original source and don't
>> want
>> to decompile the original movie is doing something like this:
>>
>> 1. create a new movie with same size as the old movie
>> 2. put this on frame one of the timeline:
>> import [new version of old class goes here];
>> var cls_0:[new version of old class goes here]=null;
>> loadMovie ('myOldSwf.swf");
>> 3. compile and run
>>
>> hth
>> JC
>>
>>
>>
>> On Sat, May 23, 2009 at 12:00 AM, Andrew Sinning <[email protected]
>> >wrote:
>>
>>
>>
>>> A few days ago I made a post with the subject "unexpected result with
>>> linked classes in embedded swf".  The lesson I learned from this is that
>>> an
>>> object is only imported into a movie player once, regardless of how many
>>> swfs it occurs in.
>>>
>>> Well, I'm dealing with a situation where I forgot to back up my source
>>> code
>>> following the most recent official release of a product.  I made about a
>>> month of changes as we were adding a bunch of features before I realized
>>> this.
>>>
>>> Anyway, we haven't had an official release in a while, but we've found a
>>> rather critical problem that is affecting a customer.
>>>
>>> I just need to add one line to one object to make the problem go away.
>>>
>>> So, is there a way to insert the corrected object into the last official
>>> release of the compiled swf?
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>
>>>
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to