Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > JSFL - Extending Flash

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-05-2006, 02:12 PM   #1
Boersnoes
Registered User
 
Join Date: Feb 2006
Posts: 12
Question get location of an instance

Today I ran into a rather stupid "feature" of jsfl.
Apparently instances have a .left and a .top property, but no x or y property. This way I can get the position relative to the instance's registration point and stage origin, but not the position of the instance itself.
Practicly I need to know if an instance is located at 0,0.
But although I have put it at 0,0 in the editor, i get 0,-2 from the folowing code:
Code:
	alert(fl.getDocumentDOM().timelines[timeline].layers[layer].frames[frame].elements[element].top);
	alert(fl.getDocumentDOM().timelines[timeline].layers[layer].frames[frame].elements[element].left);
Any ideas how to solve this?
Boersnoes is offline   Reply With Quote
Old 05-22-2006, 09:13 AM   #2
aravinth_vt
Registered User
 
Join Date: Mar 2006
Posts: 21
Default

Hi,

I think it's due to the line thickness problem. convert all the lines inside the clip to hairline and run the script. it will show "0,0". to check it for (0,0) have an approximation value like + or - 10.

In case i am not answering to the exact problem, please brief me in a different way!
aravinth_vt is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preloading an instance? (probably simple) str3ber ActionScript 2.0 0 05-02-2006 12:09 PM
class instance properties disappear.... sasxa ActionScript 2.0 5 05-31-2005 05:02 PM
delete an instance HOW ? cool_tester ActionScript 1.0 (and below) 15 04-02-2005 11:00 AM
inheritance - Mortimer Jazz ActionScript 1.0 (and below) 10 07-24-2003 09:51 PM
instance names problem. flashdev Other Flash General Questions 1 10-17-2002 01:16 PM


All times are GMT. The time now is 04:12 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.