Program doesnt respont when i add canvas on enterFrame function

Hello all!
I have been making a simple aplication and i have a problem i cannot find the solution (neither why it is happening)
The thing i want to do is to dynamically add a canvas containing a button to the application and then i want the canvas to be moved from the left side of screen to the right.
So i have made the following code
And it works just fine.
The next step is instead of using the Canvas i use a custom canvas ..
here is the CustomCanvas.mxml component
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
     <mx:Button label="ccccButton" />
</mx:Canvas>
then i change the following code line
      var ccanvas:Canvas = new Canvas()  
          to
      var ccanvas:CustomCanvas = new CustomCanvas();
the result is that there is no canvas displayed at the screen...the program doesn't do anything....
the most weird thing is that if i do not have an onEnterFrame function and i just add my custom canvas to the init() method it is been displayed properly. Even if i have an onEnterFrame but without changing the customCanvas's x value it is been displayed properly. But the moment i write in the
onEnterFunction the code  ccanvas.x +=1 the program doesnt display anything.... But if i do that with the original  Canvas object it is all ok,,,
What is happening here? how i can i make a custom canvas object and then be able to move it in a onEnterFrame method?
Thank you!!!!!!
PS...what is the tags for putting code in?  i used the plain tag ..i hope it can be readable

Unfortunately I dont know how to put a break point at that class which I have not write.
I made a similar code example :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
     <mx:Script>
          <![CDATA[
               import mx.controls.Button;
               import mx.containers.Canvas;
     //          var testCanvas1:Canvas = new Canvas();
               var testCanvas1:CustomCanvas = new CustomCanvas()
               public function init():void{
                    testCanvas1.addChild(new Button());
                    addEventListener(Event.ENTER_FRAME,onEnterFrame);
                    addChild(testCanvas1);
               public function onEnterFrame(event:Event):void{
                    testCanvas1.x += 1;
          ]]>
     </mx:Script>
</mx:Application>
As far as i have tried when instead of canvas i put the custom cunvas the program does not run. So the next step i did; is to remove the
<mx:Button id="ccccButton"/ > from the custom canvas file . And by suprise it works...
i tried adding again differnet kinds of mxml component to the the custom  canvas file  and after i added something it stopped work.
But if i have a custom canvas and i add whatever i want to it to the main application with the customCanvas.addChild() method it works fine,,,,
is that observation of any help?

Similar Messages

  • Need to add my program to excute when windows welcome

    Hello everybody!
    I need to add my program to excute when windows startup. I want my program run same Windows Update when startup.
    I need windows welcome wait my program end and next to login user
    Thank everybody

    Use local group policy editor.

  • I cannot import my AVCHD files by using log and transfer. I can see all the files, but when I add the file to import que it doesnt work, the status is a red (!) and says that its no data. I have tried with different cards and different cardreaders, but it

    I cannot import my AVCHD files by using log and transfer. I can see all the files, but when I add the file to import que it doesnt work, the status is a red and says that its no data. I have tried with different cards and different cardreaders, but it is still the same. Why?!

    Please give us more specific information -
    What make/model camcorder are you using?
    Are you absolutely certain this is AVCHD video?  Tell us more about the video settings you used in the camcorder (eg, frame size, frame rate, quality level)
    Why are you attempting Log & Transfer from a card reader instead of from your camcorder?  Have you tried doing Log & Transfer from your camcorder?
    Are the SD cards straight from the camcorder, unaltered, or are you just using the cards as storage?
    Are you using FCE 4.0 or FCE 4.0.1?

  • Elements 11 program stops working when photo collage opened when 297 x 210 selected

    Adobe Photoshop elements 11 program stops working when photo collage opened when 297 x 210 selected>Running Windows 8.1

    Hi Jane
    There are sometimes problems calling up the template from the media database. Why not design your own? It is possible to make a collage manually in Expert Mode and its quite easy.
    Click File >> Open and select all of your photos
    That will add them to the project bin
    Then select File >> New >> Blank File
    Select background color White (or whatever you prefer) and add your width and height for your final image (set resolution 72 for web usage or 240 to 300 for printing) then click OK
    In the project bin click your first photo and drag it up into the main window on top of your new background.
    Click on the move tool and click in the center of the photo and drag to arrange it where you want on the background - you can hold down the shift key to maintain original proportions whilst dragging the corner handles of the bounding box to get the size you want.
    Do the same with the next photo (drag it up into the main window) and use the move tool to position it. Then continue with each image.
    Finally Click Layer >>Flatten image and save as jpeg. (Save as PSD if you want to preserve the layers for editing again)
    N.B. as you add images they get dropped in the center. So you need to use the move tool to drag them apart. Click in the middle of one and move it around, and then the others until you get them positioned as you want.
    When you click again with the move tool a bounding box appears around the image and you can drag out the corner handles to re-size your photos. Hold down the shift key when dragging the corner handle and that will maintain the proportions of the original.
    Finally click Layer >>Flatten Image and save your collage - you may then want to use the crop tool to cut away any surplus white canvas, and then re-save.

  • How do I insert additional clips into my video timeline in Elements 13?  When clicking 'add media' it added the clips at end of video rather than in their appropriate position.  Could not 'cut and paste'.

    How do I insert additional clips into my video timeline in Elements 13?  When clicking 'add media' it added the clips at end of video rather than in their appropriate position.  Could not 'cut and paste'.

    bhsleadership
    I am in the process of preparing to test a sample from your brand and model camera in my Premiere Elements 8.0/8.0.1 on Windows 7 64 bit. I will have the results probably tomorrow morning.
    For now I just want to put you through the drill that I do for anyone who says he/she is using Premiere Elements 8.0/8.0.1.
    1. Are you working from the 8.0/8.0.1 Update of the program?
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4653
    2. Do you have the automatic Background Rendering and AutoAnalyzer features turned OFF.
    For Background Rendering option. See Edit Menu/Preferences/General.
    For AutoAnalyzer option. Click on Organizer in the row below the blue active Organize header in order to open the Elements Organizer. In the Elements Organizer workspace, go to Edit Menu/Preferences/AutoAnalyzer Options and disable all the AutoAnalzyer options. To return to the Premiere Elements workspace from the Elements Organizer workspace, in the Elements Organizer workspace, go to File Menu/Exit.
    Is your computer optimized in spite of the fact that  you have a high end laptop? I presumed so but always go to verify, no pile ups of preview files, conformed video and audio files et al.
    Looking at the properties of your source media, I see:
    video compression = MPEG1
    audio compression = MPEG-Layer1 (.mp2)
    Frame Size = 640 x 480 (4:3)
    Pixel Aspect Ratio = 1.0
    Frame Rate = 30 progressive frames per second
    With properties like those you are sure to get a red line over that content since there is no project preset with that description.
    But, your choice of the default NTSC DV Standard would have been mine also.
    I am heading to try to get a quick look at the behavior of the sample video here in my Premiere Elements 8.0/8.0.1.
    To be continued.
    ATR

  • I am creating an I-Web webpage.  When I add pages, the only way to navigate throught the pages is with the menu bar on the left.  How do I navigate to each page on the actual website?

    I am creating a website using i-web.  When I add pages, they appear at the top of the webpage, but I cannot navigate to each page in the navigation bar.  I can only navigate in the menu bar located on the left side of the program.
    How do I navigate thru the website?

    You don't unfortunately, iWeb though great does not allow that funtion.
    If it is a deal breaker for you I would suggest SandVox or RapidWeaver.
    I personal like SandVox
    How ever my website is WordPress, you have to understand a little code, but a lot more freedom
    LearnFromLee
    I may receive some form of compensation, financial or otherwise, from my recommendation or link. <Edited by Host>

  • Duplicates appearing when user adds someone to 'to' field in Outlook 2010 calender invite

    Hi Everyone,
    I have a user that when they send calender invites, when they add people in the 'to' field they will appear multiple times. i.e the contact address, the full email address etc.
    We have re - imaged the PC, re created the users PST file, run outlook in online mode, Moved the users account to another DB, and still no progress, duplicates are still appearing
    See attached screenshot for example
    Has anyone had to deal with this problem before, if so how was it resolved, if it was ever resolved, Help would be greatly appreciated as we are scratching our heads in IT here

    Hi,
    As per the description, I understand that you'll have duplicate email addresses in the To... field when create calendar invites.
    In order to understand the issue more deeply, I would like to clarify the following questions:
    How did he/she "add people" in the To... field? Did he/she directly type email address or pick it from your address book?
    Will the duplicate happen right after adding people in the To... field or after sending the invites?
    Seems you've tried a lot on the machine side, I suggest we first try this on OWA (Outlook Web App) and see if issue persists. This will help to determine whether the issue is on the client side or the mailbox (server) side.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • When I add a phone-number, I can't define it as 'iPhone'.

    When I add a contact, and that person is also using iPhone, I can't define that.
    I can choose all kinds of things, like radio, fax, home, mobile,.. but not iPhone...
    This also means I can't use iMessage whit that person.
    How can I change this?

    Hi Blarman,
    The mail client that you are using may do this automatically. There is nothing build into Firefox that will automatically make those links. However there are default programs stored on the operating system that also do this.
    Troubleshooting steps to make sure it is not a plug in or saved settings
    * Start Firefox in Safe Mode to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • Lab View crashes when I add element to cluster

    Hi guys,
    My program is quite large, so I try to explain my core problem. When I add a new element in the cluster called "Summary" it obviously generates an error.
    But when I start to run the program, bearing in mind that the program should show me the occured errors, LabView 8.5 crashes.
    This cluster has about 160 elements,18 local variables,which are distrubuted in the whole program and its information is used in different SubVi's.
    It's strange that my other clusters react normally according to that problem and the program doesn't crash.
    What could the problem be?
    Cheers, Nobby

    Hi Nobby,
    what answer do you expect?
    All we know is that you named your cluster "Summary". We neither have a vi attached nor the cluster typedef... And you don't give any error description (apart from "it crashes")...
    All I can say is: probably you have some overuse of local variables
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • My time capsule doesnt work when its conneted direct cable modem, and it start working from netgear router

    I just bought a Airport Time Capsule, time capsule is connected direct from wan to cable modem (it doesnt work). when i connect it to lan port 1, it start working. normal process i know is from cable modem to wan port. 2nd i notice, network is on bridge mode. so my question is how do i make it to work from modem to wan port.

    What model is the modem? Is it a pure cable modem or a combined modem router?
    This maybe important as the current model TC does have issues with some of the popular cable modems.. SB6121 or 6141 being often the ones complained about here.
    If it is a pure cable modem (most will have just one ethernet port). Then power down the modem for 20min. This allows enough time for the MAC address of the first device connected to be lost at the ISP end so it is ready for a new router.
    The TC must be in dhcp and nat mode.
    Please factory reset the TC and start over.
    The Factory Reset universal
    Unplug your TC/AE. Hold in reset. and power the TC/AE back on..  all without releasing reset and keep holding in for about 10sec. The time is not important.. it is the front LED rapid flashing that indicates you are in factory mode.
    Release reset.
    If it doesn’t flash rapidly you have released reset at some point and try again.
    Be Gentle! Feel the switch click on. It has a positive feel..  add no more pressure after that.
    TC/AE will reboot after a couple of minutes with default factory settings and will wipe out previous configurations.
    No files are deleted on the hard disk.. No reset of the TC deletes files.. to do that you use erase from the airport utility.
    By default the TC is in router mode after a reset.
    Restart the modem.
    The power up the TC and run through the setup utility.
    The TC should then be accepted as the main router in the network.
    If this fails check the WAN ip address. If it is 10.x.x.x or some other private IP you did not turn off the cable modem for long enough.. Try again only this time leave it off longer. (Some ISP it is just 5min.. some 15.. some will require 60min or overnight).

  • Why is Site Slices pushed down when i add text?

    how come when i upload my site and when i add too much words
    it pulls the bottom away from the original layout. I can only fill
    the box half way of words and when i pass that it will move it
    down. Why does it do that?

    "camerapro" <[email protected]> wrote in
    message
    news:enf6cf$39t$[email protected]..
    > Revised Promblem. I have my site uplaoed to web and it
    is all sliced but
    > bottom
    > slice is pushed down. Everytime i go past a certain
    point with the text it
    > pushs down the bottom slice. What am i doing wrong.
    >
    Probably because you may have used a graphics program to
    write your html
    code for you - did you? Or did you use layout mode in
    Dreamweaver? I can't
    see a link to the problem page... so I'm assuming. What
    happens when you
    have a rigid table layout for example, is that whenever you
    add text to a
    cell, that cell expands and the adjoining cells will push
    your original
    design out the window.... this may help:
    http://apptools.com/rants/spans.php
    You may need to look at using nested
    tables.......
    Nadia
    Adobe® Community Expert : Dreamweaver
    Tutorials |SEO |Templates
    http://www.DreamweaverResources.com
    http://www.perrelink.com.au
    CSS Tutorials for Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/css.html

  • Anybody that I add to my bbm service doesn't seem to get any request to be added nor do I get one when they add me

    I need some help guys, I have a BB 8320 Vodafone which was from the UK and the person that I took it from unlocked the phone and passed it on to me now. I have a few issues with the BBM service. 
    I have recently activated my BBM service by choosing a particular plan that my carrier offers, and I have noticed that the edge now can be seen in uppercase which means the service has been activated and should work. But, anybody that I add to my bbm service doesn't seem to get any request to be added nor do I get one when they add me. I have been facing this problem with my BBM and I am not sure how to go about it. 
    I need a few clarifications first and foremost, when a BB 8320 phone is unlocked does it mean the phone has been unlocked so other carrier sim cards work or all the feature on the BB 8320 phone unlocked. Secondly, considering i'm in a situation like this, what should I be doing to resolve this issue at the earliest, do I go to a technical desk guy and ask them to re-install the Black Berry OS on to my phone all over again or do I just throw away this piece of **bleep** that BB has created? 
    And could anybody let me know doesn't BB have a universal software that let people put any sim card and work rather than have carrier specific software? Please need help really bad on this one!!
    I would really appreciate if some body can help me out in resolving this issue with your comments.
    Thanks much in advance who ever you may be! 

    It really doesnt work not e en on my bberry8350

  • My after effects keeps crashing when i add effects i think it is due to disk cach?? help!

    My after effects cs6 keeps crashing when i add effects but it is random.. for example i might add 3 adj layers with effects on each .. different effects then randomly when i add say turbulent displace a window will pop up saying after effects has crashed due to... [ turbulent displace ]! also when i start up after effects it says there is not enough disk cach even though my disk cach is empty and i allow over 300 gb for it!
    please help! mabey i need to configure after effects more or something but any advise with be greatly appreciated.
    COMP SPECS:
    processor: AMD FX(tm)- 6120 six core processor     3.50 GHz
    Insatlled memory (RAM) 10 Gb
    system type: 64 bit
    hp envy!
    windows 8
    i dont use any major programs while running after effects cs6  and i give it maximum piority for usage!
    only programs used while after effects is running:
    skype
    youtube (mabey)
    pandora (mabey)
    thankyou,
    Nathan

    Exact crash info:
    Working with your Operating System’s Tools
    Mylenium

  • When I add a video to my timeline, it only allows the audio, not the video. It is in MOV format.

    I am working on my first project with Elements Premiere, and when I add a video from my computer, it will only add it to the audio, not the movie section. All of my files are in MOV format. I am able to open the same file in Microsoft Movie Maker, just not in Elements Premiere.

    Which version of Quicktime do you have installed?
    MOV is a wrapper, what is inside YOUR wrapper - Exactly what is INSIDE the video you are editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • When I add a Disc Menu I get an error message: "Sorry, a serious problem occurred and Premiere needs to shut dow..."  I am using Premiere Elements 10 on a MacbookPro.  I have uninstalled and deactivated and reinstalled but still same error.

    When I add a Disc Menu I get an error message: "Sorry, a serious problem occurred and Premiere Elements needs to shut dow..."  I am using Premiere Elements 10 on a Apple MacbookPro.  I have uninstalled and deactivated and reinstalled but still get same error.

    cyclone
    What video card/graphics card does your Mac computer use? NVIDIA GeForce? If so, please read the description and solution for the Premiere Elements/NVIDIA GeForce issue in the Announcement on the matter at the top of this forum. Any questions or need clarification on that, please do
    not hesitate to ask.
    What specific disc menu theme or themes are associated with this program failure? What is the exact place where the problem hit..
    a. just clicking on Disc Menu header
    b. dragging Disc Menu from the display of themes into the Disc Menu area customization screen
    c. selecting your menu in the display of choices and then hitting Apply
    d. other
    Are you running Premiere Elements 10 from a User Account with Administrative Privileges?
    Is this a "it worked before but not now" or "it never worked before" type issue.
    On the Windows side of things, application of Run As Administrator as well as the User Account with Administrative Privileges has been know
    to resolve some of these issues. I am strictly an Elements Windows user. What is the Mac side of the story for Run As Administrator? At any
    rate, are your computer permissions in order?
    Just to cover all bases, do you have the latest version of QuickTime installed on your computer with Premiere Elements 10?
    Let us start here and then decide what next.
    Thank you.
    ATR

Maybe you are looking for

  • Dreamweaver setting wrong file type and creator codes

    First of all, I'm running Mac OS X 10.5.2 on an Intel-based Mac, with Dreamweaver CS3 9.0 build 3481. I have a site defined where I connect to my web server via FTP. On my server, I just upgraded my forum software to PHPBB 3.0, which created a new /f

  • Add an element to the list in run time

    There is an item in my form which is a list of values.It is getting populated based on a record group query. I want to let the user enter values at run time and add the values to the exiting list in the form and same should be added to the record gro

  • HOW CAN I CREATE THIS EFFECT????

    Does anyone know how create this awesome effect?? http://www.redpearlkitchen.com/losangeles/index.html email me please [email protected]

  • HT4759 When is ios8 available in Canada

    I Want to know when we will be getting ios8 in Canada.

  • Multiple selection in JTable

    Hi , The problem is to select multiple rows and columns in the JTable like that of a excel application and have the focus on the first column of the last row. for example if select cells from ( 1,1 ) to ( 4,4), after selection the focus should be in