Loading Multiple SWFS Before Loading

12 views
Skip to first unread message

s shyam

unread,
Dec 16, 2009, 7:01:33 AM12/16/09
to Flex India Community
Hi All,


I resolved the problem with images but this time i need too load multiple swf file in to array of object and i need to get them and display them in swfloader can any one help me.

 function loadImage(url:String)

  {

    var loader:Loader = new Loader();

    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoaded);

    loader.load(new URLRequest(url));

  }


  function onImageLoaded(e:Event)

  {

  // var obj:ByteArray = e.target as ByteArray;

//The below code is ok for images but anyone suggest how to handle swfs..

  var image:Bitmap =new Bitmap(Bitmap(e.target.content).bitmapData.clone());

    images_ary.push(image);

    currentImage++;

    if(currentImage < mycollection.length)

    loadImage(mycollection.getItemAt(currentImage).path);

  }


Thanks in Advance,
Shyam.s

krishna chaitanya kambhampati

unread,
Dec 17, 2009, 6:08:01 AM12/17/09
to flex_...@googlegroups.com
you can request more than 5 at a single instance

I u want to load images i.e., more than 5 call the loadImage function with an interval say 200 mile seconds (i forget the exact duration) 

I hope this will solve the problem if u r able to load first few images.

--

You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.



--
Thanks & Regards,
K. Krishna Chaitanya
ARIJASOFT - HYD
Reply all
Reply to author
Forward
0 new messages