Monday, 15 July 2013

android - AS3 - Loading Image Coordinates from URL -



android - AS3 - Loading Image Coordinates from URL -

i developing android app in air android using flash pro cc & tired of pushing updates time alter spawn location image needs move every few days specific location. won't know location until minutes before update needs pushed & much faster have app load spawn coordinates image upon launch website in .txt file. need type x , y coordinates in file & info loaded , as3 spawns image @ coordinates. if no coordinates available in text file (as 5 days of week there won't be), need different image displayed wherever place it. have separate frame though.

any help appreciated & i'd prefer if image can used in motion tween if not work out.

note: new as3 coding have flash figured out animating timeline.

have @ urlrequest , urlloader retrieving data. spawning image @ specific location, consider moving instead; object on stage displayobject, , displayobjects have properties x , y. swapping out images, @ displayobjectcontainer, functions displayobjectcontainer.addchild(child:displayobject) , displayobjectcontainer.removechild(child:displayobject). have provided links documentation each of relevant functions.

if update on daily basis, have @ date class - allow find out date , whether need create url request load textfile display image.

if have specific questions regarding utilize of these classes, think it's best if create new question link 1 context. you're english, not as3 (as say), explain relevant bits needed, long , complex story if explain entire functionality in 1 go. ... think you'll find these class names create googling easier too.

i expect you'll have utilize urlloader urlrequest load textfile, depending on results, display image adding stage via addchild if it's not there yet, , setting x , y values. you'll have utilize date class check whether need create new request every time user starts application or specific action.

android actionscript-3 flash url air

No comments:

Post a Comment