IDE :: GlobalToLocal3D - Determine Parameters To Dynamically Resize The Width Of MC
Dec 6, 2008
I just am looking over the CS4/3D methods and am a little bit stumped at this: globalToLocal3D... I am just trying to determine parameters to dynamically resize the width of myMc (once it is pushed back in z dimension - say to 2000) - I am basically using the globalToLocal3D method - yet the compiler is throwing errors - Error #2004: One of the parameters is invalid. here is the code that should be self explanatory (other than the fact that I am doing something wrong)...
i have different size (wxh) swf files, and i have to load different swf in one SWf file(say name sample.swf) now what my problem is when i load different swf in my sample.swf either it crop disply if bigger swf load or it leave space if it small..
is there a way to make a minimum width and stop resize? I have a menu I am building that is locked to the bottom of the browser and 3 buttons on the left and a movieClip on the right. When you resize the browser window - currently - you can make the button on the right sink under the three on the left.
how to get a movieclip named "topnav" to resize it's width to match that of the stage. I am trying to resize the width of a top nav bar across a resizable RIA. I have started with the following code but with only partial success:
Code: stage.addEventListener(Event.RESIZE, resizeListener); function resizeListener (e:Event):void { var reg2 = stage.stageWidth / 100;
In a previous thread I asked a question about setting the width and height of a sprite subclass in its constructor method. One of the responses has puzzled me since I read it:
"Setting width and height only makes sense if you're adjusting the width and height of existing content, and the Chart (Sprite) has none at that point."
I don't understand that; what if you're adding children to the sprite that depend on those dimensions?
Here's a simple app which draws a red circle inside of a blue box which demonstrates my confusion as well as one other issue. The full questions are at the bottom.
Main.fla: import Box; var myBox:Box = new Box(200, 200);addChild(myBox);myBox.drawCircle();
[Code].....
Question 2: In this example, the dimensions of Circle are based on the width of its parent Box sprite. Is there a more elegant way to pass the dimensions to the circle? I ask because in my actual project (a chart) the plot area contains a lot of screen locations that must be passed around when I add new objects such as grid lines and markers and passing around the coordinates as parameters seems awfully messy. I'm just not sure how else to do it.
I have an HBox with a fixed Width and Height and a Border. In that HBox I have a viewStack with a few different views.When the viewStack changes views, I want the HBox container to keep resizing to its content. Currently it stays at the fixed width.Is there any way to do that with an HBox setting?
I have a preloader that is being served from a CDN, and I want it to load the target SWF also from the CDN but when it uses loaderInfo, it returns the hostname of the html file.[code]Is there some way that I can get the URL that the preloader was served from which is the CDN?
I have created a line (on the stage) where the height is 10px and the width is 2px. To resize it, I have converted it into a symbol (MovieClip) and given it an instance (let's say li ).
However, when I enter...li.height = 200; or resize the MovieClip with the mouse, the line is 200px tall, but it has also grown considerably thicker! However, if I go into the MovieClip, click on the Drawing and resize it there, I the line stays nice and thin.
I am building a xml driven website in flash an my client want the website should fit the browser of the costumer and when they scale browser the website must adjust accordingly but he also ask me to the website must not be smaller than 850 height and 1000 width, and must not be bigger than 1100 hight and 1440 width. Please help me because i never done such project coz i am fairly new to actionscript and flash design, i am graphics design trun flash developer.
I need a script which can animate an objects resize through AS. I know that on (rollOver) { _root.reBox._width = 100; } on (rollOut) { _root.reBox._width = 50; } Will jump my MC "reBox" to 100px on rollover and to 50px on Rollout, but how do I get AS to animate the transition - basically a tween!
I been using a fullscreen resizable script for some time, works great for fullscreen flashes 100%height and 100%width.Now i would like to have an image to only resizing 100% to the browser widthbut have its height as it is, and of course without distorting the image.the code im using is the below
I m new to actionscript 2.0 and flash cs3 (on which the team was working before). I have managed to learn basics (though not completely) of flash and AS2. Our project is about creating an e-learning tool that will enable the students to improve their english grammar skills through different lessons e.g noun, adjective verb etc.
i m trying to write a generic code that, after completion, should work for around 40 lessons in the entire tool. making 1 main.fla that should work for all lessons, seems interesting but a challenging job. i can not find any thread or blog that wud tell me CAN I COUNT THE NUMBER OF SCREENS IN MY LESSON AND THEN AT RUN TIME MY main.fla SHOULD HAVE THAT MANY FRAMES. i will try to explain this through an example: in noun.xml, i calculated 30 screens, so i need 30 frames for noun.xml....whereas if in adjective.xml, i have 50 screens, i should have 50 frames......therefore, i need to calculate the number of screens in my lesson, and then dynamically insert that many frams in my application, can i do that...
I understand how to resize the stage to 100% x 100%, but it seems exceptionally difficult trying to keep a footer MC/Sprite/Shape 20px high yet 100% wide.
I can use EXACT_FIT, but if the browser shrinks or expands the movie clip changes size. Keeping that height static is a pain at the moment!
So, basically I'm just looking for direction. The liquid layout tutorials seem to work for elements NOT stretched 100%...
I want to set width and height of the stage during resize of that swf..I do it in resize event handling..but doesn't work..any other way to achieve this?[code]
I want that the DataGridColumn or AdvancedDataGridColumn would automatically resize it's width so as to fit the content within. I'm new to flex. I want to implement something like HTML tables. The Data Rendered is simple Text. Some Rows have little longer Text, in that case I would like to automatically extend the width of DataGridColumn.
I want the background to resize the width to the stage and height but it stays at 150 x when the stage resize and scale the contents according to the xscale and yscale of the background . http:[url].....
I have been trying to resize my swf width and height to the browser size for the past 10 days...this is what I was able to get so far looked at numerous tutorials online...but no luck with my swf I would like my images to fill the entire browser without the white background on the side and I would like to do it so that my images will not look distorted...
So say I have a function that has some number of optional parameters but I don't like to write the function more than once. Instead just use for loop or such to iterate the parameters through and give them to that function.
Here's a raw scetch:
ActionScript Code: // stylesheet for lines var params1 = { thicknes: 1,
in flash builder 4 how do i use the skinning option to make sure the popup dropdown list changes it's width to fit the longest item in the list?(the prompt area - the component when it is closed - should not change it's width)
I have the following: var win:Window = new Window(); PopUpManager.addPopUp(win,this,true); PopUpManager.centerPopUp(win); What about if I want the popup window to be stretched and be 80% width and height from the parent? How do I achieve that?