ActionScript 2.0 :: Absolute MC Coordinate Values?

Jan 6, 2009

our collaborators misposition the registration points of MCs.Here's the deal: we need to recover the REAL MC's coordinates (not the ones based on registration point). Is it possible? How? I've tried some code already (like getBounds and getRect functions) but all of 'em consider the registration point.

View 4 Replies


Similar Posts:


Javascript :: Get The Absolute X And Y Coordinate Including HTML Offset?

Feb 18, 2010

I am calling a JS function through the ExternalInterface using Flex which requires the absolute X and Y coordinates to create a pop-up menu. The Flex application is displayed on the center of an HTML page, therefore there is an HTML X and Y offset to consider.

I have tried using the LocalToGlobal and ContentToGlobal functions, but these are just giving me the X and Y coordinates relative to the Flex application, it is not considering the HTML X and Y offset of having the Flex app in the center of the page or varying different screen resolutions.

Is the best approach to retrieve the HTML X and Y offset using JavaScript? Is there a Flex function I can use that provides the absolute X and Y coordinates based on the HTML page?

View 2 Replies

ActionScript 3.0 :: Add A Child Can't Change Its Parent's Coordinate Values

Oct 20, 2009

I expected the trace command at the end of this code to return 0, but it returns 100. Does anyone know why mc's y coordinate value is not updated after adding it a child?[code]...

View 9 Replies

ActionScript 3.0 :: Drawing In Complex Coordinate Plane With Negative Values?

Sep 13, 2009

i am trying to draw in flex in all four quardrants!i mean i have a 2-d plane,and i have values that i have calculated now i need to draw these in a plane! i tried the plotchart, but it only works in first quadrant,it doesnt take negative values!

View 0 Replies

ActionScript 2.0 :: GetBounds() - Get A Movie Clips Coordinate Bounds And Use The Minimum And Maximum Values Of X And Y To Draw Rectangle Around The Object

Apr 11, 2007

I'm having a little difficulty getting to grips with the getBounds() Movie Clip function. I assumed the getbounds() method simply got the boundary coordinates for the movie Clip, that one could use to draw a rectangle. This is what I'm trying to do;I'm trying to get a movie clips coordinate bounds, and use the min and max values of x and y to draw rectangle around the object. Simple right? But in my case, I'm getting some unexpected results. I wonder does ther registration point of the object determine the coordinate values? Also are the coordinate values local to the clip instance or global to the stage?

[Code]...

View 5 Replies

Professional :: Position Elements Relative To Other Elements Or In Absolute Values?

Jan 26, 2010

Is it generally to position elements relative to other elements or in absolute values?

View 2 Replies

Actionscript 3 :: Find Coordinate Of Child In Its Parent's Coordinate System?

Mar 31, 2010

I have 3 square. smallest square s3 is inside s2. s2 is in side s1. each is 10px larger [code]how can I find the coordinate of child in its parent's coordinate system?

View 1 Replies

ActionScript 3.0 :: Publishing Swf With Absolute Url's?

Mar 19, 2010

I have a problem that's driving me nuts.  A real catch 22 it seems.  I have a tutorial for creating a real cool mp3 player.  The player shares url data ( allows others to embed the player among other things) so the addressing must be absolute.  It works fine on my pc when I run from my local wamp server. Al my addresses are preceded with http://localhost.  If I leave http://localhost in the url's it won't run on the server that I upload to and if I use the url from the server it won't compile.  The addresses are in an xml file whiched is referenced in a class called PlayerDocumant  the reference also uses an absolute address to reference the xml file.

View 3 Replies

ActionScript 3.0 :: Absolute 3D Rotation In CS4?

Aug 26, 2009

Is there any way to rotate a 3D object in AS3 using absolute axes rather than the x, y and z axes of the object itself?For instance, increasing the value of rotationZ will make a movieclip rotate clockwise, but if the movieclip is first rotated 180 degrees around its y axis, increasing rotationZ will now rotate the movieclip counter-clockwise instead. Add rotation along the x axis, and things get really complicated.In my code, I simply want to flip a cube (consisting of four movieclip faces) 90 degrees around the default x and z axes, no matter what its current values of rotationX, rotationY and rotationZ are. My naive initial assumption was that it is only a matter of increasing rotationZ with 90 degrees to flip the cube left, or decrease rotationX to flip the cube "into" the screen

View 3 Replies

ActionScript 2.0 :: Way To Have An Absolute Path

Oct 3, 2005

Is there a way to have an absolute path? such as, "C:/myMusic/song.mp3". The movie is going to be on a webpage.

View 4 Replies

Actionscript :: Get Absolute Path Of My Swf File In It?

Aug 17, 2009

