Question about flash CS5 working with TLF TextField & self document preloader

Hello everybod,
I am working on a project that document type of it is Flash CS5. I have an Document class that attached to my fla file.
in it i create a self document preloader like this :
Class Document :
package Codes
     import flash.display.Sprite;
     import flash.display.StageAlign;
     import flash.display.StageScaleMode;
     import flash.events.ProgressEvent;
     import flash.events.Event;
     public class MainDoc extends Sprite
          public function MainDoc ()
               // stage setting
               stage.showDefaultContextMenu = false;
               stage.align = StageAlign.TOP_LEFT;
               stage.scaleMode = StageScaleMode.NO_SCALE;
               // stage methods
               this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
               this.loaderInfo.addEventListener(Event.COMPLETE, completeHandler);
          private function progressHandler (e:ProgressEvent):void
          private function completeHandler (e:Event):void
it works true. but when i insert a TLF TextField, i get an error like this
TypeError: Error #1009: Cannot access a property or method of a null object reference.
     at Codes::MainDoc()
Please help me. i dont know what should i do & where is the problem.
I am waiting for a replay.
Thanx every body.
Mehran Hadidi
[email protected]

Hi Alan,
Thanks for the very speedy response!!
That worked, cheers.
Just for the record, if you are having a problem accessing your FlashVars (and you are using a TLFTextField in Flash CS5) and you are using external classes (i.e. you have a document class and not timeline code) you need to listen for the ADDED_TO_STAGE event before trying to access them.
For example ...
package
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.display.LoaderInfo;
    public class Main extends Sprite
        public function Main():void
            if (stage) init();
            else addEventListener(Event.ADDED_TO_STAGE, init);
        private function init(evt:Event = null):void
            removeEventListener(Event.ADDED_TO_STAGE, init);
            var params:Object = loaderInfo.parameters;
            if (parent != null && parent.parent != null) {
                params = parent.parent.loaderInfo.parameters;
            // You can now loop through the params to access your FlashVars
I hope this gets fixed soon. It seems like a big oversight.
Regards,
Adrian

Similar Messages

  • Question on how networking works with new Macbook Pro

    Hi,
    I have a question about how networking works with my new Macbook Pro. This is my first laptop so am new to mobile computing. I am about to configure it to replace my desktop which uses a wired DSL connection. Once I have my Macbook Pro configured to run off the DSL modem, what happens when I take this computer to a location that has ethernet? Will just plugging in the ethernet cable be enough to get on line? Or is there further configuration work that needs to be done?
    I used a Windows laptop from work and all I had to do was plug it in to a hotel ethernet cable to get on line. However, this laptop was never configured to run on my DSL network so I am not certain if that makes things more complicated.
    Thanks for your help!

    Hi
    Your MacBook Pro should just work when plugged into an ethernet connection.
    Just check something, Open Network Preferences, you can select it from the Airport icon in the menu bar.
    In the left-hand pane click on Ethernet and just check that it is set to configure using DHCP in the right-hand pane, that's it.
    So when you plug in the ethernet cable it will ask the router for an IP address and off you go.
    I assume that any system you plug into will use DHCP rather than static IP addresses. If it is a static IP address, you will need to manually configure the ethernet settings by inputting the IP address and subnet mask info plus DNS servers.
    Usually it is done with DHCP and you don't have to do a thing and likewise your home DSL is DHCP?
    If not then you will have to change your settings, make a 'Hotel' setting which you can use when in hotels and keep your 'Home' set-up for when you are at home. In the pull down menu select Edit Locations to add new ones.
    Phil
    Message was edited by: Philip Tyler

  • Hyperlink not working on TLF textfield with right align

    I have a strange problem with TLF textfield in flash cs5.5. Hyperlinks stop working if I set Text Align to "Right" both in the IDE and Through AS3 code. This works perfectly in Flash CS 5.0
    I really cant go back to CS 5.0, hence any suggestions on a workaround will help immensely.
    I found a similar issue on the forum with no answer.
    http://forums.adobe.com/message/3893357#3893357

    Here are the steps I have taken so far, none of them working:
    1.)  I have done a full reset and set the phone up as a new phone (no restore from icloud)
    2.)  I have downloaded the public release build from the developer forum, installed it, and set up as a new phone.
    3.)  I have done 1 and 2 above while restoring from icloud
    Not one of them has worked.  I am wondering if it isolated to the Verizon iphone 5?

  • Hi I have a question about shooting in Raw with my Canon EOS 6d. I'm in the process of learning photography and my goal was to start shooting in raw. I have Photoshop CS5. When I tried to edit my images in raw I received an error message stating, "The pho

    Hi I have a question about shooting in Raw with my Canon EOS 6d.
    I'm in the process of learning photography and my goal was to start shooting in raw.
    I have Photoshop CS5. When I tried to edit my images in raw I received an error message stating, "The photoshop camera raw plug-in did not recognize the format. If these files are from a camera, you may need to update your camera raw plug in."
    In researching the issue I read that to edit in raw you need a camera model requirement of at least 7.3 which only works with CS6. My version of CS5 is 6.0.0.205. Being new to all this I see that my options are to upgrade to CS6 or convert by using DNG converter and paying a monthly fee. Two things I know nothing about and don't know which is would be more beneficial.
    I'd appreciate any advise on which route to go and how upgrade and what it may cost. THANKS in advance!
    Heather

    In researching the issue I read that to edit in raw you need a camera model requirement of at least 7.3 which only works with CS6.
    That is correct. Your camera was first supported by Camera Raw 7.3. Camera Raw 7.3 will not work with CS5. You need CS6 or CC.
    Being new to all this I see that my options are to upgrade to CS6 or convert by using DNG converter and paying a monthly fee. Two things I know nothing about and don't know which is would be more beneficial.
    I'd appreciate any advise on which route to go and how upgrade and what it may cost.
    It all depends on your preferred workflow and your budget.
    Using the DNG converter is free. There is no monthly fee. You use the converter to convert all Raw files from the EOS 6D to DNGs then edit the DNGs in CS5. That's an extra step every time - every photo. Some people don't like the extra step. Others don't mind.
    Camera raw, DNG | Adobe Photoshop CC
    Or you can upgrade to CS6 (non-Cloud) and pay the upgrade fee
    Creative Suite 6
    Or join the Cloud and pay the monthly fee
    Or join the Photoshop Photography Program (US9.99/month) and get PS CC+LR

  • A few questions about how ZPM works.

    We have patch management (in ZCM 11.2.2), but honestly don't use it much. I have a few questions about how it works that might make me use it more, if I understand it more.
    If I deploy a patch (or a set of patches), it creates a bundle for that deployment. That bundle seems to include actions that deploy the actual patch bundles (correct?). Do I have to recreate a new deployment bundle every time I want to push a new patch? i.e. If I push a Java update, and a month later, a new one comes out, do I build out a new bundle with the new patch in it, or do I modify the old one?
    Once the patch is deployed, can I safely delete that deployment bundle, or should they just pile up?
    Is there a way to "auto-approve" patches? Lets say I always want a group of machines to have the latest Adobe Flash Player patches. Can I set up ZPM to automatically cache and push the latest patches for a specific product, or do I have to manually remediate each patch? (I'm thinking of how MS's WSUS does "auto-approval")
    I see most packages aren't cached in list, but occasionally, a patch is cached without me touching it. Why? Can I change what gets automatically cached?
    Thanks for any help/answers you can provide.
    -Adam

    Originally Posted by adrockk
    We have patch management (in ZCM 11.2.2), but honestly don't use it much. I have a few questions about how it works that might make me use it more, if I understand it more.
    If I deploy a patch (or a set of patches), it creates a bundle for that deployment. That bundle seems to include actions that deploy the actual patch bundles (correct?). Do I have to recreate a new deployment bundle every time I want to push a new patch? i.e. If I push a Java update, and a month later, a new one comes out, do I build out a new bundle with the new patch in it, or do I modify the old one?
    Once the patch is deployed, can I safely delete that deployment bundle, or should they just pile up?
    Is there a way to "auto-approve" patches? Lets say I always want a group of machines to have the latest Adobe Flash Player patches. Can I set up ZPM to automatically cache and push the latest patches for a specific product, or do I have to manually remediate each patch? (I'm thinking of how MS's WSUS does "auto-approval")
    I see most packages aren't cached in list, but occasionally, a patch is cached without me touching it. Why? Can I change what gets automatically cached?
    Thanks for any help/answers you can provide.
    -Adam
    For #1, (assuming you're not using baselines), you would check the new version of the patch (vulnerability) and do a new deployment.
    #2 - once you're satisified that the machines are deployed (or the best to your ability) you can delete the DEPLOYMENT package. It doesn't delete the actual vulnerability bundles to my knowledge. That's why it's a good idea to name your bundle deployments with something meaningful, IMO (and maybe include a nice desription).
    #3 - currently I don't believe this is possible. I know you can probably configure it to auto-download the patches, but not auto-deploy everything. Given the propensity for software to wreck other things (hello MS .NET patches), this is probably not a good idea. At least I'd never auto-download and auto-deploy any patches without testing them first, and certainly take my servers a little more cautiously than my workstations.
    #4 - I think you can configure what's cached, but I could be wrong.
    I know there's a lot of improvements coming in the pipeline, and it doesn't hurt to "vote" for your enhancements via the enhancement system (more work for Shaun--haha)
    --Kevin

  • Hi I have a small question about Flash Builder

    Hi,
    I am Chenchu Gottipati, one of the graduate students from Department of Mathematics, Florida Atlantic Univerisity, Boca Raton. I have a small question about Flash Builder student version. I am doing my research in Graph Theory and I am trying to implement some animation of graph using Flash. I was trying to download the software but the link was broken. Could you please help me about how to get around this issie.
    Here is the link provided.
    http://freeriatools.adobe.com/flex
    Regards,
    Chenchu Gottipati

    Thank you for your kind reply. But where can I get this serial number ? I was trying to register through the above link but it was broken. So I don't know how to communicate with Adobe customer service to get the free student version.
    Regards,
    Chenchu Gottipati

  • Flash player work with Safari, but not with Internet Explorer

    My flash player had a problem so I uninstalled it.  I had a problem downloading the player with Internet Explorer, so I successfully download it with Safari.  The player works fine with Safari, but I cannot get it to work with Internet Explorer 8.
    I used to have the Flash Player 10 Active X (10.1.85.3), which I had uninstalled.
    I now have the Flash Player 10 Plugin (10.1.85/3)
    The problem I had downloading the player with IE was that the "allow Active X" information bar never appeared and I was unable to see any download at all.
    How do I get flash to work with my Internet Explorer 8 (8.0.7600.16385)?

    This adobe web site worked easily for me, when I needed to install adobe flash JUST for IE8.
    http://get.adobe.com/flashplayer/otherversions/
    All you need to do is choose your OS in the top window, then in the bottom window choose "Adobe Flash Player 10.1 for Windows Internet Explorer", and voila, that is what adobe installs!! Give it a go. I had problems too, before I foud this. Diligent

  • I would like to buy an iPhone for my friend in Iceland.  Two questions: will the phone work with complete utility in Iceland, and if so, what should I do to confirgure it while in the USA so that it can have full utility in Iceland?

    I would like to buy an iPhone for my friend in Iceland.  Two questions: will the phone work with complete utility in Iceland, and if so, what should I do to confirgure it while in the USA so that it can have full utility in Iceland?

    Bad idea. There are no supported iPhone carriers in Iceland, thus some features may or may not work. Further, there will be no warranty or support for a US purchased iPhone in Iceland...your friend will be on their own. If you still want to go down this road, make sure you purchase an officially unlocked iPhone(GSM model) directly from Apple.

  • Will photoshop CS5 work with Lion

    I need to get a new photoshop, mine is out of date. Will Photoshop CS5 work with OS 10.7.2? Adobe doesn't include 10.7.2 in their tech specs.

    I have it and it runs fine on Lion.

  • Which flash player works with mac 10.5.8  intel

    Which flash player works with leopard 10.5.8 intel based

    This page will tell you which version you have and the latest version for your Mac & OS...
    http://kb2.adobe.com/cps/155/tn_15507.html
    4. Install Flash Player
    Important: Flash Player installation requires a browser restart. Bookmark this page, so that you can visit this page whenever required.
    Mac
    Download and install the latest Flash Player version.
    For any reason if your installation is not successful: 
    a. Uninstall the installation files using the Adobe Flash Player uninstaller.
    Note: Use only Adobe Flash Player uninstaller to uninstall Flash Player installation files.
    b. Reinstall the latest Flash Player version.
    Go to step 5 to check if you can access rich media content properly.

  • Dm4-1060us laptop SD Card Reader 5-in-1 question. Does it work with SDHC and SDXC memory cards?

    dm4-1060us laptop SD Card Reader 5-in-1 question. Does it work with SDHC and SDXC memory cards?

    This cart reader is a kind of multi card reader and you can use different cards with it. In my opinion every multi device should be used very, but very gently. I do not know what happened exactly in your case but maybe you have damaged something inside.
    Try to restart your notebook and use other SD card to check if everything works well. Please do it very gently and if you see something is wrong stop with inserting the card.
    I use 1 GB SD card on my A200 without any problems.
    In my opinion you should check notebook by technician.
    Bye and good luck!

  • Which Speedlite Flash will work with my Canon Rebel EOS T3 1100 D?

    Hi, I am new to the digital age and over 55 years old.  My husband bought me a Canon Rebel EOS T3 1100 D in July.   (I fought the "technological" upgrade until my old Canon film camera quit on me.)  I've been taking pictures since 1966, so I'm not new to photographing, just to our technological advances.
    I would so very much appreciate if anyone could help me with which Speedlite flashes will work with my specific Canon T3 Rebel 1100 D camera.  
    Thank you so much for your time. 
    Solved!
    Go to Solution.

    I've just received my 430EX II that I purchased for use with my Rebel T2i. The main reason I purchased the Canon product was....in 60 years of using Canon products I've never had a failure or a bad experience. I've been using the 430EX ll for a few days and I'm quite happy with the results. Far, far better than the built in flash. It's on sale now with free Fed X shipping. That's hard to beat.
    Best of luck with your new camera.
    Joe

  • Good morning. I've read in some blogs and forums that the verizon wireless works in Europe but my question is if it works with portugueses cards (like vodafone sim)?

    Good morning (at least here in Portugal)
    My question is that I want to buy the new Iphone 5C, but I want to use it here in Portugal. I was in the store menu looking for it and it appears that I have to stay with a network for two years, if not the price will increase significantly. I want to buy it online because the Iphone will only arrive in Portugal in December and probably it will be more expensive. I've read in some blogs and forums that the verizon wireless works in Europe but my question is if it works with portugueses cards (like vodafone sim)?
    Thank you very much for the attention.
    Daniela João.

    The Verizon iPhone 5 is sold as unlocked. You can buy it full retail and use it anywhere you want. However, you won't get LTE in Europe and you won't be eligible for warranty service unless you take the phone back to the U.S. You won't be able to buy one on a contract unless you can pass a U.S. credit check. The minimum monthly cost would be $59.99 plus tax. I assume that all of this information will be true of of the 5C as well.
    Wait and buy the phone in Portuagal.

  • CS5 work with Lion, CS4 and earlier versions do not!

    Does CS5 work with Lion because CS4 does not!

    Further information, I have downloaded FireFox 3.6 which I run via Terminal, this works correctly with all the IP addreses I wish to access.
    My LapTop has the same problem, I'll add 3.6 to that.
    regards,
    David.

  • Will CS5 work with Max OSX Snow Leopard, Lion, and Mountain Lion?

    Will CS5 work with Max OSX Snow Leopard, Lion, and Mountain Lion?

    Hi,
    You can check system requirement for CS5 in link : http://www.adobe.com/store/en_us/popup/software/creativesuite/mastercollection5/systemreqs .html
    Regards,
    Jatin Dembla

Maybe you are looking for

  • Illustrator CS5 drop shadow - blur not rendering correctly

    I just got a new computer and have installed Illustrator on it.  This is my first time using the program on this computer.  I created this file on my old computer in Illustrator.  When opening it today, in the newly installed version of CS5, the drop

  • Error "cannot access com.sun.java..."

    edit i mistyped in the topic name, i mean to say "com.sun.j3d..." I've set myself up using JCreator, installed j3d, j2sdk, and jdk. Tried a few test programs to make sure everything was working (a basic hello world and my chess game i created my juni

  • Bad photo color

    Why do my Photosmart Plus B210a photos come out orange, no matter what type of paper I use?

  • Is there webinars offered for PhotoShop or Indesign?

    Is there webinars offered for PhotoShop or Indesign?

  • The Ipod Touch wifi mystery

    Ok sometimes I catch the internet sometimes I don't. Sometimes it says I'm conneced and then Safari says I'm not. Is there a way to unlock the mystery Networks? Are there free networks via satellite(just a guess) I'd even be willing to pay for it but