
LeRonj23
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
ScrollTrigger Demos
Downloads
Posts posted by LeRonj23
-
-
No that I run a new trace. This time to show the name:--- onChildComplete:imageCompleteHandlerpublic function imageCompleteHandler(event:LoaderEvent):void{trace(event.target.name);
}
ImageImageCompany LogoqueueWhy am I getting "queue" as an image it's trying to load when i have <LoaderMax name="queue"....>
-
I'm creating this xml file using PHP. When I setup php to echo the follow. Her is my issue.This doesnt work:<data><LoaderMax name="queue" prependURLs="Images/" childrenVars="width:700,height:630,scaleMode:proportionalInside" alpha="0" load="true"><ImageLoader name="Company Logo" url="Bed_bath_and_Beyond.png" estimatedBytes="31641" width="750" height="275"/><ImageLoader name="Image" url="T-shirt.jpg" estimatedBytes="8611" Item_Id="1" Title="Men T-Shirts" Quick_Desc="Starting at $14.99 each..." Savings_amt="65% off"/><ImageLoader name="Image" url="T-shirt.jpg" estimatedBytes="8611" Item_Id="3" Title="Women T-Shirts" Quick_Desc="Starting at $30.11 each..." Savings_amt="20% off"/></LoaderMax></data>--- onChildComplete:imageCompleteHandlerpublic function imageCompleteHandler(event:LoaderEvent):void{trace(event.target.content);var loadedImage:ContentDisplay = event.target.content as ContentDisplay;//you must manually add the loadedImage to the display listaddChild(loadedImage);TweenLite.to(loadedImage, 1, {alpha:1});}
What is being traced:
[object ContentDisplay][object ContentDisplay][object ContentDisplay][object ContentDisplay],[object ContentDisplay],[object ContentDisplay]I only have 3 images so I understand this:[object ContentDisplay][object ContentDisplay][object ContentDisplay]Why am I getting this:[object ContentDisplay],[object ContentDisplay],[object ContentDisplay]This works:
<data><ImageLoader name="Company Logo" url="Images/Bed_bath_and_Beyond.png" estimatedBytes="31641" width="750" height="275" scaleMode="proportionalInside" alpha="0" load="true"/><ImageLoader name="Image" url="Images/T-shirt.jpg" estimatedBytes="8611" Item_Id="1" Title="Men T-Shirts" Quick_Desc="Starting at $14.99 each..." Savings_amt="65% off" width="700" height="630" scaleMode="proportionalInside" alpha="0"load="true"/><ImageLoader name="Image" url="Images/T-shirt.jpg" estimatedBytes="8611" Item_Id="3" Title="Women T-Shirts" Quick_Desc="Starting at $30.11 each..." Savings_amt="20% off" width="700" height="630" scaleMode="proportionalInside" alpha="0"load="true"/></data>Everything loads fine when I do it this way. Any suggestions?
LoaderMax String not working properly...
in Loading (Flash)
Posted
Thanks for the response.... None of your examples say to use:
If(event.target is ImageLoader){
//code here
}
This was driving me nuts as I'm new to using plugins for AS3.
Thanks again...