ActionScript 2.0 :: Positioning Mc At Fullscreen

Feb 1, 2009

i have seen websites with fullscreen .swf and i dont know what kind of script they used to have the movie clips positioned constantly i.e. 20px from right border of the screen while all people have different resolutions.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Positioning Mc To Borders With Fullscreen?

Feb 5, 2009

how do i make some movie clip positioned lets say 10 pixels from border while im using fullscreen swf?

I have tryied:

Code:
bobek._x = (Stage.width)-60;
bobek._y = (Stage.height)- 60;
(test movie clip have 50x50px)

but it just put it once and takes the width and height of the .fla settings insetad of real dimensions of fullscreened .swf

How to make it position the mc all the time whenever someone resize the window/open it in fullscreen?

Im using those commands for full screen:


Code:
fscommand("allowscale","false");
fscommand("fullscreen","true");
fscommand("showmenu","false");

[Code].....

View 12 Replies

ActionScript 3.0 :: Toggling Video Fullscreen And Positioning Videoplayer UI?

Oct 12, 2011

I've landed a project which is centered around building a custom video player with some special functionality (so I can't just use the default Flash video player, unfortunately). I have two small 'problems' in the sense that I could probably solve them myself, but I'd like some input on best practice for solving them:(The project is for Flash Player 10 and the video is intended to run inside a browser.)

Toggling between normal / fullscreen playback Ok, so my custom video player needs to be able to toggle between fullscreen and normal embedded-in-webpage player size. How does fullscreen toggling currently work in AS3 -is there a specific AS3 method for fullscreening a specified video object in the swf (without stretching the video player UI in the swf itself), and if so, does it automatically black out the background if the screen format doesn't match the video format? - or do I need to download a class for this?

Positioning video player UI when going fullscreen As opposed to YouTube, I want the player UI to still show up when the video is toggled to fullscreen mode - but as mentioned above, I don't want to stretch its size along with the video. So is there a best practice for repositioning the video player UI to the vertical bottom and horizontal center of the screen when the user clicks full screen? I'm not entirely familiar with what happens to the Flash stage when it goes full screen,. How to deal with not knowing the coordinates of the vertical bottom/horizontal center when screens have different ratios and resolutions?

View 3 Replies

ActionScript 3.0 :: Toggling Video Fullscreen And Positioning Videoplayer UI - Best Practice?

Oct 12, 2011

I've landed a project which is centered around building a custom video player with some special functionality (so I can't just use the default Flash video player, unfortunately). I have two small 'problems' in the sense that I could probably solve them myself, but I'd like some input on best practice for solving them: (The project is for Flash Player 10 and the video is intended to run inside a browser.)

Problem 1: Toggling between normal / fullscreen playback Ok, so my custom video player needs to be able to toggle between fullscreen and normal embedded-in-webpage player size. How does fullscreen toggling currently work in AS3 -is there a specific AS3 method for fullscreening a specified video object in the swf (without stretching the video player UI overlay), and if so, does it automatically black out the background if the screen format doesn't match the video format? - or do I need to download a class for this?

Problem 2: Positioning video player UI when going fullscreen As opposed to YouTube, I want the player UI to still show up when the video is toggled to fullscreen mode - but as mentioned above, I don't want to stretch its size along with the video. So is there a best practice for repositioning the video player UI to the vertical bottom and horizontal center of the screen when the user clicks full screen? I'm not entirely familiar with what happens to the Flash stage when it goes full screen, How to deal with not knowing the coordinates of the vertical bottom/horizontal center when screens have different ratios and resolutions?

View 3 Replies

ActionScript 3.0 :: Flash Fullscreen Screensaver - Positioning Unscaled MovieClips

Aug 30, 2010

