Nested Buttons

Hi guys,
i am a fresher in actionscript... i have a problem with my
flash file
i have a problem with a nested button... i have a main button
But_main and which has 2 buttons in it.
the problem i am facing is:
before telling u the problem i will give u a brief about my
flash file....
- my file has a button and the button by default has a mouse
over effect where it scales up but 25%.
- It also has 2 text nested in it which is also are buttons.
my problem:
when i am on the main button it scales up but once it comes
across the text button it scales down automatically.
i knw y it happens.... thats because it goes over another
button so its out off the main button and on the text button.
but can any one tell me the solution how can both my button
work simultaniosly
i hope i am abel to explain my problem properly...
pls help...

Takeing a guess here but i think i know what hes trying to
say....
he has a button say called Dave_BUT in this button he has a
text like a label. now i could be wrong but what i think he is
saying is that when he trys to scale the buttons text from 1 point
to another it goes wrong as it pases over another button..
Answer i belive is really basic flash Treat the button as a
scene in it self create symbol "button" then you got ya 3 states
and your 4th being hit area. Select which state you wish to change
ie if its ya over state then use the 1st frame and then insert key
frame. after inserting youre key frame you should be able to insert
a simbol, say youre text... then open that as a symbol and if i got
this right you shoudl be able to insert frames thus creating an
animation inside the buttons state...once you have done that youl
end up with Dave_BUT that you can drag n drop into youre
scene....mental note here you should also be able to insert action
script for the button also....in case this sounds like gobledy
****** check this tutorial out which i came across explains it
better than i
ps the info im trying to forward to you is at the end of this
tutorial btu to be honest the guy rocks so watch whole movie he
makes it so simple...
http://tutorials.learnflash.com/videos/freebeginCreatingButtons.html
hope it helps

