Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » image float in flash


image float in flash

Reply
  #1 (permalink)  
Old 07-08-10, 08:16 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
image float in flash

Hi there,

I'm fixing a flash banner at the moment for a customer.
This banner should be as width as the screen.

There is a logo in the left bottom corner which should
float there if the screen is made bigger.

Any one a clue how to stick the logo to the left side of the
screen?

_j
Reply With Quote
  #2 (permalink)  
Old 07-08-10, 11:06 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
I don't know if it's going to work, but you can give this a try:
Code:
my_img.x = stage.stageWidth - my_img.width;
my_img.y = stage.stageHeight - my_img.height;
Just place this in the action frame of the first frame (no need to wrap it inside a function, or an event handler)
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
div css theighost CSS 11 09-14-08 02:30 AM
random banner code with image and flash file sujata_ghosh JavaScript 0 06-30-08 02:43 AM


All times are GMT -5. The time now is 06:54 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.