I would like to get the absolute path of my swf file from within Actionscript.[code]...

View 1 Replies

Flex :: Getting An Absolute Local Path?

Oct 9, 2010

I looked around, and the latest reference I saw was from 2008 stating that the standard FileReference browser does not support retrieving the user's file's absolute local path unless it's an AIR app, and indeed there's nothing in the docs suggesting otherwise. The reasoning behind this is apparently some misguided security concern... I get it's not a great idea to let any Flash app know your directory structure, but if the user actually grants your app a file, I think it doesn't invalidate the security model to know just that file's absolute path.

I'm wondering if the state of things has changed at all with Flex 4 and there's a method of getting the local filename of anything. I need it because I'm making an application that when distributed runs locally in 99% of cases, so doing a full file upload just to save it somewhere else on the local machine seems silly. (Plus the standard file uploading method doesn't support SOAP, which is what I'm using for all my other services...)

View 2 Replies

Flash - How To Find Absolute X / Y And Z Coordinates In AS3

Feb 11, 2011

I have been working on Flash AS3 project. I am designing a 3D system. Consider a MovieClip A which is at (0,0,0). A contains B which is at (10,10,10). If I rotate A by 10 degrees then the position of B with respect to A remains the same but position of B with respect to the system changes. To find Global X and Y of B, we have the function localToGlobal but it does not tell anything about the Z property. How to find that?

View 2 Replies

Flash :: Random Number Absolute 1 Or -1?

Mar 31, 2011

The question is simple. I need one line command like,Math.round((-Math.random() * 2)),which in output just shows 1 and -1. I try to figure it out but it seems not a easy task! I can use IF command like,demo = (Math.random()>.5)?(1):(-1);

View 6 Replies

ActionScript 3.0 :: Scaling And Absolute Width

Jun 18, 2010

i was wondering if there is a method to get the width of an object that is a child of a child of a child ....n times, and is scaled.

the width im interested is the actual width of the object on the stage, not relative to its parent.

e.g. like there is a function "local to global" for objects coordinates

i know i can get objects actual width if i multiply its width * scaleX or scaleY

but does the scaleX and scaleY refer to absolute scaling or scaling relative to objects parent?

View 2 Replies

ActionScript 3.0 :: Relative And Absolute Path?

Jun 21, 2010

I have doubt about relative and absolute path. I mostly use relative path to load xml, sound and image Is there any problem with cross domain policy?Which one is better in web projects?

View 1 Replies

ActionScript 3.0 :: Get Objects Absolute Coordinates?

Oct 2, 2010

My stage contains an object that contains a child. The child sees it's x and y position in relation to it's parent, so when the object moves, the coordinates remain the same.

How do i get a child's coordinates relative to the stage?

View 3 Replies

ActionScript 3.0 :: Absolute Path To Filesystem In XML?

Mar 10, 2009

I think I know the answer to this one already, but am looking for any workaround or solution (php??)

I have a AS3 .swf that will be hosted on a client machine running from a web server and viewed in a browser.

It loads a list of images, etc from xml and then displays them. Fine. The problem is, the client wants to be able to put absolute file/network paths in the xml eg: file://filepath or \Serverpathetc....

View 1 Replies

Actionscript :: IDE - Pull In Absolute Path

Dec 22, 2009

I have a flash file that is pulling in images from a folder and a .txt for text content. The code for the .txt file:

[Code]...

It cannot find it? What am I missing I can't figure out how to get this to work, and I want absolute paths. I'm sure it's really simple, I just can't figure this out.

View 1 Replies

ActionScript 2.0 :: Absolute Position Of Nested MC?

Sep 26, 2010

