ActionScript 3.0 :: FullScreen One Element On Stage And Not The Whole Stage

Sep 18, 2008

Imagine a stage. Imagine a series of images (smaller than the stage and spread out evenly) that have been loaded into a bunch of "swfContainer" movieClips via the Loader Class. Is it possible to make one of these "swfContainer" movieClips go FullScreen and nothing else (i.e. not the entire stage, just the _mc that one of these images sits in)?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Open Image In Fullscreen With Stage.displayState="fullScreen";?

Dec 28, 2006

i have my photo gallery and if you push a button photo has to open in new window with fullscreen.

for fullscreen i use Stage.displayState = "fullScreen";

View 2 Replies

Not Seeing UI Element On Stage

Jun 4, 2010

I put some UI component on the stage but i does not seen there but  when i test the movie then i can see int the swf file

View 1 Replies

ActionScript 3.0 :: Lock Element To Stage?

Sep 26, 2010

I'm doing a website for me, with flash... I want that the site is "full browser screen" but, I need that only the background is stretched for the size of the browser window, all the other elements (like nav bar, logo etc) will be in the same position, and MUST NOT be stretchet like the background...

How can I lock the position and dimension of the element of the website, but let the background stretch?

View 1 Replies

ActionScript 3.0 :: Add XML Element For Each Child On Stage?

Mar 2, 2012

I am writing a program where the user can, in the simplest terms, drag and drop things on to the stage. I need the user to be able to save what they have done and when they come back choose to reload their previous project. My plan was to write all the information(object class, x and y values etc) to an xml file and when the user chooses to load a particular project, rebuild the stage with all objects in their correct locations. My problem is, how do you add an xml element with all of its attributes and child elements dynamically for each object added to the stage?I'm relatively new to XML, but I figured this would work:

ActionScript Code:
var test:XML = <test/>;
test.title = "Test XML";
for (var i=0; i<platform.numChildren; i++) {

[code]....

in a for loop as well. But, these give me a warning that says "adding an element with more than one item is not supported" or something like that.

View 0 Replies

ActionScript 3.0 :: Stage Element Positions On Resize?

Feb 2, 2011

I'm creating a website within which I would like to achieve a menu system at the bottom of the page with a white band behind similar to this site:
 
[URL]
 
I have created the menu buttons and band but I can't figure out how to maintain their relationship with the edges of the browser window if it is rezised at any point during a user's visit (same as the site above).

I have been setting the position of the buttons and all other elements using, for example :

myBtn.y = stage.stageHeight - 100;myBtn.x = stage.stageWidth - stage.stageWidth + 50;
 
For publishing I use noscale, 100x100 percent, top-left justification.

View 3 Replies

ActionScript 3.0 :: How To Change Color Of Element On Stage

Jun 20, 2010

I have two boxes on the stage. These two boxes together are converted to graphic. Each of the box - lets called "A" consist of some kind of surrounding (the line around the box for which we set up[ stroke) which I will cal "B". And inside that box theres another box of different color - I will call it "C", with different surrounding - call it "D".

(It is inside the first one).The other box from that graphic looks the same, but has different names. "E","F","G",and"H" respectively. All of the elements "A","B","C",and "D" forms a button. I have some code to use it.(with event listeners) My question: If I would like to change the colour of the element "B" (which are a movie clip), how will I code it.

ActionScript Code:
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.utils.Timer;
var urlLoad:URLLoader=new URLLoader();
[Code] .....

And it tells me: Access of undefined property B...
The code works fine for whole button(A). A changes color, but I would like only the surrounding to change the color. I guess I have to put some path in there, but I am not really sure how to.

View 2 Replies

ActionScript 3.0 :: Scaling Stage In Fullscreen?

Nov 19, 2009

I'm having a little trouble getting my swf file to fully scale in fullscreen mode. It doesn't look like the stage is scaling and my picture gets cut off. Attached is an image and the code also. It goes full screen at its native resolution fine but gets cut off when i try to scale.

import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;

[code].....

View 2 Replies

ActionScript 2.0 :: Stage And Fullscreen Fscommand?

May 4, 2011

I'm making a flash movie project, the stage size is 600x800. When I use fscommand to make the flash projector fullscreen it shows everything, including out of stage things. How do I get the projector to only show the stage Fullscreen? PS: An answer in AS 3.0 would be fine to! As 2 is preferable!

View 1 Replies

Flash :: Element Stays On Stage After Manipulating The Index(depth)?

Mar 24, 2010

Here is the problem I have: after I change the index of one movieclip using this code

oldIndex=getChildIndex(DisplayObject(e.target));
setChildIndex(DisplayObject(e.target), numChildren - 1);
when I give the object its old index
setChildIndex(DisplayObject(e.target), oldIndex);

and go to another frame of the movie, this element I have changed the index of stays on top of all elements on the new frame. My question is am I doing something wrong and if not, what can I do so that this element stays only in the frame it is placed.

View 1 Replies

ActionScript 2.0 :: Full Browser Flash - Element To Be 'bigger' Than The Stage?

Jul 16, 2007

I'm working on a full browser flash site and it works great, its got a 1000x650 movie in the middle centred in the html and the background colour of the movie fills the rest of the stage, no margins, no mess!

Thing is, I need a black overlay to fade in (to put other content over the top) Thing is, the black box only resizes to the size of the stage not the full browser window! Heres the code at the moment:

// Stops the stage from scaling with the browser window.

[Code]...

View 8 Replies

ActionScript 3.0 :: Video Playing Fullscreen Instead Of Stage

Nov 23, 2009

I'm developing a kiosk-type projector file to play fullscreen & I'm encountering a strange problem. There's a video on the stage (720 x 480) and the stage is 1280 x 768. When the projector switches to fullscreen mode, the video expands to fill the height of the screen instead of the stage filling the screen. It's acting like the fullscreen mode is telling the video to play fullscreen.

View 6 Replies

ActionScript 3.0 :: Max Stage Size When Not In Fullscreen Mode

Jun 23, 2010

Is there a way to determine the non-fullscreen maximum stage height/width? In other words, is there a way to pre-determine what the value of stage.stageHeight and stage.stageWidth will become before the user maximizes his browser?

View 2 Replies

ActionScript 3.0 :: Fullscreen Video Background On Stage

Dec 1, 2009

This fullscreen code works properly if the stage is 400 x 400 px or smaller than .flv ( I tested it in both in html and swf ).
stage.addEventListener(Event.RESIZE, onF);
function onF (event:MouseEvent):void{
stage.displayState = StageDisplayState.FULL_SCREEN;
video.fullScreenTakeOver = true;
}
But the video is not going fullscreen if the stage is bigger than 400 x 400. I have to make a stage big in order to design the rest of my website.
Publish settings : exact fit, 100% width 100% height, flash only Allow Full Screen.

View 3 Replies

ActionScript 2.0 :: Fullscreen Projector With NoScale On Stage

Mar 22, 2008

I working on a projector presentation in flash where I would like to run it in fullscreen. I use:
fscommand("fullscreen","true")
In the first frame, but it scales up my content so that it gets blurred. Is it possible to keep the stage width and height and still go fullscreen, so you just fill the space with stage color.

View 2 Replies

ActionScript 3.0 :: Stage Sizes For Fullscreen Flash?

May 14, 2009

I've been messin' around with fullscreen flash and I'm wondering, what's the best stage size for this? Obviously, 550 x 400 doesn't work, but what's a good stage size to start from?

View 3 Replies

ActionScript 3.0 :: Switching To Fullscreen With FLVPlayback Component On Stage

Sep 5, 2009

I've encountered a really frustrating problem recently when switching to StageDisplayState.FULL_SCREEN with a FLVPlayback component on the stage.

My movie:
bottom layer: a movie clip inside of which is a FLVPlayback component playing a flv movie
upper layer: movie clip (logo), second mc (fullscreen button)

Fullscreen button code:
function doFullscreen(event:MouseEvent):void {
if(stage.displayState == StageDisplayState.FULL_SCREEN){
stage.displayState = StageDisplayState.NORMAL;
} else {
stage.displayState = StageDisplayState.FULL_SCREEN;
}}bFullscreen.addEventListener(MouseEvent.CLICK, doFullscreen);

Effect (Before clicking the fullscreen button):
Everything is okay, the movie plays, logo and button are visible.

Effect (After clicking the fullscreen button):
The only thing that is visible is the playing movie, but logo and fullscreen button disappear.

What happens:
The mc with the FLVPlayback component gets the highest child index and covers the logo and button. It is not the problem with aligning logo and button on the stage, as without the FLVPlayback component they are perfectly aligned. I also tried to manually switch the depth of the mc with the FLVComponent, unfortunately without any result.

View 1 Replies

Professional :: If Go Fullscreen When Viewing An Flv The Video Remains On The Stage

May 5, 2011

I've used a standard skin on an FLVplayback component which loads and plays perfectly. The problem arises when I enter fullscreen mode and then leave it again. Once I've done this, the video remains on the stage irrespective of what frame I'm on. I can even change scenes and the video remains in the middle. I haven't even added the video using actionscript so I don't really understand how it could possibly stay on more than the frame its inserted in!? At the moment I've used no ActionScript to control the video. I apologise if I'm missing something, this is the first time I've dealt with videos.

View 8 Replies

ActionScript 1/2 :: Movie Clip In Center Stage Even Fullscreen?

Mar 2, 2012

how do I get a movie clip in the center of the stage, even if it moves to fullscreen

View 3 Replies

ActionScript 3.0 :: Stage To Prevent Scaling Of Movieclips On Fullscreen?

Mar 3, 2011

in flash AS1,2 you just input this code Stage.scaleMode="noScale";

on a frame of the main stage to prevent scaling of movieclips on fullscreen.I tried the same thing in AS3 and its not working for me. so my question is how would i apply this in AS3?

View 8 Replies

ActionScript 3.0 :: Change The Default Key (space Bar Key) To Execute The Action Of The Focused Element In The Stage?

Jun 3, 2011

it's possible to change the default key (space bar key) to execute the action of the focused element in the stage?If you ever worked with the Focus Manager you've possibly seen that when you press the space bar the focused item is "executed".Can you disable that "executor" or can you change the space key with the enter key?

View 2 Replies

Professional :: FLVplayback Fullscreen Not Working When Stage Is In Full Screen Mode

Jun 8, 2011

I have an SWF file with a full-screen button working perfectly. I have added an FLVPlayback component, working correctly.
 
However, if the whole stage is in "Full Screen" mode, and I click on the button which loads the FLVPlayback component, the screen becomes black and the FLV doesn't even load.
 
I have tried addind the action movieHolder.fullScreenTakeOver = false;  but it did not help.
 
I m working with Flash CS5 and AS 3

View 14 Replies

ActionScript 2.0 :: Fullscreen The Video Object Loads In The Top-left Corner Of The Stage?

May 8, 2008

I'm working in a xml videogallery and I'm using a video component... The problem is that when I go fullscreen the video object loads in the top-left corner of the stage (is a 800x600 movie) tough I publish my movie with 100% x 100% dimensions.

[Code]...

As you can see after the first fullscreen the stage remains in the Top Left corner. Is there any way to make the stage return to the center? I need to do it when I return from fullscreen to normal mode... or.. what can I do? I tried to put the gallery inside a MC and center it but still fails cos the video object loads in the registration point of the MC (like in the first example I've provided)...

View 4 Replies

ActionScript 2.0 :: Fullscreen Image/stage - No Image Distortion?

Dec 17, 2004

I have found 2 different Threads about the topic, which worked fine.[URL]... and it seems that it is close to what I am trying to achieve. However, the codes that they came up with don't seem to work with mine. I attached the FLA.Anybody has a solution so when the stage is scaled down smaller than the original image size, the image stops scaling. And the image doesn't distort. The eagle on the intro scales proportionately and the one when you go to campaign section behaves exactly like I would like to.I've found the website here by the way, which was the starting point of my experimentation.

Code:
//stage properties
Stage.align = "TL";

[code]....

View 8 Replies

Dragging The Stage From Left To Right To Reveal Hidden Areas Off The Edge Of The Stage - Part 2

Dec 10, 2009

I have created an animation (see attached) where the stage can be dragged from left to right to reveal hidden areas off the edge of the stage. Unfortunately I need to add buttons containing links to websites within the dragable movie symbol and I can't work out how to do it.

View 2 Replies

Flash Osx - Viewing Applications On A Mac Stage.stageWidth/stage.stageHeight Return 0 In Firefox/IE

Dec 13, 2009

I am using SWFOBJECT to embed my flash content. I have been worried about stage.stageWidth and stage.stageHeight returning 0 in Firefox/Internet Explorer; this problem is referred to in question #21 on the SWFOBJECT FAQ [URL]..I have been told that this problem is particularly prevelant on Macs. The SWFOBJECT FAQ (question 21) indirectly suggests that this problem does not occur with static publishing. Is this correct? Is it still advisable to implement a solution to this stageWidth/stageHeight problem, even if you are using static publishing?

View 1 Replies

ActionScript 3.0 :: Accessing Stage Items, Through A SWF File Which Is Loaded Inside The Stage

May 14, 2011

- I have A.fla.

-  A.fla includes buttons, movie clips and also B.swf is loaded in A.fla using a LOADER

- i want to access elements in A.fla, from the actionscript codes inside B.fla to modify those movie clips and buttons based on actions going on in B.swf
 
for instance, lets say there is a button X in A.fla, and there is a button Y in B.fla,  B.swf is loaded into A.fla, and I want the button Y to erase button X when clicked.
 
general question:  accessing elements in a stage, through a SWF file loaded into that stage.

View 2 Replies

Actionscript 3 :: Centering Objects On Stage And Auto-Scaling With Stage Resize

Oct 19, 2011

I'm writing a web based flash app that's written entirely in AS3. I have objects on the screen as part of a GUI. I would like the user to be able to resize the window, or make it full screen. I would like everything to auto-scale with the resize, but also remain in the same relative position on the stage.

View 1 Replies

ActionScript 3.0 :: Cannot Visit Stage Attribute Before Display Object Added To Stage

Oct 22, 2009

I have a library swf (asset.swf), it's document class binded to Asset.as, and in the Constructor function of Asset,[code]as known to all, we cannot visit the stage attribute before the display object added to the stage.so, when my loader.swf try to load asset.swf, it throws exception and the loading come to failure is there some one tell me how to load the asset.swf? I cannot modify the asset.swf.

View 0 Replies

ActionScript 3.0 :: Stage.stageWidth & Stage.stageHeight Change In Full Screen?

Jun 18, 2010

I've been working on a project that requires lots of scaling around a center point.

I always thought that stage.stageWidth and stage.stageHeight give you the dimensions of the stage you set in the properties panel no matter what. But when I went into fullscreen mode (with scaling), both the width and the height changed to the dimensions of the screen rather than staying the dimensions I specified.

View 1 Replies







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