ActionScript 3.0 :: GetBounds XMax - XMin - Properties Doesn't Work?

Mar 6, 2009

I am trying to adapt an As2 function to As3. It is perfect collision with 2 rectangles. (also works with rotation ) the code below works very well, but it look like some of the properties doesn't work in As3 ? (like xMin, xMax etc...). Here is what i have in As2.

[Code]...

View 7 Replies


Similar Posts:


ActionScript 3.0 :: GetBounds Function - Does It Work With TextFields?

Mar 10, 2009

I'm trying to get the height of the (external) text in textfields to display them vertically on top of each other with a space in between. At the moment I am adding the textfields with predefined heights, so if item1 is 2 lines and item2 is 4 lines then there is a lot of space between item1 and item2

ActionScript Code:
var my_tf = new TextField();
my_tf.text = "Hello";
my_tf.appendText(" world!");// my_tf.text == "Hello world!"
my_tf.x = 100;
addChild(my_tf);
[Code] .....

View 1 Replies

ActionScript 2.0 :: PrintJob Gets Blurry With Larger XMax And YMax Values

Jun 13, 2007

I don't think I am properly understanding the printJob class. I have a large movie clip with dynamic text on it that I have scaled down to fit the printed page. There are no bitmaps in this movieclip. it is drawn with the drawing API and some attached dynamic text fields.

[Code]...

View 3 Replies

ActionScript 2.0 :: Dynamic Masks - Trail Doesn't Resize And The Mask Still Doesn't Work

Oct 16, 2009

I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:

Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....

in the function, but now the trail doesn't resize and the mask still doesn't work.

View 1 Replies

ActionScript 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 Replies

Filter In Properties Panel Don't Work?

Jun 5, 2009

I drew my log in flash and made it a movie clip but when I try to use the filter in properties panel the shadow comes out the color of the logo and the bevels don't seem to work

View 3 Replies

ActionScript 3.0 :: Work On The Properties Of Swf Made?

Jul 21, 2009

Could anybody suggest that how to work on the properties of swf made on action script 1.0 & 2.0 in actionScript 3.0 ? I have series of swfs in flash old versions action script 1.0 & 2.0, and i want those to run on the action script 3.0. Those are loaded on the flash as3 and playing fine but i cann't access the time line property of those because those are avm1movie objects and as3 is avm2movie. So is there any way to access timeline properties of avm1movie in avm2movie like current frame annd toltal frames like wise.

View 11 Replies

Extreme Rare Bug: Properties Windows Doesn't Appear - Have To Kill Flash With Task-manager?

Aug 21, 2009

I double-clicked on a bitmap-item in the library and instead of opening the properties-windows where you can change compression, import and so on, the focus changed to a random explorer window and flash got "locked". Flash probably thought that it actually opened a new sub-window and waited for it being closed, but there was no such window! Seems like the open-procedure failed and the next window to focus on was just an explorer window. Closing this one didn't get the focus back to flash. What a luck, I could still save the file using ctrl-s but couldn't get back to the application. So I had to kill Flash with the task-manager.

View 1 Replies

Flex :: Wrong GetBounds() On LineScaleMode.NONE And On The Screen Nothing Happens

Nov 9, 2009

I have write a simple example that adds a canvas and draw a rectangle with stroke size 20 scale mode none. The problem is that if I call getBounds() first time I will get a correct result but after I call scale(); the getBounds() function will give me a wrong result. It will take in cosideration the stroke but stroke has scalemode to none and on the screen nothing happens but in the result I will have a x value smaller. Can sombody tell me how can I fix this ?

[Code]....

View 1 Replies

ActionScript 3.0 :: Redraw Invalidation With ScrollRect Vs GetBounds?

Mar 24, 2011

I'm having a problem that involves scrollRect and getBounds. In short, getBounds is reporting an old value not accounting for scrollRect changes during that frame. Example:

ActionScript Code:
var shape:Shape = new Shape();
shape.graphics.beginFill(0);

[code].....

View 3 Replies

ActionScript 3.0 :: Getbounds Producing Insane Results?

Jan 14, 2012

I'm trying to get bounds of an object for more specific testing. but it's not functioning very well.The relevant code here, with some debug outputs:

