Problem with the drawing of a new shape in Flex

Hello!

I am new to Flex and AS3 (don't laugh at me). I have a problem, try to draw a shape. The alert is triggered, but the form does not appear. Need help.

Code:

<? XML version = "1.0" encoding = "utf-8"? >

< mx:Application

' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute "creationComplete ="drawTrapecio ();"

>

< mx:Script >

<! [CDATA]

Import mx.graphics. *;

Import flash.display. *;

Import mx.controls.Alert;

public function drawTrapecio():Sub

{

Alert.Show ("test");

var trapecio:Shape = new Form;

Finally, I replace Sprite for the form, like this: var trapecio:Sprite = new Sprite, nothing helps.

trapecio.graphics.lineStyle (5, 0 x 000000);

trapecio.graphics.moveTo (100, 100);

trapecio.graphics.lineTo (200, 50);

trapecio.graphics.lineTo (200, 350);

trapecio.graphics.lineTo (50, 400);

ce .addChild (trapecio);

}

[]] >

< / mx:Script >

< / mx:Application >

I really appreciate any help you can give.

Madrid

What you can do is to examine each of the objects such as HBox. Then draw shapes inside. So that you can dragdrop using the handler for the dragdrop event. You have to have the label as a child of this HBox it self. If you enter the code let me know.

Tags: Flex

