Slide several boxes and align itself with several locations and reveal the button

Hi I am developing a game where the user chooses from a range of boxes to the left of the screen and can drag the 3 of them separately from 3 boxes to right ther. each box can be moved anywhere, and the order is not important. Once the 3 boxes are all full, I want a new button to appear. I finished a tutorial and I have a box works perfectly, but no matter what I try, I can't work with several boxes and locations. Here is a list of the instance names of film clips more my actionscript. I have attached a link to the flash file. Any help would be really appreciated. See you soon

LINK

http://www.sainters.NET/flash_preview/flash_test/Flash test_v6.fla.zip

INSTANCE NAMES

1 box = 'circle_mc.

Box 2 = "circle_mc2."

the two grey boxes are called = "targetCircle."

ACTIONSCRIPT

function dragSetup (clip, targ) {}
clip.onPress = function() {}
startDrag (this);
this.beingDragged = true;
};

clip.onRelease = clip.onReleaseOutside = function () {}
stopDrag();
this.beingDragged = false;
If (eval (this._droptarget) == targ) {}
this.onTarget = true;
_root. Targ.gotoAndStop (2);
} else {}
this.onTarget = false;
_root. Targ.gotoAndStop (1);
}
};
the following variables can store the start position of clips
clip.myHomeX = clip._x;
clip.myHomeY = clip._y;
the variables below are going to store the position of end of clips
clip.myFinalX = targ._x;
clip.myFinalY = targ._y;
clip.onEnterFrame = function() {}
all these actions basically just to say "If the mouse is in place (in other words - the clip is not moved).
then replace the MC to its original start (with a smooth movement) point ".
If (! this.beingDragged & &! this.onTarget) {}
This ._x-= (this._x-this.myHomeX)/5;
This ._y-= (this._y-this.myHomeY)/5;
If the circle is moved on any part of the target, it slides toward the center of the target
} else if (! this.beingDragged & & this.onTarget) {}
This ._x-= (this._x-this.myFinalX)/5;
This ._y-= (this._y-this.myFinalY)/5;
}
};
}

dragSetup (circle_mc, targetCircle);

You can probably do all the things you want to do.  I will make them for you well.  Trying to figure out how what I've provided works and then try to reason things for the changes you want to perform.

Tags: Adobe Animate

