I don't think that is Flex 2 code, it might be based on a beta or other 
pre-release of Flex 2.

You should update the namespace, use SWFLoader instead of Loader, replace 
"Void" with "void", and replace this.content with Object(this.content).  That 
should get rid of most of the errors.

The code to call ToolTIpManager doesn't look right.  There is no such API.  You 
might have to use ToolTipManager.createToolTip(...) and import 
mx.managers.ToolTipManager at the top of the script block.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of ajayashish
Sent: Sunday, May 31, 2009 11:49 PM
To: [email protected]
Subject: RE: [flexcoders] Flex 2 Loader in Flex 3





I have tried that... but after that it gives a lot more compilation errors...
if possible can u try the mxmls i have attached..

Alex Harui wrote:
>
> It is possible we eliminated the flash.display components from the mx:
> namespace in Flex3. Maybe you should just use SWFLoader there instead.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
>
> From: [email protected]<mailto:flexcoders%40yahoogroups.com> 
> [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On
> Behalf Of ajayashish
> Sent: Saturday, May 30, 2009 9:45 PM
> To: [email protected]<mailto:flexcoders%40yahoogroups.com>
> Subject: RE: [flexcoders] Flex 2 Loader in Flex 3
>
>
>
>
>
> It says it cannot find the component LOADER... it works in Flex 2
> though...
>
> if u see the attachment i send then u will understand it better...
>
> Alex Harui wrote:
>>
>> You're not telling us what errors you are getting.
>>
>> Alex Harui
>> Flex SDK Developer
>> Adobe Systems Inc.<http://www.adobe.com/>
>> Blog: http://blogs.adobe.com/aharui
>>
>> From: 
>> [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>
>> [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>]
>> On
>> Behalf Of ajayashish
>> Sent: Saturday, May 30, 2009 1:43 PM
>> To: 
>> [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>
>> Subject: RE: [flexcoders] Flex 2 Loader in Flex 3
>>
>>
>>
>>
>>
>> see the attachment... 2 mxmls are there... one uses the loader component
>> to
>> load the swf... i cannot get this working in flex3.
>>
>> Alex Harui wrote:
>>>
>>> You can't load a Flex2 SWF into a Flex3 app.
>>>
>>> Other than that, Loader and SWFLoader did not change that much so they
>>> should still load SWFs of the correct version. What kinds of errors do
>>> you get?
>>>
>>> Alex Harui
>>> Flex SDK Developer
>>> Adobe Systems Inc.<http://www.adobe.com/>
>>> Blog: http://blogs.adobe.com/aharui
>>>
>>> From:
>>> [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>
>>> [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>]
>>> On
>>> Behalf Of ajayashish
>>> Sent: Friday, May 29, 2009 9:44 PM
>>> To:
>>> [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>
>>> Subject: [flexcoders] Flex 2 Loader in Flex 3
>>>
>>>
>>>
>>>
>>>
>>> I am working on a project whcih is done in flex 2. It uses a component
>>> called
>>> Loader which takes a SWF as a source file.
>>>
>>> I need this done in flex3 now. but there loader in flex3 is not similar
>>> to
>>> what it was in flex2 and the swfloader in flex3 is also not functioning
>>> properly with that. please suggest me
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23766591.html
>>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>>
>>>
>>>
>> http://www.nabble.com/file/p23797186/maps.zip maps.zip
>> --
>> View this message in context:
>> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23797186.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23799749.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>
>

--
View this message in context: 
http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23810635.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to