Groups | Blog | Home
all groups > flash (macromedia) > may 2005 >

flash (macromedia) : Loading a graphic with buttons



DrDel
5/29/2005 9:49:29 PM
Hello,
I have created a button and aded a Behaviour with the Event "On Press" and the
Action "Load graphic"

The problem with this is that when the button is clicked the graphic is loaded
on a seperate page. I want the graphic to load on the same stage as the button.

How do I do this using the Flash MX Pro development studio?

(Please keep in mind that I am doing this via Flash GUI with NO hand
Actionscript coding since I do not know how to do Actionscript )
JamesJordan
5/30/2005 12:00:00 AM
the easyiest way to do it will be to put the image on the stage, make it a
movie clip F8, - set its visibility to false. mc._visible = false; then inside
the button set the vis to true.

btn.onPress = function(){
mc._visible = true;
}

simple!

XmenFlash
5/30/2005 12:00:00 AM
DrDel
5/30/2005 1:47:34 AM
DrDel
5/30/2005 1:32:07 PM
but the problem is that I will have about 50 or so images... it would be silly to have 50 or so images all invisible..

AddThis Social Bookmark Button