Button Layer

Hello,
Having trouble figuring out what the correct actionscript for
a button that is trying to access a labeled frame within a movie
that is part of a larger movie. It works if I play it by itself
outside of the larger movie, but I'm not sure how to get it to work
within. This is what I have so far:
on (release){
_level0.gotoAndPlay ("next")
I've tried changing it to:
contents._level0.gotoAndPlay ("next")
...but it didn't work. "contents" is the symbol that the file
is being loaded into.
Cheers

Awesome! Thanks, your the man... wasn't too far off~

Similar Messages

  • Button Layer Issue

    Hello,
    Having trouble figuring out what the correct actionscript for
    a button that is trying to access a labeled frame within a movie
    that is part of a larger movie. It works if I play it by itself
    outside of the larger movie, but I'm not sure how to get it to work
    within. This is what I have so far:
    on (release){
    _level0.gotoAndPlay ("next")
    I've tried changing it to:
    contents._level0.gotoAndPlay ("next")
    ...but it didn't work. "contents" is the symbol that the file
    is being loaded into.
    Cheers

    Thanks for your reply! I tried your second advice and it's
    still not working. Maybe I didn't explain it thoroughly. I have
    Movie 2 loaded into Movie 1 (through a symbol called "contents").
    Movie 2 has a symbol that is several layers with a button on layer
    3. I want the button to go to and play label "next" on Movie 2's
    timeline when it is released. Does this change anything?

  • Interactive button layer orders

    when i create a button in indesign, it ignores the layer information i've specified, instead moving the newest button to the top layer no matter where it resides in the layer pallet.
    it also floats it on top of all other page data - master or individual - no matter what layer those items are on as well. all my master page items are on the topmost layer while all the buttons are on the bottom layer, however all the buttons will float above the master page items.
    i've experimented with this and created a /new/ layer, put it on the very top and created a new box (the newest item on the page), but when i export the PDF, all the buttons are floating on top still.
    what's going on?

    We had the same problem -- how do you influence the "stacking order" of the buttons?
    You can't do that with layers, or with anything else from within InDesign. I think the reason for that is that the "buttons" in the PDF become a mere rectangle list, which has nothing (!) to do with the 'elements' you apply them to. You can see this for yourself if you create a button in Acrobat -- just draw any rectangle, and that's it.
    If you have buttons on your master page and you don't want them on certain pages, you will have to delete them manually.

  • Button layer issues!

    Greetings!
    I'm trying to create a series of buttons that simply enlarge
    when you hover over them. When a button enlarges, it should just
    "overlap" another button, essentially hiding the overlapped
    buttons.
    However, what happens is this:
    http://www.ireallyshouldbewriting.com/TESTS/test.html
    (there will be about 12 of those buttons in all)
    TOP BUTTON HOVER: What I *want* to happen!
    BOTTOM BUTTON HOVER: What I don't want to happen! (the top
    button blocking the bottom image)
    I'm assuming the more buttons I add the more overlap problems
    I'll be adding.
    I've tried putting both buttons on the same layer and then on
    different layers, and neither fixed the problems. I guess what I'm
    asking is there any way to make sure the "over" and "click" states
    are always on top?
    any suggestions? Thanks!
    Initially I did the page in dreamweaver:
    (here)
    but that created its own set of problems with overlaps.

    on rollover function for buttons add the line
    this.swapDepths(100);
    assuming you have no more then 100 depths already, else
    change number to 420 or someting

  • 'Bring button/layer to front' on rollover?

    Hey all!
    I currently creating a map to feature on a website, and when
    you rollover an area of the map the area increases to about double
    the size.
    The problem I'm having is when I click on one button and it
    zooms out some of it is lost behind the other inactive buttons.
    What can I do to bring the button that is rolled over to the
    top every time?

    Drynetnick wrote:
    > Hey all!
    >
    > I currently creating a map to feature on a website, and
    when you rollover an
    > area of the map the area increases to about double the
    size.
    >
    > The problem I'm having is when I click on one button and
    it zooms out some of
    > it is lost behind the other inactive buttons.
    >
    > What can I do to bring the button that is rolled over to
    the top every time?
    You could use swapDepths to get the image to top on roll
    over.
    Convert all the map sections into movie clip, give each movie
    clip
    instance name like (example only) map1 map2 map3 map4 and so
    on...
    On timeline frame add button handler to every of your movie
    clips:
    map1.onRollOver = function() {
    this.swapDepths(this.getNextHighestDepth());
    map2.onRollOver = function() {
    this.swapDepths(this.getNextHighestDepth());
    map3.onRollOver = function() {
    this.swapDepths(this.getNextHighestDepth());
    Take note ! It has to be movie clip, not button.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Buttons dissappearing when turning off layer?

    Hello,
    I have created a presentation in indesign CS4 with layers which will show content when buttons are pressed per page.
    I exported the file and have started to action the buttons to show these layers when pressed and add close buttons on these panels.
    All the pages seem to work fine apart from one page which I actioned the button to turn on the layer and a close button on the panel which then closes the layer, this all works fine but…the navigation buttons which are in the bottom of the page and are on a completely different layer disappear as well when you close the panel which it shouldn’t do, but if you then run your cursor over the area they show up again? I have tried locking the button layer which doesn’t make a difference, also in indesign I have even put the buttons on the main content layer and exported but this doesn’t make a difference. I have selected the buttons on this page and locked them but they still disappear…help
    The strange thing is other pages where the buttons are set up the same and have buttons to turn on and close buttons these work fine and the navigation buttons don’t move…is there a fix or is this a software gliche?
    Many thanks in advance for any help

    Save effect... Turn it off and it's gone.

  • Problems with Next and Back Buttons ActionScript 3.0

    Hi,
    I have set up a Back, Play and Next buttons in a slideshow I am making.  The next and back buttons work correctly until it gets to the end. 
    If I press the Next button it goes back to what appears to be Frame 1 and will not go to the next slide. If I press the Back button it will then go to Frame 201 and If I press next again it will go to Frame 1.  It will only go back and forth in between those frames.
    If I press the Back button from the beginning it goes through the slide show correctly then it gets stuck at Frame 1.  If I press next button it goes to Frame 121 and gets stuck in between 121 and 1.
    I can't figure this out please help.
    My code on Frame 1 is:
    stop();
    play_btn.addEventListener(MouseEvent.CLICK,playslideshow);
    function playslideshow(event:MouseEvent) { gotoAndPlay(2); }
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_2);
    function fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void
      gotoAndStop(40);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_8);
    function fl_ClickToGoToAndStopAtFrame_8(event:MouseEvent):void
      gotoAndStop(281);
    My code on Frame 40 is:
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_7);
    function fl_ClickToGoToAndStopAtFrame_7(event:MouseEvent):void
      gotoAndStop(121);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);
    function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):void
      gotoAndStop(1);
    My code on Frame 121 is:
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_3);
    function fl_ClickToGoToAndStopAtFrame_3(event:MouseEvent):void
      gotoAndStop(201);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_10);
    function fl_ClickToGoToAndStopAtFrame_10(event:MouseEvent):void
      gotoAndStop(40);
    My code on Frame 201 is:
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);
    function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void
      gotoAndStop(281);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_11);
    function fl_ClickToGoToAndStopAtFrame_11(event:MouseEvent):void
      gotoAndStop(121);
    My code on Frame 281 is:
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);
    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
      gotoAndStop(1);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_12);
    function fl_ClickToGoToAndStopAtFrame_12(event:MouseEvent):void
      gotoAndStop(201);

    I found the solution!  Flash CS5 Tutorial 6 Click On Button Go To Another Frame.avi - YouTube
    I had to Convert to Keyframes each frames I wanted to jump to on the buttons layer.  Then highlight the button and give each another instance name! Like forward1_btn, forward2_btn, back1_btn, back2_btn...  I did that and adjusted the action-script for each button.
    Frame 1
    stop();
    play_btn.addEventListener(MouseEvent.CLICK,playslideshow);
    function playslideshow(event:MouseEvent)
    gotoAndPlay(2);
    forward1_btn.addEventListener(MouseEvent.CLICK, Shoot_1);
    function Shoot_1(event:MouseEvent):void
      gotoAndStop(40);
    back1_btn.addEventListener(MouseEvent.CLICK, Back_1);
    function Back_1(event:MouseEvent):void
      gotoAndStop(281);
    Frame 40
    forward2_btn.addEventListener(MouseEvent.CLICK, Shoot_2);
    function Shoot_2(event:MouseEvent):void
      gotoAndStop(121);
    back5_btn.addEventListener(MouseEvent.CLICK, Back_5);
    function Back_5(event:MouseEvent):void
      gotoAndStop(1);
    And so on...

  • I am trying to create a button in flash that will display 4 separate images at the same time when clicked.  I can't get the images to stay on when I take the mouse of the button.  I need the actions script code to make this happen.

    I am trying to create a button in flash that will allow the user to click on the button and 4 separate images show up at the same time.  I can get the images to appear when I click the button but they will not stay on the screen.  I need to know what code I use to make the images stay once the button is clicked, then I need to know exactly where I place that code.  It does not appear to be possible to add the action code to the buttons layer since each time I add a new layer I just get another "up" "over" "down" and "hit" line.
    Thank you in advance
    AP

    It is not clear how you are trying to realize this from your description.  If you are trying to create this within a button symbol it will not work.  Explain your approach and if there is code involved, show what you have so far.

  • Button order and routing from PS menu not working

    Ugh, this is driving me crazy.
    When authoring a Blu-ray, I've gone through the same steps since I started but all of a sudden the menus I'm creating in PS CS5 for Encore CS5 are not working and for the life of me I can't figure out why.
    The problem I'm having is that I set everything up in Photoshop then import the menu into Encore however when using the navigation of a remote, scrolling down skips some buttons and doesn't cycle through them normally.
    For example, let's say I have eight buttons defined in a PSD.
    1
    2
    3
    4
    5
    6
    7
    8
    When I preview or do a test burn, the highlight will stop on 1 and 2 but skip 3 and 5 and other random button definitions.  And then when it gets to the last, it doesn't cycle back to the first.
    I have everything set up correctly as far as I know - group layers prefaced with (+), highlight cursor prefaced with (=1), etc.  And the order looks good in Encore.
    Extremely frustrated, anyone else having this problem in CS5?  I can up the PSD if anyone wants to check it out.
    Thanks,
    Tom

    Can you post a screenshot of the menu with button routing on?
    I second Stanley's request, and please Crop into that area, and also Save your JPEG, or PNG, with adequate resolution for people to see the numbers on your Button Routing. Also, if you have any specific desires for the order of your Button Routing, please define that.
    Note that En will Automatically Route Buttons, based on their Layer Set Order in PS. If you have done some moving around of the order of Button Layer Sets, or have done some Copy/Duplicate, then what you think the order should be, but it might not be so. En will start at the bottom of the Layers Panel, and assign the identifier, Button 1 (regardless of what name you might have assigned), to the lowest Button, and working up, one Button Layer Set at a time, until it reaches the top. Can you also post a screen-cap of your Button Layer Sets (can be closed for a clear shot of the entire Palette), with the Layers Palette showing clearly, and the image with the Buttons showing near by? That could also be very helpful.
    Good luck,
    Hunt

  • Simple button scripts not working in AS2

    Hi there,
    I am at my wits end. I've tried about 2 dozen tutorials word for word and they don't work and I just keep getting lots of strange errors.
    I have a very simple 4 frame scent with a forward and backward arrow on each frame to link them together. I have an artwork layer, a button layer and an action script layer. The action script layer contains stop(); and the following script in the buttons layer. I adjusted the gotoAndStop frame number accordingly for each frame. Below is an example of one frame. I ran them from frame 5 to 9 as the stop feature wouldn't work on the first keyframe.
    leftButton.onRelease=function(){
    trace("gotoAndStop(9)");
    rightButton.onRelease=function(){
    trace("gotoAndStop(6)");
    When I test the movie (publish it) the buttons don't work at all. I've tried many times to no avail. It just remains frozen on frame 5 and the arrows do nothing.
    Here is a screen shot of my file.
    http://marthalodge.com/Picture2.png
    Thanks for any help.

    Regarding the numbers, I was referring to instance/variable names, not frame labels.
    As far as errors go, the following is errant in that it is missing a closing parenthesis, but it also doesn't make much sense.  What are you expecting it to trace?
    trace(gotoAndStop("eight");

  • How can I link from one flash document to another with buttons?

    Hi,
    From the question above, you can tell that I'm very new to flash, especially with scripting. Total noob.
    I watched my instructor's videos and I'm still stumped. He didn't explain it very well.
    For starters, I am using Flash CS6, but I clicked on AS1.0 and AS2.0 from the drop down mention in the actionscript window for the script below, since that is what my instructor used.
    What I have now are various pages I've already created in flash that are different pages in my website, including a splash page with an enter button.
    For example, I want the enter button to link to another .swf or .html file when it is clicked. This file will be the main page.
    I tried using this script that my instructor mentioned in the video on the button layer:
    on (release); {
        getURL("page1.swf");
    the "page1.swf" file is already in the same folder in my computer as my splash page and I even imported it to the library of my splash page.
    From my instructor's video demo, that should be apparently all that is needed.
    But I cannot get this to work.
    I tested the file and this is what flash comes up with:
    In the output tab:
    ReferenceError: Error #1065: Variable TCMText is not defined.
    In the compiler errors tab:
    Scene 1, Layer 'Layer 28', Frame 1, Line 1
    1180: Call to a possibly undefined method on.
    Scene 1, Layer 'Layer 28', Frame 1, Line 1
    1120: Access of undefined property release.
    Scene 1, Layer 'Layer 28', Frame 1, Line 2
    1180: Call to a possibly undefined method getURL.
    Any thoughts? My instructor also recommended that I embed the .swf into an .html, but he obviously didn't tell us how to do that!
    Also, why doesn't script assist work with AS3?
    Thank you so much!

    Okay so I changed it to AS1/AS2.
    Now it says this:
    Scene=Scene 1, layer=Layer 28, frame=1, Line 1
    Mouse events are permitted only for button instances
    Scene=Scene 1, layer=Layer 28, frame=1, Line 4
    Syntax error.
    I am very confused.
    Also, since all my other pages are in AS3, is there some way I can use another script in AS3 that accomplishes the same task?
    Can someone please provide me with the correct script to use?
    Thank you so much! I feel that people here are much more responsive than my instructor is! Thank God for this forum!

  • How many buttons can you have in Encore?

    I'm trying to make a disc containing about 33 separate clips, all listed in the Menu, and individualy selectable. But I find when I drag buttons to the menu,it will only accept 18, then no more buttons can be added.  Is this normal for Encore?  Is there an upper limit to how many buttons you can have?

    Tim,
    I like to keep my Scene Selection Menus rather clean, and lean, so normally limit the number of Buttons for a "cleaner" look, so with, say 16 Chapters/Scenes, I will likely do 4x Scene Selection Menus, with 4 Buttons each, or maybe 3 Menus with 6 Buttons in two, and 4 Buttons in the last one.
    In the Project Panel, you can Duplicate your first Scene Selection Menu, to provide the number of Scene Selection Menus, that you need. I recommend that one Rename each duplicate Scene Selection Menu, so that it is easy to identify each one.
    Then, from the Main Menu, add a Button that goes to the first Scene Selection Menu. Do all the linking, for say the 4 Scene Selection Buttons on that, and then add a "Next Menu" Button, that links to Scene Selection Menu # 2. That one will have the 4 Scene Selection Buttons, and the "Next Menu," going to Scene Selection Menu # 3, plus a "Previous Menu" Button, going back to Scene Selection Menu # 1. [Obviously, you can name those Buttons to suit, say "Next," and "Previous," or perhaps just "arrows" pointing to the right for "Next," and to the left for "Back."
    If, for instance, one has an odd number of Scene Selection Buttons, on the last Scene Selection Menu, just "Edit in Photoshop," and Delete the "extra" Button Layer Sets.
    I also like to add my own Button names in Photoshop, rather than let Encore automatically provide the names per the names of my Timelines. For instance, I name each Timeline in numerical order, so the names will read something like this: "01_Liz_Birthday," "02_Liz_Dance," etc.. On my Scene Selection Menu, I will nave the first Button "Liz's Birthday," the second Button "Liz Dance Recital," etc., without the numerals, that just help me know which Button I will be linking to, in numerical order. I also use Photoshop to edit the Button Layer Sets name, so that Button # 1 is named "01 Liz Birthday." That gives me the numerals in the Buttons' names in my Flowchart - with intricate navigation, that takes all of the guess work out of things - all names match up, and for the Timelines, I do not have any spaces, but do in the Text for each Button. A bit more work, but when it comes time to make my links, I can do it almost instantly, with no questions in my mind. I find that a little bit of preparation at the beginning, simplifies life down the line.
    Good luck, and hope that helps.
    Hunt

  • Looking for tutorial: how to add a big "Play" button to a web Flash   video

    Can't seem to find out how to do this: I've imported a Flash
    8 video to
    a web page (with autoPlay set to false) and it has a
    controller skin
    underneath it, but I'd also like to show a big "Play"
    triangle button in
    the centre of the video, like you see on all the Youtube
    videos. How do
    I add that and make it start the video? Any clues for the
    clueless
    would be appreciated!

    Nickels55 wrote:
    > Not too difficult.
    > First create your button or movieclip with the big
    arrow.
    > Give your flv playback component an instance name like
    vid.
    > Create a new layer above the video layer. Drag your
    button/movieclip to the
    > stage.
    > Give the button/movieclip an instance name like
    vidcontrol.
    >
    > Put this actionscript on the frame (not attached to the
    button or component):
    >
    > vidcontrol.onPress = function(){
    > vidcontrol._visible= false; //makes arrow
    button/movieclip invisible
    > vid.play(); //makes video play
    > }
    >
    > Tested code and concept and it works perfect.
    Brilliant, works like a charm. Thanks very much, Nickels55!
    Is there a way I can add something like your
    "vidcontrol._visible=
    false;" to the "Mojaveexternalall.swf" skin as well? Right
    now if I
    click on the big arrow, everything works fine, but if I click
    on the
    Mojaveexternalall's small Play arrow instead, that new button
    layer
    doesn't disappear.

  • How do I turn a small video into a linkable button?

    I'm new to Dreamweaver, so please forgive me if this is a noob question.   I've done some searching, but I can't seem to find a simple answer.
    I'm a video editor building a new site for myself.  I'd like to have some thumbnail-size videos that work as buttons to open a new page and play the full-size version.  I can create these button-sized videos as either Quicktime or Flash and place them in an AP div to position them where I want. But how do I make them clickable?   I can't seem to draw an image map over them. 
    Any help would be greatly appreciated.
    Thanks in advance.

    Some of the folks here would discourage Flash navigation, but one way to do it easily would be to export your small movie from Premiere CS4 as an *.FLV or *.F4V. Start a new Flash document and make the Background color the same as the area on the Web page you want the video to appear. Import your video to the stage then create a new layer in Flash above the layer your video is on. Create a button in Flash. On the last of the four button key frames draw a colored rectangle. The color only represents the area that will be mouse sensitive and will not show over your video. Drag the button to the Stage and make sure the colored area (that will not show, as I mentioned) is large enough. Adjust if necessary. Give your button an instance name. Click the keyframe on the Flash timeline on the button layer and open the Action Script panel. Paste in (if monkey_bump is your instance name):
    monkey_bump.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.webpagesthatsuck.com/"));
    I wasn't trying to be smart @ss with the webpagesthatsuck URL. According to Vince, Flash navigation sucks.
    One could be creative in Premiere by placing a PhotoShop "mat" over the video in Premiere prior to export. The PhotoShop document could have a transparent center and an outward color that matches the color of your website. This way you could have a custom shaped navigation video.

  • Acrobat 7 button rollovers not working and crash acrobat

    Indesign CS2 Acrobat 7
    I have created in Indesign CS2 an interactive front page cotaining buttons with links to 5 documents. These 5 documents have buttons for next page, previous page etc. and a link back to the front page.
    When these files are burnt to a CD and opened on certain pcs recently upgraded and CS2 reinstalled, the rollover buttons don't work and cause Acrobat 7 to crash. However on other pcs these files work fine.
    My thought was the CS2 software that was reinstalled had been corrupted in some way, so this was installed again but the problem still remains.
    THe odd thing is that interactive elements that were produced before the reinstall work fine.
    Any suggestions are welcome on how to solve this problem.
    Many Thanks,
    Tony

    Welcome to the forum.
    Not sure exactly how the PS3 handles Sub-picture Highlights (what appears in the Over/Selection state), as I have never used one.
    To see the layout of the Menu better, can you post a screen-cap from Photoshop, with the Layers Palette open, and the Button Layer Set of one of those Buttons twirled open, and with the Visibility of the Sub-picture Highlight turned ON? That will give us the opportunity to see if something is wrong with the naming conventions of the Button Layer Set, and also see what the Highlight should look like in its rollover state.
    If necessary, this ARTICLE will give you some tips on the screen-cap.
    Good luck, and maybe a user, who knows the PS3 will drop by with a quick and easy "fix."
    Hunt

Maybe you are looking for

  • Still rendered in FCP 6 looks worse than preview???

    I'm importing a still from Photoshop (CS1) into FCP 6. It's a PICT file w/ alpha channel (logo). When I slap the logo on top of my video it looks clean and sharp. But, when I render the clip, it comes out looking rasterized and I loose my smooth edge

  • Query in output of sh interface

    Hi all, I have a query in output of sh interface on ASA. On ASA's when we do 'show interface' for a gig interface, we can get any among two, input queue (blocks free curr/low): hardware (255/230) output queue (blocks free curr/low): hardware (255/0)

  • Screen Scraping in Java

    Anybody help me on java screen scrapping.

  • Timestamping change documents

    Hi all, We are using Business Partner/Customer synchronisation but have noticed that the entries in CDHDR are timestamped one hour apart. So a synchronous change made at say 15:00 is stored on the table as 15:00 for object class DEBI but as 14:00 for

  • WPC -Custom Web Form

    Hello, I am trying to create a custom news form in WPC. The news form will contain Title, abstract and detail on a form and it should render in the page with title as hyperlink, abstract and when they click on tilte it should show the detail in a new