Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

import clip from library to screen 1

Status
Not open for further replies.

GregLake

Technical User
Joined
Feb 2, 2006
Messages
18
Location
PT
How can I import a movie clip from the library to the screen pushing a button? Something like:

on(release){
clip_to_be_replaced.loadClip("the_clip_I_want");
}
 
Thank you very much oldnewbie. I didn't explain my self. Can I use the code I stated with a clip that I created with Insert Symbol and it's in my library? Can I call it this way? Thank you.
 
attachMovie() is what you need to attach a movie clip from the Library to the stage...
Code:
on(release){
   _root.attachMovie("clip_ID_in the_library", "whatever_new_name_you _want", 10);
}

Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top