Hi, I have been trying to pick up more as3 lately, also have been converting some of my sites from as2 to as3. So I’ve seen alot of threads regarding my problem, but no clear concise solution. Here’s what I desperately need help understanding.
In as2 I could create 3 menu buttons and save them in a mc- lets call it menu_mc. This menu_mc sits on my main stage. I have also placed a mc on stage to hold anything that I load. Lets call it holder_mc. So I figured out how to get my email button to work using this:
email_mc.addEventListener(MouseEvent.CLICK, mailto);
function mailto(event:MouseEvent):void {
var email:URLRequest = new URLRequest(“mailto:myemail@mail.com”);
navigateToURL(email, “_blank”);
}
That’s fine. What I can’t for the life of me figure out is understanding how to click on one of my menu buttons and load a swf into my holder_mc on stage.
In as2 I could use this code on a button :
on (release) {
//load Movie Behavior
if(this.my_holder == Number(this.my_holder)){
loadMovieNum(“test.swf”,this.my_holder);
} else {
this.my_holder.loadMovie(“test.swf”);
}
//End Behavior
}
Can someone please help me. Teaching myself is not easy and I am sure there’s alot I am missing, even though I watch alot of tutorials, I haven’t found any that do what I am trying to do.
You can see what I am trying to do here: http://shareeneff.com/NEW.html
Thanks for your help and advice in advance!