I agree, that one's a must have.

I can also recommend the video tutorials on Lynda.com and  
totaltraining. The Lynda subscription is great.


As for loading XML try something like this.

var url:String = "http://domain.com/file.xml";;
                        
var urlRequest:URLRequest = new URLRequest( url );
                        
urlLoader = new URLLoader();
                        
urlLoader.addEventListener( Event.COMPLETE, xmlLoaded );
urlLoader.addEventListener( IOErrorEvent.IO_ERROR, onIOError );
urlLoader.addEventListener( SecurityErrorEvent.SECURITY_ERROR,  
onSecurityError );
urlLoader.addEventListener( HTTPStatusEvent.HTTP_STATUS, onStatus );

urlLoader.load( urlRequest );


private function xmlLoaded( e:Event ):void
{
var pl:XML = new XML(urlLoader.data);
_video.v_id = [EMAIL PROTECTED];
_video.v_channel = pl..channel;
_video.v_channelname = pl..channelname;

}


Note this is simplified a little and I left the error handlers out.  
The XML is only one node deep so no looping. Check out more on E4X for  
neat XML parsing in AS3.

Cheers

Stefan





On 19 Feb 2008, at 14:17, Dan Vega wrote:

> Andy,
> I have Essential ActionScript 3 and it is easily one of the best  
> tech books
> I  have ever read. I think its very detailed at the same time holds  
> your
> hand through the whole language.
>
> Dan
>
> On Feb 19, 2008 9:04 AM, Andy Matthews <[EMAIL PROTECTED]>  
> wrote:
>
>> I'm really having trouble learning AS3. Partly because Macromedia/ 
>> Adobe
>> tried to make it so difficult (I mena"powerful"), and partly  
>> because my sole
>> experience has been with AS1 style coding which looked more like  
>> Javascript.
>>
>> Can anyone recommend a really good reference style book for AS3?  
>> The ideal
>> book would be part examples, part reference. It would be great if  
>> this book
>> also had Flex 3 classes in it, but I don't know if that's possible  
>> at this
>> point.
>>
>> Regardless, I'm into Flex development now so I really need something
>> reliable and informative.
>>
>> Thanks in advance.
>>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4998
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to