silverswim
Programmer
Hi,
I'm trying some old script to classes...I had a global boolean variable called subtitlesYes , which I want to declare as the property of an object...It has to be readable by several levels of swf's which are loaded and unloaded at different times.
I put this in an as file, in the same directory as the swf's :
class ipa{
var subtitles : Boolean;
function ipa( subtitlesYes : Boolean){
subtitles = subtitlesYes;
}
}
In the root movie I put in the first frame:
var dpp : ipa = new ipa(false);
and then later on a level 3 swf, I had this:
if( dpp.subtitlesYes == false){
_level3.speech._visible = false;
};
then in publish settings for as2 I put the document level class path in; ie. the same directory path as where the swf's are stored. I've put the path into all the swf publish settings.
And it all doesn't work though the compiler doesn't complain of anything...
Thanks so much if you can help, silverswim
I'm trying some old script to classes...I had a global boolean variable called subtitlesYes , which I want to declare as the property of an object...It has to be readable by several levels of swf's which are loaded and unloaded at different times.
I put this in an as file, in the same directory as the swf's :
class ipa{
var subtitles : Boolean;
function ipa( subtitlesYes : Boolean){
subtitles = subtitlesYes;
}
}
In the root movie I put in the first frame:
var dpp : ipa = new ipa(false);
and then later on a level 3 swf, I had this:
if( dpp.subtitlesYes == false){
_level3.speech._visible = false;
};
then in publish settings for as2 I put the document level class path in; ie. the same directory path as where the swf's are stored. I've put the path into all the swf publish settings.
And it all doesn't work though the compiler doesn't complain of anything...
Thanks so much if you can help, silverswim