I want to set the visibility of an embedded swf file based on the property
of a class
Here is what I am trying but it does not work and I get a warning saying -
Data binding will not be able to detect assignments to "uploadingFile"
<mx:SWFLoader visible="{_session.uploadingFile}"
source="@Embed('assets/uploadingFileAnim.swf')" id="uploadingFileAnim"/>
Any ideas how I can get this to work?
In my session class, I have the following:
public function set
uploadingFile(passedValue:Boolean){
_uploadingFile =
passedValue;
}
public function get uploadingFile():Boolean
{
return _uploadingFile;
}