PDA

View Full Version : xml photo gallery



baggins825
February 2nd, 2009, 10:56 PM
hi, im fairly new to actionscript 3 and i am trying to make a xml photo gallery for my father. It's nowhere near done but I am trying to load the pictures from xml and i keep getting this error
TypeError: Error #1034: Type Coercion failed: cannot convert "photos/photo1.jpg" to flash.net.URLRequest.
at xmlLoader/xmlpusher()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
it seems like the problem is simple but i cant figure it out, any suggestions?

baggins825
February 3rd, 2009, 01:51 PM
anyone?

baggins825
February 3rd, 2009, 02:10 PM
never mind, i figured it out, had to pass the array containing the xml to a urlrequest for it to be in the right format :)