Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-04-2006, 04:03 AM   #1
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!
Joshua7 is offline   Reply With Quote
Old 07-04-2006, 07:52 AM   #2
Registered User
Join Date: Jun 2006
Posts: 28

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'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

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 ?

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

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?

Joshua7 is offline   Reply With Quote

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.