Code:
private function getCorrectionVector(object:Array, block:Array):Array
{
var ret:Array = new Array();

[code]...

The debug output from running this , is this:

Code:
GCV: Checking objects: 95.7 344.2 0.35,1.35
GCV: Checking objects: 48 48 0,0

[code]...

View 2 Replies

ActionScript 3.0 :: Rectangle.getBounds Causing An Infinite Loop?

Jul 19, 2011

I've been working on an AS3 project. One of my classes in this project is a collision object that extends MovieClip. It is used to be placed in other movie clips as hitboxes.My problem with the code lies in its hittest function. Occasionally, it causes an infinite loop that crashes the program. Flash tells me the problem lies with the getBounds function, but I don't understand why that is so. Can anyone tell me what might be wrong with it?

Code:
public function HitTest(other:CollisionShape,offsetX:Number = 0,offsetY:Number = 0):Boolean {

[code]........

View 2 Replies

Actionscript 3 :: Integer Overflow - GetBounds TargetCoOrdinateSpace Is Not Added To Stage?

Aug 19, 2010

I have two display objects dispObj1, dispObj2. dispObj2.stage is null. (i.e. it is not added to stage anyhow)What should be the output of dispObj1.getBounds(dispObj2)?Is it well defined, or could it be arbitrary?Once I got x of boundingRectangle close to 6710785, which I guess is a symptom of an integer overflow somewhere.

But other times I got a reasonable value for x,y,width,height.

View 1 Replies

ActionScript 3.0 :: GetBounds()s On Button Component Returns Wrong Dimensions?

Mar 3, 2011

So I've been building a colour picker, where you click an icon and a tooltip fades in revealing the colour picker. You make a selction and then click an "ok" button to close the tooltip(or mouse away from a couple of seconds and the tooltip closes)...Developing this was really smooth, untill I pushed the Button Component into the colour pickers containing Sprite. The problem seems to lie with getBounds. I use this to draw a background on the Colour Pickers container sprite. Now I have a button in there the first time I open the toolip I get a width and height of 250 - 100. Although the buttons dimensions are 25 - 18. The second time I click the colourPicker its getBounds() properties are correct and all is good.

If I add the Colour Pickers containing sprite to the stage before opening it then it opens with the correct dimension. Although this means the container is on stage. So I tried to just add and remove it in the one step but I get the same result as above.I'm thinking this has something to do with waiting for the button to be added to display list/stage or something but I can't work around it

View 1 Replies

Swf Into Fla Doesn't Work?

Jul 23, 2009

I have a swf that is pretty complicated, you can interact with the page and go to different keyframes and it stops and/or starts depending on buttons, but I want to put it in a fla or something so I can put other swfs next to it and build it up and put several of them together as one.

I don't care about making it too complicated, I just want one interactive swf to go to the next compiled swf when that movie ends, but when I try importing it or loading it it just runs straight through without stopping or paying any attention to the scripting.

View 16 Replies

ActionScript 2.0 :: CS3 'if' Doesn't Work But 'else' Does

Apr 8, 2010

I am trying to more between frames using the data returned from a node n_EventID in an xml, when the node returns "1408" I want to move to frame 1 but if it returns anything else I want to move to frame 2. The part where the code moves to frame 2 seems to work perfectly but I can't seem to move to frame 1 when "1408" is returned.

xmlResultFinish = new XML();
xmlResultFinish.ignoreWhite = true
xmlResultFinish.onLoad = loadXmlResultFinish;

[code]....

View 5 Replies

Flash Doesn't Work On Some IE's?

Apr 14, 2010

I'm having a problem, where random IE's are not able to display my .swf file. All the IE's are IE8 with the latest flash pluggins and all security's are set at Medium, however some IE's get just a grey box and other's get the full flash file. What's going on? It works fine in Safari and Firefox of course, but why so much difficulty with AS3 Flash9 in IE? here is a link to the site, and it's the big image changer at the bottom of the front page.

[URL]

View 2 Replies

.swf Fullscreen Doesn't Work?

Nov 19, 2009

But my proublem is that I have a flash presentation.The defalt for moving the slide screens back and forth are left and right arrows.It works fine when tested or even the .swf fileBut then the left and right buttons don't respond when I go to fullscreen.

View 5 Replies

ActionScript 3.0 :: SWF Doesn't Work In IE

Dec 10, 2009

Is it common for AS3 apps to not work in IE? Is there a way to make them work? I have a movie clip in my library linked to a custom class Main and I have nothing on stage. Just one frame. Everything is built inside that movie clip. I add that movie clip to stage through a document class and everything works perfectly in Firefox and Chrome but when I open it in IE, it's just a blank page.

View 6 Replies

IDE :: Pop Up Doesn't Work In IE But In Safari?

Apr 12, 2007

i followed the instructions oh how to make a centered pop up window here :i'm using a mac..nd it works in Safari... but when i try to use explore to open it, the pop up window doesn't come up...why is that.......? did i do something wrong?here is my website:and please click on 'message' to see for yourself.

View 5 Replies

IDE :: Pop Up Doesn't Work In IE But In Safari

Jan 9, 2004

i followed the instructions oh how to make a centered pop up window here : [URL]

i'm using a mac... and it works in Safari... but when i try to use explore to open it, the pop up window doesn't come up..

here is my website: [URL] and please click on 'message' to see for yourself.

View 6 Replies

ActionScript 3.0 :: Stage Accessed Differently With The GetBounds Method In An External File Than In The Timeline?

Aug 2, 2011

The following piece of code works in the timeline:

var ball:Sprite = new Sprite;
addChild(ball);
ball.graphics.beginFill(Math.random()*0xff0000);[code].....

Is the stage accessed differently with the getBounds method in an external file than in the timeline?

View 3 Replies

ActionScript 2.0 :: F8 DuplicateMovieClip Doesn't Work

Jan 15, 2009

this is what i have on the maintimeline:[code]I have 4 moveiclips called: redhex, bluehex, greenhex, and yellowhex.what the above code should do is make a 15x15 grid of hexes (yes i wanted all 4 hex mc's overlapping each other at each space on the grid.).Before i added the lines to dupllicate the blue, green, and yellow hexes also... the redhex movieclip duplicated exactly as it should.But after adding the lines to duplicate the blue, green, and yellow hexes also, in the same locations... Nothing at all showed up when i tested the movie (not even the redhex's)

View 4 Replies

ActionScript 2.0 :: Key.isDown Doesn't Work?

Apr 12, 2009

In the actions of a movie clip,I want to use something like:

PHP Code:
if(Key.isDown(W)){
//do stuff
}

But,it does not take anything else than LEFT,RIGHT and some others.I even tried ASCII:

PHP Code:
if(Key.isDown(100))
{}

It doesn't work.Then how do we use keys like W,A,S,D?

View 1 Replies

9-slice Scaling Doesn't Work

Sep 18, 2009

I've made a rounded rectangle with a gradient fill and another rounded rectangle over it with a transparency to create kind of a glossy effect. Both objects are part of a symbol in the library of the FLA file. Then, I activated the checkbox to create a scale-9 grid, and the Export for Actionscript checkbox in order to add this symbol from AS3. Next I made sure that every rounded corner was completely included in the slices on the edges of the grid. Well, no matter what, the object is scaled as a normal graph: the rounded corners appear bigger and deformed.

View 4 Replies

ActionScript 2.0 :: [F8] : DuplicateMovieClip Doesn't Work

Mar 12, 2010

this is what i have on the maintimeline:

Code:

initialize();
function initialize() {
for (i=1, r=0; r<15; r++, i++) {
for (c=0; c<8; c++) {

[code]...

I have 4 moveiclips called: redhex, bluehex, greenhex, and yellowhex.what the above code should do is make a 15x15 grid of hexes (yes i wanted all 4 hex mc's overlapping each other at each space on the grid.).Before i added the lines to dupllicate the blue, green, and yellow hexes also... the redhex movieclip duplicated exactly as it should.But after adding the lines to duplicate the blue, green, and yellow hexes also, in the same locations... Nothing at all showed up when i tested the movie (not even the redhex's)

View 8 Replies

ActionScript 2.0 :: CS3 Querystring Doesn't Work

Oct 26, 2010

I'm in a big distress, I'm using AS2 with CS3 (Flash 9.0 on OSX Snow Leopard) and I can't get the querystring. I don't understand it has always worked before with my previous version of Flash. I'm using this AS code: t_txt.text += _root.age; I have a dynamic text linked to t_txt. For the HTML I simply published using Flash, then I changed in the html file like this:

<param name="movie" value="age.swf?age=56" />

And

<embed src="age.swf?age=56" quality="high" etc >

When I set to use AS1 it just works fine. But I can't use AS1 all my projects are with AS2. So what's wrong?

View 3 Replies

ActionScript 3.0 :: CS5 S3 Redirect Doesn't Work

Apr 2, 2011

flash cs5 wont follow s3's redirects, instead it makes an ioerror with http status code 303 which is not an error code, its a redirect code. It doesn't hit the redirect page at all. If i was to save this file as a cs4 doc and run it in cs5, same issue. If if was to open and run it in cs4, it works fine, no error, redirect gets hit.Exactly the same file works in cs4 but not in cs5.

View 1 Replies

CS3 Input Text Doesn't Work?

Jun 2, 2011

on my website I have a contact form where you should be able to type into an input text box. For some reason, my website won't allow me to click and edit the input text box. Could the problem be that it is within a movieclip?

View 21 Replies

Doesn't Work When Loaded Into External Swf?

Aug 30, 2011

I've only been working with flash for about 3 weeks and I'm fairly new to programming soI'm using Flash CS5 with AS3 btw.

Code:
///////////////////////////
// Custom Mouse Controls

[code]....

View 2 Replies







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