LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-21-2006, 07:36 PM
chasw7edinburgh's Avatar
chasw7edinburgh chasw7edinburgh is offline
Registered User
 
Join Date: Nov 2005
Posts: 28
Rep Power: 0
chasw7edinburgh is on a distinguished road
Full Screen Flash resize problem

Hello developers, how do you do?

I am currently experimenting with full screen flash. The first frame of my timeline reads:
Actionscript:
Stage.align = "LT";

Stage.scaleMode = "noScale";

stageListener = new Object();
stageListener.onResize = function() {
expandTop();
expandBodyText(); 
}

Stage.addListener(stageListener);

expandTop = function() {
bg_mc._x = Stage.width - bg_mc._width + 673;
bg_mc._y = Stage.height - bg_mc._height - 90;
bot_bar._width  = Stage.width;
bot_bar._y  = Stage.height - bot_bar._height;
bot_left._y = Stage.height - bot_left._height - 10;
} 

stageListener.onResize();

expandBodyText = function() {
body_txt._height = Stage.height - body_txt._y - 10;
myScrollBar.setSize(Stage.height - myScrollBar._y - 10);
}

The objects 'bg_mc','bot_bar' and 'bot_left' do not come onto the timeline until frame 10. This is beacause they animate onto the stage rather than being placed on frame1. My problem is that the code on frame1 cannot see the objects which it is mean to listen to, therefore the document is unable to resize the browser window correct.......How can I tell the code in frame1 that the objects it has to listen are coming in five frames time??

When I build the timeline with no intro animation the resize has already been calculated before wee see anything. It looks perfect.

I have tried placing the code from frame1 onto later frames in the timeline i.e frame 10. This does resize the document when the timeline reaches it, however it is very obvious and happens right at the start of the animation.

Any help would be great...

You can see an example at:
http://www.chaswilliams.com/seven

please email me chas@chaswilliams.com if you would like me to send a .fla file...

Cheers,
Chas W

Last edited by [PAUL FERRIE] : 07-21-2006 at 07:40 PM
Reply With Quote
 


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Full Screen Player karatekid2point Flash CS3 / Flash 9 0 12-03-2008 10:21 PM
problem with flash and javascript gnorro Newbies 0 09-16-2008 01:26 PM
Movie flash - full screen and 100% zoom ungureanu_m Flash MX 2004 1 06-06-2005 06:27 PM
full screen prodotti Flash MX 2004 1 01-13-2005 06:51 PM
dual monitor display flash movie in full screen dumbmonk Flash MX ActionScript 8 11-19-2003 09:56 PM




All times are GMT. The time now is 02:32 PM.