AS3, Flash CS6 Button Issue

I'm using the code below to have button "legalBtn" access the layer and instance name of "legalOverlay." Then after the legalese has been read, the enduser can close the "legalOverlay" via "closeBtn" and return to the last frame of the banner ad.  The code below has no compiler errors, but the "legalBtn" is still not working. Any ideas?
    import flash.events.MouseEvent;
    function init(){
        legalBtn.addEventListener(MouseEvent.CLICK, legalClick);
        legalBtn.visible=true;
        legalOverlay.clickthru.addEventListener(MouseEvent.CLICK);
        legalOverlay.clickthru.buttonMode=true;
        legalOverlay.closeBtn.addEventListener(MouseEvent.CLICK);
        legalOverlay.closeBtn.buttonMode=true;
        legalOverlay.visible=false;
        function legalClick(e:MouseEvent){
            if(legalOverlay.visible==true){
            legalOverlay.visible=false;
            } else {
            legalOverlay.visible=true;
    stop();

Seems too easy, but I don't see that you're calling init() in order to actually add the listener to legalBtn.

Similar Messages

  • Flash CS6 publishing issue using accordion plug-in

    I apologize if I have limited info on this issue. i'm providing remote support and my user is only providing limited intel...
    I have a user running Flash CS6 and has designed a site using the accordion plug-in with XML. When she publishes it from her Mac (10.6.8) then views it the SWF doesn't play nicely. The buttons function for a short period then freeze. She had another user open and publish from a PC using CS5 it works fine. They've compared the code between the 2 and there are supposedly no differences. She has this problem when publishing from CS4 as well (again, on Mac, 10.6.8). To add to the confusion, I've been sent the URL to both her version published from the Mac, supposedly not working correctly, and the version published from the PC. I've tested them both in Chrome, Safari, and Firefox on my Mac, and Chrome, Firefox, and IE on my PC and I'm not seeing any issues.
    Anyone have any ideas?

    Most accordion components I know need an additional xml file to fill them up with content.
    This must be loaded properly into the swf, to make it show sth.
    if you only have a swf file to test, its likely that the xml was left out.

  • Flash CS5 Button Issue

    So I have been having some issues trying to design my flash website using flash professional cs5.
    I have a movie clip of a rectangle that is 20 frames long, with a stop on frame 1, 10, and 20.  From frame 1-10, the box fades to 50% transparency from 0%, and drops down from the top of the screen (from 2px tall to 484px tall.)  From frame 10-20, the action reverses.
    I have a button that, when clicked, causes the box to drop down, as it should.  The code I am using to do this is:
    on (release) {
    tellTarget ("../textboxdropinMC") {
    gotoAndPlay(1);
    This works, as expected, HOWEVER, when I click on the same button again, the box disappears.  It does not go back to frame 1 to play it again until you click on it a THIRD time.  What I need to happen is to have the button, upon a re-release, play the box animation from frames 10-20 (so it goes back up to the top and disappears).
    My thoughts were to create a code in the box movie clip code that hides the original button once the box animation reaches frame 10.  Simultaneously, I could then have another identical button appear that would have the same code as the first button but gotoAndPlay(10); instead of 1.  Once the box animation got to frame 20, the second button would hide and the first button would come back.  What sort of coding would I need to do this?
    My other option would be to make a simple "close" button to play frames 10-20, but even if I did this, it would not prevent the first button from making the box disappear if it is released a second time.  How would I be able to make the button NOT cause the box to disappear once it has already enacted the gotoAndPlay(1); command?  Or, are there any other ways to do this?
    There is also a problem where, after the on release code is added to the button, it does not turn white as the other buttons do when the user hovers the mouse over top of it.  I can't seem to figure out why this is.
    I am using action script 2.0, only because it is what I used in school--we never learned 3.0.
    If someone can help me with this, I would be forever grateful!

    There could be one of a few problems.  That is AS2 code, but you are posting in the AS3 forum.  So is it your intention to use AS3 or AS2?  In answering that, also describe where you have placed this code.

  • Flash CS6 adl issue

    I'm working on an Air for iOS app in Flash.  Up until last night I was using Flash CS5.5 to do the work.  I upgraded to CS6 last night and now when I attempt to run the project from within flash, the stage is displayed wrong.  I get a 1024x768 adl window with all of the graphic elements shifted 50% out of frame on the top while width is unaffected.  What's even more strange is that the hit zones for buttons are still in the proper positioning within the adl window, but all the graphics are off the screen....
    Has anyone else experienced this?
    If so, is there a work around?
    I have gone through the publish process and it still works fine on an iPad even though the preview on the desktop is out of wack.
    Having to publish and test on my device is really hampering workflow....
    EDIT TO ADD:
      Ok, I've found a work around, it appears it's a bug where having the render mode set to GPU or Direct causes it to center on the portrait orientation Y axis regardless of the forced orientation in the Air 3.2 for iOS settings.

    Moving this topic to the Flash forum

  • Flash CS6 Installer Issue

    Hi,
    I have recently tried downloading the trial version of CS6 Flash for Mac. When I click to download, the installer tries to install Flash Player. I have no idea why, CS6 Flash is nowhere to be found in its contents.
    I have Mac OS X v. 10.7.4.
    EDIT: I've resolved the issue myself; it appears I just needed an Adobe ID. Apologies.

    Moving this topic to the Flash forum

  • Flash CS6 split view window/focus issues.

    I'm using Flash CS6 editing multiple AS3 files and the file tab selection behavior is frustrating and I was not having these issues in Flash CS5.5.  When viewing two code windows in a split plane, clicking from one window to the next does not automatically focus/activate the code tab.
    Steps to reproduce:
    1) Open two AS3 files and arrange them into a 2 window split view.
    2) Select the code file tab on the right.
    3) Within the right code file, copy a line of code.
    4) Click the mouse within the first code file on the left and paste your code line.
    5) Note that your code pastes into the right file.
    6) Note that the left code file does not receive focus when the cursor is in the window.
    OS: Win 7

    Ya, I havent used Flash Builder yet only because FP is what I'm used to.  However, just imported my project into FB 4.6 and it's alot better so thanks for the tip.
    So I tried undocking, and the bug remains if you copy a line from one 'undocked' tab, into a docked tab. However if both code windows are undocked, the copy/paste and window focusing works fine, but in my case with ~20 class files, it would be a nightmare.
    The workaround is either edit the project in CS5.5, then open and re-save it in CS6, or in CS6 click the file tab you want to edit, then click within the file, then paste, every time you are copying a line from one file to another.

  • Issues with Creative Cloud/ Flash CS6

    Hello, I've recently (Friday, March 15, 2013) restarted my subscription to Creative Cloud for Flash Pro CS6, but I haven't been able to open the application.
    However, I've contacted tech support (by phone and chat), but I still couldn't get any luck.
    What I've already tried (numerous times), but failed:
    Uninstalling and reinstalling Flash though the app manager
    Opening it through creative.adobe.com (still had the option for to "Try" it only)
    Updating Flash CS6
    Rebooting my PC
    Rebooting internet connection
    Opening Flash on another PC (still no luck)
    No matter what I tried, it kept taking me to the page requesting a serial code, when I'm supposed to have a subscription. I've had previous subscriptions to Creative Cloud and never had this problem until now.  What's really worse is, that the payment has already been posted and taken out of my card and yet I can't use what I paid for. It's an extremely unsavory feeling to pay $30.00 for something you can't even use. Sorry to sound blunt, but I could really use some help  (or a refund) to resolve this issue. I'd also appreciate it if you could let me know if you're having a similar issue and/or know of a workaround to the problem!
    Thank you and have a nice day!
    Crystal

    I've tried your suggestion, but unfortunately, I couldn't even get past the third step because I still wasn't able to open Flash, even when I did follow the first two steps. Just a thought: I have Photoshop Elements 9 installed, but I know that it's not part of CS, but could it possibly be something with PSE 9 interfering with the app manager? Though, I have had PSE 9, a trial of Illustrator CS5, and a subscription to CC for Flash CS6 installed on my computer once before, I had no problem whatsoever. But now I just have PSE 9 and (Flash CS6). I'm not sure if that has anything to do with the issue I'm having, but I just wanted to make sure.
    Anyway, I really appreciate your help! Thank you!

  • Toolkit for Create CJ on Adobe Flash CS6 - Exporter.jsfl issue

    I am using toolkit for Create CJ on Adobe Flash CS6
    The animation need to be supported on HTML 5 devices. When I am publishing the below message appear on the Output window and cannot create the file:
    The following JavaScript error(s) occurred:
    At line 264 of file "Exporter.jsfl":
    out of memory
    There are not images, only text and graphics mainly drew on Flash and just a few imported from Illustrator, and I used classic Tween and a few masks. No idea what is “Exporter.jsfl” file stand for.
    Is there anyone can help me with this issue?
    Thanks
    Lars

    Thank You for your reply.
    I follow your instructions and found the file, but what are you suggesting to do with the file, delete it? And then rename the file to Toolkit_for_createJS.zxp and loaded it again on adobe extension manager?
    Thank you

  • Flash CS6 exported mov color issue

    Hi, I'm using Flash CS6 in mac, I realized that when I export the animation to mov (tested different codec), the color will be lighter, please see the bellowing screenshot.
    Does anyone have the same issue? how to solve it?
    Thanks a lot!
    PY

    I've got around this issue, by exporting from Ai to SWF. Its a shame the Import Ai to Flash Library seems to be doing this to quite a few of my vector illustrations. where only 1 or 2 curves are being lost when it comes to export but work fine within the Flash workspace.

  • URGENT! How do I create a vertical scroll button in Flash CS6 for online banners?

    Hi, I am creating Flash online banners and the disclaimer needs to open as a vertical scroll banner once the mouse touches the 'x close' button where the words 'Disclaimer' is stated.
    How do I create a vertical scroll button including text?
    I am using Flash CS6.

    Hi Babaa,
    sry for the lateness of my reply.
    I would simply make a button that when clicked, displays a layer containing your disclaimer text. The discliamer text would be inside a Movie Clip (MC) for ease of controlling.
    the MC then contains a text field which has a scrollable field. as the user scrolls through you can then display a "close" button to close out the disclaimer MC.
    If you still need the work done feel free to email or PM me here and we can discuss the job further.
    Regards
    Russ

  • Flash CS6 fatal exception issue

    Hello Everyone,
    My flash CS6 is giving me a fatal exception issue error every time when I close it(2014-12-26_1714 - AndersonW's library). I've attached the error report here for you reference. Please kindly help.
    OS: Win 8.1
    Error report:
    https://www.dropbox.com/s/u59ewojtpmed3bs/FlashPro%20crash%20log%20%281%29.mdmp?dl=0

      Reset Adobe Flash CS to default configurations
    Factory Reset:
    (Mac)
    Double click on Adobe Flash’s icon.
    Holding down the Command, Option, Shift keys quickly
    When a dialog box appears, click Yes.
    (Windows)
    Double click on Adobe Flash’s icon.
    Holding down the Ctrl+Alt+Shift keys quickly
    When a dialog box appears, click Yes.
    If you want to delete user configuration and preferences files manually:
    Window XP – C:\Documents and Settings\<username>\Local Settings\Application Data\Adobe\Flash<version>
    Window Vista & Window 7- C:\Users\<username>[AppData]\Local\Adobe\Flash<version>
    Mac – Volume/Users/<username>/Library/Application Support/Adobe/Flash<version>

  • Flash CS6 Mac Publishing issue

    Hello
    I am publish a Mac .app using Flash CS6 but I can not protect it with SoftwarePassport.
    SoftwarePassport freezes during the protection process.
    I already,  reset the preference and I had try to publish old and new files.
    All with the same results.
    Also i try to publish the files in Flash CS5
    Any idea?

    Hi,
    Could you please provide the exact steps to reproduce the issue?
    Thanks and Regards,
    Meenakshi Tiwari
    FlashPro Engg Team

  • Flash CS6: Code hinting doesn't work in AS3 document

    Hi,
    For some reason code hinting is not working at all in an AS3 class document in Flash CS6. It works fine on the timeline. For instance:
    1. Create a new AS3 class, name it "MyClass"
    2. Save the doc immediately (in CS5 code hinting would not work until the class file was saved)
    3. After "class MyClass" I type " extends Movi" and press Ctrl+Space, expecting to see hints for "MovieClip" etc like it did in CS5. In CS6 I get nothing. If I type out the whole word "MovieClip" and press Ctrl+Space I still get no hints.
    What might be wrong?
    Thanks!
    Aaron

    I do not work for Adobe, just a fellow forum dweller.
    The example was made quickly because you said this:
    I've tried flash builder but if there is a way to associate code directly from it to symbols on the timeline I haven't been able to find it.
    Now you know how.
    I'm sorry but I don't even have Flash CS6. I still use CS5.5 because I use Flash Builder 4.6 for everything I do. I merely use Flash Pro to generate quick libraries full of goodies and export a SWC to use in Flash Builder.
    I realize it's obvious but you did ensure your preferences had hinting both enabled and the delay set low (or zero)? I can only show you a CS5.5 preference panel, I'm not sure if it's the same. Note one important thing in this photo which is "Cache size". I have mine on 800 files which seems to be fine. If you're pointing toward a HUGE library of classes you may want to increase that number and check completion again.

  • Issue: Flash radio buttons & Php form

    I have a flash form which all of the fields are sending
    correctly
    through the php code. The flash radio buttons I added with
    the
    groupname == topic, doesnt send with the rest of the
    information that is being sent to the email. My question is
    how do I get
    the flash radio button info to submit with the rest of the
    form.
    The code for the send button on my flash file:
    on (release) {
    // send variables in form movieclip (the textfields)
    // to email PHP page which will send the mail
    form.loadVariables("form.php", "POST");
    ===============================================
    ===============================================
    Form.php:
    <?php
    $to = "[email protected]";
    $subject = "Contact Page Information for Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>
    Text

    Do you mean like this:
    <?php
    var topic;
    var listenerObject:Object = new Object();
    listenerObject.click = function(eventObj:Object) {
    topic = eventObj.target.data;
    trace(topic)
    groupTopic1_rb.addEventListener("click", listenerObject);
    groupTopic2_rb.addEventListener("click", listenerObject);
    groupTopic3_rb.addEventListener("click", listenerObject);
    groupTopic4_rb.addEventListener("click", listenerObject);
    groupTopic5_rb.addEventListener("click", listenerObject);
    groupTopic6_rb.addEventListener("click", listenerObject);
    groupTopic7_rb.addEventListener("click", listenerObject);
    groupTopic8_rb.addEventListener("click", listenerObject);
    groupTopic9_rb.addEventListener("click", listenerObject);
    groupTopic10_rb.addEventListener("click", listenerObject);
    groupTopic11_rb.addEventListener("click", listenerObject);
    groupTopic12_rb.addEventListener("click", listenerObject);
    groupTopic13_rb.addEventListener("click", listenerObject);
    groupTopic14_rb.addEventListener("click", listenerObject);
    $to = "[email protected]";
    $subject = "Contact Page Information for Hope Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>

  • Re Installing Flash CS6 issues. It installs, but I can't use the program properly. I've uninstalled and reinstalled many times

    Hi,
    I accidentally uninstalled Flash CS6. When I reinstalled it (using a download found here on the Adobe website: Download CS6 products) I was unable to move the window around my screen. There was no window "boarder", it was only a white box that I couldn't move from the upper left corner. Also there were no toolbars. My first thought was to check in the Window options, but despite my clicking on the various options nothing popped up. I also tried changing the window display options on my computer, thinking that maybe the window header was stuck somewhere "off screen" in a place I couldn't see. I also tried toggling with the "paste board" option in flash. I've also uninstalled and reinstalled flash CS multiple times, and each time its always the same.
    This is really weird, I think I've tried practically everything. I just really want to talk to Adobe on the phone but they don't let you do that.
    Here's a screenshot of what my screen looks like
    Please help me!!!

    Adobe Creative Suite Cleaner Tool
    helps resolve installation problems for CS3 thru CS6 and for Creative Cloud
    http://www.adobe.com/support/contact/cscleanertool.html

Maybe you are looking for