I am making a fullscreen "screensaver" project (using screentime, FYI). I have some mcs on the stage that I want to scoot down to the bottom left, right or whatever on the screen. I want these elements to position themselves differently based on the users resolution and aspect ratio of their monitor. (for example: whether the monitor is 800x600, 4:3 OR 1366x768, 16:9, I want a text field or mc to be 10 pixels for the bottom and left of the screen).

View 1 Replies

ActionScript 3.0 :: Fullscreen Button On The Playback Component, Which Will Allow The User To Toggle The Video Fullscreen?

Apr 13, 2009

I like to make a fullscreen desktop application, with an FLV, using the FLV Playback component. However, I�d like there to be a Fullscreen button on the playback component, which will allow the user to toggle the video fullscreen.I cant, for the life of me, figure out how to do this with various settings�it should be easy! This is what I have--is there a better way to do things (without a custom movie player)? My inital settings are as follows:

Code:
stage.displayState = StageDisplayState.FULL_SCREEN;
theMovie.fullScreenTakeOver = false;

Then I have a function which should work--but my button won't appear in fullscreen--Can I apply this function to the built-in fullscreen button?:

Code:
function handleClick(event:MouseEvent):void
{
if ( !theMovie.fullScreenTakeOver )[code]....

View 9 Replies

ActionScript 2.0 :: Fullscreen Scroll Bar On Fullscreen Flash Site

Apr 19, 2009

I need a fullscreen scroll bar on my fullscreen flash site , i need it to function similar to this URL...

View 1 Replies

C# :: WebBrowser Flash Fullscreen / ESC Won't Exit Fullscreen

Jul 14, 2010

I have a swf inside a html page. If I open it with IE or FF and put it into full screen I can exit full screen with the ESC button.Now if i try this with my WinForms app and WebBrowser (or ShockWave Flash Object) it's not working??

View 3 Replies

ActionScript 2.0 :: Loading Fullscreen External SWF's Into A Fullscreen SWF?

Oct 19, 2006

What I've done is created a "fullscreen SWF" by using ActionScript to stretch a movie clip (yellow rectangle) in the background to fill the whole browser frame. The navigation is positioned in the upper left using ActionScript also; when the user resizes the window, positions are adjusted so the nav always stays in the upper left. (Adapting the technique from http:[url]....

External SWFs are loaded from an XML file into a blank movie clip on a layer that is between the yellow background and the navigation (adapting the kirupa XML Photo Gallery). Here's my problem: I want to be able to create full screen backgrounds for these external SWFs so when they are loaded into the main SWF they cover up all the of yellow background of the main clip. Also if the user resizes the window, I hope like the main SWF, the background on the external SWF can also resize to match.

If you press next twice to get to item three for example, I want to be able to stretch that orange box to fill the entire background. You'll notice if you resize the window on the third item, the orangle rectangle will adjust, it's just not correct.

View 2 Replies

ActionScript 3.0 :: Fullscreen Video From Fullscreen Air App?

Feb 24, 2011

I'm hoping someone can help me with an issue I'm having.
 
I currently have an AIR Application that runs fullscreen.
 
At some point in the application, I am trying to get a video to play fullscreen as well.

[Code]...

View 3 Replies

ActionScript 3.0 :: Load Full Browser With A "fullscreen"-button To Go Fullscreen?

Aug 30, 2009

I'm making a flash site, and i want it to load full browser with a "fullscreen"-button to go fullscreen. The problem, however, if i resize, the site will keep the same width-to-height ratio...But if i'm testing it using the flash debugger, everything resizes just correct...My html:

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">[code]......

View 1 Replies

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

IDE :: Relative Positioning With X AND Y?

Feb 13, 2009

I'm looking to create something like the link below, [URL].. however I need it to work on both x and y,I've been trying for days to figure out a way to pull this off,

can anyone point me to a tutorial or an example of something along those lines?

View 5 Replies

ActionScript 3.0 :: Positioning Loader For Swf?

Mar 9, 2009

I am trying to position my loader for an external swf. Can anyone help me. Here is the code that I currently have to load the swf. These are the positions that I need x=0, y=180.

Code:

stop();
var myLoader:Loader = new Loader();
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoadComplete);
function swfLoadComplete(loadEvent:Event)

