• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 904
  • Last Modified:

error with missing definition: PropertyChangeEvent

Hi,

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

I get the error:

Access of undefined property PropertyChangeEvent in package mx.events.

When I type

import mx.events.

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.

Thanks
0
ugeb
Asked:
ugeb
1 Solution
 
lexxwernCommented:
Does your code look like this:
[Embed(source="assets/logo.png")]
[Bindable]


Is it possible for you to post some of your code so that we could debug it?
0
 
ugebAuthor Commented:
Hi,

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.

Thanks!

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

Open in new window

flex-errors.gif
flex-errors-2.gif
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now