1172: Definition fl.events could not be found.

I've tried putting in the simple code (into the 1st keyframe
of a layer) shown below but it gives me 2 "1172: Definition
fl.events could not be found." errors. I also get 1172 errors if i
try to import any of the other fl. classes.
Code:
import fl.events.*;
import flash.events.*;
var asCircle:MovieClip = new My_Circle();
asCircle.x = asCircle.y = 100;
addChild(asCircle);
var xVel:Number = 20;
addEventListener(Event.ENTER_FRAME, onLoop, false, o, true);
function onLoop(evt:Event):void {
asCircle.x += xVel;
If i comment out "import fl.events.*;" and the
"addEventListener(Event.ENTER_FRAME, onLoop, false, o, true);" it
does create the My_Circle at (100,100) so its not a problem with
that as far as I can tell. This also shows that the "import
flash.events.*;" statement works fine. I've also tried putting the
code into a .as file and accessing as the Document file but it just
gave the same errors.
I have trawled the net and can't find anything that works.
I've even tried changing the ActionScript 3.0 Classpath without any
success even though i set to read the right paths as described here
for the fl classes:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000388.html
I can't understand why it won't work as the code is so
simple. The fact import statements don't work even though they come
up blue makes me think its an installation problem but i haven't
fiddled with any of the install settings and I have uninstalled and
reinstalled 3 times. I'm using a copy of Adobe Flash CS3
Professional trial version.
Any help would be greatly appreciated. It seems it should be
such a simple thing to fix but nothing seems to work.

I thought I needed to import fl.events.* or flash.events.* to
be able to use the addEventListener, turns out you don't need to.
I'm just learning ActionScript at the moment and trying to get my
head around it. I'm used to using languages where you need to
import classes to use methods from them (i.e. Java). I went through
all the video tutorials and stuff, obviously that doesn't seem to
have helped much in learning ActionScript 3.0.

Similar Messages

  • Definition flash.events could not be found

    how can i solve this problem:definition flash.events could
    not be found,thank you,all.

    you can only use this Event if you publish to AIR:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/StageOrien tationEvent.html

  • Definition flash.event could not be found

    import flash.utils.Timer;
    import flash.event.TimerEvent;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    mc1.alpha = 0;
    mc2.alpha = 0;
    mc3.alpha = 0;
    var timer:Timer=new Timer(500,27);
    timer.addEventListener(TimerEvent.TIMER,timerListener);
    timer.start();
    function timerListener(event:TimerEvent):void
      if(timer.currentCount == 1)
      if(count==1)
      var tween6:Tween = new Tween(mc3,"alpha",Strong.easeOut,1,0,1,true);
      var tween1:Tween = new Tween(mc1,"alpha",Strong.easeOut,0,1,2,true);
    if(timer.currentCount == 10)
      var tween2:Tween = new Tween(mc1,"alpha",Strong.easeOut,1,0,1,true);
      var tween3:Tween = new Tween(mc2,"alpha",Strong.easeOut,0,1,2,true);
    if(timer.currentCount == 19)
      var tween4:Tween =new Tween(mc2,"alpha",Strong.easeOut,1,0,1,true);
      var tween5:Tween =new Tween(mc3,"alpha",Strong.easeOut,0,1,2,true);
    if(timer.currentCount == 27)
      timer.reset();
      timer.start();
      var count = 1;
    this is what i get ....
    Scene 1, Layer 'Action Script', Frame 1, Line 2
    1172: Definition flash.event:TimerEvent could not be found.

    i understand that!
    some things are just hard to see and the longer you look, the less you see.

  • 1172: Definition fl:transitions could not be found.

    Trying to run this simple script and getting errors. The one mentioned above as well as this:
    5001: The name of package 'fl.transitions.easing' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Applications/Adobe Flash CS3/Configuration/ActionScript 3.0/Classes/fl/transitions/easing/Strong.as
    Here is the script:
    import fl.transitions;
    import fl.transitions.easing.*;
    var myTween:Tween = new Tween(rectangle, "x", Strong.easeOut, 0, 300, 15, true);
    Using a mac. I have tried to point the global classpath (preferences panel) to the exact directory and to the class directory, but doesn't work no matter what I do. Here are the global settings for the classpath:
    $(UserConfig)/Classes
    MacIntosh HD: Application: Adobe Flash CS3: Configuration: ActionScript 3.0:Classes
    MacIntosh HD: Application: Adobe Flash CS3: Configuration: ActionScript 3.0:Classes:fl:transitions
    MacIntosh HD: Application: Adobe Flash CS3: Configuration: ActionScript 3.0:Classes:fl:transitions:easing
    Any suggestions would be greatly appreciated.

    Hey Andre1,
    Just wanted you to know that I seem to have solved it. It was the 
    classpath variables. I had to remove the "." entirely (immediately 
    directory), even though there were no classpaths there and I moved 
    this down to the bottom of the classpaths. It is working with:
    $(AppConfig)/ActionScript 3.0/Classes
    $(UserConfig)/Classes
    I really appreciate the help. I downloaded the TweenMax and TweenLite, 
    but for my purposes, unless I buy the TransformManager, it won't help. 
    If all else fails, I will.
    You were a great help. Thanks again,
    Andrea

  • Error: Definition flash.fileSystem could not be found

    when trying to import   import flash.fileSystem.* i am geeting an error like this
    Error: Definition flash.fileSystem could not be found.
                            import flash.fileSystem.*
      Is there any solution ? i have already refrenced the library path.

    Hi ReemaDevi,
    I think you are working on an AIR app..
    The namespace you imported is wrong...It should be
    import flash.filesystem.*;
    You have used fileSystem wrong case..
    Thanks,
    Bhasker Chari.S

  • Definition Flash.util could not be found

    Refers to line: import flash.util.*;
    also get error: Access of possibly undefined property call
    through areference with static type mx.rpc.events:ResultEvent
    in reference to: model.loginVO = LoginVO( event.call.loginVO
    Thanks for any help

    Ok thanks got passed those. How about this one..
    get error
    quote:
    Implicit coercion of a value with static type
    mx.core:UIComponent to a possibly unrelated type mx.core:Container
    refers to line:
    quote:
    selectedChild="{ getView( model.workflowState )}">
    from the block:
    quote:
    <mx:ViewStack
    id="appView"
    selectedChild="{ getView( model.workflowState )}">
    <view:Login id="login" />
    <mx:VBox id="loggedIn" >
    <mx:Label text="{ 'Logged in as ' + LoginVO(
    model.loginVO ).username + ' at ' + model.loginDate }" />
    </mx:VBox>
    </mx:ViewStack>
    TIA

  • I'm trying to use import com.adobe.crypto.* on Windows version of my App but get error 1172:Definition com.adobe.crypto could not be found

    The Mac version of my Air app works fine, so does the iPad version, but the PC version has been a bit of a nightmare.
    I keep getting the error "1172:Definition com.adobe.crypto could not be found", when I publish it.
    Basically the 'com' folder is in the same directory as the app I am publishing and within that is 'adobe' and within that is 'crypto' within that is a series of .as files.
    I've added C:\Users\Gary\Documents\My_Applications\My_App_folder\com\adobe\crypto to source path list (I have no idea if that's right).
    But that just gives me a different error 5001: The name of package com.adobe.crypto does not reflect the location of this file. Please change the package definitions name inside the file.......
    I didn't have to include this source in the Mac version... but someone seemed to suggest it on a forum.
    I'm basically stabbing in the dark at the mount, something I seem to be doing a lot of these days. :-(
    Any help would be greatly appreciated.
    Many Thanks
    Gary

    I've figured it out
    Turns out I needed to add a source path (in the Actionscript 3 settings click on the Source File Tab) that exactly matches the directory the app and com folder is inside of. I wrongly assumed that Adobe Air could figure out where it was for itself, but no.... it needs to be told where to look for the com folder even though it's staring it right in its face. (Don't set the path to the 'com' folder itself, but to the enclosing folder that the .fla and the com is in).
    The Mac version doesn't seem to need that, it just finds the com folder if it's inside the same folder.
    Now I've got another massive error:-
    When I test the app, it works fine sending to Air for Desktop, however when I publish with embedded runtime for Windows.... It comes up with this error.
    Any ideas ?

  • 1172: Definition caurina.transitions:Tweener could not be found

    Hi All
    kindly help me for this issue.
    I have a flash file transferred to another device, but it does not work now, I find this error .
    Scene 1, Layer 'global functions', Frame 2, Line 1 1172: Definition caurina.transitions:Tweener could not be found.

    i can send source if you want .
    thank a lot for help me .
    This error, which got it :-
    Scene 1, Layer 'global functions', Frame 2, Line 1 1172: Definition caurina.transitions:Tweener could not be found.
    Scene 1, Layer 'global functions', Frame 2, Line 76 1120: Access of undefined property Tweener.

  • 1172: Definition flash.filesystem:File could not be found.

    I get the error 1172: Definition flash.filesystem:File could not be found. when i attempt to import File class or any other class from the package flash.filesystem. I already installed Adobe AIR but it still doesn't work.

    you're welcome.
    (been there and done that, too.)

  • Flash.events:StageOrientationEvent could not be found.

    Scene 1, Layer 'Layer 1', Frame 1, Line 2
    1172: Definition flash.events:StageOrientationEvent could not be found.
    What am I doing wrong?
    I am using Flash Professional CS6, version 12.0. Flash reports error for line:
                        import flash.events.StageOrientationEvent;
    I have barely begun a platformer and I am trying to use key presses to move the background around. Any help is much appreciated

    you can only use this Event if you publish to AIR:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/StageOrien tationEvent.html

  • Definition could not be found

    I am getting a couple of error when I try to use a component
    as a itemrender for my tile list. Both of these mxml files are in
    the same folder.
    I am getting the following errors.
    1120 Access of undefinded property PropertyThumb
    1172 Definition PropertyThumb could not be found.
    <mx:TileList id="propTile" width="100%" height="100%"
    allowMultipleSelection="false"
    dataProvider="{propertyList}"
    itemRenderer="PropertyThumb" direction="vertical">
    </mx:TileList>
    and here is my component PropertyThumb
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="298" height="134">
    <mx:CurrencyFormatter id="currencyFormat" precision="2"
    currencySymbol="$" decimalSeparatorFrom="."
    decimalSeparatorTo="." useNegativeSign="true"
    useThousandsSeparator="true" alignSymbol="left"/>
    <mx:Image x="10" y="10" width="121" height="111"
    source="{data.pictureurl}" scaleContent="true"/>
    <mx:Label x="139" y="56" text="{data.address}"/>
    <mx:Label x="139" y="80" text="{data.city}"/>
    <mx:Label x="139" y="103" text="{data.state}"/>
    <mx:Label x="218" y="103" text="{data.zip}"/>
    <mx:Label x="139" y="10" text="Price:"/>
    <mx:Label x="178" y="10"
    text="{currencyFormat.format(data.price)}"/>
    </mx:Canvas>
    Thanks,
    Thomas

    Do you ever get the feeling you are talking to yourself. lol
    After some more testing, it seems to work fine when I put the
    tilelist in the main application. I get the error when I put the
    tile list in a component. The itemrenderer is a different component
    itself.
    Is this designed only work in the application and not a
    seperate component?

  • "Definition de.alex_uhlmann.animationpackage could not be found" and other debug errors

    Hi, I have a Flash file someone else created that I need to debug and repair.
    I get the following errors, when running debug:
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 1, Column 40
    1172: Definition de.alex_uhlmann.animationpackage could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
    1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 5, Column 31
    1172: Definition com.robertpenner.easing could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 1, Column 40
    1172: Definition de.alex_uhlmann.animationpackage could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
    1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 5, Column 31
    1172: Definition com.robertpenner.easing could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 7, Column 1
    1120: Access of undefined property APCore.
    That symbol is in my library.
    When I go to the code, it shows:
    import de.alex_uhlmann.animationpackage.*;
    import de.alex_uhlmann.animationpackage.animation.*;
    import de.alex_uhlmann.animationpackage.drawing.*;
    import de.alex_uhlmann.animationpackage.utility.*;
    import com.robertpenner.easing.*;
    APCore.initialize();
    nextBtn._alpha = 0;
    I downloaded what I believe to be the correct animation package from here, versions 2.0 and 3.0, for Flash Pro CC2014, Flash Player 13:
    AnimationPackage
    I have no idea how I am supposed to import this package into my library, since none of the files are available to import, or what procedure I'm supposed to follow to correct this error. I emailed the programmer, but I have no idea if he is even still around. Does anyone have an answer on how to resolve this? Email me at [email protected] if you want the FLA file, since I can't attach it here. Thanks for the help!

    you need the classes mentioned after 'Definition" in the lines below and they should be place in de/alex_uhlmann/animationpackage subdirectory of your default directory.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
    1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
    you also need penner's easing class in com/robertpanner

  • Why am I getting "Error: Access of undefined property TextInputSkin." and "Error: Definition spark.skins.mobile:TextInputSkin could not be found." errors?

    I'm using amxmlc to build a SWF from an MXML source code file. I'm passing -swf-version=13 to amxmlc.
    In the MXML source, I have the following line:
    <s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
    I get these errors when running the amxmlc command:
    ...App.mxml(428):  Error: Access of undefined property TextInputSkin.
                <s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
    ...App.mxml(428):  Error: Definition spark.skins.mobile:TextInputSkin could not be found.
                <s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
    Why am I getting these errors? I need to be able to use the spark.skins.mobile.TextInputSkin in order to have use of the soft keyboard on iOS devices.

    you need the classes mentioned after 'Definition" in the lines below and they should be place in de/alex_uhlmann/animationpackage subdirectory of your default directory.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
    1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
    Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
    1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
    you also need penner's easing class in com/robertpanner

  • Why this error "Definition fl.video:VideoPlayer could not be found"

    I have this in a .as file
    package {
        import fl.video.VideoPlayer;
        import flash.display.Sprite;
        public class VideoPlayerExample extends Sprite   {
            public function VideoPlayerExample() {
    When I create and save .fla file with a document class VideoPlayerExample, and test the movie I got this error:
    1172: Definition fl.video:VideoPlayer could not be found.
    Any idea how to make flash find where the definition is. My copy of Flash was installed with the default installation settings.

    Thank you Kglad,
    I apologize for my ignorance but unfortunately I don't know what "flvplayback component" is and how to have one in my library.
    Any ideas how to make one?
    I searched the online help for a definition but it doesn't seem to have one. The closest that I found was this section that says what it does once you have it but no mentioning how to make it.
    http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WS0ED77F00-2006-49aa-8399-92B6D5D8CE00.h tml#WS62A31643-EF23-45ec-80D0-04DB8CE1AB1F

  • Definition could not be found - but library is there!

    Hi,
    I installed a library (as3isolib) in Flash Builder 4 and started writing code (following a Lee Brimelow's tutorial on www.gotoandlearn.com).
    So, if I instantiate a new variable, the hint box is there with all the classes and methods and all. After inserting the line, the corresponding import line is also inserted automaticaly.
    I believe this means the library has been added correctly to the project.
    HOWEVER... the editor reports error messages all along the code biside all references to the library classes.
    The very first error message on the code is "1172: Definition as3isolib.display.IsoView (for instance) could not be found".
    I don't get it... Any ideas?
    Thank you!
    Marcos

    Did you did an import? The library may be available for auto-complete, but I believe you still need to import whatever you will use.
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

Maybe you are looking for

  • Why not unify all drivers?

    I know the question is stupid, but why don't unify all models of sound cards in a single package drivers ? I believe that would facilitate for the company and for users since we could only get a single model Drive and the installation recognize the t

  • OMBuilderException detail unsupported element in SOAPFault element

    Hi, I am trying to access the Sharepoint web services using JAVA. I get this error when I try to execute a search. Sharepoint 2013 FormsBasedAuthentication .NET 4.5 SOAP 1.2 UPDATE: I tried changing the SOAP version for the Stub to 1.1  The error cha

  • How do I ?? - LR Tracking Image Locations

    I have searched high and low for an answer and I am no closer to finding the "magic" setting to turn off this annoyance, so perhaps someone can help. If I right click a file in LR 2.1 and select edit in Photoshop, the first thing I do is save my file

  • Introducing the Vertical Scrollbar to a selection screen.

    hi all, I wrote a program and use the WRITE command to display its values. code below... WRITE:/(181) sy-uline.   WRITE:/ 'MVT',   sy-vline, 'ADDITIVES',   25 sy-vline,'CIRCLES',   44 sy-vline,'COILS',   64 sy-vline,'INGOT',   83 sy-vline,'PRO. SCRAP

  • Color Settings and Making Photos Pop

    I have to preface this with saying that I am a recent convert from Nikon Capture/Photoshop/PC world to the 2.8 24" iMac. I shoot entirely Nikon raw (NEF) and typically just tweak white balance, exposure, and color settings in post processing. With th