Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-01-2009, 05:03 AM   #1
Join Date: Jul 2009
Posts: 53
Default image in canvas

I put an image in the canvas(as a background image) and I realized that the image is placed in the center.. Is there another way to align it to the left or the right side?
Here is what I have so far:
<mx:Canvas label="Regions" width="100%" height="100%" backgroundImage="./assets/lalaWorld.jpg" backgroundAlpha="0.4">
exclosion is offline   Reply With Quote
Old 10-01-2009, 09:25 PM   #2
Peter Cowling
quantum tunneler
Join Date: Sep 2008
Location: London, UK
Posts: 882

gotta be honest: I am not sure. I say that because background image is not really a good way to go, IMO. If you use image, you have more control - which regardless of your current situation in this sort of thing is going to be better.

i.e. use image on canvas and position as you like
Peter Cowling is offline   Reply With Quote
Old 10-02-2009, 01:36 AM   #3
Join Date: Jul 2009
Posts: 53

True, i agree that image have more control but I wanted the image to be place in many different states so If I use image I will have to put the same image many times on different states instead of juz 1 go..But I guess now I really got no choice but to put image instead of backgroundImage
exclosion 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 On
HTML code is Off

Forum Jump

All times are GMT. The time now is 03:19 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.