Search…

X3 Photo Gallery Support Forums

Search…
 
RichGags
Experienced
Topic Author
Posts: 33
Joined: 01 Feb 2007, 17:01

Can I loadmovie into the background that doesnt scale?

16 Jan 2009, 19:36

I need the background.swf to scale to the screen,
but I would like one movieClip on the background not to scale.

I add a dontScale_mc on the stage and tried to add this to frame 1 on background.swf

loadMovie("myNoScaleMovie.swf", dontScale_mc);

but it doesnt work. I also tried...

var my_mcl:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("clip1_mc", this.getNextHighestDepth());
clip1_mc._x = 600;
clip1_mc._y = 500;
my_mcl.loadClip("myNoScaleMovie.swf", clip1_mc);

Both load when I publish background.fla, but not when x2 loads it.


Any suggestions?

Thanks!
Rich
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

18 Jan 2009, 03:15

To achieve something like this, I would recommend using your own internal scripts, and setting it to NOT scale in imagevue. From imagevue, use the settings:

align: TL
repeat: no-repeat
scalemode: noScale

Then, from your custom Flash, you will have to create a script for the movieclip you want to scale to stage size. Something like this:
Code
mylistener = new Object();
mylistener.onResize = function(){
     mc._width = Stage.width;
     mc._height = Stage.height;
}
Stage.addListener(mylistener);
This would set a movieclip to scale with stage, while not scaling any other items... PS! If you want to add scaling that keeps aspects of the mc, you will need to add some more conditions ...
 
RichGags
Experienced
Topic Author
Posts: 33
Joined: 01 Feb 2007, 17:01

18 Jan 2009, 10:28

Great. Thanks!
 
User avatar
MiArCiN
Posts: 3
Joined: 19 Oct 2008, 05:44

20 Apr 2009, 13:34

Hello:)
I use on my site custom swf background but when the stage resolution is bigger then my swf it's very small.

http://www.galeria.tytan.xon.pl

I use this scipt for scaling:
Code
mylistener = new Object(); 
mylistener.onResize = function(){ 
     mc._width = Stage.width; 
     mc._height = Stage.height; 
} 
Stage.addListener(mylistener);
How to make background ( my swf file ) to fit bigger resolution of stage.

Please help if it's possible.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

22 Apr 2009, 05:53

I don't see your script is working ... Your SWF is here:
http://www.galeria.tytan.xon.pl/imagevu ... /tytan.swf

It is scaling default to stage aspect(like any default SWF), but if your code was working it would set width and height regardless of aspect.

But anyway, why are you not using native setting in imagevue: admin -> themes -> edit your theme -> background_image.scalemode = exactFit or showAll.