whats the actionscript to display a picture from the library on the flash page?
you can do it like this:
Make a new mc (movie clip). Open this mc. Add the image from the library to this mc, on the stage. Now say that you have called this mc ‘imageHolder’ as its instance name.
Use this code to attach this mc to the movie:
[AS]attachMovie(“imageHolder”,“imageHolder”,1);[/AS]
sorry, i meant from a button. so something like this
on(release) {
attachMovie(“movie1”,1);
}
but it doesnt work. what is the actual AS?
Try this:
[AS]on(release) {
attachMovie(“movie1”, “movie1”, 1);
}[/AS]
You need to give it a new instance name, here we are giving it the same name again ‘movie1’ (the 2nd parameter for attachMovie method)