Jump to content
Search Community

Facebook & LoaderMax

WhiteDesign test
Moderator Tag

Recommended Posts

Hello!!!

 

When I add a simple swf to my Shortstack facebook widget everything works brilliantly!

I now want to include a LoaderMax swf to load other swf's (obviously) although all I get is a blank widget!?! :?

 

My code...

import com.greensock.*;
import com.greensock.loading.*;
import com.greensock.events.LoaderEvent;
import com.greensock.loading.display.ContentDisplay;

progressBar_mc.bar_mc.scaleX = 0;

var myImage:SWFLoader = new SWFLoader("22smushyLane.swf", {container:this, 
									  alpha:0, 
									  onProgress:progressHandler,
									  onComplete:completeHandler});



function progressHandler(event:LoaderEvent):void
{
progressBar_mc.bar_mc.scaleX = myImage.progress;
}


function completeHandler(event:LoaderEvent):void
{
trace(event.target.content);

//get a reference to the content of the loader that fired the complete event
var loadedImage:ContentDisplay = event.target.content;

TweenLite.to(loadedImage, .5, {alpha:1});
TweenLite.to(progressBar_mc.bar_mc, .5, {alpha:0});

}

myImage.load();

 

Thanks!!!

Link to comment
Share on other sites

Hi whitedesign.

 

without seeing the code in your "LoaderMax swf to load other swfs" there is no way to diagnos your problem.

 

the code you posted only loads a singly swf and that appears to work fine.

 

please provide simplified assets (that don't rely on any sort of facebook integration) that illustrate the problem.

 

thx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...