Similar Questions

  • Problem with the volume of a new 7 Slate

    I'll put up a new slate of 7 and I have a problem with the sound.  I have all the sliders to the max value, but any video or app plays at a very low volume on the builtin speakers. A trial has been with FIOS app that allows me to stream TV shows. I have to hold the Tablet so the speakers are right next to my ear to make the same concersations on the show and it's barely...

    Am I missing something?

    How to make your slate with audio files simply by using the application to play music?  And have you tried to play a trailer of the game of Google?  Type right on a movie title and play the trailer by typing on the > arrow.

    What if you use headphones?

    Do you have ear system sounds?  Go to settings > sounds > Touch seems to be there where there is a checkbox on the right whether Touch sounds are on or off.

    Speakers of slate are not all that, but they do not produce a sound that is strong enough to listen to the TV shows and movies.  If you can not enough volume of them with other applications such as the music plays, there may be a hardware problem.

    A few other suggestions... try to restart it.  And back to headphones, try inserting a headphone plug in all the way and disconnected.

    _
    As a contributor of top of page on the Forums of media consumer, HP, HP gives me access to the slate of 7 free of charge so I can better answer questions on the Forum.

  • Problems with the Java Extensions and new SDK 1.5

    Hello

    I had built a Java Extension with version 1.0 update modifing WidgetConfigImpl.java as PDF attached. And I was running properly.

    Now, with the 1.5 SDK don't work and Java not return a warning or an error.

    I have tried otherwise, generating a .jar and include it in the file ext with eclipse, but do not show the .jar in Add dialog, this same problem occurred at 1.0 and I solved adding that the Java plug-in with the attached PDF file.

    Y at - it new path by adding the extension modifing WidgetConfigImpl.java or something similar?

    Why anti-pop immediately following pushScreen in your code?  I don't even know what that would do, but there is a good chance that it will never show your screen.

    This does not work for the screen display?  Generally speaking, you would record your screen as a listener for an event and close the form this way, right?

    UiApplication.getUiApplication().invokeLater(new Runnable() {    public void run() {        try {            UiApplication.getUiApplication().pushScreen(_screen);        } catch (MediaException e) {             Dialog.alert("Error: " + e.getMessage());        }    }});
    
  • Problem with the touchpad in a new Ideapad G70-70

    I bought this computer a few days ago and that I am really satisfied, but only with a problem that is engine drives me crazy, I have a big square thingy that aims to move the mouse - down of those, I now have two funds, if I move my finger on the big square at determined points, it acts like I clicked on the on the bottom left - he heppens much too frequently and can ruin a stealth mission in games, mark the huge amounts of text (followed by a deletion of the text)

    (Sorry for the bad paint - my mouse was not available to me at the moment)

    the red spot is the place where it heppends

    * edit - I still warranty

    Hi tomer8009,

    The only suggestion I can make is to go into the properties of the mouse, and playing with the sensitivity settings.

    I can give you a phone number for support.

  • Problems with the addition of a new row in my table

    Im a beginner of the ADF, but I thought it would be easy to make basic CRUD stuff in the ADF. IM now even when I try to add a new line at my table.

    Seems that the primary key id is not set correctly.

    could someone help?

    ADF can do for you is triggering auto incrementing ID using an existing sequence.

    Set you this up in the entity primary key attribute: Expression as value type and enter the following information:

    (new oracle.jbo.server.SequenceImpl ("LAYOUT_SEQ",

    (object.getDBTransaction ()) .getSequenceNumber () .bigDecimalValue)

    LAYOUT_SEQ is the sequence of the DB

    Marc

  • Problem with the license on a new RoboHelp 7 installation on a 64-bit XP system

    I say new because this machine had never before installed HR. RH7 actually works on Windows XP Professional 64-bit systems?

    Thanks for your quick response. Has saved me a lot of wasted time trying to get the thing to work.

    . MW

  • HPL2208w of the problems with the new laptop.

    Hello

    I have a 22-inch HPL2208w monitor, which seems to play on my new laptop Dell upward. The laptop has only a HDMI port, so I connect the monitor's vga cable to the Dell via an adapter.

    The display shows for a few minutes and requires only the range (I guess resolution) be changed to 1680 x 1650. For some reason I can't change the setting of the laptop to that. When I do not change the resolution (only if the monitor is unique and not dual output) the warning message remains on the screen and the screen is not at its best (wise clarity).

    Series Dell Win 7 64 bit, but the monitor was working on my previous Dell with the same version of Windows (with a VGA connection).

    Kind regards

    HA9005

    Hello HA9005,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I understand that you are having problems with the resolution on the HP L2208w 22 '' monitor and a Dell laptop. Unfortunately, as the monitor don't has no options that you can change in what concerns the resolution (it is passed by the laptop), I suggest that you try the Dell Forums for an answer.

    I know maybe it's not the answer you are looking for, but at least you know where to look for the answer now. Thanks for posting on the HP Forums. Have a great day!

  • Problem with the shape tween

    Good day everyone, I have some problems with the shape tween and I need your help and your explanations. The links below: first link is an example of how this drawing must be animated, and the second is my attempt failed. So, why these traits change their shape this way, not as in the first link? Is there a possible way to fix it? I tried to add a few shapehints, but flash has not understood what I wanted to do, boards are simply were red.

    https://www.dropbox.com/s/zf1tk8xi2mp6e31/tradigital_2.fla

    https://www.dropbox.com/s/09fsoq30xjz4vvq/tradigital_fail.fla

    separate your designs so that they are forms.

  • Anyone having problems with the new iPhone LTE connection 7 on Verizon?

    I am now on my iPhone second 7 with Verizon. I had four phones for me and my family. I have now had issues where I have no signal in the same areas where my signal allows to be strong. I can't solve the problem with the activation/deactivation of the airplane and then mode again in normal mode. My phone will rest with no signal for 5 minutes, then going to LTE with three bars. I also had the problem where I had only 1 x signal, while my son standing right next to me has LTE. And he had the same questions, where I'm on LTE and it gets no signal. I use to have LTE where I live and work all the time, now it's spotty at best. Apple has replaced me and my sons iPhones but not luck. Still do. Any ideas or an any other suffering?

    (1) go to settings/cell phone/cellular data Options/enable LTE and select ONLY the DATA. This seems to solve the problem (as a temporary solution) for most of the people affected by this problem. The bad part is your request might not be as clear (since they cannot use the highest LTE signals) and you can make calls and data at the same time. But it does not solve the issue.

    (2) there are rumors (but you didn't hear that from me that we only are not supposed to discuss beta software program Apple in this forum) that the new version of Apple Beta for iOS (which also includes an update of the software carrier Verizon to 26.0) seems to solve this problem. So, there's a light at the end of the tunnel.

  • I encountered the problem with the last iOS 9.3.2 update I can't receive call from people, I can call any body, but when l'm calling people any body can ring me just now, I thing the problem where new soft

    I encountered the problem with the last iOS 9.3.2 update I can't receive call from people, but I can call any body, but when l called people any body can ring me only at this time, I think that the problem of the new update. can u check this and answer my question.

    and my phone

    iPhone 6plus

    You see a Crescent Moon at the top of the screen icon? If Yes, disable does not bother to: settings - do not disturb = Off.

  • Hello! The new version of Firefox, I have a problem with the opening of the site VKontakte. The browser displays the following error message: "Firefox has determined that s.

    Hello!
    The new version of Firefox, I have a problem with the opening of the site VKontakte. The browser displays the following error message: "Firefox has determined that the server redirects the request for this address in a way that it will never end." How to solve this problem? Please excuse me for my English.
    Sincerely, Vsevolod.

    This can be caused by corrupted cookies or cookies that are not sent or otherwise blocked.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    See also:

  • Satellite U500-17F: problems with the new HARD drive

    Hi everyone, I got some troubleshooting with my Satellite and a new drive, I bought recently, because that is already damaged because of too many bad sectors. One is a Western Digital Scorpio Black 320 Bg (WD3200BEKT model number). It should be a fast reader but is not with my Satellite.

    After having mounted the drive in the laptop, I ran a new installation (with full disk format} Windows 7 (64 bit) with all the necessary drivers (that I downloaded directly from the Page of Support Toshiba.)

    The problem is that the laptop needs a lot of time to start and also to disable, and whenever I try to run an application or start a program (for example Firefox, or just a few windows applications), the laptop freezes for about 30 to 60 seconds, the drive no longer works (you can hear leaders put in position 'parking' and the HDD LED control is constant) ", no lights flashing).

    It seems that the drive (during this 30-60 seconds) in something as a stand-by mode. I ran a few Western Digital diagnostic tools and the car looks all right to 100%. It works also without any problems in the other laptop (HP Pavilion DV6500). Could this be a problem with the controller (Intel ICH9M - E ATA AHCI controller) driver?

    Any suggestion?
    Thanx

    Hello

    You use the latest version of the BIOS?
    Please check if you need a BIOS update. Of course I read in a few discussions on the similar question of Win XP you use Win 7 but its value to check the update of the BIOS and U500 series.

    In addition, I recommend check you the power of Windows 7 options.
    Disable in the power profile that you use power saving HDD.

    Just a question:
    You use the option AHCI in the BIOS?
    As far as I know it of possible to use either a compatible SATA AHCI mode.
    AHCI must be used because this option would use full SATA performance.

  • Since 10.11 I have not been able to download via the usb port of my Davis Vantage weather station. No solution of tech Davis on the issue even with the new recorder of events in the resort. Is there a problem with the usb?

    Since 10.11 I have not been able to download via the usb port of my Davis Vantage weather station. No solution of tech Davis on the issue even with the new recorder of events in the resort. Is there a problem with the usb?

    What Mac? (details)

  • Problem with the new installation of Windows XP on the Satellite A100-259

    Hi all!

    I have a problem with the fresh install WIN XP on Satellite A100-259 (PSAA2E).
    I already deleted the partition, formatted (NTFS) and tried to reinstall from recovery disk that initially provided with the laptop. But whenever I try to install a problem is detected (for the most part it's 'page in the nonpaged area failure').

    I also tried to install the OS directly from MS Windows XP Home Edition SP2 CD - the same problem.
    I checked the partition using PQ Magic and discovered that there are ' partition table error #110 ".» So, what I did:

    (1) delete partition-> create new partition-> format (NTFS)-> reinstall from recovery disk-> has not yet;
    (2) partition delete-> install WinXP CD original by create and format partition option-> has not yet;
    (3) delete the partition (using the magic of pq)-> create partition (using the magic of pq)-> format NTFS partition for win xp option-> check partition-OK no problems don't-> installation of original win XP CD-installation without changes-> option failed even once
    (4) delete the partition (pq magic)-> create partition (pq magic)-> format NTFS partition for win xp option-> check partition-OK, no problem-> installation of the recovery disc-> has not yet

    Whenever a different error is detected, so I can't identify the problem. I don't know what to do. Does anyone have any ideas?

    Hello

    Seems that there are some problems with the standards of the partitions.
    A friend of mine has tried to install the OS on the recovery CD on the laptop that has been formatted with Partitions Magic 8 and the installation failed.
    It was very strange

    Finally, we have formatted the whole HARD drive using the CD original Windows XP Pro.
    We did not remove the partition but simply kicked this CD and after the configuration process spent, we formatted the whole HARD disk and install XP without creating all the partitions.

  • Pavilion Elite HPE-170 t: problem with the new HP DH16D5S DVD ROM drive

    My office is a HP Pavilion Elite HPE-170 t.  I recently upgraded from Windows 7 to Windows 10.  I have two HP optical dirives, one is a writer, and the other is just a DVD ROM  Both have always worked perfectly with Windows 7.  After you have installed Windows 10 continuous burner work very well works correctly with autoplay.  However, the DVD - ROM, HP DH16D5S, immediately began using autoplay.  Actually the drive was not yet recognized as a drive when you view the drives in the file Explorer.  Finally, it would seem, sometimes taking also longer than 5 minutes or more before doing so and then would work very well.  I tried different types of media, including music CD, DVD video and DVD software with the same results.  I assumed that it was a problem with the drive, maybe a bad capacitor, etc., which was originally not start correctly.  So I ordered a new DH160D5S, but which seems to have been a waste of time and money, because it does exactly the same thing as the original.  I even changed the cables autour between it and the burner, but it made no difference.  The burner still works fine but not DVD ROM.  I tried to find a more recent driver for it, but had no chance.  I found on a Dell website for this drive which was an update of the firmware for Windows Vista and Windows 7, but not for Windows 10.  I advanced and downloaded, but when I tried to run, I got the message: "your system does not meet the minimum requirements for this update.  Update has been canceled. »

    I want to try a different brand of DVD ROM, but would have to buy one without knowing if it would help.

    Any help will be appreciated.

    Since I posted this message I discovered that there is a driver problem with this DVD ROM.  There's no driver available yet to make the drive compatible with Windows 10.  Since then, I returned the drive and replaced by another brand that is compatible with Windows 10.

Maybe you are looking for

  • Lost a phone, Got new, but not of old photos/files

    A few days ago, I lost my phone here in Paris. I didn't have much choice but to get a new phone and SIM here in France. The old phone has not been saved on the cloud, since I have backup directly to my computer. I have not saved since I left 3 weeks

  • Why need password when connecting Thunderbird not actually?

    Apparently, once a user is connected to the TB using the password, it is necessary once againto access the passwords stored (via Tools\Options\Security). BUT I FOUND - when the initial TB connection box, if you click Cancel insteadgive the password,

  • Satellite Pro L10: Enter key malunction

    Hello. On my Satellite Pro L10, the Enter key does not work. I tested it in the BIOS and it works but it does not work in Windows XP. If someone from the software fixes or advice I would be very grateful

  • Webcam never worked on Pavilion DV7-6052ea

    Hi, I've had a Pavilion dv7-6052ea for a few months now and the built in 'Truevision HD' webcam never worked so I thought I should do something!  OS is Windows 7 64 bit. When I open Youcam3, I get the warning message, next.  Warning - no webcam detec

  • Problem with AccelerometerSt.exe

    My computer is an HP 8710w with Windows XP Service Pack 3. On startup, I get the following messages: AccelerometerSt.exe - cannot find the startaddress Cannot find the startaddress for procedure _except_handler4_common inte the DLL-file msvcrt.dll. C