Flash IDE Messing Up Dimensions
Nov 15, 2009
hello everybody. I have a very weird problem. Recently my Flash IDE started to mess up dimensions. I mean when I create a new document or a rectangle for example, even if I set the height and width to the same value the height is always bigger than the width... I tried re-installing Flash CS4 again but that didn't solve the problem...
View 1 Replies
Similar Posts:
May 2, 2010
I have just finished tweeking my html page setting the width and height to 100% so that it appears in the same place on every screen. It seemed successful until i click on a page with an externally loaded swf.URL...i am unsure wether this is an html problem or as3. I have already set the dimensions of the external swfs in flash using:[code]
View 3 Replies
Jan 25, 2010
In AS3, I have a Sprite that has a Z axis rotation applied.How do I calculate that Sprite's dimensions (it's original size) from Sprite.rotationZ and Sprite.getRect(...)?
View 2 Replies
Jan 31, 2012
What do I have to write to keep the movieclip not to change dimensions if the user starts playing with the dimensions of his screen ? I remember it was a line of as3 written at the beginning.
View 3 Replies
Dec 20, 2010
I'm trying to replace some contents in a website by using the following code:[code]The problem is that I have some flash embedded on the DOM and whenever I try to do the replacement the browser crashes.Somebody should thing that a prepend or append in the right place should be a better method
to achieve this, but the elements I'm trying to locate and replace are html comments and the append prepend methods do not seem to work with this kind of nodes so they have to be treated as literal strings.
View 1 Replies
Feb 4, 2011
I'm working on a AS3 and Box2D game with moving platforms. The platforms are animated in Flash, and in actionscript I can read in their current position and adjust the physics bodies to match.However, there's always a delay, where the animation is one frame ahead of the physics. I wanted to fix this by reading in the clip's current position, storing it for later, and then putting the clip back to its position at the last frame.
But when I do this, it systematically refuses to budge. I coded up a simple test with a single moving box to test the idea, and I get the same problem ("movingBox" is a symbol that animates a single "box" symbol within it):
package
{
import flash.display.*;
import flash.events.*;[code].............
View 1 Replies
Feb 24, 2011
I'm using the .sortOn() function in AS3.0 to sort an array with multiple elements.First, I push the values to the array, like this:[code] The program has a number of "loops" it goes through. So, I push data to this array (which is global) a first time, sort it, and then later I clear the array with the .shift() function in conjunction with a for loop. I then push new data to the array with the same line of code mentioned above.But what's happening is this: on the first round, everything works great, and this is what my output looks like:[code]Before I cleared the array with for loop and .shift(), it would say "Northern Alberta & Prairies" in ALL array slots. Since I started using the .shift() function I managed to get BC to remain, but it's still clearing my southern alberta entry.
View 2 Replies
Feb 25, 2009
I'm developing an AIR app using CS3. I had previously made one AIR app without much problems. So I start a new file and fill out the AIR settings (found under Commands). But the damn thing keeps screwing up settings. Some stay saved, some don't. It also keeps wanting to keep 2 files for inclusion that don't exist and are not even named correctly.
And now, after trying to fix some of the naming, it won't even create an AIR app anymore. It says there's a missing SWF file, but I published first, multiple times and yet, it doesn't see the swf.
View 1 Replies
Mar 18, 2009
I have a flash banner rotater and I have little squares at the bottom that are dynamically created which represent the slides in the banner, for example: if there are 4 slides in the banner there will be 4 little squares. Each little square is a button and if you click on a square it will take you to the slide that it represents. My problem is this: When I try to add numbers to each little square by dynamically creating a TextField then the text overlays the square so the button doesn't work.
View 2 Replies
Jun 1, 2009
I am having trouble with unload an loading movies. Basically I am loading a movie into a container, which works a charm[code]...
Ideally I would like to add that second movie clip into a container so I can position it correctly, but when I try copying the code I use on the first it doesn't seem to work...is it to do with the "root" bit perhaps?
View 3 Replies
Aug 20, 2009
I've got a MovieClip with two frames for the UP and DOWN states with text on top of it. I've added MOUSE_DOWN and MOUSE_OUT event listeners, but the text gets in the way of the button reacting to the events.I tried fixing this by adding the text as a child of the button, but now the text and the button act like they're two separate buttons. Does anyone know of a clever way to make the text and the clip to act as one button?
View 2 Replies
Oct 4, 2009
So the MouseEvent.CLICK event works just fine when i don't have the setChildIndex, but when i do nothing happens anymore. Here is the code:
var kake:Kake = new Kake();
kake.x = 87.5;
kake.y = 358.5;
addChild(kake);
setChildIndex(kake,2);
[Code]...
View 3 Replies
Apr 27, 2010
I've got a line in my Actionscript like this:[code]If I click the auto format button with this line in there, it adds unnecessary semicolons through the rest of the code and the file stops working. Is there something wrong with the way I have this coded? It works just fine with the code in there before I hit the auto format button.
View 1 Replies
Sep 8, 2010
I dynamically set a color using this function in colortransform.
function setColor(o:DisplayObject,color:uint):void
{
var myColor:ColorTransform = o.transform.colorTransform;[code]...........
I then have a short timeline animation in Flash CS5 where the height grows just a little bit, and it does not grow.It grows in the preview, but not after compile.If i comment out this color transform function, the height animates correctly.
View 2 Replies
Jul 4, 2009
My air app is using the FlexChrome instead of the system chrome. The problem is I also have a .CSS for skinning that sets the skins for the Button class. This is also changing the 3 buttons (minimize, maximize, close) in the flex chrome which is undesired. Is there a way to make it not effect the Flex chrome buttons?Also the css file is in a central location and I use it for many apps so I would like not to have to change the css file but change something in my app only so I do not effect other projects.
View 1 Replies
Jul 31, 2009
I have a xml file(pretty big like 600kb) and I am extracting data from him in a function. I call that function in the first frame. The question is how can I preload that function or because is messing all my animations.
View 6 Replies
Mar 7, 2009
My problem is I'd like to retain the transparency of agraphics fill on a DisplayObject after applying a filter. If Idraw, say a rectangle, through a Sprite's Graphics and while doingso, specify some transparency:
var spr:Sprite = new Sprite();
var g:Graphics = spr.graphics as Graphics;
g.beginFill(0x00ff00,
[code].....
View 1 Replies
Jun 23, 2009
I'm having an issue with sound that I'm playing from the library. With longer sound files, whenever I specify an offset in the play() method that's greater than 1000 milliseconds, it ends up messing the sound files timing. Specifically, it cuts about 1 second from the end so the sound file ends abruptly. I was wondering if any one else was having a similar issue.
View 0 Replies
Dec 9, 2009
I have built this, drag the various dots.[URL]...%20parent.html I did not use the flash startDrag because it had all sorts of issues. I wanted the dots to be restricted to the stage when dragged. That is any dot CAN leave the stage when it is not the one being dragged. For example make the kite big and drag the red dot, the blue dots are free to leave the stage (marked by outline in the online example) The code I have uses mousemove, and some globalToLocal conversion to keep the dots from leaving the stage area All was well so far.
Now I find out the kite has to be able to rotate! when I simply rotate the kite all of my dragging rules break down. Click the big blue button, each click rotates the kite 5 degrees. Looks OK at first, rotate 30 or 40 degrees and everything breaks down. I know its the globalToLocal limiting, is there a better way? Seems people here have a lot of experience with dragging and rotating in flash. Does anyone see a way to fix what happens, or a whole new way to do the drag.
[Code]......
View 0 Replies
Apr 12, 2010
My movie is 500 by 200 px. However i am loading display object much larger than that and have just a portion of them show. How do i programatically get the visible dimesions? root.stage.width gives me the extended value.
for the sake of good programing practices i dont want to hardcore the values.
View 1 Replies
Jul 1, 2010
If you include a flash file via:
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
[code].....
View 1 Replies
Mar 17, 2007
I found a bug with use of _X and _Y. even though vars are case sensitive in the case of _Y and _X Auto format will change them in to lower case _y and _x and still even then, the use of upper case will still apply what ever value of that var to the _y and _x of the _root.Now that I dont have the stage shifting any more I went back to look at my trace and to my surprise it's still the same.I assume that it's because of the array style scope. when in debug the the level0 and level0.stage is the same width and height.[code]
View 7 Replies
Jul 28, 2010
I need the enemies to move around the obstacles on screen. I have tried several methods but it seems to screw up other functions in my game... For example the depth sorting function starts messing up (sortchildren()). I think its because i'm such an amateur.
View 8 Replies
Oct 25, 2010
I'm making a flash game in AS2, and i am having troubles with my gun, i have fiddled with it for a while now and i have narrowed down the problem, but i can't fix it. My problem is that i want a gun to follow the player, but the coordinates are messing up and going to his feet.
Code:
onClipEvent (enterFrame) {
_y += (_root.player._y-_y)/1; //This code makes it goto his feet, but the gun no longer follows player when he jumps.
_x += (_root.player._x-_x)/1;[code].............
View 1 Replies
Jul 31, 2009
I have my flash site set to scale in a browser but I would like the movie to stop scaling when the browser is larger than a specific size and smaller than a specific size.
View 1 Replies
Aug 22, 2009
Anyone know what is the maximum movie stage dimensions in Flash CS4?
View 8 Replies
Mar 16, 2010
how to get the dimensions of my stage (x,y), BUT only the stage and not all the objects that might continue off the stage included.For example : My stage is 400 x 550.I want to get 400 and 550 returned.
View 3 Replies
Jan 6, 2012
I have to create a demo loop that will play on a 32" TV at a convention center booth. This .swf will also be repurposed on a webpage after the convention.What's the best pixel dimension to create the flash stage? If I create it at 1024 x 768 to fit safely within a browser, any idea how it will look when viewed on a TV? Will it look distorted? How do I compensate for fact that the TV may be 1080p or it may be 720.... and still have it work on a typical web page?
View 3 Replies
Oct 8, 2009
A DisplayObjectContainer's dimensions change based on its contents.
That can be a LOT of contents, many of them with visible = false or masked, thus making them hidden. Is there a way to get only the visible contents of a DisplayObjectContainer similar to a TextField has the textHeight property, which gives you the exact dimension of what you see on-screen.
View 2 Replies
Jan 20, 2011
I'm creating a media player (mostly video but with some graphical interfaces) that has a full-screen mode. However, before going fullscreen it's relatively small (about 620x340) and going fullscreen would typically be about double the resolution. What is the best way to prepare the videos and assets in the file so they look good at fullscreen and at the smaller size? I want to also keep the file size to a minimum (within reason).
View 2 Replies