• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 910
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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