ActionScript 3.0 :: Resize Only Some Elements?
Oct 5, 2009
How would I make only some elements of my movie resize to fit the screen?For instance: I have a 2000 px wide movie and inside it a centered 1000px wide MC which will aways fit the screen while other elements (the background for examle) won't resize.
View 5 Replies
Similar Posts:
Mar 8, 2011
I am currently working on a project that needs to be resized depending on the size of the browser. I do not have much trouble in terms of coding it, but I have some 'good practice'
I cannot just resize the background of my swf et change the position of the elements on the scene; I need to resize all the elements. So I'm wondering about the text... My main swf is contained in a loader, so I could simply resize it ( the main swf) and all the elements would follow. The problem is I will end up dealing with half pixels and I guess my swf will look filthy...especially the text! Do you think it would be better ( but a lot more fastidious) to resize all the elements independently?
View 1 Replies
Jun 28, 2011
I have a Flex 3 app that has elements that a user can add to the main canvas then resize and reposition.
There are 3 key functions I am using for the resize which are as follows[code]...
View 1 Replies
Jan 29, 2012
I am trying to create a fullscreen chat program using Flash AS3, and so far, everything is going well, except for when the window is resized, the whole thing is proportionally resized.I would like it to ONLY resize the chat text area, when the resize is done vertically, keeping the controls the same height consistently, also I would like the buttons for sending the chat to maintain their size, with the input box increasing in width when the size is increased horizontally.Obviously the SWF resizing will be done by JavaScript/jQuery .onResize() and thus I will be able to set a mimimum width and height for the swf, maintaining usability.
View 1 Replies
Jan 26, 2010
Is it generally to position elements relative to other elements or in absolute values?
View 2 Replies
Oct 1, 2009
does anyone know how to shift all the array elements by one or more without deleting the array itself?
Something like rotating the array:
1,2,3,4,5,6,7,8,9,10
10,1,2,3,4,5,6,7,8,9
9,10,1,2,3,4,5,6,7,8
8,9,10,1,2,3,4,5,6,7
7,8,9,10,1,2,3,4,5,6
View 4 Replies
Jun 9, 2010
When i create a menu, the dropdowns go behind the flash element. But in some sites, like Digg, it is shown above. z-index is of no use
View 2 Replies
Jul 10, 2009
I made a .as Class where some graphical elements are spawned into the stage. However, the Flash (.fla) have some internal graphics that are supposed to be over the graphical elements spawned from the custom class.I tried to make another layer over the layer where the as3 Class is being called, but unfortunately it doesn't do anything, the graphic from the .as still appearing over the internal .fla graphics.
View 2 Replies
Sep 19, 2011
I am working on image and i like to scale or resize the image by dragging and resize option.same working as "free transform tool" in flash (design part); i need same functionality in application.
View 7 Replies
Jul 7, 2011
I'm having a bit of a problem here. As per the title, my flash swf file works fine when tested from the IDE, but when I publish it and open it through the browser, the stage doesn't seem to resize along with the window.I post below a bare-bones example. The "back" movie clip should resize, only it remains at the starting dimensions
Code:
import flash.events.Event;
import flash.display.MovieClip;
[code].....
View 9 Replies
Jul 29, 2009
I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:myComponents="myComponents.*"
horizontalScrollPolicy="off"
[code].....
View 2 Replies
Dec 8, 2010
I'm having a little issue with the resize event and resize effect of a VBox.
I have something like this:
<mx:VBox id="container"
backgroundColor="0xFFFFFF"
backgroundAlpha=".9"
paddingTop="15"
paddingLeft="15"
[Code]...
View 3 Replies
Jan 4, 2009
I have a main movie here that loads in an external swf through a container mc. everything is aligned and positioned to where it should be, and they are also set to that value onresize. the problem is, when my swf is loaded in, it works fine and is in the right position, same when you resize it. BUT, if you resize the window before the swf is loaded, it misaligns, until you resize!!
View 2 Replies
Sep 28, 2010
I have a datagrid that occupies 100% of browser screen. I want the grid to automatically resize when the browser is resized to small or full screen.
View 1 Replies
Sep 9, 2009
I've got a large bitmap (1920 x1306) that my client wants as a bg image, scaled to the swf size on load (930 x 575); but that can "grow" up to its original size if/when a user expands the browser window. All the rest of clips in the display list are to remain in place (except for a copyright clip, which they want to always be 14 pix above the bottom of the browser frame. I've tried loading the bitmap dynamically at full size and then using scaleX,scaleY to set it's initial smaller (930x575) size, and I've tried just setting the height/width of the dynamically loaded image using the math of scaleX,ScaleY just in case the scaleX "transformed" the bitmap so that it couldn't return to its original size. Both make the bitmap the right size. But the resize function below did nothing to it, (or the copyright.y.) THEN I tried just putting the bitmap into the display list (both sizing methods work here, too). But even as an original member of the compiled display list, the resize event is still not reaching the target. Everything I've seen on the web says this should work - but...no luck.
Here's the AS3 code in the 1st frame of my swf:
import flash.display.Stage;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
[Code]......
View 1 Replies
May 11, 2010
i am creating flex 3 component when i re size the window i need to re size the labels and text.how to do this?
View 1 Replies
Jun 24, 2009
I am reading up on 3d and wonder what new elements did they add in cs4 to 3d?? or nothing special.basically write 3d pre cs4 method or there something new to know?
View 3 Replies
Sep 11, 2010
I work in Adobe Flash cs3 and as2. First I have flv file no1 it contains buttons, animations, imported sounds and fonts, lot of layers, preloader and its all mixed on stage (its a kind of meny for a web page). Now Im working on flv no2 in which all the elements contained in flv no1 are represented as a small picture (button) which should call (make it visable like zooming that object) some mc that contains all the elements from flv no1 and working as they do in flv no1. how to pack all the elements in flv no1 in a form of movie clip and import it to flv no2 and preserve all the functionality.
View 1 Replies
May 7, 2009
I would like to know if flash can allow the user to arrange elements (in a published swf) on the stage and "lock" their positions so that if the swf is reopened or reset, it will retain the new arrangement. How would you describe this feature?
View 1 Replies
Oct 26, 2009
I'd like to ask the following question: for instance, I have a scene in 3ds max with 10000 textured cubes. Is it possible to export this .max scene to Flash and create a .swf application, in which user will be able to rotate, zoom the scene and also select a particular cube and all this done without visible PC slowdown? After some googling I found that Papervision3D is a good tool for working with 3D in Flash.
View 3 Replies
Feb 4, 2010
I want to load data from a text file with four elements (account, first name, last name, club status). There are 88,000 accounts.
[Code]...
View 10 Replies
Jul 15, 2010
I have one .swf containing an image.I also have a .swf containing elements such as a logo, all in movieclips.I need a way to load the image .swf into the second .swf, but have the image placed underneath all other elements.
View 3 Replies
Oct 15, 2010
I've created a form with 4 input text fields taken from the components.I've tested it and I've seen that pressing tab the cursor doesn't move through the correct input text order but it does like this:1st field2nd fieldsomewhere else (I can't see where)3rd field4th field
View 3 Replies
Jan 5, 2011
I'm fairly new at flash development but here goes: is it possible to use xml to drive the layout of a flash website in CS3? Perhaps using ActionScript 2 or 3? In particular, I'm looking to be able to for e.g. create a news ticker where changing the XML allows you to 1) change the text and appearance, 2) framerate can be controlled, 3) interpolations between key frames can be specified (e.g. linear interpolation)
View 1 Replies
Aug 22, 2010
I had no problem working with xml in cumbersome AS2, but apparently it's menat to be easier in ASŁ, however I'm having a problem getting the data from this piece.
Basically I need to be able to access the id & src.
View 3 Replies
Sep 10, 2010
At the moment I can only parse a certain depth of XML elements, and I was wondering how you could get the deepest XML element, because at the moment I have a series of for each loops that loop through xmlElem.children() but this only allows me to parse to a certain depth, so it's rather limited.
View 2 Replies
Mar 17, 2011
I want to get all xml elements (xml descendents) which have some attributes like:
<books>
<book concept="rr" author="xx"/>
<book concept="tt" />
<book concept="yy" />
<book concept="uu" author="xx"/>
</books>
I need to perform a xml descendent search for xml nodes with author attribute containing
results should be:
<book concept="rr" author="xx"/>
<book concept="uu" author="xx"/>
View 2 Replies
Apr 26, 2011
I got a Flash AS2 website and I need to get all the buttons inside an instancied movieclip (to define an specific property for each one). I've been searching for an hour or more, but I just got solutions for AS3
View 2 Replies
Jun 27, 2011
I have a MenuBar, which is using a XMLListCollection object as a dataProvider.I wish to add and remove elements from this collection at runtime.How to add / remove elements from XMLListCollection ?
View 2 Replies
Dec 12, 2011
I would like to know if its possible, to use a string in order to create a UI element.I think many people have this kind of problem, they want an easy setup in flash to generate a dynamic UI, through code.It should look like this (pseudo code):
addToStage("Button","add");
addToStage("TextInput","name");
private function addToStage ( o : Object, str : String ) : void {
[code].....
View 1 Replies