Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

loader component scaling

 
   Graphic Forums (Home) -> General Discussions RSS
Next:  Installer for Flash applications  
Author Message
DavidColin

External


Since: Nov 24, 2005
Posts: 1



(Msg. 1) Posted: Thu Nov 24, 2005 11:41 am
Post subject: loader component scaling
Archived from groups: macromedia>flash (more info?)

I'm using the loader component to scale a swf gallery when loaded into the main
site and when I press control enter to test it works great the gallery is
scaled down to the size set in the component 498x395 scale content = true, but
when the swf of the main movie is published or viewed in the folder the gallery
loads into the loader component full size full size. it's as if scaleContent
=false has been set. Why is this happening and what is the cure for it . I'm
using flash pro 8.

 >> Stay informed about: loader component scaling 
Back to top
Login to vote
Jim Foy

External


Since: Nov 18, 2005
Posts: 1



(Msg. 2) Posted: Tue Jun 06, 2006 1:55 pm
Post subject: Re: loader component scaling [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am using the same setup and I am having the same problem. As far as I know,
it has to do with the Loader class broadcasting the complete event too early or
not at all. It will not allow access to the properties until the complete
event has been called. I tried getting the content heigth and it returns 0
every time. I think someone came up with a fix by changing the amount of times
it checks for the complete event.

 >> Stay informed about: loader component scaling 
Back to top
Login to vote
chen-story

External


Since: Jul 11, 2007
Posts: 2



(Msg. 3) Posted: Wed Jul 11, 2007 4:57 am
Post subject: Re: loader component scaling [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try this code

var idd:Number;
var content_mc:MovieClip = my_ldr.content;
var loaderListener:Object = new Object();
loaderListener.complete = function(evt_obj:Object){
trace("loading complete");
_root.content_mc._visible = false;
}
my_ldr.addEventListener("complete", loaderListener);

function delay(){
_root.temp_txt.text = Math.round(my_ldr.percentLoaded);
_root.w_txt.text = _root.content_mc._width;
_root.h_txt.text = _root.content_mc._height;
if(_root.content_mc._width > 100 || _root.content_mc._height > 100){
my_ldr.load(my_ldr.contentPath);
}else if(_root.content_mc._width > 0 && _root.content_mc._width > 0){
_root.content_mc._visible = true;
clearInterval(_root.idd);
}
}
_root.idd = setInterval(_root.delay,1000);
 >> Stay informed about: loader component scaling 
Back to top
Login to vote
Display posts from previous:   
   Graphic Forums (Home) -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]