Results 1 to 2 of 2

Thread: buttons become graphics ?

  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy buttons become graphics ?

    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

  2. #2
    Join Date
    Oct 2006
    Location
    New York, NY, USA
    Posts
    245
    Thanks
    39
    Thanked 24 Times in 24 Posts

    Default SYMBOL TYPE (MovieClip, Button. Graphic)?

    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 ...

    Code:
     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.
    Last edited by auntnini; 08-02-2011 at 11:22 PM. Reason: screen-shot

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •