ActionScript 2.0 :: Swf State Dictated By User's Screen Size?

Feb 28, 2007

expanding/collapsing panel of 4 windows with motion tweens & mind-boggling XY coords, the client has come back with an 'idea'. Is it possible to dictate a movie state depending on the user's screen size?eg - someone is on 1024x768 so the box state sets to 'minimise' to fit into the screen.If someone else is using 1280x1024 then the box sets to 'maximise'.

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Background Size According To User Screen Resolution

Oct 30, 2011

Is it even possible to make the background adjust automatically to users screen resolution from the center of the pic (I have a big background pic and I would like it to be fullscreen without any margins).

View 1 Replies

Flex :: Set Size Of State After Moved Child State Using AIR?

Jul 25, 2009

In my air project i used current state size is width="441" height="358" . i have link button like Singin then move to singin state (currentstate='singin')

<mx:State name="signin">
<mx:SetProperty name="height" value="616"/>
<mx:SetProperty name="width" value="919"/>

So application resize into 616,919 . After that function finished move to current state like(currentstate='') But size not be changed . How can i set the size for current state?

View 1 Replies

ActionScript 3.0 :: Auto-size Background / Swf - Flash Occupies Whole Screen No Matter What Size It Is

Apr 28, 2010

So ive been asked to build a page for a real state company and the guy told me it should be similar to these [URL] Ive been trying a couple of weeks so far, but i dont seem to find a way to do somthing similar, i mean, i want to have the welcome screen as those two:

- the gradient background
- flash occupies whole screen no matter what size it is
- gradient expands sideways infinately
- no matter what height my explorer window is, gradient is always in the same position relative to top, and if i keep expanding downwards the background keeps last colour of the gradient.
- the brand logo looks as if it had top, left and right anchors, and it also limitates the minimum width of the explorer window

i though of addind a 3000 x 3000px square with the gradient and centering it, but i know there has to be a professional way of achieving that.

View 1 Replies

ActionScript 3.0 :: Capture User Screen / Print Screen?

Dec 31, 2010

i want to user print screen command in AS3 and convert into bitmap as background in fullscreen i.e.

print screen from keyboard - keycode i.e. 44 [URL]

i want to know how can i run printscreen code from flash to capture user screen as i want to have flash presentation in 600x600px with disabled desktop and flash presentation should be in center of screen.

Quote:

import flash.system.fscommand;
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
fscommand("fullscreen", "true");

[Code].....

View 3 Replies

Actionscript 3 :: Set An Application Size According To The Screen Size (for Mobile Devices)?

Oct 19, 2011

I am developing an AS3 application (not a Flex one) using Flash Builder 4.5. My application can set its graphical components automatically according to stageWidth/stageHeight. My problem is with the actual application size. If I do not specify width/height in the SWF meta tag, my application is compiled according to the default (550x400?). If I do specify (for example 800x480), I won't be able to support other resolutions correctly.

Is there a way to tell the compiler to see the application size according to the device's/stage's sizes?

View 1 Replies

ActionScript 2.0 :: Detect The Screen Size And Run The Game According The Screen Style?

Mar 6, 2008

Actaully I am running a cards game. While running the game in between if I change the style portrait to landscape. then how can I detect the screen size and run the game according the screen style (Portrait or Landscape).

Actaully I have written the code to detect the screen as portrait and landscape. But in between if I change the game portrait into landscape, no more it works.

View 2 Replies

ActionScript 2.0 :: Screen Size For Full Screen Flash?

Apr 24, 2006

I'm creating a flash site. I want the flash movie to fill the entire browser window. What size should I make the canvas, I've been experimenting with sizes and a canvas size of 750*370 fills my browser well on a resolution of 800*600

How do you accomodate different resolution settings? What's the most commonly used canvas size for this type of project.

View 2 Replies

Flex :: Image Size In Other State?

Apr 1, 2011

i have this source in flex - easy program which switch between two states..in second state is show myImage component

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code].....

