Jump to content
Search Community

holysocks

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by holysocks

  1. Hi

    I noticed that my latest project has some problems when playing video. When a video is playing, all my mouse inputs are 'queued'. Flash does not read and act on those inputs until the video has finished playing. For example, if I play a video and then press another button while the video is playing, the button does not get clicked until the video stops playing.

     

    It is published as an exe (projector file). It happens on newer computers but not my 5 year old pc. I noticed that unchecking hardware acceleration (right click -> settings) fixes the problem. Also it seems to only happen when in full screen mode. I am using VideoLoader, but not sure if that's the problem. Anyone know what's going on?

  2. this will swap image at i with the image that's at the top of the displaylist of container_mc (pushes it above all other images)

    container_mc.swapChildren(_imageArray[i],container_mc.getChildAt(container_mc.numChildren-1));
    OR
    container_mc.setChildIndex(_imageArray[i],container_mc.numChildren-1);
    

    _imageArray is an array of all the loaded images in container_mc as shown in my previous posts

  3. l.content is a ContentDisplay object that extends Sprite - meaning it's a sprite with some extra properties and methods. It is what greensock loaders use as a container it loads. You can use it and manipulate it just like a regular display object on screen (x, y, scaleX, scaleY, rotation, alpha, width, height, etc etc).

     

    Also you can pretty much forget about the loaders and LoaderMax once they've done their job loading your images. See it this way, loaders are just responsible for loading and LoaderMax is just a queue of loaders. They are useful to use to organize and get information for the loading process. You can learn more about each class at http://www.greensock.com/as/docs/tween/ under the com.greensock.loading packages.

     

    hope this helps somewhat... also didn't see a need for that new thread~

  4. not sure what you are asking but if you want an array of the loaded images, LoaderMax.content gives you that. So in your code, just add _imageArray=queue.content; after the for loop.

     

    if you want to do it manually inside the for loop I guess it would be

    var l:ImageLoader;
    for (var i:Number = 0; i {
    //append one or more loaders
    l=new ImageLoader("_images/"+xml.feature[i].@url, {
                                   estimatedBytes:2400, 
                                   container:container_mc, 
                                   alpha:1,
                                   y:10+30*i
                                   })
    _imageArray.push(l.content);
    queue.append(l);
    } 
    

×
×
  • Create New...