A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Loading and Removing External Swf

  1. #1
    Member
    Join Date
    Jul 2003
    Location
    Lahore
    Posts
    92

    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.
    Nemesis

  2. #2
    Senior Member bs_grewal's Avatar
    Join Date
    Dec 2002
    Posts
    548
    loadMovie(url,target)

    removeMovieClip(target)
    Thanks
    Baljit Singh Grewal
    Click here to email me
    Messengers: baljit@bsgrewal.com

  3. #3
    Member
    Join Date
    Jul 2003
    Location
    Lahore
    Posts
    92
    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 ?
    Nemesis

  4. #4
    Senior Member bs_grewal's Avatar
    Join Date
    Dec 2002
    Posts
    548
    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
    Thanks
    Baljit Singh Grewal
    Click here to email me
    Messengers: baljit@bsgrewal.com

  5. #5
    Senior Member bs_grewal's Avatar
    Join Date
    Dec 2002
    Posts
    548
    Example
    Thanks
    Baljit Singh Grewal
    Click here to email me
    Messengers: baljit@bsgrewal.com

  6. #6
    Member
    Join Date
    Jul 2003
    Location
    Lahore
    Posts
    92
    You Da Man, You Rock dude, thanx very much.
    Nemesis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center