I need (convert) absolute position of nested mc (_root.mc.mc._x) on the stage. I noticed that the function localToGlobal could do this, but I could not figure out how. Maybe I could do workaround with counting positions of parent clips, but that sounds lame. how to trace this on the Stage? (trace(_root.mc.mc._x);

View 2 Replies

ActionScript 2.0 :: Absolute Targeting In A Loaded Swf?

Sep 15, 2004

i'm in the process of building a movie that is to be loaded and played into another main swf. the targeting (which is multi-level) works fine when the movie is played by itself but when it's loaded and played in the main swf some of the targeting doesn't work. i've tried using _parent. and stuff like that but it's not working. any ideas? can someone point me in the right direction? the frustrating thing is that some of the targeting does work.

View 1 Replies

ActionScript 3.0 :: 1010 Error From Absolute Links

Nov 17, 2009

I Have a quick question concerning absolute links in flash. I have a Flash gallery that is populated by php and xml. I was using relative URL's in all of my URLLoaders and everything worked fine. But when I moved my source files on to a different server and switched to absolute URLs, I got a 1010 Error. Could this be a flash player security issue?

View 1 Replies

Changing The Link Path To Absolute Between The Index.swf And 1.swf, 2.swf?

Mar 24, 2010

im trying to embed an swf file in facebook. To cut the story short, the swf im trying to embed is loaded fine but stops at preloader stage (0% of 1) and is not progessing as if it has missing link and couldnt locate something (the files struscture is one main swf file; index.swf loads other 5 swf),But, when i tried to load it up directly from browser, it works fine. I have been advised that changing the link path to absolute between the index.swf and 1.swf, 2.swf etc would solve the problem.

My questions will be:

-how do i change this path, because i couldnt seem to find any link that reflects the connection between those files?

-Is there any feature in flash that would be able to show this link rather than diggin up every symbol?

-If changing the path wouldnt solve the problem, what could be the reason this error is happening?.

View 1 Replies

Relative/Absolute Link In Posting F4V File To The Web?

Jun 12, 2009

I am working in Flash CS4.  I have successfully run a .wmv file through the Media Encoder, converted it to a f4v file, imported it into Flash, and published it with a skin to a folder on my hard drive.I am learning this on my own (no one else in my state agency knows Flash - we are just getting started with posting videos on the Internet, and this is the test case).I get the following four files in one folder on my hard drive (I have put in parentheses what I think the files do, please correct if I am wrong):
 
oil.f4v (the movie file)

Test.html (the html page in which the swf file is embedded to play back the movie)

Test.swf (the swf file that is embedded in the html page)

SkinUnderPlayStopSeekMuteVol.swf (the skin file that is linked to from the Test.swf file??)
 
My question is:  As long as these four files stay in the original folder, the html page plays the movie perfectly.  As soon as I rename the folder, nothing works.  It appears to be a question of re-establishing a relative/absolute link among the files? I want to post these to my live site in order to test, but of course that won't work yet either.

View 9 Replies

Automatic Absolute To Relative Paths Conversion?

Jul 15, 2009

I have a bunch of Flash (.fla) files where I need to convert all absolute (root) target paths in timeline scripts to relevant relative ones. Doing it manually in Flash CS4 is very tedious work and using "replace" action is tedious too as there are multiple nested timelines. Is there any way to automate this task?

View 4 Replies

ActionScript 3.0 :: Get The Absolute Stage Position Of An Object?

Jul 16, 2009

How can I get the absolute stage position of an object within a custom flex component that I exported from flash?  In my Flex application I'm using the component and resizing it by setting its height and width properties.  I want to place another component on the stage but I want it to appear at the same x and y coordinates of a text field in my custom component. 
 
newComponent.x = customComponent.myTextField.x
newComponent.y = customComponent.myTextField.y
 
Because the customComponent is resized, the coordinates don't match up. 

View 1 Replies

ActionScript 3.0 :: Loading External SWF Using Absolute Path?

Feb 27, 2011

I am having trouble loading an external swf on a server using the absolute path. This external swf uses webcam streams and is loaded in the original swf file using the URL request code. I can load other swfs but just not that one. I have set the permission of the external swf to allow write/read/execute

//Loads the augmented SWF into the main timeline.
var request:URLRequest = new URLRequest("http://www.reminisce.me/files/jz_AR.swf");
var loader:Loader = new Loader()

[code]......

View 1 Replies

ActionScript 3.0 :: Absolute Path To File Via FileReference?

Sep 8, 2011

I am wanting to allow a user to select an image from their computer to use as a BG. FileReference does this job well, however it does not provide the absolute path to the selected file.
 
I want the selected BG to stay in their "save" (local SharedObject cookie) so that it can be loaded the next time they come back. But since FileReference only provides me with the filename, I'm not sure how to go about storing this information for later. I could, I suppose, store the image data into the cookie directly, but that would be terribly inefficient since many BG images are rather large for a cookie.
 
how I can go about finding the image file path that the user selected, or efficiently saving the image they chose?

View 1 Replies

Flex :: Calculate Absolute Height Of Dropdown?

Apr 5, 2012

I have many dropdowns in my flex application. Now I want to set rowCount property so that as many rows as possible so there is less scrolling when see the dropdown items.The flex application was running on a popup window. So I think I have to know the distance from dropdown to bottom border of window, and then calculate what number should be for the rowCount. Like Height/per row height.As I known, the dropdown.y is the relative y coordinate of itself. But my dropdown has many parent UI layout component, and also I have many dropdowns, it is hard to calculate one by one.

View 1 Replies

Flash :: Determine Absolute Object Coordinates?

Oct 27, 2009

What is the simplest way to determine absolute object coordinates in AS3?

View 1 Replies







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