[code]...

View 2 Replies

ActionScript 2.0 :: Positioning And Resizing A .jpg

Jul 12, 2010

I'm using action script v2 to load a .jpg from a button.I'm using the command 'loadMovieNum("photo.jpg",4)'What script could I add in to resize the jpg to specific dimensions and position it at a particular x,y coordinate?

View 2 Replies

ActionScript 3.0 :: Positioning MCs According To Height?

Aug 24, 2010

I need to create the attached jpg, but i'm not sure of the best way to tackle it. The news posts are loaded from XML and will vary in height so they need to somehow be sorted so that if one is going to come off the page, then it's put into the next page - where the user will click the scroll buttons to view.

1/ Load article from XML

2/ Create a postMC_0 and add article bits to it (date, title, body)

3/ Record height

4/ Create a newsColumn_0 and add postMC_0 to it

Then a loop:

5/ Load next article

6/ Create a postMC_1 and add article bits to it

7/ If difference between postMC_0 height and newsColumn_0 height is greater than the height of postMC_1, then add postMC_1 to newsColumn_0.

8/ If not, then create newsColumn_1 and add postMC_1 to it.

9/ Loop back to 5 (increasing the numbers each time, so postMC_2, etc) Then just make the scroll buttons function according to how many columns have been created..

View 21 Replies

ActionScript 1/2 :: Loading And Positioning A Swf Into A Swf

Sep 8, 2010

This is the swf I'm trying to load. These actions load and position a small simple swf just fine and the trace in the onLoadProgress function indicates that it loads completely but I can't see it. What am I doing wrong?

[Code]...

View 12 Replies

Flash :: Get Positioning After Rotation?

Nov 28, 2011

I built an app in flash where you can rotate objects and save positions and rotation to xml.... that xml then feeds html to produce a layout that is then rendered the a pdf It seems that every time it goes to the html, a rotated object in positioned a little to the lower right then the position in flash.

I know the rotation in css in different, but I think if I can find the true top left of the rotated object in flash and pass that it will solve the issue.

I tried this

newx = imageHolder.parent.localToGlobal(new Point(imageHolder.x,0)).x;
newy = imageHolder.parent.localToGlobal(new Point(0,imageHolder.y)).y;
also this imageHolder.parent.globalToLocal(imageHolder.localToGlobal(imageHolder.getBounds(imageHolder).topLeft));

neither work. Is there something else?

View 1 Replies

ActionScript 3.0 :: Positioning And Resizing?

Nov 27, 2010

I have been working on this to no avail. I would like to individually position different movie clips unto my flash site, yet it will only let me position one. Well.. more specifically it will perfectly position rock_mc, but transition_mc wont appear centered until I resize the screen manually. Is there any way I can fix this to have it appear in position from the beggining?