Similar Questions

  • REPORT of BUG card add contact information click on the box and click the button do not always reside in the same place

    When you use the card on adobe lightroom CC 2015.4, by clicking on the button to add coordinates to a picture fails in about 3 to 4 tests.

    It turns out that the button will still work when flying over generates a blue rectangle in the text of the button 'add contacts '. But in many trials, the overview of the button will not generate this blue rectangle with the active area of the button, but below the button. Need to click outside the button for recorded details. This causes a lot of lost time, that we need to try again and again...

    Do this please be fixed?

    I use Win 10 64 bit, but I think that the problem happened also with previous versions of Windows. Only now, with Win10, the blue rectangle is here to show active, click area, and it is now clear he does not always match the position of the button. Very clumsy!

    Please post a bug report in the official Adobe feedback forum: Photoshop Lightroom | Community customer Photoshop family. Screenshots or a movie screen would make more clear what is exactly the problem.  (This forum is mainly a user forum with some low-level tech support.)

  • Adding a page Standard OTL Message box and turn the...

    Hi Anand and friends,

    I'm sorry to have posted my previous question / answer pending request. This is my first time. Anand, thank you very much for letting me know what to do and also to have taken the time to notice. I tried what you suggested, but it does not work for some reason any. I tried everything you said step by step.
    When I followed the steps you gave, it created another button on the Page besides the BUTTON SUBMIT the Original and when I click on THE BOX, nothing happens. I don't know what I'm missing here buddy.

    And also, I am struggling with the thing the most important is to position THE MESSAGE BOX regardless of where I created this ARTICLE, it is created on several pages. Just can not only get it on the REVIEW page.

    Until you hear soon my friend because it is VERY URGENT for me.

    Thank you very much for all the help.

    Kind regards.

    Here is my original post I posted in the wrong thread. Sorry again!

    Hi my friends,

    So I need your help here. I'm totally new to OAF and I need your help VERY URGENT.

    I don't know if this thread is still active, but if someone can suggest/help me would be great.

    MY REQUIREMENT:

    I need to add a MESSAGE BOX to a standard Self Service OTL page, IE on the last Page of the magazine where the user checks his hours and clicks the button SUBMIT.

    What I have to do is to make the * existing * SUBMIT BUTTON enabled/disabled whenever the new CHECKBOX is checked/unchecked respectively.

    It can be a simple task, but I'm so confused, especially because I have so so this new. I tried several things but nothing works.

    Please please any help regarding this would be so much appreciated and I would be grateful. Its a NEED URGENT.

    Waiting to hear from you my friends.

    Kind regards.

    Create the box to the position you want in the page.

    In the extended controller, on return from the id of the button submit null (i.e. when the page is not the summary page) do the hide checkbox bean. With the help of bean.setRendered (false);

    Add the other part of the handle submit button code (that I mentioned at the top of messages). submit the handle button code will be:

    OASubmitButtonBean buttonBean = (OASubmitButtonBean )webBean.findIndexedChildRecursive("submitButton_beanId");
        if(buttonBean != null)
        {
        if("Y".equalsIgnoreCase(cbValue))
        {
          buttonBean.setDisabled(true);
        }
        else
        {
          buttonBean.setDisabled(false);
        }
        }
    else
    {
    cbbean.setRendered(false);
    }  
    

    -Anand

  • How to select a cell in a multicolumn list box and use the horizontal scrollbar on th

    An event structure, how to select a cell in a multicolumn list box and use the horizontal scrollbar on the front panel at the same time.  I can select a cell in the multicolumn in a structure of the event, but I can't move the scroll bar on the front panel when the program is running.

    I guess that you are referring to the scroll bar in the control multi-column listbox. What does your code when you select a cell? Can you please your postal code so that we can see the behavior you describe? It is possible that you are blocked the structure of the event, as in performing an operation long in case the treatment cell selection. In this case, the structure of the event must wait until the event ends before being able to respond to the next event. You can configure the event to not lock the front panel until the event ends.

  • I have photoshop elements 8, but lost the sleeve on the disk.  Where can I find the redemption code?  I've looked everywhere on the box and in the literature on the inside.

    I have photoshop elements 8, but lost the sleeve on the disk.  Where can I find the redemption code?  I've looked everywhere on the box and in the literature on the inside.

    Here is an Adobe Help file on the issue: quickly find your serial number


    Moved from Photoshop General Discussion for Download, installation, setting up

  • Addition of Mac and also the buttons change the wording

    Hello

    IM new to Adobe Muse on mac but have worked with her before on a windows computer and did not have these problems before.

    IM wondering why when I add the header buttons on my site I can only add a. I'll widgets then click here to add menu and then horizontal and get the button one alone but I can't add on that as the + never happens. I can also change the text inside "originating" more. I had no problem before on my windows computer does all this. Also, I don't want to just copy the button and hold it paste the rest as it is much more difficult to size them have full rights and also change all the settings on each key separately.

    One last thing would be useful as the top menu is placed all the way from left to right, but when I saw it leaves a small gap on each side in white when the bar/menu (Home, news,) is black.

    Any help would be great!

    David

    SnapnPay

    When you add a menu widget to the page it automatically draws its links in existing senior-level pages of your site. Looks like you don't have a page, home page, for the moment, that is all that should appear. When you add more pages, they will be automatically added to the menu. The menu labels are taken from page names, so if you change the name of the House to something else, it will change its label in the menu.

    If you have manual control over menus, open the widget settings and change the Menu Type to manual. You must define the label name and the hyperlink in yourself and you can add more items that you need. Remember that this does not automatically updated with changes made to the site.

    I hope this helps.

    David

  • Display element should be displayed after report and before the button

    Hello

    I use apex to oracle 10g 3.2.
    I created a region with report, hidden item, display only point and a single button.

    Now, I want to report is displayed first and then show only, then the button.
    But somehow the item displayed is displayed first then report and then the button.

    What to do to change?

    Thank you

    Make sure that the point of view from the region is one of

    Body of page template (1. elements located under the content area)
    Body of page template (2 items below the content of the region)

    and is not

    Body of page template (3 items above content area)

    This is the part ' elements above/below the content of the region "who controls where are display the elements of the region.

  • Enable and disable the buttons depends on the connection of the user?

    How to enable and disable the buttons depends on the connection of the user?

    In fact I have a few buttons as remove, add, save, exit, it etc., zero page...

    depends on the user , I have to turn on and off specific keys.


    Thanks and respect,
    SKUD.

    Hi Skud,

    In fact Jeff's response are correct and handles the problem. I want to mention another way,

    Change the desired button > navigate to Conditions > Pick (exists SQL query returns at least one row) > Expression 1, enter code similar to the following:

    Select TOP (: app_user) where double UPPER(:app_user) in ('FATEH","MARY")

    Best wishes
    Fateh

  • Help with image files, drop box and save the changes?

    My husband put all our photos of drop box.  They are still on our computer, but we can now also access elsewhere.  But it has somewhat modified files.

    I'm putting together, cultures and (in general) to save the changes made to some images.  But I get an error.

    Example: The image I want to change is on the side.  I right-click on the file icon and select "Rotate clockwise" in the menu dropdown. Immediately, I raise the sound "bonk" and an error message appears: "you cannot rotate this image.  The file can be used or open in another program or maybe the file is read only.  It wasn't a problem before doing things to the drop box.
    So, I wait to make sure that everything is ok.  The image is not open anywhere else.  I clicked the properties option to see if it is in read-only mode.  He said that it is not.
    When I open the image and try to use the rotation on the bottom, it will turn.  But when I close the window, I get a different error message that says "Windows Photo Viewer cannot save changes to this picture because there is a problem with the properties of the image file."   There is a link at the bottom of the message box for "Why can't save this picture?  I clicked it.  He said "the subject you are looking for is not available in this version of Windows. For additional assistance, see multiple support options. "The more support options?  Get a tech savvy friend who could help me. Nice.
    Anyone know what I need to do to make this work?
    I don't know what version of windows we have.  I'm sure that's not Vista.  It's the one after that.

    Hello

    Thank you asking in the Microsoft Community.

    1. open Microsoft paint.

    2. navigate to the image through Microsoft Paint.

    3 try to rotate and save the image.

    4 let me know if you are able to.

    Post back with the result.

  • Resizing Auto text in a bounding box (and remove the line break)

    I have a lot of certificates of completion of the course I create (using pre-made our graphic charts).  I set up some variables from my diapers and I use a data set to shoot in the person's name, the course title and date of a CSV file.  The text 'Name' encompassing that I created is set to a specific width and height (and must stay that way) with a font size of 94,22 pt; However, some names are REALLY long and are too big for the bounding box.  They dress up.  When I run the "data fusion", I need Photoshop to automatically resize the text in the bounding box so that it is not word wrap.

    For example, "Jane Doe" fits well in the box.  However, "Johnathan Cornelius Doe" is too long, and the word encapsulates.  Instead, I want Photoshop to the long name and simply its size down to fit properly in the lack of word envelope bounding box.

    I have about 200 of them to spend in Photoshop, print and send.  I really don't want to individually open each certificate to verify this last after that I have run through.  I just batch process and print batch.

    Is there a way to do this?  Please note that I have never made any script; so if this is the way it must take, I need to explain carefully and in simple terms.

    Thank you!

    OK, try this. Save the code in a text file with the extension .jsx below. Create an action that runs the script. Then, you can use this action with the batch command.

    #target photoshop
    var doc = activeDocument
    doc.activeLayer = doc.layers.getByName ('LastName')
    var ly = doc.activeLayer
    var before = ly.bounds[2]-ly.bounds[0]
    
    var amt = doc.width/before*100
    transText (amt)
    ly.translate (-ly.bounds[0], 0)
    
    function transText(amt){
        var idTrnf = charIDToTypeID( "Trnf" );
            var desc2 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref1 = new ActionReference();
                var idLyr = charIDToTypeID( "Lyr " );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idTrgt = charIDToTypeID( "Trgt" );
                ref1.putEnumerated( idLyr, idOrdn, idTrgt );
            desc2.putReference( idnull, ref1 );
            var idFTcs = charIDToTypeID( "FTcs" );
            var idQCSt = charIDToTypeID( "QCSt" );
            var idQcsa = charIDToTypeID( "Qcsa" );
            desc2.putEnumerated( idFTcs, idQCSt, idQcsa );
            var idOfst = charIDToTypeID( "Ofst" );
                var desc3 = new ActionDescriptor();
                var idHrzn = charIDToTypeID( "Hrzn" );
                var idPxl = charIDToTypeID( "#Pxl" );
                desc3.putUnitDouble( idHrzn, idPxl, 0  );//259.646484
                var idVrtc = charIDToTypeID( "Vrtc" );
                var idPxl = charIDToTypeID( "#Pxl" );
                desc3.putUnitDouble( idVrtc, idPxl, 0.000000 );
            var idOfst = charIDToTypeID( "Ofst" );
            desc2.putObject( idOfst, idOfst, desc3 );
            var idWdth = charIDToTypeID( "Wdth" );
            var idPrc = charIDToTypeID( "#Prc" );
            desc2.putUnitDouble( idWdth, idPrc, amt);//1050.143628
            var idIntr = charIDToTypeID( "Intr" );
            var idIntp = charIDToTypeID( "Intp" );
            var idBcbc = charIDToTypeID( "Bcbc" );
            desc2.putEnumerated( idIntr, idIntp, idBcbc );
        executeAction( idTrnf, desc2, DialogModes.NO );
        }
    
  • Question about the boxes and enters the information

    I am runing a form which takes the boxes of a query.  They have the same name, but different values.

    On the action page, for each check box selected, a new record must be created in the db.

    IM' sure this has to do with counting and defining a number of loop, but for some reason, I paint a white.

    The query is the basis...

    < cfquery = "whatever" datasource = dbname name # >

    insert into ach_world_done

    (id, scoutid, den, world)

    Values

    (' #url.id #',' #url.scoutid #',' #url.den #',' #form.world # ')

    < / cfquery >

    As it is written now, it conmas the check boxes on the previous page, so if there are two boxes checked, it makes info1, info2 and this puts in the db.  I need to break it up.

    any help would be greatly appreciated.

    Sharon

    www.smdscouts.com

    On the page of the form, type a unique name to each checkbox:


              
               
               
                (X #dateformat(doh.datereceived,'mm/dd/yy') #.

    On the action page, count the number of checkboxes. Remember that ColdFusion submit check boxes unchecked.


       
           
       

  • I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I have a link to a PDF file to another and use the button "Previou

    I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is configurΘ for dΘmarrer with bookmarks displayed, however if I have a link to one PDF file to another and use the "back" button to return to my starting point bookmarks are replaced by "vignette". Is there anyway to prevent this?

    Hi Mike,.

    While the implementation of the links, if you choose to open the file in a new window then you will not experience this issue, then you can simply switch to the file view and previous bookmark will remain as it is.

    Is that what helps with your query?

    Kind regards
    Rahul

  • Help open the levels dialog box and save the entered settings.

    Hey,.

    I'm trying to work out how to save the applied middle, whitepoint ect to a variable after the levels dialog box was called from javascript?

    I am writing a script that allows you to adjust the levels on a single image, and then I have to repeatedly apply these settings on a batch of images specified.

    Is this possible? I figured out how to open and apply the levels but not to save the entered settings.

    Any help would be appreciated!

    I use photoshop cs6 on a mac.

    Thank you

    Mark

    Sorry Paul, but I think that you're wrong. The 'adjustment' list should have descriptions for each channel that has been set by the user. These descriptors must have the key for the channel as a referencetype, b/w in a list entry points, exit points black and white as a list and as a double gamma. I think that if these aren't in the descriptor, it is because the user has not changed the default values.

    But what if all you want to do is reapply the same settings later that you don't really need to know what setting were. You simply store the descriptor that contains for later use.

    function newLevels() {
    var desc2 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putClass( charIDToTypeID('AdjL') );
    desc2.putReference( charIDToTypeID('null'), ref1 );
    var desc3 = new ActionDescriptor();
    var desc4 = new ActionDescriptor();
    desc4.putEnumerated( stringIDToTypeID('presetKind'), stringIDToTypeID('presetKindType'), stringIDToTypeID('presetKindDefault') );
    desc3.putObject( charIDToTypeID('Type'), charIDToTypeID('Lvls'), desc4 );
    desc2.putObject( charIDToTypeID('Usng'), charIDToTypeID('AdjL'), desc3 );
    return executeAction( charIDToTypeID('Mk  '), desc2, DialogModes.ALL );
    };
    // store the descriptor holding the users values for later
    var newLevelsDesc = newLevels();
    // do something else like open another image
    // then when needed make a new adjustment layer using those settings
    executeAction( charIDToTypeID('Mk  '), newLevelsDesc, DialogModes.NO );
    
  • calculate a box and put the result in another

    I am trying to get the multiple of a decimal box so for example

    Box1 will be number 100

    You then have to tick a box to multiply

    Box2 will store the answer

    I have the following, but it does not work

    var topmostSubform.IFFPage6.Page.FirstCustomer.decApproxNetIncom.rawValue = Aprox

    Aprox = Aprox * 7

    topmostSubform.IFFPage9.Page.decFirstExpend.rawValue = Aprox

    * THIS CODE IS PLACED ON THE BUTTON MULTIPLY *.

    It is also a function of click I have another button that I want to do one divided by 12

    Any help would be great

    I fixed this by using the following:

    var currency = topmostSubform.IFFPage6.Page.FirstCustomer.decApproxExpend.rawValue * 7;

    var currency1 = topmostSubform.IFFPage6.Page.SecondCustomer.decApproxExpend.rawValue * 7;

    Currency2 var = topmostSubform.IFFPage6.Page.SecondCustomer.decJointApproxExpend.rawValue * 7;

    topmostSubform.IFFPage9.Page.decFirstExpend = currency;

    topmostSubform.IFFPage9.Page.SecondCustomer.decSecExpend = currency1;

    topmostSubform.IFFPage9.Page.decJointExpend = currency2;

  • Drive that extends and complements the buttons

    Jasmine or someone who can respond.

    We are in a situation where for some reason a lot of our users have Acrobat and Reader on their workstations. If we don't have drive to extend our PDF forms and a user opens the form in the workspace in the drive, because say they already had open drive, they will receive a message of not being able to save data in the form. If we drive to extend the document in Acrobat, because we do not have the reader extension service, then save it to the repository when this form is rendered in the workspace to finish button doesn't get rendered but rather the Submit of the form itself, the fields of process one, button appears. If I open this form in Workbench, it tells me that the Reader Extensions will be removed and if I say Yes and then simply save the form it renders fine in the button complete and any workspace.

    Is there a way to extend a drive form and still to get Workspace to make the form with the full button without the extension of reader service and if so, how?

    Thank you

    Yes. I think that usage rights could be applied after the bridge of forms is added to the PDF, but I'm not sure.

    Then remove the bridge shape inject your service and see it.

    Jasmine

Maybe you are looking for

  • How to Sync Apple music iTunes for iPhone

    Hi all I just got a subscription to Apple's music and I'm running into a problem syncing of playlists or songs on iOS devices. If I make a playlist on my iTunes, I want to synchronize with my iPhone and vice versa. Or if I download a song on my phone

  • Can't scan on HP 1410

    Hi there, the last days of couple that my HP PSC 1410 all-in-one has decided he will not scan.  Still, it prints and copies well.  So I tried the tutorial on the site of hp and got to page 5 where it gives me a link to the HP scan diagnostic utility.

  • Firefox is not rendering/display websites properly.

    Today, never had any problems with any site, I realized so far. Every Web page I have vist will not/rendering/display of the load correctly. I have Firefox didn't Age and have not had any problems like this before.

  • Error in Satellite A135-S7404 - Vista Recovery problem - 10-FC12-0017

    I bought a laptop Satellite A135-S7404 and had a problem with an operating system.I went to recover the system with the CD that came with it but 3/4 of the way threw the second disc, it stops and gives me a 10-FC12-0017 error message and wants me to

  • Compaq 6715 b: where to get the XP Pro installation disc

    Hello One of the laptops used by cheri Fiels Service Tec had his corrupt hard drive and should be formatted as it would not start, just kept looping through the sequence of boot time and time again... unfotunatly person knows if there is an installat