Try these two examples:
 
 
first:
 
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml";>
    <mx:Script>
        <![CDATA[
            import flash.net.SharedObject;
            var myso:SharedObject = SharedObject.getLocal("test");
        ]]>
    </mx:Script>
</mx:Canvas>

 

second:

 

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml";>
    <mx:Script>
        <![CDATA[
            var myso:flash.net.SharedObject =
flash.net.SharedObject.getLocal("test");
        ]]>
    </mx:Script>
</mx:Canvas>

 

if the first fails but second works then you have another class named
SharedObject somewhere that is confusing the compiler (the "multiname
reference unambiguously" error).  Change the name of that class (or mxml
file).

HTH,

Sam

-------------------------------------------
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
  

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of David Freerksen
Sent: Wednesday, December 12, 2007 4:36 PM
To: [email protected]
Subject: Re: [flexcomponents] SharedObject


I created a new MXML based component based on Canvas. I copy/pasted
everything in the Script tags to the new MXML component and saved. Now I get
a different set of errors. The first two errors are the same. It is
"Can not resolve a multiname reference unambiguously. SharedObject (from
C:\Users.....)"

Reply via email to