Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-04-2006, 04:03 AM   #1
Joshua7
Registered User
 
Join Date: Jul 2006
Posts: 2
Default Scaling vs. non scaling of loaded clips

Hi there,

I am trying to achieve the loadmovie whereby my container flash movie (main.swf) is 100%x and 100%y scaled in the browser...ie so it's size is dynamic to the browser size (This is fine...know how to do)

But want to load the internal clip at exact dimensions - ie I guess a loadmovie in a target clip or level? with exact x and y size dimensions that always centres in the container flash clip. ie. its size is constant no matter the browser size.

Look at this site for reference.... http://www.beachblanket.co.uk/

Thank you for your help!
Josh
Joshua7 is offline   Reply With Quote
Old 07-04-2006, 07:52 AM   #2
Gillies
Registered User
 
Join Date: Jun 2006
Posts: 28
Default

I think you are looking for the same answer as my "Stage Size Question" post so you may want to track that.
Gillies is offline   Reply With Quote
Old 07-04-2006, 07:59 AM   #3
mooska
fl.mooska._title
 
mooska's Avatar
 
Join Date: Jun 2006
Location: lodz
Posts: 1,211
Send a message via ICQ to mooska Send a message via Skype™ to mooska
Default

ActionScript Code:
Stage.scaleMode = "noScale"; this.createEmptyMovieClip("clip", 2); this.clip.loadMovie("myanotherswf.sef"); this.onEnterFrame = function() {     if (clip._width>0) {         clip._x = (Stage.width/2)-(clip._width/2);         clip._y = (Stage.height/2)-(clip._height/2);         delete this.onEnterFrame;     } };
__________________
pebkac - problem exists between keyboard and chair

Have something to code ?

asql
mooska is offline   Reply With Quote
Old 07-07-2006, 02:06 AM   #4
Joshua7
Registered User
 
Join Date: Jul 2006
Posts: 2
Default

Thanks for your help guys - still rusty on this side of the coding but have got it to work which is really the main thing eh?

Cheers
Joshua7 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
labels on externaly loaded clips don't show endy Components 0 06-12-2006 08:45 AM
calling functions inside loaded movie clips dinardo01 ActionScript 2.0 6 05-27-2006 09:44 PM
scaling movie clips not in proportion samWhisker ActionScript 2.0 0 05-05-2006 09:34 AM
attachMovie doesn't work for movie clips loaded with loadMovie ?! Amn ActionScript 2.0 2 03-15-2004 04:13 AM
controlling dynamically loaded movie clips sk8tool ActionScript 1.0 (and below) 7 03-03-2004 08:31 AM


All times are GMT. The time now is 02:08 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.