ActionScript 2.0 :: Resizing MovieClip (Shapes) To Fullscreen

Jul 20, 2005

I have a movie clip named "shapes" that I use as a pseudo-background for my .swf, I alter the color of the movieclip by using the following code;
on (press) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x003366);
}
So that each section of my site has a unique color. The problem is I want to publish this as fullscreen (Publish Settings, set Dimensions to "Percent" and Width and Height to 100). For this to look right I need the movieclip "shapes" to expand to 100%.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Preventing MovieClip From Resizing In Fullscreen Projector?

Aug 18, 2009

I have a fullscreen projector using fscommand ("fullscreen", "true");
Fullscreen works fine. However, I have 2 movie clips that I don't want to resize with the rest of the movie. (They are non-vector images that look crappy when resized.) Is this possible? If so, do you know what code I need to use? I'm using AS3.

View 1 Replies

ActionScript :: Library For Drawing Resizing Moving Shapes And Text?

Nov 6, 2011

I know Sprite.graphics is pretty easy to use, but I was wondering if there is any ready made libraries for drawing, resizing, moving, layering, etc.. of various display elements? Also, stuff like tool selection, maybe some effects, premade shapes. Anything you would recommend?

View 1 Replies

ActionScript 2.0 :: Auto-Resizing To Fullscreen?

Jun 16, 2010

I am trying to get the background and main part of my website to scale up to the full size of the web browser when it is resized. i have found an example, and have been searching for hours trying to find a solution.when you resize the browser it fits, i would like to know how i could achieve this.

View 2 Replies

ActionScript 3.0 :: FLVPlaybackCaptioning Fullscreen Resizing?

Jan 7, 2010

I'm using FLVPlaybackCaptioning to set up subtitles on my player but I've run into a couple of problems. Basically, when I go to fullscreen the subtitles resize correctly, when I return to normalsize they shrink back to the correct height.BUT when I go back to fullscreen a second time the subtitles are not resized. Oscillating between normal and fullscreen the subtitles stay in the normalsized screen height until eventually the subtitles disappear alltogether on normalsized screen and only appear on fullscreen (at normalsized screen size). I've attached the player for people to see what's happening.

false;  _subtitles.showCaptions = true;
_subtitlesArea = new CaptionArea();

[code]....

View 1 Replies

ActionScript 3.0 :: Video Fullscreen Resizing?

Nov 16, 2010

I have a problem with my video player that I'm working on. Currently, it's using a video screen component that is fed video via netStream. There is a fullscreen button that when clicked, sets the mode to true, and the player resizes. However, I'm having trouble where the control bar is concerned.

[Code]...

View 1 Replies

ActionScript 3.0 :: Resizing Mask In Fullscreen Mode

Apr 19, 2012

I have created a drawing board using a tutorial that uses a main as file and the png encoder in cs5.5. I am creating this as an exe file to be run from a cd and am not sure how to resize the mask on the board to the size of the stage if I use fullscreen mode or allow user to resize projector by dragging corner.Due to my limitations with scripting I was unable to add the mask to the main.as file but have added it to an actions layer in the drawing board movie clip is that correct?[code]

View 2 Replies

ActionScript 2.0 :: Fullscreen Resizing Keeping Images Centered. Solution=Demonoid Invite?

Jul 25, 2009

Hate to drop some bribe on my first post and all but I need answers fast and if any of you have been waiting for as long as I did for a demonoid acct you should be able to figure this out real fast Anyone with some decent flash/as2 skills should be able to figure this out real quick. First one to send back a working file gets the invite code.Ok long story short I purchased a fullscreen xml gallery from FlashDen that is supposed to resize. Here is the link to the demo...Well problem is it only resizes the images based on their width and not their height. (Panorama would show fine but a tall portrait would just go off the page) You will notice in that demo how the resizing is fixed to the side of the painting and not the bottom.

Well, to me this seams useless because I really need every user to be able to see the full pictures no matter what screen resolution they are at and no matter how they adjust their browser window.Believe me when I come posting on threads it means I have spend many many hours trying to figure it out myself...In this case I have spent 30 hours trying to solve this in the last two days....Now I am over the deadline I gave to my client/family member and am still at square one basically.Also note I have figured out how to make it so that it fixes to the bottom and thus shows the tall images in full but when I do this it is no longer centered in the page.