View 2 Replies

ActionScript 3.0 :: Specify Which Page A User Is On By Having The Button On The Rollover State?

Apr 19, 2009

I would like to specify which page a user is on by having the button on the rollover state. For example, on the products page, I would like the products button to be in the rollover state. I can't figure out how I would do this. Below is the code from the as file. 
 
package codesource
{
import flash.display.MovieClip;
import flash.events.Event;

[code].....

View 2 Replies

ActionScript 3.0 :: Keep The Over Or Down State Active Until The User Clicks Another Button?

Jan 14, 2011

I am new to actionscript 3. I have created buttons with up/over/down states. The button changes colour during the over/down frames.How do I keep the over or down state active until the user clicks another button?

Right now when the user puts the mouse over the buttons, they change colour, but it goes back to the original colour once they click off. I would like it to remain on the changed colour so that the user remembers which button s/he's pressed until the another one is clicked.I came up with the following code in actionscript 3 and got it to partially work:

ActionScript Code:
btn1.addEventListener(MouseEvent.MOUSE_UP, startTransparent)
function startTransparent (e:MouseEvent):void{
btn1.alpha = .6;
}

So when it's in the down state, I get the transparent state and stays there. But how do I get it back to normal when the user clicks on another button?

View 7 Replies

ActionScript 2.0 :: RollOver State That Stays When User Clicks A Button?

Oct 11, 2007

i wrote many things (something like back functions) but i failed. my code and my swf is below.

Code:
stop();
import mx.transitions.Tween;

[code].....

View 1 Replies

Flex :: Make Flex Fit The Users' Screen.. No Matter What Screen Size?

Jul 9, 2010

Making an Flex App. Just wondering if anyone has created something that fits automatically to the users' screen size and how I go about doing this? One of the principle things is that I need an background image, which is obviously going to have to scale / resize to match the users screen.

View 1 Replies

ActionScript 2.0 :: Button - Play It In "inactive" State When The User Clicks Anything Else

Apr 11, 2005

I have buttons (transparent) and little mc animations (tweened the good old fashioned way) that play underneath them on onPress.What I want to do is make it so that when you press say "Home" the animation will stay in the "on" position until you click something else, anything else. That is to say, I want to say "This button just got clicked, play the animation, keep it in the "active" state while the user is looking at the page, and play the "inactive" state when the user clicks ANYTHING else."Right now, I've coded each individual button like this:

on(release) {
content.loadMovie("about.swf");
buttonthing.gotoAndPlay ("off");[code]....

View 2 Replies

Size To Fit Screen

Feb 6, 2004

A friend of mine says that he cannot see the links at the bottom of my page but for me I can. Can you see the links? [URL]

View 3 Replies

Professional :: Enter The User's Screen?

Apr 20, 2010

I have an animation of a ball that I want to enter the user's screen (browser window). Basically,it would be off-screen for a few seconds, and then enter from the left, and stopping in the middle.

View 4 Replies

Actionscript 3 :: Get The Screen Size In Air?

Nov 6, 2011

In AS3 code for Air, how can I get the screen width and height of the mobile device its running on?

View 2 Replies

ActionScript 3.0 :: Get Size Of Screen?

Jan 17, 2011

I currently have some code that displays an image in a pop up and just takes the width and height of the image. My problem is that some of the images are larger then my screen. How can I get the size of my screen and then readjust the width and height of the image based on that?

View 5 Replies

Resizing SWF Object - User Screen Resolution

Mar 14, 2011

I'm working on a flash site, but I want the site to resize to the user's screen resolution...I'm new at actionscript and flash, but what is the most efficient way to accomplish this?

View 3 Replies

ActionScript 3.0 :: Get The Screen Resolution Of The User's Computer?

Oct 26, 2011

way to get the screen resolution of the user's computer by using any action script code.

View 2 Replies

ActionScript 2.0 :: Detect User Screen Resolution?

Aug 27, 2006

My site starts off with a splash page. I would like to have one link to enter the site.

A long shot, but anyway....is there an actionscript that can detect user screen resolution and then open a page accordingly?

View 4 Replies

Professional :: Question Regarding User Interface Text Size?

Aug 9, 2010

I'm doing a trial of the CS5 applications and I cannot seem to find out to increase the size of the font on my user interface.  I'm finding the default font size to be too small to work effectively and find the commands I need.  I've tried Edit->Preferences which is where one typically finds this type of interface option; however, I do not see any way to do this. I've tried adjusting my screen resolution and screen font size and while this affects every other application on my screen, it does not affect Flash Professional.

View 4 Replies

ActionScript 3.0 :: Adjust Stage Size To User Resolution?

Jul 28, 2011

how can i adjust the stage size to user resolution?

View 3 Replies

Javascript :: Size A .swf To Full Screen With .js

Sep 20, 2011

My application is built in Flash Builder. I want to embed a small Flash login form inside an HTML page. The login form is in the 'login' state of code and is a few hundred pizxels wide/ tall. The 'default' state is set to height and width of 100%. I have a resize function that is executed once the login receives the appropriate credentials.

private function resizeApplication():void {
if(ExternalInterface.available) {
ExternalInterface.call("resizeApplication");

[Code]....

#app is the div and overflow is set to auto in the body. This works just fine except that I am left with some visable portion of the webpage near the bottom. I want to be able to either resize the webpage to match the swf or hide everything except the swf. I have tried a few different things with the js including setting the bottom attribute to 0 and using variations of the document.body.clientHeight.

View 3 Replies

ActionScript 3.0 :: SWF That Resizes To Screen Size

Nov 10, 2009

I'm trying to make an swf that resizes to the browser's size at initialization and when the stage is resized... but it seems to initialize at the original stage width (which is 800 * 600) and then when the stage is resized, it works... the swf is currently nothing but an image that says the site is under construction... but I'd like to resize it to screen size... here are my AS 3.0 and HTML code...

[Code]...

View 5 Replies

IDE :: Matching Width To Screen Size?

Jun 2, 2009

I'm sure there are a million posts on this, but I cannot for the life of me figure out the wording under which they are classified.I am trying to get my site to scale so that the width is 100% the width of the screen, and the height, if there's more than can be viewed, is cut off. No scrolling. If I simply use the 100% width property, it seems to also give height at 100% value, so this way the whole site fits on the screen, but there is empty space on the right and left which is not what I want. Does this make sense how I've worded it?

View 5 Replies

ActionScript 3.0 :: Get Some Color Info For Where User Clicks On The Screen?

Jul 23, 2009

I need to get some color info for where user clicks on the screen. can i use getPixel with an imported image file ? or does it need to be converted to a bitmap?

here is the code im using to import my image

PHP Code:

function loaderComplete(myEvent:Event)
{
var myQueryStrings=this.loaderInfo.parameters;
//Live URL

[Code]....

View 6 Replies

ActionScript 3.0 :: Scale Up Stage According To User's Screen Resolution?

May 9, 2010

Is there any way to scale up stage according to user's screen resolution?
 
because:
 
stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE;
 
and width: 100% in html document 
 
doesn't work when screen is widther than flash site.
   
I managed to size up stage in AS2 but I have no idea how to do that in AS3.

View 3 Replies

Media Server :: Screen Share With Online User?

Sep 20, 2011

I'm working on e-learning project using ASP.NET,C#,SQL Server and Windows XP.I'm developing an interactive videoconferrencing using WebCam and at the same time i want to share the user desktop screen. Through FMS videoconferrencing(WebCam) is working fine. But i'm unable to share screen to online user

View 3 Replies

Javascript :: Simulate User Keypress To Zoom Screen?

Jul 18, 2011

Is there any way of simulating a keypress of Ctrl+'+' (to zoom in the page) without any user interference?

Is it possible to do it using Flash?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved