Quantcast
Viewing all articles
Browse latest Browse all 77806

Sharing SharedObjects between Classes

I have created a varable of Shared Object inside the Document Class

     EXAMPLE -> var so:SharedObject = SharedObject.getLocal("Barns","/");

 

but inside of a movieclip class I have

     if(so.data.adams == "yes"){

          adamsHighlight.visble = true}

 

and I get an error

E:\Android 2.0\ohioMap.as, Line 121120: Access of undefined property so.

what am i missing here. I thought if it was public, it is shared throughout the project

 

sorry new to classes.


Viewing all articles
Browse latest Browse all 77806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>