error with missing definition: PropertyChangeEvent

Posted on 2009-04-23
Last Modified: 2013-11-11

In Flex 3  I'm just trying to embed a jpeg into an AS file and when I added the tag

I get the error:

Access of undefined property PropertyChangeEvent in package

When I type


Flex completes this with 4 possible options, none of which is PropertyChangeEvent.

Am I missing something that needs to be added to the project?  I'm using the proper sdk as everything seems to come up, but I've never used any Flex components until now.

Question by:ugeb
    LVL 12

    Expert Comment

    Does your code look like this:

    Is it possible for you to post some of your code so that we could debug it?
    LVL 11

    Accepted Solution


    the code snippit is below.

    I noticed (thanks to your help on the other question), the following errors which are likely causing at least some of the problems.  I'm missing the definitions as shown in the attached graphic.

    My SDK is fine, is there some other thing I need to do to get these definitions?

    In the second image, the error highlights are over the 3rd line (public ...) in the code snippet.


    [Embed( source="assets/earthmap1k.jpg" )]
    public var Earthpic:Class;

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
    I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now