Problem with Flash CS5

Hi there,
I got a problem with my Flash IDE. When unticked "Automatically declare stage instance" for AS3 programming, I encounter an problem with my TLFTextField, debugger fire an Error #1009: Cannot access a property or method of a null object reference.
The object is very basic, containing two TLFTextField called respectively title and info, my as3 class is very basic as well:
package fr.lcclub.bubbles
    import fl.text.TLFTextField;
    import flash.display.Sprite;
    public class FlyInfo extends Sprite
        public var title:TLFTextField;
        public var info:TLFTextField;
Let me know if I am doing something wrong but as it is very basic I don't really see what can be misunderstood.
Thanks for your help,
Regards
Sylvain Lecoy

Ether-x,
I have used your example, and built a FLA file that uses it. There is a trick that isn't so obvious. When you make a document class, it gets instantiated before the objects on the stage. So, in the constructor, I added an eventListener for Event.ADDED_TO_STAGE for one of the TLF objects. Once that gets fired, you can use it as you would normally. I've uploaded my example here:
http://dl.dropbox.com/u/9110597/Ether-x.zip
Let me know if that doesn't answer your question.

Similar Messages

  • Major problems with Flash CS5

    Hello,
    I work with a big FLA, more than 400 MB, although compiled SWF is just measly 2.5 MB or so. Recently I've reached a dead end with my project, because flash eats up to something like 1.2 GB RAM and pretty much stops performing: wouldn't let me add more items to the library and keeps throwing that "low memory" message, also keeps crashing numerous times just after SWF gets compiled with "test movie". Most of the space is used by imported to the library SWF files wich automatically generate sequence of bitmap files for every frame which takes all that memory obviously. This is a huge problem and I don't know how to solve it. Is there any solution for this kind of situation?

    Not sure if I'm understanding you correctly, but did you say you were importing SWF's to the library?  Would it be possible to load the swf's externally instead using actionscript, for example create a movie clip the size of the swf file, then use the getURL function and place the name of the swf in the input field so it would read getURL("myswf");
    NOTE: it would be easiest to create a copy of all the swf files you will be using and just dump them in the same folder as your current fla.
    Been a while since I've loaded swfs like this so the AS2 syntax might be a bit off.  if worst comes to worst use the script assist to find the exact syntax used for this kind of thing.  Hope this helps.

  • Problems with Flash thumbnail gallery

    Hi there,
    I am an artist trying to remake my website...I have a picture of a window on my homepage. The window is a movie. When clicked on, the window lights turn on and a grid of thumbnail pics appear. Each thumbnail is a movie clip. When a thumbnail is clicked on, the movie plays and a larger image appears over the window. The problem is, the window is still active underneath the large image, so if I click on the large image, I am really clicking on the window movie clip underneath, and the thumbnail grid disappears-starting the window movie clip over. How do I make the window clip inactive after it is initially clicked?
    Also, I would like the larger images to end their movie clips after another thumbnail is clicked, so that there aren't large images piled up on top of each other.
    Is there anyone that can help?
    Thanks in advance!!

    Hi again,
    First off, thanks so much for your continued help...
    So, I changed my design a little and format. Now I'm using as3, with Flash CS5.
    My thumbnail gallery is still based on the same concept, I want a movie clip of a window to be clicked on that reveals a thumb grid, but now the thumbnail gallery should appear over the window, and the large portfolio images appear in the blank space to the right. I followed a tutorial for the gallery, here's my code on the main timeline:
    import flash.events.MouseEvent;
    btn1.addEventListener(MouseEvent.CLICK, GetFirstImage)
    function GetFirstImage (evt:MouseEvent) {
              gotoAndStop("pic1")
    import flash.events.MouseEvent;
    btn2.addEventListener(MouseEvent.CLICK, GetSecondImage)
    function GetSecondImage (evt:MouseEvent) {
              gotoAndStop("pic2")
    import flash.events.MouseEvent;
    btn3.addEventListener(MouseEvent.CLICK, GetThirdImage)
    function GetThirdImage (evt:MouseEvent) {
              gotoAndStop("pic3")
    But now I don't know how to go about adding in the initial movie clip of the window (which when clicked should light up and fade into the thumbnail grid) Right now I just have the gallery set up. How do I set up a movie that contains my gallery?
    Sorry if the question is redundant, but as you know, I'm new to actionscript.
    Thanks! 

  • How to publish iPhone Apps with Flash CS5 for beginners

    After many trial/errors and with lots of support from this site, I've decided to start building some tutorials to help people get into the packager. This is the first one and, now I'll work on a usual erros handle tutorial.
    Any comments and/or critics are welcome.
    http://www.chrisid.com/blog/2010/10/how-to-publish-iphone-app-with-flash-cs5-for-beginners /
    cheers,
    Chris.

    It helped me a lot, exept I hav this little problem ..
    I can't select the .p12 file .. it's disabled..

  • Open a CS3 fla with Flash CS5

    I'm not sure this is the right forum, so if the admin want to put this tread in the right place, please, do it!
    I'm going to buy a site template provided with fla source, but it is developed in CS3.
    Do you know if there are same problem opening and modifing this kind of fla with Flash CS5?
    Thanks in advance.

    there is no problem opening fla files, made with earlier versions of flash pro, in later flash pro versions (except for as2 containing files and flash pro after cs6).
    so, you're ok.
    except, and this is an excerpt from a book i wrote (Flash Game Development: In a Social, Mobile and 3D World),
    Spreading code across more than one frame of a timeline and especially in more than one timeline is a time-wasting mess and strongly discouraged. Anyone who has ever worked on a Flash file with significant bits of code spread over more than one timeline more than a few weeks after creating that code understands the incredible amount of time that can be wasted looking for pertinent code.
    The worst offenders that I have seen (and I have seen hundreds of problematic Flash projects), in the highly competitive worst Flash coding derby, are templates sold by websites like http://www.entheosweb.com/. Do not be fooled into thinking you can get a head-start on a project by starting with a web template offered for sale. There may be some well-coded templates sold online but I have never seen one.

  • Problem with flash on IE11 after using adobe cleaner

    Problem with flash on IE11 after using adobe cleaner to remove a trial version of photoshop because there was not any entry on add/remove applications in windows 8.1
    Its to frustrating to reinstall everything. I tried everything from your support page with no luck…

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • Problem with flash player in firefox 12

    Problem with flash 11.3 (beta 1,2) in firefox 12. Works in all other browser.
    Screenshots
    http://i.imgur.com/OZXvQ.png
    http://i.imgur.com/VwUzk.png
    http://i.imgur.com/XbXgV.png
    http://i.imgur.com/dOT3w.png
    http://i.imgur.com/aGgg8.png
    Win 7 Ultimate SP1
    Please fix

    Hello
    it is all working for me.
    http://support.mozilla.org/en-US/kb/Basic%20Troubleshooting
    Please try point 4,6 and 8
    Win 7 Ultimate x64 SP1
    Firefox 12.0b6
    Flash Player 11.3 beta 1 & 2

  • Splash Screen for Android with Flash CS5.5

    How can I make a SplashScreen with Flash CS5.5 or just with AIR/AS3 codes. I need it while the App/Game is loading...
    I know that it's possible with Flex 4.5 as:
    <?xml version="1.0" encoding="utf-8"?>
    <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                              xmlns:s="library://ns.adobe.com/flex/spark"
                              firstView="views.HomeView"
                              splashScreenImage="@Embed('splashscreen.png')" />
    http://workflowflash.com/98437/air-for-android-splash-screen-with-flex-4-5.php
    But I want to do it without Flex. So can I ?
    Thank you

    i'm not sure if this is necessary anymore, but i took the advise of another user here
    http://forums.adobe.com/thread/764981
    the key difference is, the user stated a preloading swf needed to embed the image in order to display before the whole apk is loaded.
    Seems to be working for me anyway

  • Problem with ID CS5 to epub

    Dear Adobe
    I have the following problem with Indesign CS5.
    After placing correctly my pdf doc into ID CS5 and exporting it for epub, the exported epub file is generated with only small size. I mean when i opened the epub file with Adobe digital edition, i can not maximums the size of the doc. I think the problem is that ID CS5 is added a page number for only the first page in the right bottom of the first page only. This will makes the doc to be displayed with maximum only by adding an extra blank page to the right of each generated page which contains only a page number, so that I can not change the display size in Adobe digital edition. However, Adobe digital edition is working well for other e-books.
    How can I remove the page number on the first page and make the epub file to be displayed with normal size.
    best regards
    thaar al_taiey

    The InDesign forum is here:
    http://forums.adobe.com/community/indesign/indesign_general
    This forum is for problems with the forum itself.
    Good luck.

  • Problem with ID CS5 to epub - Please Help

    Dear Adobe
    I have the following problem with Indesign CS5.
    After placing correctly my pdf doc into ID CS5 and everything is OK, I exported it for epub, the exported epub file is generated with only small page size. I mean when i opened the epub file with Adobe digital edition, i can not maximums the size of the doc. I think the problem is the ID CS5 is added a blank page in the right of each page. The blank page contains only a page number for only the first page in the right bottom of the first page only. This will makes two pages to be displayed and tends to reduce the size of original page and the epub-doc to be displayed with maximum size only by adding an extra blank page to the right of each generated page which contains only a page number.
    How can I remove the page number on the first added page and make the epub file to be displayed with normal size.
    best regards
    thaar al_taiey
    Message was edited by: thaar_altaiey

    can anyone help

  • I have problem with Flash Player. Full screen doesn't work correctly. Turning off hardware acelleration helps but I want this option to work.

    Problem exist only on YouTube. When i want get full screen, I have black screen with audio. If I click few times full screen button it helps, but I want to go to full screen by one click.
    If i turn off hardware acceleration everything is ok but vids looks terrible.
    I have this problem with Flash Player 10. No 9 works good, but some websites wants no. 10

    Generaly FP works, but problem is that i must press few times full screen button. Now i have turn off hardware accelleration, but movies are quite bad.
    I have already installed newest graphic drivers but it didn't help.
    Everything was good unless Flash Player and Mozilla notificated that update is necessary :<

  • Problems with flash Player

    So I'm having a problem with flash player, and was wondering if anyone has experienced the same thing, or might be able to help.
    - Upgraded 2 computers to snow leopard, macbook pro laptop, and mac Pro tower (intel proc).
    - Laptop has no problems, everything renders fine, and without any difficulty.
    - Mac Pro doesn't display any dynamic data, text fields show up blank, some flash player controls don't work, brightcove player won't load completely... things are just not working right.
    - Main browser is Safari, but same problem exists in Camino, Firefox, etc...
    - I've had Safari Stand installed, but have since removed it.
    - I've removed GROWL notifications completely
    - I've got debug and developer menus turned on (but have that with the laptop also.)
    Please see the screenshot attached. This graph should have text data on it showing the x/y axis, the key, as well as data when you mouse over each block, but doesn't show anything.
    The second screen shot shows a brightcove player from our website... There should have full controls at the bottom, and nothing shows up. If I right-click, and go to 'view full screen', I can't then get out of full screen by clicking escape key on the keyboard, I have to use any player controls, or right-click again, and hit 'exit full screen'.
    Anyone have any suggestions? It's something to do with my computer, rather than snow leopard, because flash works fine on my laptop, but not on the desktop. Any help is really appreciated !

    Hi!
    I reached your post because I was having the exact same issues as you and I found a fix that worked for me! The problem is a font issue: I logged in with the guest account that had no users font installed and flash was working fine, so I logged back into my account and moved all the fonts in my 'User>Library>Fonts' folder in a folder in the desktop. Then I closed and reopened Safari and Flash was working!
    In the end the problem was with a version of Arial that I had in my users' font folder: I deleted just that, put my users' font back in the folder and the problem disappeared.
    I hope it hepls!
    best
    nicola

  • Problems with Flash Video

    OK - I have had intermittent problems with Flash video, basically it gets choppy, usually after about 20 minutes - half an hour of watching - recently this problem has gotten worse - coinciding with a recent system update perhaps? - it's more or less anytime I stream something, and it happens on all browsers, even when the movie has clearly downloaded and is buffered way in advance of the playhead.
    On 2 occasions recently leaving the movie to play just to see what happens has led to a kernel panic.
    I've heard alot about Flash video generally being a resource hog and not playing ball sometimes - is there a way to solve this issue? Things I have tried - reset sound to 16 bit 44.1 khz in audio/midi manager; fixed permissions; run Tech Tool - everything seems to be fine hardware wise - I think there are some incompatible driver issues that are meesing up RAM usage but have no idea what or how to solve this... Any ideas anybody?
    Thanks.

    If, as you show, you are running 10.5.2, that is out of date. You need to install the 10.5.8 combo updater.
    It is also possible that your FlashPlayer is out of date.
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.

  • Ongoing problems with Flash in Firefox 8

    I am still having problems with Flash player since upgrading to Firfox 8 - see previous posts.
    Symptoms:
    When I try to access any flash containing page, the flash content does not load or play - the area it should be is blank or shrunk out - not even a token jpeg.
    What I have tried:
    Checked Flash is installed and enabled and up to date - all OK.
    Tried re-installing Flash anyway - no effect.
    Tried uninstalling flash and re-installing - this fixes the problem temporarily, but as soon as I shut down and restart, the problem returns.
    Tried disabling other add ons - makes no difference. Only addon in this area is Freecorder toolbar.
    Tried updating settings in Windows Firewall to ensure Firefox is allowed - no change.
    Ensured my anti-virus/spyware program (PC Tools Anti-virus) is not blocking any of the websites - nothing there.
    Checked situation in IE (Yuck!) - works fine there.

    No response to this, and problem has not gone away. Looks like I am going to have to change browser....

  • Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    First, confirm that ActiveX Filtering is configured to allow Flash content:
    https://forums.adobe.com/thread/867968
    Internet Explorer 11 introduces a number of changes both to how the browser identifies itself to remote web servers, and to how it processes JavaScript intended to target behaviors specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the content provider changes their site to conform to the new development approach required by modern versions of IE.
    You can try to work around these issues by using Compatibility View:
    http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
    If that is too inconvenient, using Google Chrome may be a preferable alternative.

Maybe you are looking for

  • Error in starting J2ee instance

    hi I am facing problem in starting the Java Instance. the following is the dispatcher log. reqeust you to please hlep trc file: "dev_disp", trc level: 1, release: "700" sysno      01 sid        BW7 systemid   560 (PC with Windows NT) relno      7000

  • Version 2 Shuffle not recognised by iTunes

    Greetings to all, I hope that someone out there can help me as the Apple Centre, after 89 minutes couldn't help, (that's £9 I can't get back!) Anyway, I bought a blue Version 2 Shuffle last month, plugged it in and iTunes burst into life, except that

  • Multi database access in 1 component

    Hi, At the moment we're creating general components that look like the examples in the CF MX Bible book. In these components we've defined an application var that contains the database name, so the component could be used by multiple websites/applica

  • Can we get Arraylist from String.Please check the code

    Hi all, I have just pasted my code over here.Can anyone of you find the solution for obtaining the Array list from the String. For Example : ArrayList al = new ArrayList(); al.add(new byte[2]); al.add("2"); String stringVar = "" + (ArrayList) al; Her

  • Exporting Non-Cumulative KF to Cumulative

    We wish to export Inventory data from BW to a CSV file through Open Hub. The catch is that we have a Non-Cumulative KF with InFlow & OutFlow whose value needs to be exported as well @ the month summary level. Hence was wondering if there is any speci