View Full Version : buttons become graphics ?
nimzrocks
07-29-2011, 05:24 PM
Hello,
I'm trying to solve this problem since 1 week ago. But still no luck. I'm using flash cs4. I have a prealoder which is done on action script 3. but the problem is when I added my swf movie it becomes just a plain graphic. All buttons converting in to graphic. I imported swf in to library first and drag and drop the swf movie from there to stage. Please tell me where I have done wrongly ?
Thanks
Nimz
auntnini
08-02-2011, 10:20 PM
You can open MovieExplorer in your Flash .FLA file and copy contents to clipboard and paste that code into a post so we can see more specifically what you are talking about.
If you are adding a SWF, it would seem you would be talking about LOADER ... something like ...
intro_btn.addEventListener(MouseEvent.CLICK, goIntro);
p1_btn.addEventListener(MouseEvent.CLICK, goP1);
function goP1(e:MouseEvent):void
{
gotoAndStop("p1");
myURL = new URLRequest("pages/p1.swf");
myLoader.load(myURL);
}
p2_btn.addEventListener(MouseEvent.CLICK, goP2);
function goP2(e:MouseEvent):void
{
gotoAndStop("p2");
myURL = new URLRequest("pages/p2.swf");
myLoader.load(myURL);
}
p3_btn.addEventListener(MouseEvent.CLICK, goP3);
function goP3(e:MouseEvent):void
{
gotoAndStop("p3");
myURL = new URLRequest("pages/p3.swf");
myLoader.load(myURL);
}
replay_btn.addEventListener(MouseEvent.CLICK, goReplay);
function goReplay(e:MouseEvent):void
{
gotoAndPlay("animation");
myURL = new URLRequest("pages/blank.swf");
myLoader.load(myURL);
}
But are you simply referring to SYMBOL TYPE (MovieClip, Button. Graphic)? This can be controlled by PROPERTIES. Each MovieClip or Button symbol instance dragged from Library to Stage should be given its own unique name in Properties panel so you can use ActionScript to "talk" to it. Please refer to screens hot.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.