ActionScript 3.0 :: Scaling Button Background Without Scaling Text?

Feb 23, 2009

I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.

The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: No Resize/scaling A Movie Clip On The Scaling Stage?

Mar 11, 2008

I've search through all the threads with "scaling" and "resizing" and can't find the solution.

Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.

I think I need to add a listener of some sort to the stage, but I'm not sure how to do this.

View 2 Replies

ActionScript 3.0 :: Scaling Movieclip Not Scaling But Repeating?

May 20, 2010

i have a diagonal movieclip that I am trying to scale along with the background video. The background video scales perfect, I am attaching the diagonal movieclip (br in the code as bottomright) with addChild
Instead of scaling with the window, it seems to repeat such as the image is displaying. this is the main section of the code that is doing the scaling
 
var br:mc_bottomright = new mc_bottomright();
addChild(br);
//proportional scale
if ((stage.stageWidth / stage.stageHeight)> (owidth/oheight))

[code]....

View 4 Replies

ActionScript 3.0 :: Scaling A Movieclip Without Scaling Its Contents

Apr 10, 2009

I am trying to achieve an effect of scaling a movie clip on click...very similar to [URL] When the user clicks on See, Hear, Play and Shop boxes, the boxes expand. I have created a box movieclip that has a bar on top. This bar is a movie clip inside the box movieclip. When i try to scale the main box movieclip, the internal bar movie clip scales as well. How to stop this?

View 2 Replies

Scaling Background / Whole SWF Object Without Tiling Background

May 15, 2009

I really don't know much about flash or swf files but in updating my portfolio I came across Polaroid gallery. I have managed to update the background jpeg with my own picture and remove the fade effect. However in the original program the background was tileable so when seen in a full screen browser looked fine. As my picture is not tileable I would like to know if it is possible to scale the background or the whole swf object without tiling the background.

View 1 Replies

ActionScript 2.0 :: Scaling Background Pattern?

Jan 30, 2009

I plan to have the swf fill the browser window, and this should work fine for that. When people click on a button, I want the view to "zoom in" by scaling to 200% and setting the x and y coordinates appropriately.How can I do this with the repeating pattern, because the way I have made it is a series of movieclips. Is there a better way to make it so it is just one movieclip I can control the scale and position of?

