Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-07-2007, 03:04 PM
RK RK is offline
Junior Member
 
Join Date: Apr 2007
Posts: 4
Default Window Object doesnt work right ...

Hi again ...
I have no idea what i'm doing wrong. I want to get the size of my Window.
I know that i could use the Stage Object from flash but im wondering whats wrong with my code:

Code:
import SWFKit.*
var wnd = getMainWnd();
trace(wnd.width);
^^ doesent work. wnd is undefined.

Code:
import SWFKit.*
var wnd = Global.getMainWnd();
trace(wnd.width);
^^works, but the width is not right.
The Stage.width is 550px but he says 960. Thats my screenresolution, but if i do the same with the high its a totaly differnet number. (not my screenresolution or anything specific)
Reply With Quote
  #2 (permalink)  
Old 04-08-2007, 12:02 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Window Object doesnt work right ...

The width of the main window is not the width of the stage of the swf file. The main window may have borders, and the swf file that it is playing may not in the original size, say, may be zoomed in.
Reply With Quote
Reply

Was this information helpful?    Yes No



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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:14 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.