FatCow Web Hosting
 
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Web Directory

Go Back   Webmaster Forum > Designing and Developing Websites > Web Design

Web Design Discussions and help on Website Design, HTML, CSS, xHTML, DHTML, etc...

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2007, 04:06 PM
technoguy technoguy is offline
WMG Citizen
 
Join Date: Mar 2007
Posts: 436
iTrader: (0)
technoguy is on a distinguished road
Default Screen Resolution using flash

Is it possible to read current screen resolution using flash action script? I want to make some adjustment for different screen resolutions.
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block

  #2 (permalink)  
Old 04-08-2007, 08:13 AM
creek23 creek23 is offline
WMG Deputy Sheriff
 
Join Date: Mar 2007
Posts: 290
iTrader: (0)
creek23 is on a distinguished road
Default

Flash player resizes the content itself no matter what resolution it was created. I made a FlashLite game... I designed it to be for N73 but the resolution adjusted when copied to N70... pretty portable unlike J2ME.
Reply With Quote
  #3 (permalink)  
Old 04-09-2007, 06:21 AM
technoguy technoguy is offline
WMG Citizen
 
Join Date: Mar 2007
Posts: 436
iTrader: (0)
technoguy is on a distinguished road
Default

I have a javascript which fetch screen resolution, is it possible to communicate flash and javascript to take current resolution if not by flash way?
Reply With Quote
  #4 (permalink)  
Old 04-12-2007, 09:57 AM
creek23 creek23 is offline
WMG Deputy Sheriff
 
Join Date: Mar 2007
Posts: 290
iTrader: (0)
creek23 is on a distinguished road
Default

flash can communicate with flash through fscommand function call which looks like something like

Code:
//flash program
trace(fscommand("getScreenWidth"));

//JavaScript program
fscommand(arg) {
  if (arg == "getScreenWidth") {
    return screen_width_resolution;
  } else if (arg == "getScreenHeight") {
    return screen_height_resolution;
  }
}
of course, you have to get the value of the screen resolutions for the JavaScript program...
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT. The time now is 01:38 AM.



Freelance Web Designers
Work At Home Forum
Ad Marketplace
Online Deals and Bargains
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0