Coordinate - problem of learning system

Hello

I created a sample project to epxlain my problem.

There are two paintings in the main application. OuterSpace canvas and canvas innerspace.

innerspace canvas has a Visual Component 'mainBox '.

and there is also a visual component in outerspace canvas named "overBox.

now I want the card user xis - x and of y - xis overBox to mainBox, so when the user will click re - arrange, overbox will completely cover the mainBox.

This is actually a problem of co-oridatane systems and I don't know how to map them into a single.

Here's the code.

The application file

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*">
     <mx:Script>
          <![CDATA[
               
                    private function arrange(event:MouseEvent):void{
                         
                         var point:Point = mainBox.localToGlobal(new Point());
                         overBox.x = point.x;
                         overBox.y = point.y;
                    }          
               
               
          ]]>
     </mx:Script>
     
     <mx:Canvas width="80%" height="80%" horizontalCenter="0" verticalCenter="0" id="outerSpace" backgroundColor="#A9A9A9">
          <mx:Canvas width="80%" height="80%" horizontalCenter="0" verticalCenter="0" id="innerSpace" backgroundColor="#8DB5FF">
               <ns1:Node horizontalCenter="0" verticalCenter="0" width="100" height="100" id="mainBox">
               </ns1:Node>
          </mx:Canvas>
          <ns1:Node x="21" y="10" id="overBox" width="100" height="100" backgroundColor="#FFA352">
          </ns1:Node>
     </mx:Canvas>
     <mx:Button label="Re-Arrange" click="arrange(event)" left="10" top="10"/>
</mx:Application>

Project is also attached.

Thank you

Just see below. But it won't work if you resize the view, because it is centered

private

function arrange(event:MouseEvent):void

{

Get mainbox coord local system, i.e. from innerSpace

var p1:Point = new Point (mainBox.x, mainBox.y);

Convert to global coord of innerSpace

var p2:Point = innerSpace.localToGlobal (p1);

Convert local coord - from outerSpace

var p3:Point = outerSpace.globalToLocal (p2);

overBox.x = p3.x;

overBox.y = p3.y;

}

Tags: Flex