Similar Messages

  • Lack of Previous/Nest buttons on individual topic pages

    I reall miss the above. Any chance they could be returned? It's much more time consuming to have to go back to discussion page each time.

    Thanks, It would really cut the back and forth time.
    From:
    adobe-admin <[email protected]>
    To:
    "Larry G. Schneider" <email address deleted by host]>
    Date:
    09/19/2011 10:54 AM
    Subject:
    Re: Lack of Previous/Nest buttons on individual topic pages Lack of Previous/Nest buttons on individual topic pages
    Adobe Forums
    Re: Lack of Previous/Nest buttons on individual topic pages
    created by adobe-admin in Forum comments - View the full discussion
    I?ve been told no, it was removed from the core platform a while ago due
    to performance issues. But I will bring it up again.
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/3925276#3925276]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/3925276#3925276]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Forum comments by email or at Adobe Forums

  • AS3 air project.. nested button in a movie clip .. trying to use a class script

    I have been tring to have a button in a nested movie clip move the timeline along using a class script attached to the nested movie. I can get the buttons to work on the main timeline with another similar class script, but when I have a button within a nested movie and attach similar code to the movie, it doesn't seem to want to work. This is the class code attached to the nested clip.... I guess can an active listener be called if the button isn't yet being visible yet, and should this be done on the Main class script page for the main timeline? Any help would be great!! Thanks
    package  {
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        public class Animation extends MovieClip {
            public function Animation() {
                gotoAndStop(1);
                negBackground_btn.addEventListener(MouseEvent.MOUSE_UP, buttonPressedNegBackground);
            private function buttonPressedNegBackground(e:MouseEvent):void {
                negBackground_btn.visible = false;
                gotoAndStop("negChar");

    Hi,
    Your question is bit confusing, try to explain it. According to what I unsrestand you should use the particular movieClip name with the code to make it happen properly.
    Like :
    (movieClip_Instance).gotoAndStop("negChar");

  • Nested button in mc

    Hi -
    I have an FLA with movie clips that I'm using as buttons
    (button1, button2, etc). Inside "button4" are layers with button
    instances (not mc's as buttons) that make up a submenu (sub4_1,
    sub4_2, etc). The buttons have different looks for Up, Over, etc.
    Each of the buttons will have getURL's to load html
    pages...eventually.
    The problem is - I can't "reach" these sub-buttons. When I
    test the movie I don't even get the different btn states. I'll get
    the right reaction if I put the sub-button on the main timeline but
    not when it's nested in the button4 timeline. I've tried every
    addressing scheme I could find but still not working.
    Please - what am I doing wrong?

    Aaaargh - indeed I do!
    I've been struggling with these buttons from the outset and
    attached is the code that solved the first issue (courtesy kglad).
    So - what I'm learning is, since button4's onRollover has
    already been defined - it's not getting this other message and by
    extension nothing within it, like sub4_4, can be addressed. And
    that's why sub4_4 is not defined - even tho' it is really there.
    BTW - that other code you asked me to try (trace($k);)
    returned "instance7".
    So - can anything be done?
    I appreciate your help.
    JL

  • Need help writing correct code for nested button

    This is the code on the main timeline.
    stop();
    garage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
        gotoAndPlay("open");
    The movieClip gDoor is nested inside of garage and "open" is a label on that timeline.  I know the gotoAndPlay("open"); isn't correct.  How would i target the label on the nested timeline.
    the link below is to dowload the fla
    clienttestsite.x10.mx/beta/garage.fla

    The problem is that you have an event listener assigned to the garage, which is blocking/overriding interaction with anything inside of it.  When you click on the chest's button, you are still clicking on the garage, which does the gotoAndPlay("open")... where it stops at the stop();
    One way to get around this is to assign an instance name to the door and assign the opening code to that....
    stop();
    garage.door.addEventListener(MouseEvent.CLICK, openHandler);
    function openHandler(event:MouseEvent):void{
       garage.play();
    garage.chest.closeBtn.addEventListener(MouseEvent.CLICK, closeHandler);
    function closeHandler(event:MouseEvent):void{
       garage.gotoAndPlay("close");
    Notes: as shown in the code above...
    - use CLICK instead of MOUSE_DOWN.
    - in the openHandler use play() instead of gotoAndPlay("open"). You are already in the "open" frame, and it is only because the stop() is used up that it actuallys works.
    Doing what I explain above also makes it so that you can click the door to close things as well.

  • Button overlapping & nested button issues

    Hi ppl
    First up, here's my tiny sample project that i'm having issues with.
    Issue #1: i plan to have an entire wall of the symbols that i created, so users can click on our mugshots to enlarge the image and see some contact details. Is there a way to always make the active(clicked) symbol appear on top of the rest? Right now it's locked in the default layer order in Edge.
    Issue #2: Each symbol has its own mailto button nested in it which toggles on/off when its parent symbol is clicked. It works, BUT I cannot find a way to click that mailto button without activating the parent symbol's click event too.
    Spaghetti code aside (i'm not a developer), i'd really appreciate any help with the above!
    (Man it seems like i've been working on this forever *hysterical laughter*)

    Hi,
    Fix for Issue#1:
         a. Add sym.setVariable("count", 200); to compositionReady event handler.
         b. Then add the below code for click event handler for each symbol:
              var count = sym.getVariable("count");
              //console.log(count);
              sym.getSymbol("btn1").getSymbolElement().css({"z-index":count});   //use btn1 or btn2 accordingly for respective symbol
              sym.setVariable("count", count+1);
    Fix for Issue#2:
         Add e.stopPropagation(); to click event handler for both symbol mailTo buttons which will prevent the event propagation from mailTo btn to its parent.
    hope that helps,
    Vivekuma

  • Problem with nested button controlling main timeline...

    I am new with as3, i like it, but I am suffering
    After I looked on google for trying to figure out my problem I attempt to post here...
    to make it simple, I have a loader that is loading some swf(a scrolling content), with some content, in those swf I am trying to put a "close" button and some other like  next/prev. But no way... normally I thought that the MovieClip(root) would make it but it's seems not to be enough.
    code of the swf:
    var btnclose1:btnclose = new btnclose();
    this.addChild(btnclose1);
    btnclose1.x = 770
    btnclose1.y = 55;
    btnclose.addEventListener(MouseEvent.CLICK, closearchi)
    function closearchi (e:MouseEvent):void {
    MovieClip(root).gotoAndStop(1);
    Thanks by advance...

    Hi Ned,
    Actually, I just saw than the problem come from the timeline itself, but I don't see what to do...
    on the frame 1 of the main timeline, it is loading an empty swf into my container"box":
    var myLoader:Loader = new Loader();
    var myURL:URLRequest = new URLRequest("empty.swf");
    myLoader.load(myURL);
    box.addChild(myLoader);
    on frame 2 I have the first content and so on:
    function loadarchi():void
    var myURL:URLRequest = new URLRequest("archi.swf");
    myLoader.load(myURL);
    loadarchi();
    I did a simple button on the main just for testing purpose, telling him to go to frame 1, it doesn't unlod the content ! there is the problem!
    what is wrong with that? it shoul load the empty swf instead of archi...
    thanks again

  • Nested button

    I've got a button inside a MovieClip named "bt_fechar" (<Instance Name>) (last line).
    I'm trying to access it from a script in the main timeline but the following error occurs:
         "ReferenceError: Error #1065: Variable bt_fechar is not defined.
          at Accoes_Comerciais_Microsite_20100202_fla::MainTimeline/Accoes_Comerciais_Microsite_201002 02_fla::frame1()"
    Any ideas as to why it's not working? Thanks.
    Here's the code:
         this.stop();
         mc_ciclo.stop();
         function inserirCiclo(event:MouseEvent):void
             mc_ciclo.gotoAndPlay(1);
         bt_ciclo.addEventListener(MouseEvent.CLICK, inserirCiclo);
         function retirarCiclo(event:MouseEvent):void
             mc_ciclo.gotoAndPlay(7);
         bt_fechar.addEventListener(MouseEvent.CLICK,retirarCiclo);

    You have two problems with your file.
    For all the buttons on the main stage you need to remove the code that is attached to them.  That is AS2 coding and neither the code nor where it is placed is supported in AS3.
    As for your button issue, objects need to be present when code is executed that involves them.  Your button is not present when your code executes.  It is somewhere down a timeline inside the movieclip.  What you can do is have the button present in all frames of that timeline and change its visible property to false when you do not want it to be seen/accessible.

  • Refer to nested button from DocumentClass

    I have navbar_mc on the main stage. Within navbar_mc is button1_btn
    How can i reference this button with an eventListener from the DocumentClass?
    I have the following in the document class:
    this.navbar.button1_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    but get the following error when i compile: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    also, there are many buttons within navbar_mc, how can i make an elegant switch statement function (in the DocumetnClass) for all of them. To reiterate, with an eventListener for each button, how do i reference the correct one from a single function, in this case clickHandler?
    Thanks in advance!!!

    Are you trying to add the listener before the object is on stage - ie is the clip on stage at frame 1? If the clip is on frame 1, then you wouldn't get that error from the event listener anyway...  You can use the currentTarget property of the event in your click handler to get the clip/button that was clicked.

  • Simple button help needed!

    I want to make a simple round button that glows when you
    mouse over it and depresses when you click it.
    Apparently to do this I need to use Filters to make the glow
    and bevels. But Filtersonly work on movie clips, buttons and text.
    So I make a circle and convert it into a button symbol
    (Btn1). Then I make another button symbol (Btn2) and use the first
    button symbol (Btn 1) on the Up Over and Down frames of Btn 2.
    Assorted Filters are applied to Btn 1 on the Up Over and Down
    frames to get the effects I want.
    I test the button (Btn2) using Enable Simple Buttons. It
    works perfectly - glows on mouse over and depresses on click. Then
    I try Test Movie -- and the button doesn't work!!!
    Not does it work when exported as a SWF file!!!
    I watched a tutorial video that came with my Flash Pro 8
    Hands-On-Training (HOT) book and he used pretty much the same
    technique -- except he only tested his button with Enable Simple
    Buttons. I'll bet my house his didn't work with Test Movie either!
    The stupid thing, is I was just able to achieve exactly what
    I wanted very quickly using LiveMotion 2!
    What is wrong here? Why is it so impossible to create a glow
    button in Flash? Why has it been easy in Live Motion for years?
    All help appreciated!
    Thanks
    craig

    I thought the nesting button situation might be the problem
    BUT there is no other way to apply Filters to Up, Down, etc. Also,
    a freaking tutorial book described that as a valid method, but
    obviously it ain't.
    I tried using movieclips as well but basically had the same
    problem.
    I mentioned LiveMotion 2 because that ancient program can do
    easily what Flash Pro 8 seems incapable of.
    What is the logic behind not allowing Filters to be applied
    to simple graphics? It's absurd!
    There's got to be a way...

  • How to create nesting in a smartlist

    This is for adding a nested condition to a smartlist in iTunes 11
    I have a smartlist that has nesting that looks like this:
    Per the help section, it states:
    To add another set of rules, hold down Option key & click the Nest button. (When you hold down the Option key, the Add button changes to the Nest button.)
    When I do this, I can only create a new nest within the larger nest that you see on the screen. For example, I press Option Key,  the Add button becomes a Nest button under Any>Plays>is less than>41. But, I want to creat a "larger" Any nesting that is not nested within the two larger nestings. Does that make sense? Any tips?

    It is a bit clumsy, isn't it. In your case, I'd start again form the begining and get your nesting structure in place first, then fill in the details.

  • Button URL issue

    Hello everyone! I have a problem, i have a site i made in flash, on every scene i have movieclips with nested buttons in them, when i double click on the MC and then click the button, i open the actionscript and type everything so when i press the button it would open an URL from other site, also the MC works just fine. But the problem is every code that i type applies on every button on the actual scene. For example i have btn1 and btn2, i type the code with URL "google" and than btn2 with URL "yahoo". When i publish the site they both go to "yahoo" which is the last code that i typed. So whatever code i type last on no matter which button, applies for all buttons on the particular scene. I thought it was the problem with the instance names, but i dont know how to change them. Please help me with this, its the only problem i have. Thank you very much...

    The instance names are assigned in the Properties panel.  To change them you click on the object and in the Properties panel you assign it the name.  Your buttons should have different names, and the code that works with them should be referring to the different names so that he correct code is designated for each.
    When I reread your problem I think I am seeing that you say you have a movieclip containing a button, and a number of these movieclips so that you have multiple buttons.  If that is the case, then you are effectively editing the same object every time, so changing one changes the other one.  If you change one and then open another that was different, does it also show the new change?

  • Can I make a global button?

    Hi !
    I have some menu buttons in my main timeline. The buttons are
    really button symbols inside movie clips, then the "mc" is placed
    in the main timeline, so when I roll over them a movie plays. What
    I want is that when I press one button, it makes another play its
    own "mc" but I can't get the button symbols to talk to each other.
    can I make global buttons. If I can how do I do this?

    LadySamG,
    > What I want is that when I press one button, it makes
    > another play its own "mc" but I can't get the button
    > symbols to talk to each other.
    Actually, these objects do "talk to each other"; they just
    have to know
    each other's names and where the others live. By that, I mean
    you'll need
    to give each of these objects an instance name in the
    Property inspector.
    Once they have instance names, you can talk to them with
    ActionScript and
    manipulate each object in the ways determined by its class.
    (What are
    classes? Classes define objects by providing for their
    properties
    [characteristics], methods [things they can do], and events
    [things they can
    react to]. Button symbols are defined by the Button class,
    movie clip
    symbols are defined by the MovieClip class.)
    > can I make global buttons. If I can how do I do this?
    Even though you explained it, I'm not sure I understand what
    you mean by
    "global" in this context. If you have three movie clips,
    instance-named
    clipA, clipB, and clipC -- and if each of those movie clips
    has the same
    button symbol inside it -- you can address each button
    separately like this:
    clipA.myButton
    // assuming the button's instance
    // name is myButton
    clipB.myButton
    ... and so on. Want to adjust the Button._x property (that
    is, the
    horizontal placement) of clipC's nested button?
    clipC.myButton._x = 5;
    Or is there maybe a movie clip within clipB? If so, what's
    that movie
    clip's instance name? Assuming myClip, then ...
    clipB.myClip.gotoAndPlay(2);
    Make sense?
    In this approach to "speaking to" objects, you put the code
    into a
    keyframe, rather than attached to the object itself.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Problem communicating to nested clips

    I am an occasional flash user trying to segue from
    ActionScript 2 to AS3. I am still using AS2, but am trying to keep
    all my scripts in one place to prepare myself for AS3. I am having
    a struggle figuring out how to communicate to nested movie clips
    from the root timeline.
    The root timeline has only one frame. There is a movieclip on
    the root frame that has a button that doesn't appear (instantiate)
    until frame 20 of the movieclip.
    On the root timeline I have a function call to the nested
    button (see code below). It doesn't work. I've given the button
    instance the name "print_btn". Since the button doesn't appear
    until later in the timeline, I've given the button a Linkage
    Identifier of "print_btn", and exported it for ActionScript in the
    first frame. I've also tried changing the function path to
    _root.btnPortfolio_mc.print_btn.onPress. The only way I can get it
    to work is to move the function to the the frame on the nested
    clip's timeline where the button is instantiated.
    I thought that setting the linkage to export for ActionScript
    would enable me to communicate to an instance on a nested clip that
    isn't instantiated until later. What am I doing wrong?

    You pretty much answered this for yourself... "The only way I
    can get it to work is to move the function to the the frame on the
    nested clip's timeline where the button is instantiated."
    You might be able to create a special class for this button
    that has its function specifically defined for it, and instantiate
    it at frame 20, but you'll probably save time just assigning the
    code where the button exists.

  • Need button help

    hello all. i am new to this business, i have been
    experimenting with flash for about a year, and am just getting my
    bearings on things. i am building a website. my navbar is a movie
    clip with buttons inside it. can i make my nested buttons control
    my main timeline? it would seem as though i cant. here is my button
    code located on my main timeline.
    stop();
    photo_btn.addEventListener(MouseEvent.CLICK, photopage);
    function photopage(event : MouseEvent):void {
    gotoAndStop("photo");
    "photo" is the label of the frame that contains my photo
    gallery. using that same formula works within my picture gallery
    movie clip to navigate picture to picture using thumbnails as
    buttons.
    any help is very appreciated.
    thanks...

    ok let me try to clear up my situation. 'scene 1' has 4
    layers: 'background', 'navigation bar', 'content', and 'actions'.
    the navigation bar layer contains a movie clip called navbar. that
    movie clip contains buttons. i am trying to get those buttons to go
    to different frames in the 'content' layer of scene 1. for example,
    clicking on the photo button (which is contained in a movie clip in
    the navigation bar layer) will go to a frame in the content layer
    (containing my picture gallery movie clip). the action script is
    written in the action layer of scene 1, my main timeline.
    i hope this clears up my situation, and thanks for your
    help!

Maybe you are looking for

  • Satellite L500 - Is BIOS version 1.9 compatible?

    Heyas, I've noticed that a new BIOS version (v 1.90) for Satellite L500 Notebooks. My model - PSLS3A-01301D does not appear in the list of L500 models on the MyToshiba website, and I am very wary of installing the update incase it turns my laptop int

  • Internet Explorer 11

    Windows 7 SP1 64-bit, T530 type: 2359. Windows Update downloads but can't install IE11 (error code 9C47). Also can't install from http://windows.microsoft.com/en-us/internet-explor​er/download-ie or http://windows.microsoft.com/en-ca/internet-explor​

  • Office for mac error

    i have a macbook pro 2011 and office 2011 for mac it is installed on my computer and works great on my moms account but not on my admin account itkeps showing an error. it worked great for a while then all the sudden it just stopped. i created an acc

  • Retrieving approval work item comments

    Does anyone know how you retreive the comments inserted by approvers against approvals, so they can be used in workflows? This is a text area with a fieldref name of Log Comments with an inner field name of :variables.comments. I have tried to grab t

  • FCP CRASHES WHEN I EXPORT TO COMPRESSOR... Please help.

    Hello everyone, I'm trying to export my FCP sequence to compressor through FCP and not through a Self Contained Movie, because I hear it produces better results. I Export to compressor and Compressor loads the project and begins to compress... it get