Loading external images in a slideshow...HELP!

Posted by megamilam 
Loading external images in a slideshow...HELP!
February 28, 2009 04:11AM
I've been working to create a slideshow that dynamically loads an external images using various show/hide transitions from FlashEFF. I have purchased LoaderV3, but can't seem to get the two components to work together.

As another approach, I've learned how to load an image in AS3, but the timing is really sloppy. (see the below code that I've used if you recommend this angle)

PLEASE HELP...I'M COMPLETELY CLUELESS.

* * * * * *

var imageLoader:Loader;

function loadImage(url:String):void {

imageLoader = new Loader();
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
}
loadImage("pixelHouses.jpg");

function imageLoaded(e:Event):void {

imageArea.addChild(imageLoader);
}

function imageLoading(e:ProgressEvent):void {
}
Re: Loading external images in a slideshow...HELP!
March 03, 2009 09:02AM
hei
for a easy way to succed look at the following steps:
1- put the loader(instanceName- ldr) and flashEff (instanceName- fe) on scene
2- put the loader in a blank movieClip(instanceName myMovieClip)
3- set the targetInstanceName of the flashEff to myMovieClip
4-in your action frame put the following code

import com.jumpeye.flashEff.symbol.blur.FESBlur
import com.jumpeye.Events.LoaderEvents;

var myPatern:FESBlur=new FESBlur()
myMovieClip.ldr.contentPath="yourImage.jpg"
myMovieClip.ldr.addEventListener(LoaderEvents.LOAD,loadHdl);

function loadHdl(args: LoaderEvents):void{
fe.showTransition=myPatern
fe.show()
}
for this example to properly work take a look in your library and check if you see LoaderProV3AS3,FlashEff and in example case FESBlur patern
Re: Loading external images in a slideshow...HELP!
March 03, 2009 11:12PM
SWEET! YOU GUYS ARE AMAZING!

I was able to get it to work with the blur and other FX, unfortunately, I'm not sure how to use 3DCamSquareFocus...(as will as using the show/hide feature in the context of a slideshow)

Here's what I have for the 3DCamSquareFocus:

import com.jumpeye.flashEff.symbol.3DCamSquareFocus.FES3DCamSquareFocus
import com.jumpeye.Events.LoaderEvents;

var myPatern:FES3DCamSquareFocus=new FES3DCamSquareFocus()
myMovieClip.ldr.contentPath="myimage.jpg"
myMovieClip.ldr.addEventListener(LoaderEvents.LOAD,loadHdl);

function loadHdl(args: LoaderEvents):void{
fe.showTransition=myPatern
fe.show()
}
Re: Loading external images in a slideshow...HELP!
March 04, 2009 07:56AM
i believe the right way to import the FES3DCamSquareFocus pattern is like this
import com.jumpeye.flashEff.symbol.fe3D.camSquareFocus.FES3DCamSquareFocus

if you want less code there is another way:
1-in flashEff panel select pattern FES3DCamSquareFocus
2-in flashEff panel deselect autoPlay
3-in your action layer put the following code

import com.jumpeye.Events.LoaderEvents;
myMovieClip.ldr.contentPath="yourImage.jpg"
myMovieClip.ldr.addEventListener(LoaderEvents.LOAD,loadHdl);
function loadHdl(args: LoaderEvents):void{
fe.show()
}



Edited 2 time(s). Last edit at 03/04/2009 07:58AM by kneo.
Re: Loading external images in a slideshow...HELP!
January 20, 2010 05:38PM
Is there a way to do the initial 4 steps that kneo mentions via actionscript?
for a easy way to succed look at the following steps:
1- put the loader(instanceName- ldr) and flashEff (instanceName- fe) on scene
2- put the loader in a blank movieClip(instanceName myMovieClip)
3- set the targetInstanceName of the flashEff to myMovieClip
4-in your action frame put the following code

Also, do you have to use LoaderV3 for this to work or can you just use AS3 with FlashEff 2? I only have FlashEff2 and don't want to purchase LoaderV3 if I don't have to yet.

Thanks!
Sorry, you do not have permission to post/reply in this forum.