I am really tired and worn out but would love to work with someone's advice to make this a reality.Attached is everything you would need. Please note that by downloading this attachment you are agreeing to only using these files to your new friend Sean and would never think about using this for your own project.Attachment is too big...~3Mb so I had to put it on a server.. Grab it here.

if(heightRatio<widthRatio){
eval(getResizeClip)._width = widthRatio*bgWidth;
eval(getResizeClip)._height = widthRatio*bgHeight;

[code]....

View 12 Replies

ActionScript 3.0 :: Import Shapes Directly From The Library As Shapes And Not As Sprites / MovieClips?

Feb 17, 2009

I have a question about shapes (i mean the flash.display.Shape class). Is it possible to import Shapes directly from the library as Shapes and not as Sprites/MovieClips? Shapes are supposed to be faster than MovieClips/Sprites, right? So why is it only possible to import MCs/Sprites from the library? I understand that generally shapes could be created solely by actionscript, but in my case the shape comprises of many points and is curved - so it's quite infeasible.

Is there maybe some sort of plugin to generate code that would draw the desired shape from a drawn shape in CS4? And a last one: Are there any benchmarks out there for performance comparison between sprites/mcs/shapes? How much performance do i loose by using a sprite instead of a shape?

View 2 Replies

ActionScript 2.0 :: Resizing The Window - Photos Will Popup In A Fullscreen Window

Apr 25, 2008

Go to [URL]. Click on "The Photos". It will pop up in a fullscreen window. Try resizing the window and you'll notice that the background is vector and it looks like the scale mode is set to "showAll". BUT, the photos look like they have a separate scale mode set to "noScale". They don't resize.

View 2 Replies

ActionScript 3.0 :: Flash Access Shapes Within A MovieClip?

Dec 9, 2011

Here's my basic issue: I have a movieclip, with several hundred shapes inside of it that I drew with the brush tool.

I want to convert each one of those shapes to a movieclip. I could individually select each one by hand, convert it to movieclip, and then have a massive library. That would be a hassle to do, and really difficult to manage going forward and making changes.

I'd rather do something like

Code:
for each (var curShape:Shape in myMC)
{
var newMC:MovieClip = new MovieClip

[Code]...

and then I could access them as MCs henceforth (for collision detection, mainly).
That code does not work though!

how to convert every individual shape inside a MovieClip into a MovieClip using AS3?

View 3 Replies

Flash - How To Give Edit Points On Pre-Created Shapes Or MovieClip

Aug 8, 2011

Say User uploads a front facing photo. I give co-ordinates. I want to give user facility to move the points to match eyes and lips on their uploaded photo. So I want to get the editable shape. I think we will need to use bezier curves for this. How can I modify my code to line through the bezier control points?

View 1 Replies

As3 :: Flash - Resizing Movieclip Inside Movieclip?

Sep 10, 2011

I have two movieclips, one loads an image, I resize that mc and add it in a bigger movieclip which has to be resized too. My problem is that that the inner movieclip doesn't resize the way I want although I've tried many variants of the sequence of the commands. I've also taken into account something that I read that an empty mc resizes strangely but it didn't change anything.

that's the code:

loader_mc.x=0;
loader_mc.y=0;
cont_mc.x=1440;

[Code]....

red mc is the outer one but the sizes of the inner are not right it should be about one third of the outer but it's about two thirds. same with the height.

All I want is to be able to resize them independenlty. with the outter beeing bigger than the inner

View 1 Replies

ActionScript 3.0 :: Resizing Movieclip Inside Movieclip?

Sep 20, 2011

I have two movieclips, one loads an image, I resize that mc and add it in a bigger movieclip which has to be resized too. My problem is that that the inner movieclip doesn't resize the way I want. I've also taken into account something that I read that an empty mc resizes strangely but it didn't change anything.

that's the code:

loader_mc.x=0;
loader_mc.y=0;
cont_mc.x=1440;
cont_mc.y=0;

[code]...

the size of the outer is right 1440x1000 but the sizes of the inner are not right it should be about one third of the outer but it's about two thirds. about same with the height.

All I want is to be able to resize them independenlty. with the outter beeing bigger than the inner. Or to be exact I want the the inner to fit exactly the height or the width of the outer depending on which site of the inner is bigger( for example if the inner's width is bigger than its height then the inner width gets as big as the outer's width and then inner's height gets resized according to its ratio) and furthermore to center it in the middle of the outer.

View 2 Replies

ActionScript 3.0 :: MovieClip And Stage Resizing

Aug 6, 2009

I am new to Actionscript 3 and i am making a basic flash site using CS4 and AS3.I need to have an image as my background that resizes whenever the window/browser is resized and that works perfectly. I also need to import another SWF to the stage as this contains the main body of the site, this SWF needs to be centered at all times on the stage even on a resize.I have pasted some code below as what i have working at the moment is the SWF gets imported, the background does scale and resize etc but the movieclip won't center when first launched and i just can't figure it out.[code]

View 2 Replies

ActionScript 3.0 :: MovieClip Resizing Weirdness?

Feb 25, 2011

I have a movieclip in an external swf, called menubg. In the library properties tab, it reports the size as 1024x768.I use an embed statement to pull the movieclip from the swf at compile time. It comes in just fine (as a Sprite since that seems to be the only way to instantiate an object from an external swf), you can see it without a hitch, but tracing out the size info does not return the same WxH as the original.Here's some code, and the trace outs

var mbg:Sprite=new wpa_menuBG;
trace(mbg.width,mbg.height); // 1028.95 777.95 --  that's not right
// the screen container[code]......

View 5 Replies

ActionScript 3.0 :: Resizing MovieClip While Dragging?

Jul 19, 2010

I'm trying to resize a moviclip in the stage with a handler, but i can't find the solution for attaching the handle to the movieclip.

View 4 Replies

ActionScript 3.0 :: Resizing Movieclip In A Restricted Area?

Jul 7, 2009

I have 2 moveclip called view_mc and restricted and button called btn_scale.
 
When the user click and drag btn_scale, it resizes the view_mc where the width and height of view_mc dosen't exceed the width and height/2 of restricted area.

I made that.  But when view_mc reaches the width and height/2 of restricted area, I can't resize view_mc to be samller. (The btn_scale looks like it's disables and can't use it)

I think some logic is missing. I highlighted the code that is missing some logic.
 
var clickedX:Number;
var clickedY:Number;
var newScale:Number;

[Code]...

View 1 Replies

ActionScript 1/2 :: Resizing Movieclip With Scrollbar Text?

Oct 6, 2010

Here I am trying to resize a movie clip which contains some dynamic text with scrollbar in a swf using mouse.I am able to resize the movie clip using "setProperty". But unable to control the behaviour of the scrollbar. when I am increasing the size of the movie clip the scrollbar should automatically disappear. But I am unable to do so.

[Code]...

View 3 Replies

ActionScript 3.0 :: Resizing Images (JPG Files) In MovieClip

Jun 27, 2011

I am searching all over google for an easy way to resize images but the problem I am having is that .x does not work .width does not work ._width does not work. ._x does not work. How can I do something as easy as changing the width height of a picture? I am loading the photo into a movie clip using the Loader class

var i = new Loader();
i.load(new URLRequest("a.jpg"));
// here I try to write a code that will change the size of the image.
photon.addChild(i); //photon is the name of the movie clip instance

And have tried. all of the codes mentioned above on both the actual movie clip instance and the loaded image on variable (i).

View 2 Replies

Actionscript 2.0 :: Library MovieClip Line Resizing

Oct 12, 2008

I have been working with actionscript 2 / xml for quite a while now and this is the first time I have come upon this one. I have one movieclip in the library that I attach using attachmovie for that generic "glassy" vista type look. Only thing is, when I resize it via actionscript, it resizes incorrectly. Flash ells me it's correct via trace, but it obviously isn't. If I delete the border line off of the movieclip, it resizes fine! I have the clip set to none for scale under the properties tab(with the line and fill selected). The line has a gradient but it does the same thing if solid. What I'm wondering is has anyone else run into this and have they found a workaround?

[Code]...

View 1 Replies

ActionScript 2.0 :: Resizing Movieclip Created By CreateEmptyMovieClip?

Jul 7, 2005

resizing a movieclip created with createEmptyMovieclip.I tried changing the property using setproperty,the result : no image shown at all.. i think i stting a property for a wrong movieclip.....

Code:
addressVars= new LoadVars();
addressVars.load("http://localhost/test/flashmx_dbPassReturn.php");
addressVars.onLoad = function() {

[Code]....

View 1 Replies

ActionScript 2.0 :: Resizing MovieClip With Scrollbar Text

Oct 6, 2010

I am trying to re-size a movie clip which contains some dynamic text with scroll-bar in a swf using mouse. I am able to re-size the movie clip using "setProperty". But unable to control the behavior of the scroll-bar. When I am increasing the size of the movie clip the scroll-bar should automatically disappear.

Here is the link of the swf I am working on: [URL]
Here is the code I have used for the resizer:
if (this._x <= 20) {
setProperty(_root.cont.frames, _width, 20);
setProperty(this, _x, 20);
} else {
setProperty(_root.cont.frames, _width, this._x);
[Code] .....

View 2 Replies

ActionScript 3.0 :: Resizing Parent Movieclip Without Affecting The Children?

Nov 14, 2010

What's the best way of  resizing parent movieclip without affecting the children? I have a container movieclip that resizes depending on the stage, and when I add another movieclips to it they also resize, but I want them to keep the original size,

View 3 Replies

Flash :: Disable Of Resize MovieClip Without Resizing Of Its Children?

Mar 6, 2011

I creating a flash gallery(using flash first time) and found one problem. When i resize movieclip(container) it resize its children, so i could't resize them manualy to dimensions what i need. How i can disable resizing of children of movieclip?

View 4 Replies

ActionScript 2.0 :: Dynamically Resizing/limiting Width Of A Movieclip?

Sep 23, 2008

I have some rectangles inside a movieclip. All movieclips are created by actionscript. I want to limit the size of the movieclip on top right corner when user starts drag.

Code:
this.holder_mc.onEnterFrame = function() {
this.holder_mc.rectangle_6._xscale = this.holder_mc._xscale-260;

[code].....

View 1 Replies

Overlay Movieclip On Fullscreen Flvplayback

Jul 22, 2009

I'm coding a flash video jukebox. In this movie there will be a small box with subtitles for the flv playing at the moment. The problem is that, when I press the fullscreen button, the text overlay dissapears. I think that what is really happening is that the overlay is "hiding" at the back of the video.
 
Is there any way to put this overlay on top of the video so it remains even if I press the "fullscreen" button on the flvplayback component?

View 1 Replies

ActionScript 3.0 :: Resizing A MovieClip According To The Size Of A Dynamically Loaded Image?

Jun 10, 2009

I wonder if any of you can point me in the right direction. In my stage I have a movieclip where I want to load several images with different sizes. This mc called "container" adds the loader to the stage so I'm asking for the loader width and height once has finished loading and then passing these to the width and height of the mc container so it resizes accordingly. But...it doesn't work. Here is my code:

[CODE]
var pic:Loader;var totalImages:int = 10;for (var i:uint = 0; i<totalImages; i++){ pic = new Loader()  container.addChild(pic) pic.load(new

[code].....

View 3 Replies

ActionScript 2.0 :: [Flash8] - Resizing - Movieclip Resize On Center, But I Want Is On Left?

Apr 26, 2007

resizing movieclip using action script. I doing a resize on the width of the moviclip. What i got is the movieclip resize on center, but i want is on left. the code i use as below:

MovieClip.prototype.resizeMe = function(w) {
var speed = 3;
this.onEnterFrame = function() {[code]......

View 2 Replies

ActionScript 3.0 :: Load Image Fullscreen In MovieClip

Mar 25, 2010

I am loading a video clip into an mc at certain times ...
//load video
var connection:NetConnection = new NetConnection();
var stream:NetStream;
var video:Video=new Video(stage.stageWidth,stage.stageHeight);
var metaObj:Object = new Object();
var isPaused:Boolean=true;
[Code] .....

The video loads fullscreen initially and on resize because of my video var params (var video:Video=new Video(stage.stageWidth,stage.stageHeight). However, my image does not load fullscreen initially but does on resize. Are there params I can enter somewhere to allow my image to load fullscreen?

View 5 Replies







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