Buttons within a dragged object

I have a map movie clip in a swf that can be panned using
startDrag/stopDrag. Within the map are buttons but the buttons
don't work, (even after it has been dragging has been stopped).
When I remove the dragging script the button work fine.
This is my drag script; "map" is the movie clip that is being
dragged which has the buttons in it:
on (press) {
startDrag(_root.map);
on (release) {
stopDrag();
}

if you define a mouse handler for a parent movieclip, the
mouse events will be intercepted by that parent and no child
movieclip or button with detect any mouse event. to remedy, use a
loop and hitTest for the parent or the child.

Similar Messages

  • Interactive pdf - Buttons within multi-state objects

    Hi,
    I seem to have a problem. I dont know if it is even possible, but I made a button that goes to a status of 2 multi-state objects. Within one of those multi-state objects is a button that closes that multi-state object. So now I am wondering if it is possible to make that same button close the other multi-state object aswell?
    Marc

    Yes, you can attach multiple actions to one button, but there´s a bigger problem... based on your title I guess you are trying to use multistate objects with interactive PDF and that´s not possible. MSOs are supported only with SWF exports and with Adobe DPS / Folios....

  • Get the value of a selected radio button within a ToggleGroup

    All
    Please see the script below. All I'm trying to do is to identify the selected radio button within a ToggleGroup. This has been working in JavaFX 1.2.
    This is JavaFX 1.3 running on NetBeans 6.9 (beta) on Ubuntu 10.04
    Does anyone know why this is no longer working?
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.control.RadioButton;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Toggle;
    def levelGroup = ToggleGroup {};
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        // here I want to capture the value of the selected toggle
        // the outputted value is always 'null'
        println("level toggle = {selected.value}");
        println("selectedToggle = {levelGroup.selectedToggle.value}");
    Stage {
       scene: Scene {
          width: 300
          height: 300
          content: [
             HBox {
                    translateX: 100
                    translateY: 67
                    spacing: 20
                    content: [
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Easy"
                            selected: false
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Medium"
                            selected: true
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Hard"
                            selected: false
    }

    Actually, your code above wouldn't have worked in JavaFX 1.2 as we only added the value property to the new Toggle mixin in 1.3. I believe what worked for you in 1.2 was when you referred to text, which is not a property on Toggle, so you need to cast the selected variable from Toggle to a RadioButton, which does have a text property. For example, this would work:
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        println("level toggle = {(selected as RadioButton).text}");
        println("selectedToggle = {(levelGroup.selectedToggle as RadioButton).text}");
    }Alternatively, instead of casting like this, you can store a value in the value property of the Toggle mixin class, which is extended by RadioButton. For example, your code could be changed to the following (in particular note that the only change is the addition of the value properties in each of the RadioButton):
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.control.RadioButton;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Toggle;
    def levelGroup = ToggleGroup {};
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        println("level toggle = {selected.value}");
        println("selectedToggle = {levelGroup.selectedToggle.value}");
    Stage {
       scene: Scene {
          width: 300
          height: 300
          content: [
             HBox {
                    translateX: 100
                    translateY: 67
                    spacing: 20
                    content: [
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Easy"
                            selected: false
                            value: "Easy"
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Medium"
                            selected: true
                            value: "Medium"
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Hard"
                            selected: false
                            value: "Hard"
    }This approach saves you from having to cast from Toggle to RadioButton. This second approach is actually very powerful, as you can store any object in the value field, and can then easily retrieve it at a later point when the user selects the desired RadioButton. Of course, you can just use it as in the simple case above as well.
    I hope that helps.

  • How can I attach an additional action to the "reset" button in the drag and drop interaction?

    Hello,
    I would like to know how to attach an additional behavior to the "reset" button in my drag and drop exercise.
    Here is the background:
    In my drag and drop exercise, when the user drops the source on a target of his choice, certain elements appear and certain elements disappear
    This means that depending on where he dropped the sources, certain elements will be visible and certain elements invisible when he is finished the activity
    Because the sources are not re-draggable once he drops them, he will have the option to reset the exercise and start again from the beginning using the reset button
    My challenge:
    I would like exercise to return to its original state when the user selects the rest button .  this means:
    the dragged objects return to their orginal starting location (this is what naturally occurs when you hit the reset button)
    any objects that had disappeared during the course of the activity reappear
    objects that were not visible in the beginning , but had appeared during the course of the activity, again become invisible
    So how can I add this action to the reset button?

    Allowing the user to redrag the souce after it has been dropped would work for my particular problem  if I could bind an action to the event redragging, namely making the elements reappear that had disappeared and the elements disappear that had appeared when the user dropped it the first time.

  • Hyperlinks within a button / button within a rollover button?

    Hi folks,
    I'm quite the newbie here (print designer trying my hand at multimedia news projects), so I apologize in advance for sounding stupid a bit too often.
    OK, so I'm working on a project, and it's going OK. What I want to do is for the user to rollover a button/object, and a little pop-up box will show up, and it will have some text/photos/... Pretty routine stuff. That I can accomplish without a problem...
    Now, what I want to add in there is also a hyperlink that will open a Web page in a new window. And that's where I get stuck. It won't let me.
    I assume it's because part of the rollover thing in the button symbol. That's how I'm doing it so far.
    So, is there anything I can do going that route, or do I need to take another approach?
    I'm thinking the other option would be to create a movie clip, which would hold the pop-up box and the photos and the like, then make a button within that which would hold the hyperlink. Then, I could create an object right on the timeline with a rollOver that would trigger the movie-clip instance.
    Does that make any sense?
    I'm using CS3, but I also have access to CS4 if needed.
    Thanks in advance for your help!

    Hi Ned,
    Thanks for the reply. I think I know what you mean. So anything that's triggered with a button cannot have anything inside triggered again.
    To put it pretty simply, this is what I have:
    There's a fever chart, and there are several points that I would like highlighted along the way.
    So, when I roll over, say, the highest point, a balloon of sorts would pop up. It would have some text and photos and whatnot, but it would also have hyperlinks.
    So... What's the best way to approach it?
    I'm thinking the balloon of sorts would be its own movie clip, and all the goodies would be inside of it.
    Now, to trigger it, should there be an object converted to a symbol to trigger it? Then, should I do a on(rollOver) kind of thing? When I roll over it, it would play that instance.
    Or, the other option would be to do a rollover that would go to a certain layer/frame and play that.
    What do you think?
    Again, I'm sorry about my ignorance.
    Thanks!

  • InDesign CC 2014 can no longer drag objects with mouse

    I have been using InDesign for months with no problems but suddenly I am having mouse issues. I can use my mouse to resize objects and make selections but dragging objects in the document or in panels (for example, reordering spreads) no longer works. I am using a mac on the latest 2014 CC release of InDesign, and have tried all the usual tricks (Ctrl + Alt + Shift + Cmd on startup to remove preferences, manually deleting preferences (both files), reloading software, rebooting machine, reinstalling InDesign) but the only thing that works is rebooting the machine.
    However, within 20-30 minutes after a reboot, the problem returns out of nowhere. I don't use plugins with InDesign and haven't changed hardware or software recently so I have no idea what's causing this.
    Does anyone have any info that might help me out? From googling around, it seems most people have solved their problems after a preferences dump, but mine keeps on coming back!

    I've actually been discussing this problem in another thread but this one is dedicated to it.
    This cropped up for me prior to the New Year and I've found no solution. I actually did what Steve Werner suggested this week and created a new OS X account. But the problem cropped up in the new account today.
    I don't know if this is a common or not. I'm part of a large creative team and as far as I know, I'm the only user experiencing this. I've trashed preferences, uninstalled and reinstalled InDesign, restarted the computer, etc. Nothing works.

  • Since upgrading to Lion dragging objects is not accurate

    Since i have upgraded to Lion i noticed a very annoying behavior, where dragging objects in Omnigraffle (latest versino) and Photoshop (latest version) often times skip a few pixel as soon as i release the mouse. Same effect with build-in trackpad, external trackpad and standart usb mouse.
    I've turned of any sort of guides or snap to grid behavior without luck - especially since this was not neccesary in Snow Leopard.
    To reproduce:
    - Create an object, for example a rectangle
    - Start moving it with your mouse/trackpad
    - Release the button
    - Object jumps 2ish pixels up or left
    MacBookPro 15" as well as MacBook Air 13" (both end of 2010 versions)
    Does anyone else experience this? Any solutions?
    Thanks
    Chris

    What about other programs? Have you updated the printer driver?

  • Exchanging positions of two drag objects in Captivate 7

    I am learning to use Captivate 7 and am trying to use the drag and drop function to create a tile puzzle. Has anyone done this, or have an idea of how it might be done?
    So far I have created a grid of target squares, each with its own "correct answer" drag object.
    The idea goes something like this. If the user selects and drags a tile to its correct target, it will remain there, with the incorrect tile exchanging with the correct tile. If a tile is moved to an incorrect target it will return to its original location.
    Any help on this would be much appreciated. I have read a description of this type of puzzle made with Captivate 6 and an installed widget. Just wondering if it can be duplicated within Captivate 7.

    Hello Scroderick,
    Welcome to Adobe Forums.
    Yes if the use will move the incorrect answer , It will come back to its original position and you can also type failure text (like this is incorrect) .
    I have some urls related to Drag and Drop interaction which might be helpful to you
    http://helpx.adobe.com/captivate/using/drag-and-drop-interaction.html
    http://www.youtube.com/watch?v=usOV_IrGNA4
    Hope this helps !
    Thanks and Regards
    Himanshu Satija

  • Button within a movieclip

    Hi all,
    I am relatively new to Flash and am looking for help with a
    file I am working on.
    I have created a movieclip of an area which is placed so that
    only the outer right edge is on the stage. When the mouse hovers
    over the area, it moves onto the stage and reveals menu options. It
    works beautifully as an animation, and the menu options (which have
    over, down, and hit states) work when not part of this movieclip,
    but when I place instances of the buttons within the tweened
    movieclip, they no longer work.
    I have been scouring the web for answers and most people say
    that you cannot have a rollover within a rollover as the first
    rollover (in my case, the movieclip) is still active.
    I have seen this work with various files in flashden for
    example where the menu slides out from the side and then slides
    back in when you 'roll off' but while you are 'rolled on' you have
    access to menu options which all perform their own roll on/off
    movies.
    Hopefully there is a simple answer!
    Thanks in advance.
    J.

    I had to step out for awhile too.
    Well, I'll give you a jump start on the AS version of Tweens.
    Taking this approach will give you a better bit of sliding. With
    your gotoAndPlay(label), you'd end up having things probably still
    jumping around when it moves from the background to a button and
    vice-versa which would end up complicating the coding to avoid it.
    Below is a link to a small sample file I made for you that
    you can study/utilize... it was easier than trying to explain it in
    this forum. It shows you a better way of coding mouse interaction
    stuff as well (using on(...) attached to objects is bad practice...
    now outlawed in AS3).
    The way I did it has all of the code visible in the main
    timeline so you don't have to go digging and clicking on things to
    find code.
    The menu's background is a movieclip and the menu's button is
    a button. I only have one button, but the more the merrier as long
    as they all have their own code and instance names. Though for the
    rollOver you could assign them all as follows:
    btn1.onrollOver = btn2.onrollOver = btn3.onrollOver =
    function(){...}
    I forget during this edit (some hours later) if I have a
    rollOut for the button, but since/if the background surrounds it on
    all sides, you can probably eliminate it... only the background
    would need to have that aspect covered.
    There are two versions of the file linked below... a CS3
    version and a Flash 8 version.
    Sample Fla
    File - CS3
    Sample Fla
    File - Flash 8
    PS - my host's server is acting up today, so be
    patient.

  • Dragging Object Around Circle in Flash with ActionScript 3

    I created a blog post that demonstrates how to make it work:
    http://flashascript.wordpress.com/2011/01/01/dragging-object-around-circle-in-flash-with-a ctionscript-3/

    Ok... I put that code in my flash project and verified that
    there are no errors in the code itself. However, when I try to test
    the movie I get the following error:
    Warning: Action on button or MovieClip instances are not
    supported in Action Script 3.0. All scripts on object instances
    will be ignored.
    Thus, when I do a mouse over on that particular country on
    the map, nothing happens.
    Any ideas?
    Thanks again

  • Can you determine a dragged objects Class Name when it is dropped?

    Is there a way to determine the class name for a dragged object.
    I have set up two objects. One is a JList that acts as a data source for the second object which is a JTable. Both objects serve as both drag source and drop targets. I need to be able to react to the following events:
    1. Drag value from JList to JTable.
    2. Drag value from JTable to JTable (itself) to reposition order.
    3. Drag value from JTable to JList (deletes item from JTable).
    So far, I have had no problem in getting #1 to work.
    The problem is determining how to consistently interpret which event is happening for 2 and 3. Both the drop (DropTargetDropEvent event) and the dragDropEnd (DragSourceDropEvent event) are fired for either 2 or 3 above. If I could identify the source class for the dragsource and the target class for the droptarget, the coding would be easy. I haven't been able to find anything on this while reviewing the API documentation.
    Any help would be appreciated.
    Thanks

    No, there are not multiple policies - the host names for all aliases on that single webserver are together in a single host identifier. And I realize I can only have a single challenge redirect, I just want to use a variable to redirect to the host name that was accessed as opposed to a static name.

  • Adobe creative suite cs5: unable to open files in photoshop. unable to drag objects on illustrator..

    Adobe creative suite cs5: unable to drag objects on illustrator or indesign. unable to open files in photoshop, brush doesnt work in photoshop.
    In the past I uninstalled adobe creative suite cs5 from my laptop, used the adobe creative cloud cleanup tool, restarted and then reinstalled the programs and everything worked again for about a week. Now everything has gone back to the way it was again and this time the uninstalling and reinstalling isnt helping.
    Any ideas?
    Im pretty desperate!!
    Thanks
    Alisa

    Hi Alisa
    I'm having exactly the same problem. Uninstalled CS4 and reinstalled the 30 day trial of the Creative Cloud and it's stil having the same glitches, not opening in photoshop and not being able to drag/move objects in Illustrator or inDesign.
    Did you find a solution to this problem?
    Thanks
    Jenny

  • Losing the ability to drag objects after 30 minutes. What's going on?

    Hi,
    I'm having a very strange problem. In InDesign, I'm losing the ability to drag objects around with the mouse after about 30 minutes of using the program. Everything else works fine, but I simply cannot perform this function. The box highlights, but simply will not drag. I can use the arrow keys to nudge the boxes over, I can resize and do other things with no issue except this. Additionally, other Adobe applications start to crash when I want to drag things, such as Illustrator.
    If I log out and log back in, it's fine again for another half hour. I tried trashing the preferences, updating Creative Cloud, and nothing has worked.
    This is seriously damaging my workflow and hindering my ability to complete my work. I have a hard deadline coming up, and I need this solved fast. I'm not on an SSD so logging out and back in takes 5-7 minutes for things to get up and running again. Any help would be greatly appreciated. I'm running OSX Mavericks on a 2013 iMac with the full Adobe CC suite installed.
    A few things that may be clues:
    I first noticed this problem with an out of date InDesign: everything worked fine, BUT when I started to drag an object, InDesign would hard crash, just close completely. After I updated Creative Cloud, now I simply cannot drag, but the program stays functional (other than this essential action).
    When this problem is in effect, Illustrator hard crashes, only when I try to drag an object (the problem seems to be uniquely associated with dragging)
    Nothing 'triggers' this issue, I'm simply working on a file and then I no longer can drag things around with the mouse. I log out, log back in, and everything is fine for a bit.
    -Neil

    Ah! Unfortunately, I'm on a company computer and can't just try these things myself. If that's the issue, I can ask our admins and they'll do it, but I want to make sure I've exhausted anything that could be a small fix.
    Is that a shot in the dark, or are you thinking there's a reason a clean install is the solution? Thanks for the help.

  • How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???

    I have the following situation
    MainMove.swf is doing a loadmovie of SecondMovie.swf
    The Button that loads SecondMovie.swf also disables other buttons in MainMovie.swf
    on (release) {
        _root.intro_btn.enabled = false;
        loadMovieNum("SecondMovie.swf", 2);
    How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
    Using AS2 is this current project
    Thanks

    lol Sorry bout that I'm brand new here and was looking for the option to remove the post from the other location.

  • Button within a movie clip not working

    Hiya,
    I have a movie clip within my swf website that is basically
    an icon that you roll over to produce the menu. The movie clip has
    coding inside it to produce the rollover effect. This is as
    follows:
    stop();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    Whilst this coding works fine for this movie clip, for some
    reason the buttons within the movie clip that appear as you
    rollover them will not work when pressed. I am trying to get them
    to navigate the main timeline, i.e. coding as follows:
    on (release) {
    _parent.gotoAndPlay("home")
    _parent should be correct, I've tried it without and with
    _parent._parent however still it has no effect. From what I can see
    everything should be working fine.
    Is there some reason why buttons will not work within this
    sort of roll over effect movie clip?
    Thanks for your help.

    you can't assign mouse handlers to a parent movieclip and
    expect a child movieclip to respond to mouse events: the parent
    will intercept those events.
    to remedy, either assign all your mouse handlers on the child
    generation movieclips or use a hitTest() for one of the
    generations.

Maybe you are looking for

  • How to use HTML in JavaFX controls?

    Does JavaFX support using HTML in JavaFX controls' text? For example, in Swing components: button = new JButton("<html><font face=arial size=16><center><b><u>E</u>nable</b></font><br>"   + "<font face=cambria size=12 color=#ffffdd>middle button</font

  • Not correctly reading serial port data after first cycle

    I set up a VI for serial communication using RS232 with a pressure transducer meter. The pressure readings are in a loop along with a series of calculations in that loop. The readout from the first cycle is correct, but i just see garbage characters

  • Asset Procurement

    Hi, I am creating the PO for asset. My plant address is my warehouse address which is appearing on PO as delivery address.I want the Asset to be delivered to Head Quarters., which is at different location. Can I manually change the address in PO to H

  • FI module(General Ledger) business documentation- any material?

    Hi, I am in SAP-ABAP development, I would like to learn about FI business process in SAP(high level process not configuration level. I am in technical development side), Can any one please let me know where I can get FI module documentation(mainly Ge

  • Standby db: continue manualluy alter database register logfile

    Hi, in my standby db 10.2.0.4, on linux platform, some archive log are not register properly and i need to perform the register logfile manually. Which test a can i do to solve this problem? Thank you.