I created an object, and saved it as a symbol with the export to actionscript checked. It’s a horizontal line that I want to be able to move to a location on the page using actionscript.
How can I access the symbols that I create using scripts?
under the properties pane you’ll see an box for you to type the instance name of the movie clip. You can access the movieclip’s properties via actionscript if you’ve given it a unique instance name.
You only need to have the export for actionscript checkbox checked if you are going to be using attachMovie() to pull your clip out of the library. To do this you also need to check the “Export to first frame” checkbox. This makes your clip load BEFORE all other content including a preloader, so thats a pain.
I recommend what ironikart said, just dragging an instance of the clip onto the stage, then opening the properties panel and assigning an instance name to the clip.
You can either put the actions directly on the clip, or on a frame. The methods are a bit different, so be careful.