gotoAndLearn Preloader and FlashEff

Posted by burnbaby 
gotoAndLearn Preloader and FlashEff
August 25, 2009 07:58AM
Hey,
I´ve build an preloader like it´s descripte at an gotAndLearn.com tutorial. It´s kind of external swf loading.
See the code below:

var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("content.swf"));

function loop(e:ProgressEvent):void
{
	var perc:Number = e.bytesLoaded / e.bytesTotal;
	percent.text = Math.ceil(perc*100).toString();
}

function done(e:Event):void
{
	removeChildAt(0);
	percent = null;
	addChild(l);
}


The problem I´ve with this is, that the FlashEff Component did not work in the loaded "content.swf" which includes the FlashEff animation I use.
Any advice how I can modify the preloader code to make it run??? I´m an AS3 newbie ;-)
Re: gotoAndLearn Preloader and FlashEff
August 25, 2009 08:41AM
I checked the code and it works fine for me.
I have no idea why yours dosn't work so please attach your files(preloader and the preloaded fla) and send them to our support geeks team and they will fix them for you.
Link: [www.jumpeyecomponents.com]

-Ionut



Edited 1 time(s). Last edit at 08/25/2009 08:42AM by Ionut.
Re: gotoAndLearn Preloader and FlashEff
August 25, 2009 09:27AM
Alright, will do it later, still at work ;-)
Thanks for support!!!
Re: gotoAndLearn Preloader and FlashEff
August 25, 2009 11:30AM
Okay,
here the problem.
If I´m using FlashEff on a mc in the loader.swf and FlashEff in the content.swf I recieve the following Error.
FLASHEFF2 ERROR: The pattern 'com.jumpeye.flashEff2.symbol.squareEffect.FESBlurSquare' is missing from library.
	at FlashEff2/set showTransitionName()
	at FlashEff2/setProperties()
	at FlashEff2/set xmlString()
	at content_fla::MainTimeline/content_fla::__setProp___id7__Scene1_stuff_1()
	at content_fla::MainTimeline$iinit()
Re: gotoAndLearn Preloader and FlashEff
August 25, 2009 12:00PM
Drag the FESBlurSquare in the library.
Let me know if that doesn't work.

-Ionut
Re: gotoAndLearn Preloader and FlashEff
August 25, 2009 01:19PM
I´m not sure how.
Do you mean the FESBlurSquar from the content.swf library to the preloader.swf library. This one still exist their.
And If I copy the FlashEff square which is used on stage in the content.swf on the preloader stage and then to the preloader libary it will jump from preloader to content but the Eff in content.swf didn´t work??
Re: gotoAndLearn Preloader and FlashEff
August 25, 2009 01:33PM
You'll need to import the FESBlurSquares pattern in the content.swf. Open your component panel and look in the patterns folder, you'll find it there. Drag it to stage.
Compile the file before trying to load it into another swf.
If you are not how to drag it, just open the panel and select the pattern again and it will automatically import it.
In the preloader stage you don't need anything related to FlashEff.
Let me know if you have other problems.

-Ionut.
Re: gotoAndLearn Preloader and FlashEff
August 25, 2009 02:16PM
Thnaks,
but the error occours on the Eff who isn´t in the preloader.swf libary.
Example: I use the blur on an mc in the preloader.swf anf an FlipEFF in the content.swf on an mc. The errors messages revals the FlippEFF.
So I import the FippEFF on the preloader stage. I compile it and at the beginning it looks fine....no error message but know the FlippEFF in the content.swf does not work??
Sorry for circumstances man!!!!

Should I send you the two swfs???



Edited 1 time(s). Last edit at 08/25/2009 02:19PM by burnbaby.
Re: gotoAndLearn Preloader and FlashEff
August 25, 2009 02:23PM
Hmmm,
so If changed the Eff in the content to an DuplicateEff, imported in the preloader.swf an it works!!!
Okay, think thats it for my part!!!!
Greedings from Hamburg
Bjoern
Sorry, you do not have permission to post/reply in this forum.