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


Similar Posts:


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

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

Display Element Borders In Flex App?

Feb 1, 2010

Is there a way to put borders around the (MXML) elements of a Flex application? I'm picturing something similar to what Firebug does for HTML with the Inspect button (url...)

View 4 Replies

ActionScript 3.0 :: TextField Borders Not Uniform

Sep 17, 2009

I have created an array of Input Textfields with their borders visible. All is fine when I play the swf directly in the Flash player. But when I try to view it in the browser, certain horizontal and verticallines in the grid appear darker than the rest.

View 1 Replies

ActionScript 2.0 :: Expand Swf Over It's Borders Over To The Html Space?

Jun 12, 2006

I need to make a small swf box. But I want that when I go over with the mouse the box enlarges over everything, not just in its configured swf space but also over the page ?

View 4 Replies

ActionScript 2.0 :: [cs3] LoadMovie: Objects Extending Beyond Borders

Jan 27, 2009

I'm not much of a web/flash designer, but I need to showcase my print work online - so I apologize foremost for the noob-ness. I tried to search for this, but came up empty. I am loading external swf movies via loadMovie, into my "base" (main) flash file which will essentially be my website. Everything is loading fine.

I have an swf file that when I load (with loadMovie) objects are extending beyond the set stage size of the swf and onto the "main" flash file. This only occurs with objects that are "off" of the stage. For example, I have a background which is larger than the set stage size, when I load the swf, the movie loads up, but it allows the background to extend beyond the stage size. Is there a way to "crop" the flash file? All I need to do is load a movie without "hidden" objects appearing. (I also have checked that in publishing preferences.)

View 3 Replies

Actionscript 3 :: Eliminate Borders On A DataGridColumn In Flex?

Jul 26, 2011

I can't see a way to get rid of certain borders within a DataGrid. I'd like to eliminate a side border on 2 of my columns so that they appear to look like a single column.I'm trying to implement a "clear value" button on each of my DataGrid rows. I was able to have a button show on a custom ItemRenderer from a separate ActionScript file, but I was unsure how to have the button click event propagate to the mxml file where the DataGrid is located. It would be much easier for me to have an extra unresizable column with a 'clear' button.

So, to reiterate: Is there any way to change the border style or eliminate certain borders of a DataGridColumn?

View 1 Replies

ActionScript 3.0 :: Website Background Image Without Borders

Jun 17, 2010

I'm making my own website on flash cs4 and I really like websites with backgrounds that don't have borders, they just have an image or a design or both that fit the whole inside of the browser window like this website, [URL] is there a way to accomplish this in flash cs4? I know that you can edit the borders in the html embed code for the .swf but even if you put 0px for all the borders, if I go on another computer with different resolution settings or a computer with a bigger monitor and a bigger browser window, borders are still present around the .swf.

View 9 Replies

ActionScript 2.0 :: How To Accomplish Blob Like Borders Effect

Jan 5, 2004

I was browsing the net and came upon this site, which has a really cool blob-like borders effect. I really wanted to learn how to accomplish this effect, here's what I know as of now:

1. I must have an array of points, connect them using curveTo and fill it. For this I have to use this methods:
createMovieClip, lineStyle, beginFill, moveTo, curveTo, endFill

2. Then I must have a proximity detector for each point, more or less like:
dx = point._x - _xmouse;
dy = point._y - _ymouse;
distance = Math.sqrt(dx*dx + dy*dy);

And if the mouse is too close to the point make it move away with a certain velocity (but only if the mouse is moving, if it is still, just make the blob wobble for a while, using an elasticity effect).
point._vx += point._ax;
point._x += point._vx;

Where the acceleration must be a fraction of the distance we calculated before:
k = .2; // example
point._ax = distance * k;

But we must also have damping so we can have the elastic movement, so:
damp = .9; // example
point._vx += point._ax;
point._vx *= damp;
point._x += point._vx;

3. Finally when the mouse is clicked on a blob we must communicate with the others and make them all wobble, by using LocalConnection. How do I make the array with all the points and access them?; how do I impose the proximity detector into each point and make the curveTo's change?

View 3 Replies

ActionScript 2.0 :: Dynamically Loading Images Into Movieclips With Borders?

Feb 22, 2006

Is this possible? It's a hassle to have the extra step of keep a seperate movieclip behind the one with the image to get a border. Can I load an image into a movieclip that has a border, or give it a border afterword? Same with shadows.

