Draging a box with button attached on stage excuting button problem

Hi,
I have a box on the stage, which is a movie clip. I opened
this movie clip and placed a button on it. I want to be able to
drag the box on the stage and the button to move with it. Also I
want to be able to press the button , which take me to frame 2. I
have done all of this but the button will not activate. The code I
have written is:
box_mc.onPress =function(){
startDrag(this);}
box_mc.onRelease=function(){
stopDrag()};
stop();
I opened the movie box (where i placed the button) I wrote
the following code:
gotoframe2_btn.onRelease=function(){
gotoAndStop(2)};
However, I can drag the map (with button attached) but cannot
press the button, to perform the action, to bring me to Frame 2. I
have created a 2nd Frame in the Timeline on the main stage and also
on the Timeline when i open the movie of the box.
Hope you can help
Thanks
Paul

Oh, sorry about that, I didn't see the code you posted in the
previous topic I made
but thanks a lot i got it working!

Similar Messages

  • Interactive Prototype - How do you simulate light boxes with buttons? (CS4)

    I am in the process of mocking up an interactive prototype of the homepage of a web application.  On this homepage, there are various links(text with slices) and fields that when clicked on will trigger a dialog to appear over the top of the page similar to a "light box" effect seen on many other websites/applications.
    The workflow I am trying to simulate is as follows:
    User clicks the text link (state 1)
    Dialog appears on top of current page (state 2)
    User fills in necessary fields then clicks save button (state 2)
    Dialog disappears and returns user to base state (state 1)
    The base state of the page is in state 1.  I placed the images/content for the light box in state 2 and then added an onclick image swap behavior to have the link in state 1 trigger the light box (also a slice) to appear in state two.  That all worked fine until I added a save button symbol from the common library to the lightbox dialog in state 2.  When I did that, Fireworks automatically brought be back to state 1 and the button appears on both/all states no matter what I try to do.  Also, my attempts to add an onclick behavior to the save button to bring me back to state 1 haven't worked either.
    So my questions are:
    How do I get that button only to appear on state 2?
    The "hotspot" for that button or any slice/hotspot in any state appears active for all states but are only valid for when that certain dialog appears.  Is there a way to manipulate button/slice hotspots across states so they are only active in the correct states?
    How do I get the Save button to bring me back to the base state?
    Mocking up a lightbox type dialog seems like it would be a pretty common thing to do so I am hoping this is just a simple mistake I am making... any help would be greatly appreciated!
    Here are some images to help illustrate what I am trying to do: 
    Desired:
    Here is what Fireworks is doing:
    State 1 w/link behavior
    State 1 with button behavior (this appears on state 1 no matter where I add the button but I want it only to appear in state 2)
    State 2
    And here is the actual fireworks png proof of concept:

    Hi Linda,
    Thanks for the suggestion, however, that doesn't appear to be working.  I've uploaded the file that I am using as my proof of concept.  You can download it via the link below.  I changed the button so it's only a graphic with a slice over it but there are still two issues.  When the save button is clicked the state does not change back to state 1.  The second problem is that even in state 1, the active area for the save button slice in state 2 is still active even though the button is not there. Any thoughts?
    https://docs.google.com/leaf?id=0B0Fc5EuxtTzPMzY0NTA4ZGQtZjc1Yi00Njk3LThlOTUtYmFlZWQyNzQ5N GVj&sort=name&layout=list&num=50
    Thanks,
    Greg

  • Blank dialog box with button "Fix" at startup

    Hi! It happened like this: I was searching for a .jpg with spotlight. I found the one I wanted. I clicked on it, and up came a dialog box "You are opening the application "Picture Viewer" for the first time." Without thinking, I clicked on it. Then I noticed that the Hard Drive was working away, but "Picture Viewer" was not listed as an active application. I got worried that maybe some unknown bug was working away at erasing my HD, so I powered down by holding the power button on my G4 12" Powerbook.
    When I restarted, everything seemed to work. Except that a blank dialog box came up after startup, with only one button: "Fix". I don't know whether to click on "Fix" or not....
    thanks for any help you may be able to give!

    Do you still have Classic installed? Picture Viewer is a very old Classic application. I would guess that you still have it installed somewhere, but deleted the Classic System Folder, and the jpeg in question is rather elderly and still registered with LaunchServices as belonging to Picture Viewer. If that is true, then what happened is things thrashed around since the program couldn't launch. By powering down with power button you may have damaged some files. But I don't know what the Fix button is. Have never seen it.
    Anyway, find the file again, do GetInfo and change the Open With to Preview, then click the Apply to All button.
    Francine
    Schwieder

  • Blank Dialog Boxes with PUSH ME blue buttons

    Greetings All,
    I'm a fairly experienced Mac User and have been a bit surprised recently to be getting blank dialog boxes with buttons. Could it be some sort of spyware hoping I'll just push the blue buttons?
    It seems to come up once my Mac has been on for a while.
    Today I clicked a link at a website I frequently visit. I did so in FIREFOX and it's one of the few sites I allow for pop up windows. The link doesn't lead to a popup, but it did in this case: a blank window with blank buttons.
    http://www.screenplayhouse.com/temp/blank.jpg
    I quit FIREFOX and won another such window. I logged out, logged in, and it's gone.
    Is there some utility I can open-- like Activity monitor-- and find out what these windows are attached to?
    Just curious,
    Me
    (I have two similar Macs but only this one seems to do it.)

    I would look in Console and see if anything is being reported as you're experiencing this. (Console is in the /Applications/Utilities/ folder). If something is, post it here.
    When the window is visible, switch to the Finder by clicking on its icon in the Dock. Then click onto the dialog to activate its window. See if the application name in the upper left corner changes when the dialog window comes forward. If it does, then it would most likely be the name of the application that's created the dialog. If it doesn't change, then it could be created by either the Finder or by an invisible background application whose LSUIElement is set to 1 so that it doesn't appear in the Dock or in the Force quit window (it should show in Activity Monitor though). To determine which one it is, do the following. Switch to another application, like TextEdit, by clicking on its icon in the Dock. Then click on the dialog window again to bring it forward. If the application name shown in the upper left still says TextEdit, then you know that the dialog is being created by a background application.
    If it is, Open Activity Monitor and change the scope to All Processes. Quit as many open applications as possible, and then bring the dialog forward again. A pulsating button should use a small amount of CPU usage, try to use that to help narrow down what process might be causing it. Also, most likely any application that's drawing a button will have the "/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
    HIToolbox.framework/Versions/A/Resources/Extras.rsrc" file listed as an open file in the Open Files and Ports tab of an info window of Activity Monitor. (You can open an info window for an application by double-clicking on it in Activity Monitor).
    Hope this helps....
    Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM -   Mac OS X (10.4.6)  

  • Incoming emails don't display any pictures only small blue boxes with question marks

    As my question explains I am unable to view any pictures, photos, etc, all in coming mail displays writing only and small blue boxes with ? In their place.
    This problem began occasionally at first and has got increasingly worse, please help

    Try this. Settings>Mail, Contacts, Calendars>Mail>Load Remote Images>On.
    If they are still not visible, quit the mail app and restart the iPad, and then look again.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Loading movie clip to stage with button click AS3

    I'm trying to figure out how to load a movie clip to the stage with a button click and have the movieclip close again using a close button. Does anyone have a step by step on how to do this or links to some tutorials.
    Below is an example of what I'm trying to do.

    Alrighty I changed the publish settings to as3. I'm still getting two errors:
    Scene 1
    1046: Type was not found or was not a compile-time constant: Popup1Btn.
    Scene 1, Layer 'as', Frame 1, Line 3
    1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
    So my setup on my main timeline is I have an actionscript layer with this code now:
    var popup1:Popup1
    Popup1Btn.addEventListener(MouseEvent.CLICK,addF);
    ClosePopup1.addEventListener(MouseEvent.CLICK,closeF);
    function addF(e:MouseEvent):void{
    popup1=new Popup1();
    addChild(popup1);
    function closeF(e:MouseEvent):void{
    removeChild(popup1);
    popup1=null;
    On the stage I have a button with the isntance/AS linkage name Popup1Btn. Inside my Popup1 MC I have a box with text and then a button with the instance/linkage name ClosePopup1 to close the popup.
    What am I missing?

  • Since upgrading to Mavericks, 10.9.1, pictures that come attached to emails no longer display.  There is only a blank space that after about 1 minute, has a small box with a question mark.  How can I go back to attached images?

    Since upgrading to Mavericks, 10.9.1, pictures that come attached to emails no longer display.  There is only a blank space that after about 1 minute, has a small box with a question mark.  Double clicking on the box will open the image in a separate window.  It's very slow and tedious for multiple images.  How can I go back to attached and displayed  images?  If I click on "Forward", the images appear instantly in the email to be forwarded.

    Scott,
    My problem seemed to fix itself.  Or, by shutting down the computer one night, instead of putting it to sleep, may have reset something.  Since updating to Mavericks, I always (or usually) let the computer sleep overnight or anytime I'm walking away from it.  A few days ago, I was updating notes for my kids about how to find all my stuff and how to turn on my computer, so I wanted to rewrite the start-up procedures for the iMac, just in case they ever need to.  Well, I shut it down one night so the following morning, I could write down each step.  Lo and behold, the images, etc. are all there again!  Solved, but I'm not sure why.
    Tom

  • Creating a dialog box with OK and Cancel buttons without OADialogPage

    Hi Experts,
    i want to create a dialog box for Delete Confirmation means after clicking on delete it should pop up a small dialog box with OK/Cancel buttons
    and need code for the same to handle the buttons.
    i have created with OADialogPage but its showing in a complete page but i want to show those buttons in a small box.
    Plz help.
    THANKS IN ADVANCE.
    Thanks
    Raja.

    Hi,
    I have not tried using javascript in destination URI as suggested by Mukul.
    I have tried the below code for opening a page as dialog box.
    You can try it for your requirement by creating a dialog page of your own, say XXDialogPage (with OK and Cancel button)
    StringBuffer l_buffer = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    String url = "/OA_HTML/OA.jsp?page=/xx/oracle/apps/fnd/dialog/webui/OADialogPG";
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:500, height:500},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    In dialog page's controller, you can forward it to the page onc ethe user selects OK or Cancel.
    Pass the selected value back to the main page and further you can use it for deleting.
    Regards.

  • Need reset box with flip-flop green LED and reset button

    Before I build up a large number of these, is there an off-the-shelf box with flip-flop green LED and reset button?

    Hi,  I'm not sure what you mean.  Are you looking for a phsyical project box witha built in reset switch and LED?  Or are you talking about a LabVIEW template?
    Chris Bakker
    National Instruments
    Applications Engineer
    Check out LabVIEW 2009 and the New X-series DAQ!

  • Text entry box with double-click button - is this possible?

    I need to produce a simulation in Captivate 3 where the user types in some text, then double-clicks a button to open another window.
    With a normal text entry box the button doesn't seem to have the option to respond to a double click.
    I can't add in an extra slide with a click box to simulate the double-click as I have icons that change colour with time on the first slide.
    Are there any other ways of getting round this?

    Thanks for the suggestion. That would work brilliantly normally, just not on this slide, unfortunately.
    The reason for this is I have two hint icons on the screen - 1 shows a basic one then the second is a rollover slidelet with a clip of the correct action being performed. The first is on screen for a few seconds, then the second takes over.
    The earliest I would be able to set the second click would be around 8 seconds in, to allow the second hint to appear before the text box pauses the slide. So anyone who immediately knew which area to click would have to click once then wait a while to make the second click.
    It's annoying that the problem is of my own making by having the 2 icons, but as I've done this through a series of lessons, I can't really change it now.
    I might just go ahead with the single click option (unless there's a double-click in C4? [hoping to get this soon!]) and hope that no-one notices that the screen changes a bit too quickly to really have registered the second click.

  • I took video with my iPhone.  Downloaded video to my iMac. When I attach the video to an email, there is a big black box with no video.  Why?

    I took video with my iPhone.  Downloaded video to my iMac. When I attach the video to an email, there is a big black box with no video.  Why?

    Have you solved this issue yet?  I have the same problem using my Mac OS X Lion and iphone 5.  Thanks!

  • PresaveAction() Popup message box with save and cancel button

    Hi,
    I want to give user an option from popup box with the message "Are you sure to Save you record".
    I got below javascript code but don't know how to show two buttons on popup if user wants to recheck before final saving then he should click CANCEL otherwise SAVE button.
    <script type="text/javascript">
    function PreSaveAction()
    alert("Your request has been submitted");
    return true;
    </script>
    Please advise in above code. 

    Hi,    
    For your requirement, you can use the JavaScript Confirm Box which will contains two buttons in a popup window.
    Here is a demo about checking the value in the “Title” field, if it equals “asdf”, then a Confirm box will come out, then user will be able to choose whether to save or not.
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    var $j = jQuery.noConflict();
    function PreSaveAction()
    var txtStatus = $j(":input[title='Title']").val();
    if(txtStatus == "asdf")
    alert("Invalid Input");
    var r=confirm("Are you sure to Save you record?");
    if (r==false)
    var statusfocus = $j(":input[title='Title']");
    statusfocus .focus();
    return false;
    else
    return true;
    </script>
    Feel free to reply if there still any questions about this.
    Best regards
    Patrick Liang
    TechNet Community Support

  • When I click on the download button the box with Run or save comes up then disappears before I can click on it. Then nothing happens. I have tried this numerous times the same thing keeps happening

    Question
    When I click on the download button the box with Run or save comes up then disappears before I can click on it. Then nothing happens. I have tried this numerous times the same thing keeps happening> edit

    Maybe these will help:
    https://discussions.apple.com/message/17677533#17677533
    https://discussions.apple.com/message/18324129#18324129
    https://discussions.apple.com/message/18203126#18203126

  • My apple TV WHEN CONNECTED TO THE TV DISPLAYS A PICTURE OF THE BOX WITH A CABLE (USB) ATTACHED TO ITUNES SYMBOL.tHE WHITE LIGHT ON THE FRONT OF THE BOX IS FLASHING RAPIDLY. IS THIS WHAT IS DESCRIBED AS BEING BOXED? IS THE WAY TO FIX THIS TO RELOAD

    My Apple TV white light on the front of the box flashes continously.There is no response from the remote.
    On the TV there is a picture of an appleTV box with a USB cable and an I-Tunes logo.
    I do not have a micro usb cable.Is the only route to fixing this problem to download syestem software via my PC
    and I-Tunes?

    Welcome to the Apple Community.
    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Devices list, and then click Restore.
    (You may already have a micro USB cable if you have a camera or other digital device)

  • TS1702 [AutoCAD WS] dwg email attachment won't open (dwg file appear as blue box with questionmark in it)

    Hello everybody!
    I'm having problems with my AutoCAD WS app. I can't open dwg files wich are sent to me as email attacment. The file just appears as blue box with question mark in it.
    I have no problems when i recieve photos with email or .doc or pdf. They all appear and open as they should but only .dwg files have the issue.
    I have tried multiple times to insall and uninstall directly from phone and trough PC itunes and still no luck.
    Phone is iPhone 4 with 5.0.1
    Best wishes
    Andres

    DoubleCAD XT: Including this in a Free .DWG viewer category is almost insulting it, as it is a full fledged 2D Drafting tool like AutoCAD LT. It is completely free. It can indeed open your .DWG files, and you can also edit them. It can also import Google Skethup files, and do a lot more. Read more about this fantastic software here.
    Autodesk DWG TrueView: This is a free DWG viewer from Autodesk. It is not just a DWG viewer, but also a CAD file conversion software for translating any AutoCAD design application or AutoCAD-based drawing file for compatibility.
    Autodesk Design Review: This also comes from the house of Autodesk. It is an integrated, all-digital way to view, print, mark up, and compare versions of 2D and 3D drawings, maps, and models—without the original design-creation software.
    eDrawings Viewer: This comes from house of SolidWorks. eDrawings Viewer allows convenient viewing of native AutoCAD files (DWG and DXFT) and native SolidWorks parts, assemblies, and drawings.
    Bentley View: Bentley View is a free DWG, DGN and CAD File Viewer. It’s the best tool for projects that require a powerful viewing, measuring, and printing application for MicroStation, AutoCAD, or hybrid projects.
    Varicad Viewer: Varicad Viewer is a scaled-down version of VariCAD. It can open STEP (3D), DWG (2D), DXF (2D), Varicad, and IGES (2D) files.
    Free DWG Viewer: This free DWG viewer can view and measure DWG, DXF, and DWF files. It has XRef support to view layers & block attributes.
    pls try one of the above..as an alternate solution ,if none of them are able to open it ...then pls let me know

Maybe you are looking for

  • Lenovo not working with samsung Lcd TV.need advice...

    I am using a Lenovo 3000 N100 series AQ1 768 laptop.Its got no external graphics card.I want to connect it to my Samsung LA32B550  LCD TV via a vga cable. I have all the hardware fixed but there seems to be something missing on the configuring sectio

  • Can i capture wireless mac addresses?

    I need to provide our security group the mac address of all devices with wireless capabilities. can this be done? the mac addresses I am able to easily report on is the ethernet nic rather than the wireless nic.

  • Commisioner of Customs customs duty

    Hi For all the customs duty condition type in Import PO  it should pick the goverment (customs) vendor automatically, where can I set that kindly guide, I dondn't want to change in indvidual PO. Regards Vijikantha

  • Sony WX7 .mts video files not imported into iPhoto 11

    Apple indicates iLife '11 supports AVCHD (.mts) files, however, I've been unable to get iPhoto 11 to import video files from the Sony WX7 camera. Photo's are imported properly via both usb and directly from the SD card reader in my Macbook Pro (i7) 2

  • [SOLVED] Google Voice and Video plugin

    Cheers, I want to use my gmail account to voice/video chat within the browser. There are packages available for debian, ubuntu, fedora and suse and I'm wondering how to install the plugin for arch? If this is not possible, could you please point me t