Similar Questions

  • Satellite C40D-C - problems with the system

    I recently bought an a toshiba satellite C40D-C Series notebook PC as my old satellite - essentially - is dying. After you connect to the internet, I tried to download AVG Antivirus on my computer that I don't have - and never - trust McAfee anti-virus that comes with the computer. Every time downloaded AVG then restart my computer, the computer goes directly into the automatic repair system and doesn't let me do anything but to reset or restore. This has happened even with completely removed McAfee. I've been on AVG directly today (January 15), and they have to do remote set-up for me - with the same results. Yes, I'm aware that McAfee is a selfish cry of a system and refuses to acknowledge any other antivirus, but that this issue happens even with completely removed McAfee shows clearly that it is something that Toshiba has worked in the system. I can't even disable the automatic repair tool. I have to be stuck with a McAfee antivirus which, moreover, does not yet or is Toshiba will make an effort to help solve a problem they caused?

    Why this computer isn't allowing AVG Antivirus work? And why, after each attempt to download AVG, the computer goes to auto repair whenever I shut down or restart? Is this a problem with the system or something, Toshiba has done on purpose?

  • Problems in the system after using the iolo system mechanic

    I downloaded iolo System Mechanic a couple of weeks and since the first time I ran it, I was not able to use my computer at all.

    When I start it, it is stuck on a black screen with an arrow in the he or she asks for bootable media or is stuck on a screen that says windows is opening files.

    I tried to use a windows disk to fix it, but have had no luck.

    Has anyone else had similar problems?
    The only reason for which I already thought of iolo system mechanic is because I received an email from Toshiba on this subject.

    Wish they didn't sent me that!

    Never had this problem but it is not very difficult to solve the problems in your system.

    You can simply set the system back to the point of time at the beginning before you start running the free health check.

  • Qosmio G30 - problem after the system recovery procedure

    I Qosmio G30 - 148 who have Windows XP MCE, trying to download some system programs crashed and make automatic restart.

    I then used a RECOVERY CD to recover my system all and followed the instructions on the CD but when finished and restart the system, a famous blue screen telling me there is a problem in my system and windows must be restarted.

    When restarting in safe mode, it is a message telling me that the system is not fully installed. Please, rerun the Setup program.

    You could any body help me in this problem because it's a strange problem?

    Note: I tried to install Windows XP from external CD but the system did not have the hard drive.

    You are right. It's a really strange problem. I don't know if you use some external devices but before you start recovery procedure please remove all connected devices.
    The fact is that this recovery image is designed for this model of laptop and the specific hardware configuration. If the BSOD occurs after the installation of the image it takes little hardware related issue.

    I don't really have any other explanation. Problem is that no one here will be able to offer an accurate diagnosis, and we can only speculate what may be the problem.

    Try to do it again to the recovery facility, but if the problem persists I fear that you need professional help.

  • Hi I have the same problem that many system disable code is 86331623 on a hp paviliondv6-6135dx

    Hi I have the same problem that many system disable code is 86331623 on an hp pavilion dv6-6135dx

    @uprecious_58

    With this code it should automatically remove it.

    REO

  • OfficeJet pro 8620: officejet pro 8620, error: problem with ink system

    During the initialization of the printer, after that I inserted the ink cartridges, I get the error: "X-problem with ink system... I followed the directions: "lift the latch on the print carriage, reinstall the print head and then remove the cartridges and inspect leaks." Do not use cartridges that leaks. If the cartridges are OK, re - install. After you have reinstalled, turn the printer off and then back on. »

    Well it don't turn off the printer... I get another message: "the printer initialization and the ongoing calibration.» Do not put off the printer or turn off the power during this process. »

    I repeated this process on 6 or 7 times with the same result.

    I use "cartridges Setup" he claims.

    Help, please!

    Thanks in advance...!

    Johnny

    Hi @JohnnyLee,

    Welcome to the HP Forums!

    I understand that you found the error, the problem with ink on your HP Officejet pro 8620 system. I'm sorry to hear that, but happy to help!

    I recommend going through this guide, printers HP - "Problem with print head", "Printer failure", "Ink system failure", or "0 x." r "C2."... "Displays Message error.

    If the guide does not help, please call our hotline at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. Language-country selector.

    Good luck!

  • Anyone who has a problem with the system crashes when importing using the new interface to import

    Anyone who has a problem with the system crashes when importing using the new interface to import

    Can specify you what Adobe program you use so that we do that your post is in the right forum?

  • Latest optional updates cause problem with UEFI system

    I had to restore my system from a backup because after you apply these updates optional, my system stopped and said that there was a change not allowed in BIOS or UEFI drivers.

    KB2952664

    KB3035583 Get Windows 10

    KB3133977

    KB3137061

    KB3138901

    KB3139923

    Anyone had the same experience and can identify which of these is the cause of the problem.

    For the moment I do not apply these updates.

    Hello

    We wish to inform you that after you install the update 3133977 on a Windows 7 x 64 system which includes a main focus on the ASUS card, the system does not start, and it generates a Secure Boot error on the ASUS BIOS screen. This problem occurs because ASUS has helped the motherboard turn on the secure boot process, even if Windows 7 does not support this feature.

    To resolve this issue, go to the following ASUS support site to find out how to disable Secure Boot for Windows 7:

    Note the Secure Boot feature is supported in Windows 10. To learn more about the benefits of security of this feature, as well as on the way to upgrade Windows 7 to 10 of Windows, go to the following Windows site:

    For more information, you can consult the following link:

    https://support.Microsoft.com/en-us/KB/3133977

    It will be useful.

  • Bluetooth connection problem iPhone - audio system Nissan after upgrade iOS10

    After iOS10.0.2 iOS9 on iPhone upgrade, I got a cordially problem receive calls raise Nissan car audio.

    I can make a call without any problem. Bluetooth connection is stable. I can download address book e.t.c. But I can't receive a call. I see the incoming call on the radio shows. After pressing the button "answer" on the car Audio System, audio between iPhone and Audio streams car breaks down.

    But the cellular connection remains active. I need to rotate the audio output on the screen of the iPhone car for iPhone and back to the car. After that, I can continue my call via the car radio.

    Thanks in advance

    Hello StasV,

    Thank you for using communities Support from Apple. I know having a problem with calls on your iPhone in your car, it's not what you expect. The good news is that these steps will be useful for your problem of phone calls while using the bluetooth in your car. Go to settings > general > accessibility > routing of Audio calls and the value headset/Bluetooth Headset and retest your question.

    Audio routing call - the iPhone user Guide
    Help to connect your iPhone, iPad or iPod touch with your car radio

    See you soon!

  • HP ab125ax: have gambling problems and closing system

    Hi, I bought this laptop about a month ago and since then I have trobles with her, it stops automatically even when watching a TV show or something on this subject but the most important is his worst game performance serusly man I'm still not able to play nfs most wanted edition 2005 on it.it gets hanged in time not completely that I know not what is happening the system gets automatically stop the same thing happens when I play counterstrike source on it (this is also an older version) I don't know what it takes I already posted several times but never get an answer or help you please send someone to fix this thing up.i am really fed up with him if I wanted a performance like this that I wud have bought a lapyop 20 k cheaper that it so please help me.

    Hi @rkbaldola,

    Thank you for the update. That you have completed all the troubleshooting steps, from my previous post, and the problem persists, I would check for hardware failures. You also said that the laptop is hot on the side of the fan when it stops, I'm including HP laptops - reducing heat inside the laptop to prevent overheating step 6 to test hardware failures.  Please keep me updated.

  • Satellite L50D-B-15Z problem with cooling system

    Hi, I have a laptop about a year ago. And for 5 months, I have a problem with the fans. Out and the following message is displayed:

    WARNING: A problem with the cooling system has been detected. Please turn off the power immediately and return it for service.

    The strange thing is that the first time that is spent stopped working a week, then a month and finally stopped working until 3 months there now will not start.
    I have even the implied warranty of the product, but I didn't think to send because it takes virtually every week for classes. I can use it, but if I perform actions that require superior performance as playing the games or download several videos at the same time to start warming up, getting the message and if continuous closed finally down.
    What should I do and how can I solve the problem?

    Sorry if I do not quite understand. I do not speak English.

    There may be dust stuck in the heat sink.
    using compressed air to blow dust through the vent.

  • Re: BIOS version 3.30 Tecra A11/M11: problems with Ubuntu systems?

    I just got the updated BIOS version 3.30 on my Tecra A11/M11 invitation.
    I'm still under Win7 now, but plan to add a dual boot with Ubuntu when the next LTS strikes in April.

    Is anyone having problems with the new BIOS?
    Should I upgrade or leave intact 3.20?

    I don't find any evidence of trouble with 3,20.

    Why upgrade BIOS if everything is OK?

    In addition to as much as I know that Toshiba can't stand not the Linux operating system, and I doubt that the new BIOS would improve any Linux performance so, if you are satisfied with the version 3.20, stay with that

  • Problem of cooling system on my Satellite C660

    Hello

    Have a new Satellite C660 I used it for 2 months and he started to give me the following system warning

    It has detected a problem with the cooling system please pay immediately the computer and return it for service.

    So what could be the problem I imported the Zimbabwe, which means that it is difficult to return it for service

    In my opinion, it is not important what can be the problem. Important is that this must and should be solved by the authorized service provider. Warranty will cover all costs for replacement of equipment.

    I guess this can be problematic in your country, but I put t see any other solution for you.
    Where have you bought your laptop?

  • Satellite L500: WARNING: problem with cooling system message

    Dear Toshiba

    Some may perhaps explain to me how that happens.

    We have 2 x L500 computers laptops, one was bought and activated a day of July 2010 (Computer1)
    The other was purchased 1 day later the same store and activated the same day - 1 day later (machine 2)

    Yesterday machine 1 responded with the warning message, there is a problem with the cooling system - please turn the machine off and return it for service.

    Machine 2 responded today with the exact same message, just after turning on after 4 hours OFF... an unusual situation say you or are - this sort of built in: service to generate the functionality?
    I'm not convinced it's a stroke of luck and there is nothing wrong with a machine that I could see.

    Anyway to reset every machine has solved the problem, see how long it takes to return.
    As you may have guessed, two machines are out of warranty by a few months now.

    If any of you have a similar problem, would be happy to hear from you.

    Kind regards

    Ernie

    Hello

    One of my friends had the Satellite L500. As far as I know the laptop works pretty well.

    I do not know if this message was created because of a software problem, but the laptop should automatically stops down if the cooling modules would not work properly and the temperature would goes up to a higher level of m

    So I recommend watching the temp for the next time level and of course, you could get in touch with a Toshiba ASP in your country if notice plu temp or a hardware problem with the module cooling

  • Problems of the system restore on Satellite L500

    Recovery disc Toshiba product to retrieve the system on the new hard drive in Toshiba L500 PSLS3A - 04M 002.

    During recovery, Windows has complained of "Windows cannot verify the digital signature for this file" - file is LPCFilter.sys.

    Also when you set the drivers, Windows made the same complaint about the Realtek High Definition Audio driver and a filter driver Virtual WiFi (from Microsoft Corp!).

    After the restoration, if I start Windows normally, the Windows Startup Repair automatically starts with a title "your computer was unable to start. Startup Repair takes a while and then comes up with a message "Startup Repair cannot repair this computer automatically.

    If I press F8 at startup and choose the option "Disable Driver Signature Enforcement", Windows starts without any problem.

    I thought that it might help to an update of Windows, but when I click on the "Check For Updates" button I get a message "Windows Update cannot currently check for updates, because the service is not running." You may have to restart your computer. "When I look in the Services, I see that the service is running.

    I don't want to press F8 whenever I start and don't think it's a good idea to do it anyway and would like to be able to update Windows.

    I'd appreciate any help.

    You created this disc on your own or you are using the original disk from toshiba?
    Do you use it for the first time?

Maybe you are looking for