View 4 Replies

ActionScript 2.0 :: Site Borders Resize As Butt Is Pressed?

Jan 30, 2005

does n e 1 know how to achieve this effect what i want to achieve is, the way that the borders fit to size depending on the content.

View 4 Replies

ActionScript 3.0 :: Textfield Borders Disappear When Drop Shadow Is Applied?

Oct 4, 2010

I have some textfields generated from code, and if I apply a drop shadow filter on them, sometimes the right or the bottom part of the textfields' border just disappear.

Code:
_passwordField.filters = [new DropShadowFilter(1, 45, 0, .75, 3, 3, 1, BitmapFilterQuality.HIGH)];

this is the line of code, which is responsible for this bug (is it a bug?) because if I comment it out, the borders render correctly.

View 5 Replies

ActionScript 3.0 :: Drag Dynamically Loaded Content Beyond Stage Borders

Jul 28, 2010

I have simple file 550 x 450, in it there is one container 400x300, x:75, y:78. In the container I am loading images and there is drag and drop function for them. I also have added mask with size that matches the size of the container because when i load larger images i could move them. Everything is working fine, but If I set scaleX and scaleY to the container image, the drag and drop functionality is not working fine - I can't reach the edges of the picture.

Code:
with ( m_mask.graphics )
{
beginFill( 0x000000 );

[Code].....

It behaves like there is not enough space to move the image right, left, top or down.

View 1 Replies

ActionScript 2.0 :: Force Draggable / Movable Object To Stay Within SWF Borders?

Oct 13, 2004

I've made a site with small draggable "popup" windows (not actual windows since they are objects in flash..) I can drag em off the scene outside the edge. I've attempted many things.. A adaptation of the collision script found through search.. (on collision it stopped dragging) Worked nice, until you move the mouse real fast, then it can pass right through or partly through and the fact that it's stopdrag. It takes effort to get it from the edge. It's stuck basically.

I fixed it by making the on (press) change frame in a moveclip containing the border.. had a side effect though.. You can now drag the window out from the scene if you repetitively drag it towards the edge. Is there a way to limit a movieclips possible X & Y positions? (in both + & - range to make it a 4 cornered block). I also want the moveclip to keep moving up/down if if hits the right/left edge if you continue dragging it up/down (same with left/right edge also)

I tried the scrip from the "dynamic mask":
onClipEvent (enterFrame) {
getlimits = _root.normalpic.getBounds(_root);
if (_root._xmouse>=getlimits.xMin && _root._xmouse<=getlimits.xMax && root._ymouse>=getlimits.yMin && _root._ymouse<=getlimits.yMax) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}}

I changed the size of the "normal pic" and it works lovely.. but it's on enterFrame... and I need to react on on press and on release.. : tried to adapt it but cant figure out how.. and besides the script don't allow movement along the edges (like I described above) and if you move the mouse fast enough the window stops short of the edge..

View 5 Replies

Flex :: Multiple Text Areas With Different Rotation Values Causes Borders To Be Very Wrong?

Nov 5, 2009

If you have two textareas, one has a rotation value besides 0 and the other has no rotation value or a value of 0 and you 'tab' focus from the one w/rotation to the one w/out. The border around the textArea w/out rotation will be rotated. If you set the rotation value of the non-rotated text field to a non-zero number, even 0.01, it fixes the problem, this causes tons of other problems in text rendering though so its not a solution.

I found setting the focusThickness style to 0 removes the border, which is a good solution but not a great one, anybody got a better one? Here is some sample code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:VBox width="100%" height="100%">
<mx:TextArea id="source" width="100%" fontWeight="bold" fontSize="20" height="50" rotation="5" />
<mx:TextArea id="dest" width="100%" height="50" />
</mx:VBox>

View 1 Replies

ActionScript 3.0 :: Dynamic Borders - Code Works Great In Firefox But Fails Miserably In IE6?

Oct 9, 2009

migrating some of my code snippets over from AS2.I tried reproducing one of my most used bit of code - the dynamic border - in AS3, but I have run into a small problem.

PHP Code:
var sw:int = stage.stageWidth -1;
var sh:int = stage.stageHeight -1;[code].....

So this code works great in Firefox but fails miserably in IE6, Flash Player 9. So my question is does anybody have a workaround that works on IE6, Player 9?

View 2 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







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