Re: [Flashcoders] inserting object into swf

2009-05-23 Thread Hans Wichman
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

Re: [Flashcoders] inserting object into swf

2009-05-23 Thread Andrew Sinning
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

Re: [Flashcoders] inserting object into swf

2009-05-23 Thread Hans Wichman
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

[Flashcoders] inserting object into swf

2009-05-22 Thread Andrew Sinning
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