ActionScript Code:
tileWallpaper = function () {
tileWidth = 200;

[code].....

View 0 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part

Apr 18, 2004

really sorry to bring this one up again. I've managed to create quite good working gallery. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 14 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part?

Apr 18, 2004

What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 13 Replies

ActionScript 2.0 :: Allowing Background Scaling - Content Not

Jul 15, 2004

I want to use a gradient as background for my flash movie, but I want this background to cover the whole browser's window just like Adopt Design does it (check out Adopt Design). The content of the flash movie should NOT be resizable with the browser's window though. So, I used this code:

[Code]...
in the HTML file I did set the margins to 0pix and the SWF's height and width to 100%. But when I type in the address in the browser to open the page the first time, I see the flash movie in the center with white background around it anyway, and when I resize the browser's window (even if just 1pix) everything is perfect. What's happening? check the problem in a JPG: the site (notice what changes when you resize the window, after opening)[URL]

View 4 Replies

ActionScript 2.0 :: Scaling Background & Fixed Size Foreground?

Feb 3, 2006

Is it possible to have a single jpg (1024x768) scale up & down with the browser window (no matter the aspect ratio, stretched to 100% browser width/height), while keeping the foreground content (most likely added via loadMovie) in a fixed scale and centered on the screen? An example can be seen on the Second Story home page.

View 9 Replies

True-to-aspect - Full-browser Scaling Image Background?

Apr 12, 2010

I have been trying to work out how the full-browser background was done here: [URL] It scales in a very elegant way: it never stretches the image, stays centered on the image and never causes ugly blank areas around the image. For me, it's become deceptively difficult to achieve! :-(

View 1 Replies

Actionscript 2.0 :: Centering And Scaling Background Movie Clip Fullscreen?

Mar 26, 2010

So I am working on a full screen website, and background_mc I want to be centered and scaled 100% to the stage. But I also do not want the image to loose it's proportions. Here is my code so far, it is only seeming to center the movieclip:

Code: Select allfscommand ("fullscreen", true);
Stage.scaleMode = "noScale";
Stage.align = "TL";

[code].....

View 1 Replies

ActionScript 2.0 :: Scaling Background Image To Size Of Browser Window

May 7, 2005

I am trying to scale a background image to the size of the browser window. For some reason it does not fill the entire stage?

Stage.scaleMode = "noScale";
Stage.align = "TL";
background_mc._width =Stage.width
background_mc._height =Stage.height
background_mc.onResize = function() {
background_mc._width = Stage.width
background_mc._height = Stage.height
} Stage.addListener(background_mc);

View 1 Replies

Professional :: Scaling And Moving Text?

Jun 24, 2010

I am currently using flash CS5. I have the task of moving text constantly in an animation from left to right..with the text growing at the same time from 12pt to 36pt. As of yet i have looked across many tutorials only showing me on the movement of text I would be great full to anyone who can help me with this text scaling issue

View 2 Replies

Professional :: 9 Slice Scaling And Text?

Sep 2, 2010

It seems 9-slice scaling in Flash CS5 is a little half-baked. If you create a symbol containing text and vector graphics, only the vector graphics is scaled according to the 9-slice scaling contract. For example, consider the following symbol:

Sure, the vector graphics are scaled according to the 9-slice contract, but what are we supposed to do about text? And just in case you're thinking "convert the text to vectors/raster"... unfortunately no... I don't have the option of converting the text to a set of vectors or a raster because its content will have to be dynamic.

View 3 Replies

ActionScript 2.0 :: Scaling Dynamic Text Box?

Apr 20, 2007

Actually I have a conversation bubble design and dynamic html text inside in a text box. How to scale both the bubble and the text box simultaneously.using scripting.

View 2 Replies

ActionScript 3.0 :: Prevent Text From Scaling?

Jun 14, 2009

When you scale a movieClip with some text field inside how do you prevent that text field from scaling?

View 5 Replies

ActionScript 3.0 :: Text Inside The Text Fields Is Scaling On Move?

Aug 25, 2009

I have made a top 10 module for my site that loads variables dynamicly in text fields, it works pretty fine, but i have a problem. The text inside the text fields is scaling on move.I don't want the text inside to scale.Here you have the link:xample of text field creation in my as:

Code:
private function createTextField(x:Number, y:Number, width:Number, height:Number):TextField {

[code]........

View 1 Replies

ActionScript 3.0 :: Scaling Text In Successive Tweens?

Jul 6, 2010

created a new textfield(digitC) I want to use again and again. First time thru, I applied an animation to the text object that scaled it down to half size. the next time I use the textfield I want to reset it to its original size.
 
I tried resetting the textFormat to the original font size and reapply to format to digitC. But digitC retains the half size font. How do I reset digitC to original size?

View 1 Replies

ActionScript 2.0 :: Unable To Scaling Dynamic Text?

Dec 29, 2006

I'm working on a project that dynamically loads news articles.There is basically a title text box and a news box, both are the same width.I would like to know if there is a way that I can get the dynamic title to scale up/down in font size to fit the width (and also shift the news text down to be about 3px under the title)

View 1 Replies

ActionScript 3.0 :: Flash The Text Gets Distorted When Scaling?

Jul 14, 2010

Problem: the text inside my movieclip gets distorted when the movie clip is scaled.

Code:
import caurina.transitions.Tweener;
//variables for justMePage
import flash.events.Event;

[code]....

how do i make the text still look good even if the movie clip that it belongs to is scaled?

View 1 Replies

ActionScript 3.0 :: Graphical While Scaling Skewed Text?

Oct 29, 2010

I have an isometric board. On some of these tiles there are textfields which are skewed so that the text runs parallel to the sides of the tiles. The user can zoom out giving a wider view of the board. This is done by scaling the parent tile to about 0.5 of the original size. When doing this at a certain threshold the text will no longer be parallel to the sides of the tile and will look as if the text pop's up. Does anyone have any ideas of what causes this.

View 2 Replies

Professional :: Shaky Text Scaling Convert To Vector?

Apr 26, 2011

So when I scale text in a tween, it doesn't look at all smooth. I tried to compensate by increasing the frame rate, but even 60fps doesn't fix it. So I'm pretty sure that the scaling is limted to pixels. I immagine I can fix this by converting the text to vector art, so it will scale at less-than-pixel intervals.

Is this a correct solution? If so, how do I do this?

View 2 Replies

ActionScript 3.0 :: Animation Infinite Jitter When Scaling MC With Text

Feb 8, 2012

I've searched around a bit but have not found anything that sounds like my issue, or a resolution to it so am hoping this is not unique.I have a movieclip with an image and underneath it some text.I have created a pair of eventlisteners to change the scale of the MovieClip on ROLL_OVER and ROLL_OUT, to 1.3 and 1 respectively.If I hover over and out the image part of the MC this is fine and works as expected.However if I hover over the text, the animation gets stuck doing ROLL_OVER and ROLL_OUT.

View 1 Replies

ActionScript 3.0 :: Manipulate A Font's Horizontal Scaling If It Is Set As Dynamic Text?

Jun 30, 2010

Is there a way to manipulate a font's horizontal scaling if it is set as dynamic text?
 
The text was horizontally scaled in Adobe Illustrator to create a more "sleek" look, but now when putting together the movie in Flash I would still like to keep this look but need dynamic text.
 
Im asking this in AS 3.0 category, but would like to know it for AS 2.0 as well if there is a way.

View 2 Replies

AS3 :: Scaling - Clips Text And Distorts Diagonal Line On Photographs

Feb 11, 2010

I used some code that I found, I think even from you guys the scale an external swf being loaded onto a background movie clip. Works great with the exception that it clips some text and creates some funny diagonal lines and some poor picture quality. I have a feeling that this is down to a slight difference in sizing some where along the line. The stage size is 2560 x 1440 being scaled down to any size, but as I mentioned I don't think the height and width are quite in sync for the widescreen format.

[URL]

// perform initial size check
checkStageSize();
// register to re-check when stage size changes
stage.addEventListener( Event.RESIZE, onResize, false, 0, true );

[Code]...

View 4 Replies

Flash 10 :: Avoiding Text "wiggle" When Scaling Movie Clip?

Dec 13, 2011

When I scale a movie clip that includes text and do a tween, the text kind of wiggles around as it resizes. It doesn't look smooth at all.

View 1 Replies

IDE :: Scaling Swf In Browser

Nov 24, 2010

i want to show swf with zoom out 50% by default when user opens the page.URL...

View 3 Replies

Scaling And 100% Showing Too Much Of Document?

Apr 20, 2010

I want to know what is going on with my flash document where more of the document is showing than the document size. despite the little white box showing the size, if i set scaling to 100% it starts reaching past the boundaries. how can I get my flash doc to scale without viewing what is essentially outside of the frame?I am experimenting with getting my flash website to scale. I have tried a few things like SCALE="default" in the html and such. I want to try and keep the aspect and scale, but have a minimum size. For this I have been trying swffit.

View 2 Replies

FLV Distors On Browser Scaling

Aug 23, 2010

I am making a site using a liquid layout in Flash and have added an FLV with playback component swf. When I test the file it scales fine in the browser until you try rescale/minimise/enlarge etc. It then squashes.Url...Try rescaling the browser and you'll see the issue occuring. This only happens with the FLV playback component added. It is a linked file by the by and not embedded.

View 1 Replies







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