Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-03-2007, 01:51 PM   #1
Join Date: Apr 2006
Location: Sydney, Australia
Posts: 87
Send a message via MSN to mantra
Question reposition image within loader component via AS

is there anyway you can set your loader component via actionscript so your image always sits in the top left hand corner of the loader ?

I have it set to scale, problem is as it scales the image drops to the bottom, or sometimes centre depending on size.

I want it so i guess the top left corner of the image is fixed and it scales inward to that point accordingly.

come out with your hands up
mantra is offline   Reply With Quote
Old 06-03-2007, 02:38 PM   #2
Senior Member
Join Date: May 2007
Location: Toronto,Canada
Posts: 530
Default Loader

Loader has Loader.content properties. You can refer to it as MovieClip:
ActionScript Code:
on(complete){this.content._y =this.content._x= 0}

Last edited by LOLFlash; 06-03-2007 at 02:43 PM.
LOLFlash 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
FREE Image Gallery Code UPDATED w00t w00t!! flavoredthunder ActionScript 1.0 (and below) 2 12-22-2006 01:18 PM
Scaling images using loader component Lukerz ActionScript 2.0 0 07-17-2006 02:16 AM
Loading External Images/ Loader Component specter345 Components 1 06-28-2006 03:17 PM
using loader component for external swf and jpg. HELP 72monkeys ActionScript 2.0 0 02-21-2006 07:47 PM
too many Loader instances? number of component limit? toddclare Components 0 08-26-2005 07:47 PM

All times are GMT. The time now is 08:21 PM.

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.