-
Loading and Removing External Swf
I wanna know the actionscript code of loading an external swf and then removing it from The Stage. Thanx in advance.
-
Senior Member
loadMovie(url,target)
removeMovieClip(target)
-
Holy man I don't want to tell any URL actually I want to load a jpg from my pc. And what's the target thing ?
-
Senior Member
url means .jpg or .swf file
and target is the blank movie clip's instance name in which u want it to be loaded.
to load jpg file in ur sfw file first of all create a blank movie clip on the stage. and give it an instanse name say loader
then on the first frame on ur fla's time line write following code
loadMovie("image.jpg","loader")
but remeber to run the above code ur fla file and image should be in same folder or u need to chane the path of jpg file.
i think now everything is clear to u
if u have any questions pls feel free to ask
thanks
-
Senior Member
-
You Da Man, You Rock dude, thanx very much.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|