Hello! Help me please to the mission to decide. Hello! Help me please to the mission to decide.
Hello! Help me please to the mission to decide. It is difficult for me yet:)
Mission: Object includes 9 items (box1, box2...). Can I do so that when certain elements of the object approach to the scene, it is stopped (magnetic, takers) around the Center? And what is the function that I can use?
I use this code:
var ms: MouseSpeed = new MouseSpeed();
var xSpeed:Number = 0;
var ySpeed:Number = 0;
var friction: Number = 0.85;
var offsetX:Number = 0;
var offsetY: Number = 0;
object.buttonMode = true;
object.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler);
object.addEventListener (Event.ENTER_FRAME, throwobject);
park_mc. Height = stage.stageHeight * 3;
park_mc. Width = stage.stageWidth * 3;
function mouseDownHandler(e:MouseEvent):void
{
stage.addEventListener (Event.ENTER_FRAME, drag);
stage.addEventListener (MouseEvent.MOUSE_UP, mouseUpHandler);
offsetX = mouseX - object.x.
offsetY = mouseY - object.y;
}
function mouseUpHandler(e:MouseEvent):void
{
stage.removeEventListener (Event.ENTER_FRAME, drag);
stage.removeEventListener (MouseEvent.MOUSE_UP, mouseUpHandler);
xSpeed = ms.getXSpeed ();
ySpeed = ms.getYSpeed ();
}
function drag(e:Event):void
{
Object.x = mouseX - offsetX;
Object.y = mouseY - offsetY;
}
function throwobject(e:Event)
{
Object.x += xSpeed;
Object.y += ySpeed;
Object1.x = (object1.x - mouseX) / 16;
Object1.y = (object1.y - mouseY) / 16;
xSpeed * = friction;
ySpeed * = friction;
If (object.x > park_mc.width - object.width/9)
{
Object.x = park_mc.width - object.width/9;
xSpeed * = - 1;
}
if(Object.x < Object.Width/9)
{
Object.x = object.width/9;
xSpeed * = - 1;
}
If (object.y > park_mc.height - object.height/9)
{
Object.y = park_mc.height - object.height/9;
ySpeed * = - 1;
}
if(Object.y < Object.Height/9)
{
Object.y = object.height/9;
ySpeed * = - 1;
}
}
Thank you!
1 you should end your loop of throwobject when you drag the object and restart when the object is deleted.
2. have throwobject and drag call a new function where you browse through the children of the object seeking the proximity of the center of the stage. If a child is 'close' it reparenting so it is no longer affected by the movement of the object.
Tags: Adobe Animate
Similar Questions
-
Hello. I installed the latest update of Firefox and when I start a new tab page displays not now my google input line. I use Windows 10. Until the recent update (v4.1.01) each time I started a new tab the new page would show the google search entry line which is my default. Can help you to restore this feature? TKS
Hi, 41 of Firefox, you must use the add-on tab override (browser.newtab.url replacement), to make changes to the page tab.
Once installed, open the Add-ons (Ctrl + Shift + A) Manager > Extensions, and then look for the new tab override and click Options to set your preference.
Notice, if you want only the new tab to be the same as your home page, you can use the Add on new tab homepage instead.
You will then need to restart Firefox for all changes to take effect.
If your question is resolved by this or another answer, please take a minute to let us know. Thank you.
-
Hello. I want to change my country of the Jamaica, to the United States but the United States offers none as payment option. I just want to try the new Pokémon go app that is not available in Jamaica. Help, please
Unless you are in the USA, expect it to be available in Jamaica. People can not download content from iTunes Store from another country; This is why it is not an option for you.
(143448)
-
Hello
can someone help me please? I received a call from the CTIC Tech and they offered me an Anti Malver software which I paid 179 euros. I would like to ask you about it?
These phone calls, e-mails or popup messages will ALWAYS be a scam.
You have been scammed.
Based on your other posts, you aapear have called these criminals. You allow to access your computer?
Note: Please stop rather create several threads with the same question, answer in one of the many other threads.
-
Hello. I buy the Macbook Air Mid 2015... After the upgrade to El Cap internet speed slowed painfully. What should do? Help, please
When you see a beachball cursor or the slowness is particularly bad, note the exact time: hour, minute, second.
These must be run as administrator. If you have only one user account, you are the administrator.
Run the Console application in one of the following ways:
☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).
☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad and start typing the name.
The title of the Console window should be all Messages. If it isn't, select
SYSTEM LOG QUERIES ▹ all Messages
in the list of logs on the left. If you don't see this list, select
List of newspapers seen ▹ display
in the menu at the top of the screen bar.
Each message in the journal begins with the date and time when it was entered. Highlight date back to the time you noted above.
Select the messages entered since then until the end of the episode, or until they begin to repeat, whichever comes first.
Copy messages to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.
The journal contains a large amount of information, almost all this is useless to solve any particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.
Please don't dump blindly thousands of lines in the journal in this discussion.
Please do not post screenshots of log messages - text poster.
Some private information, such as your name, may appear in the log. Anonymize before posting.
When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.
If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.
-
Hello!! Recently, I have restored my iPhone 5 because IOS 9.2 does not work well. But now my iPhone does not recognize the SIM CARD.
I Don' t know what to do, help me please
You get an error message?
What did he say?
-
Hello, I forgot my security questions, I want to change but the need for an aid station. And I do not add a post before rescue. How can I add now? Please help me. TNX.
You can not and need to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(137646)
-
I went to the homepage of iis and they were no help, I know that iis 7 doesn't work with vista and server 2008, I would use localhost to debug a web site created by /Visual Studio 2008.
Hello
Welcome to Microsoft answersforum.The question you have posted is related to the area and would be better suited to the TechNet community.
Please visit the link below to find a community that will provide the best support.
http://social.technet.Microsoft.com/forums/en/category/windowsvistaitpro
Thank you and best regards,
Azam - Microsoft Support -
Hello, please help me. I use a power keyboard for my laptop. I see in the new keyboard is equipped with a num lock key is turned on. I can't use on it please help me disable it. I do not use a NumLock on. Thank you
You say that when you press the NUM LOCK key, the Numlock State does not change (if enabled to disabled and vice versa)? Have you tried to unplug the keyboard and by ensuring that the keyboard of the laptop does not have enabled Numlock? If so, turn it off on the laptop keyboard and reinsert the another keyboard and see if the problem is resolved.
If you do not need the Numlock key, it can be disabled at startup with the following procedure:http://www.technipages.com/enabledisable-numlock-at-login-or-startup.html. Once this is done, I don't think he's going to turn on or off and that they the keyboard will start in the off position. You will not be able to use the key yourself or another, but maybe the problem she is on (which is worse than it to be impossible to be turned on) will be resolved and I hope it will be enough for you.
If the key does not work and you want to be able to use it, the keyboard may be defective. Try the keyboard on another computer and see if you have the same problem. If so, the keyboard is defective and must be replaced.
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
New to Java development. Get an error with the Hello World program. Help, please
Hello everyone. I just started with Java and I would begin to develop applications for Blackberry. I'm trying the HelloWorld application, I found in the book of Apress beginning Blackberry development. Yesterday, I installed:
(1) jdk-1_5_0_22-windows-i586 - p.exe (32 bit)
(2) BlackBerry_JDE_5.0.0.exe
I have everything installed in the default location, what he said and this is the error I get when I try to launch my app:
Building HelloWorld
C:\Program Files (x 86) \Research In Motion\BlackBerry JDE quiet 5.0.0\bin\rapc.exe-codename = HelloWorld HelloWorld.rapc warnkey = 0 x 52424200; 0 x 52525400; ' 0 x 52435200 import ="... \Program files (x 86) \Research in Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar" C:\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldApp.java C:\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldMainScreen.java
I/o Error: CreateProcess: javac - 1.3 source-target 1.3 - g - O-d C:\Users\ADAMSK~1\AppData\Local\Temp\rapc_3d5cd53a.dir - bootclasspath "... \Program files (x 86) \Research in Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar"-classpath "...» "Error in \Program files (x 86) \Research In Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar" C:\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldApp.java C:\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldMainScreen.java = 2
Error while building projectI don't know why. Can someone help me please? I'm running Windows 7 Ultimate x 64.
Thank you
No, you set your ACCESS Windows path variable to include the location where the java compiler is installed, usually the directory "/ bin" where you installed java.
Mine is located here:
C:\Program Files\Java\jdk1.6.0_05\bin
Update the path:
Control Panel
System
Advanced tab
Click the "Environment Variables" button
Under "System Variables", look for the path and to update.
-
Hello! A few days ago, I, disabled Photoshop subscription (CC of Lightroom and Photoshop CC) Act in accordance with your instructions, I have not be enabled. Please help solve the problem?
Contact support - for the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache. If it fails to connect, try to use another browser.
Creative cloud support (all creative cloud customer service problems)
http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )
-
Hello!!! need help! need to know if the book of Jim Maivald on Adobe dreamweaver is included in my purchase of adobe creative cloud. Please inform. Thank you!!!
No, it isn't.
-
Hello, I bought a monthly license paid for indesign last night and I do not understand how to play with it? When I opened the window of creative cloud, they suggested me to buy indesign (but I bought it already...) Please, help me... This is our easy to understand for beginners like me at all
FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?
https://forums.Adobe.com/thread/1962238
Download/install the desktop application, connect and install applications subscription.
https://helpx.Adobe.com/creative-cloud/help/download-install-app.html
Creative cloud to desktop
https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html
Sign out, sign in | Creative office cloud app
http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html
Install, update, or uninstall applications
http://helpx.Adobe.com/creative-cloud/help/install-apps.html
-
Hello. I purchased a CS2 product and im having problems with activation. I have the key but my installation failed in the 'summary '. Please help thanks. This is what im seeing.
See my response in audition 3 error with installation
-
Hello, a graphic designer created my logo. I need to change the color from black to white and then make it bigger so I can add it to a T-shirt. I looked online and can't find a way to do it. Help, please
Guess that's your logo. His place of 1000px
Select each layer, and then type cmd - I or ctrl-I on the keyboard and that will reverse the color of the objects on the layer. Black is the
opposite of white
And then resizing the image size under Select image menu and place values expanded in the dialog box
as below.
That's all. It may be useful
Terri
Maybe you are looking for
-
Premium never applied to the Messenger
I got a bonus today. I restarted. Reinstalled. Registered. Pretty much done everything I could. The Messenger never gets applied premium status. No support appellant's group. Even if another Member of the Group call it. Ads remain visible even if my
-
Read xls file and display the data in the table.
Hello Try to read the data from an xls or csv file and fill the same data in the table. If I need to use the table to store the data from the file and display, hoping that someone could help. Thank you Hari
-
I received a text document that went into another language, how it translate to English?
I received a text document that went into another language. I don't know what language it is. How to get English, so that I can read it...? * original title - please help! *
-
I have a wireless network in my house and I would like to establish a fax with my camera HP Officejet wireless 6500 E710n. I downloaded all the drivers. I have a phone line for our broadband connection. The phone line was installed on the voicemail
-
Kindle Touch is Compatible with Windows Vista
Our new Kindle Touch is compatible with Windows Vista?