Code:
function init()
{

[code].....

View 1 Replies

ActionScript 2.0 :: Positioning Mcs On The Stage?

Aug 24, 2011

I'm trying to make some mcs be displayed from alpha 0 to 100, one by one in the stage and in random positions. I've managed to make appear it randomly from alpha 0 to 100 with this code:

Code:
mcs = new Array("mc0", "mc1", "mc2", "mc3", "mc4", "mc5");
mc0._visible = mc1._visible = mc2._visible = mc3._visible =mc4._visible =mc5._visible = false;[code]....

The strange thing is that only some mcs are positioned randomly and others stay in the same position.

View 3 Replies

ActionScript 3.0 :: Relative Positioning With X And Y?

Feb 13, 2009

I'm looking to create something like the link below,
[URL]
However I need it to work on both x and y.

View 2 Replies

ActionScript 2.0 :: Top Right Dynamic Positioning?

Mar 8, 2007

how would you go about positioning a MC in the top right hand corner - a few pixels. And How to get it to stay even on Resize? to get it to stay in that corner so it moves with the screen resize?

View 2 Replies

ActionScript 2.0 :: Positioning MCs And Textfields?

May 1, 2007

Here's my code:

Code:
for (var i = 0; i<nTotalPics; i++) {
main.createEmptyMovieClip( "container"+i, i );
var container:MovieClip = main["container"+i];
container.createEmptyMovieClip( "pic"+i, i );

[code]....

First, if I add "trace (pic._name);" inside the onLoadInit function it outputs "pic3,pic2,pic1,pic0". Why does it show up in reverse order of the for-loop?

Second, is the "pic:MovieClip" in "mclListener.onLoadInit = function(pic:MovieClip)" pointing to the "pic" in "mcl.loadClip( astrImages[i], pic );"? If not, what is it pointing to? If it is, can I add another variable after "pic" so that I can pass it inside the onLoadInit function? Ultimately what I would like to do is create a textfield under each pic.

View 1 Replies

ActionScript 2.0 :: Positioning Mcs On The Y Axis

Nov 20, 2008

I am using this actionscript to obtain full screen flash in AS2 but am having problems positioning mcs on the y axis (the x is no problem).

[Code]...

I am trying to get the mc "buttons" position in the top right of the browser window but I cant get the height value correct. When the width is used on its own it works perfectly.

View 2 Replies

IDE :: Positioning The Movie Clips?

Jan 16, 2009

I have five rectangle shaped movie clips....I need to change their _y position randomly by clciking a button..but there must be 10px space between them... so how do I modify the code to do it ?

PHP Code:

myArray = new Array(m1, m2, m3, m4, m5);for (i=0; i<=myArray.length; i++) {_root["m"+i]._x=400;_root["m"+i]._y=Math.floor(Math.random()*300)+20;} 

View 6 Replies

ActionScript 2.0 :: Positioning Mcs On Stage

Aug 24, 2011

I'm trying to make some mcs appear to alpha 0 to 100, one at one in the stage and in random positions. I've managed to make appear it randomly from alpha 0 to 100 with this code:[code]The strange thing is that only some mcs are positioned randomly and others stay in the same position, but not always the same.

View 1 Replies

ActionScript 2.0 :: Positioning MovieClip To Always 20px Below Another

Apr 8, 2009

I have a movie clip named "footer" and another movieclip named "portf". I want footer to always be 20 pixels below movieclip portf. How can I do that.

View 7 Replies

ActionScript 2.0 :: Flash 5 - X And Y Positioning Of MovieClip

Oct 28, 2009

I always run into the same bug concerning the x and y positioning of a Movie clip. When I try to get the X and Y values of a movie clip inside another movie clip, they aren't the same values (since I guess every MC has it's own x,y grid starting at point 0,0 where that MC is placed on the work area). How do I get the x and y values of a MC inside another MC when I want those values to be the same as the _root's x and y values? In other words: The movie clip that is inside the other one is moving on a simple guide path. I want to create "lasers" (or whatever) at its own coordinates every few seconds depending on where that moving MC is at when the shooting counter is up.

View 2 Replies

ActionScript 3.0 :: Can't Use StageWidth For Positioning When Resize

Sep 5, 2010

I'm trying to get the width and height of the stage to position my objects when the user resizes the window, but I can't figure out how.

I've Googled a lot and found some examples and my last try looks like this [code]...

View 4 Replies

ActionScript 3.0 :: Writing Loops And Positioning?

Feb 2, 2009

I am writing a loop and want to position 25 boxes in a square. I can make 5 boxes appear in a line, but can't make 25 boxes appear in a square without writing 5 seperate loops (e.g. j, k, l, m, etc.). This seems long-handed, can I shorten the code? Here is the code I have used so far:

var box:Box;
for(var i:int = 0; i < 5; i++)
{

[Code].....

View 2 Replies







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