• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Loading External Assets > CREATING AN INTERACTIVE PLACEHOLDER

CREATING AN INTERACTIVE PLACEHOLDER

A placeholder is nothing more than a movie clip instance (empty or otherwise) into which external content can be loaded (also known as a target). Creating an interactive placeholder involves nothing more than attaching a script to the instance, which is triggered by an onClipEvent of some sort. The great thing about loading external content into an instance that has been scripted in such a way is that even though the instance’s content will change, its scripted functionality can remain the same. Look at the following example:

					onClipEvent(mouseDown){
					this._rotation += 30;
					}
				


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint