Home Tutorials Forums Articles Blogs Movies Library Employment Press

 ActionScript.org Forums x and y positions values on ONE variable?
 Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

 05-16-2010, 01:28 AM #1 idkas3 Registered User   Join Date: Apr 2010 Posts: 21 x and y positions values on ONE variable? I am trying to figure out how to obtain x and y positions' values on one variable concept is... cactus_mc.x = 233; cactus_mc.y = 32; two consecutive values of cactus_mcx and y must be applied on one variable var xandyA = (cactus_mc.x, cactus_mc.y) // error so I can continue with following functions in the future if (xandyA == xandyB ){ code }
 05-18-2010, 08:32 AM #2 cardin Cardin     Join Date: Jan 2003 Location: Singapore Posts: 56 This might be helpful: ActionScript Code: ```var pointA:Point = new Point(10, 14);                         var pointB:Point = new Point(5, 14);             pointB.x += 5;                         trace(pointA.equals(pointB));             //true! ``` Point is in the package flash.geom.Point. __________________ Yohohoho... Yohohoho.
 05-25-2010, 06:24 PM #3 ActionScriptRetard Member   Join Date: May 2009 Location: United Kingdom Posts: 99 you could try an array..

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home ActionScript Forums Group     ActionScript 3.0     ActionScript 2.0     ActionScript 1.0 (and below)     Simple Stuff (Newbies) Flash General Questions     Flash 10 General Questions     Flash 9 General Questions     Flash 8 General Questions     Other Flash General Questions Flex     Flex 2, 3 & 4     Flex 1 Extensions and Plugins     Components     JSFL - Extending Flash Desktop, Mobile and non-browser Environments     AIR (Apollo)     FlashLite / Portable Devices Development     Projectors and CDs Supporting Technologies     HTML and JavaScript     haXe     Server-Side Scripting     Flash Remoting     Flash Media Server General     Best Practices     Gaming and Game Development     Animation and Effects     Flashants Support Forum Community Boards     General Chat     Just for Kicks Challenges     Detention Flash In Action     Site Check     Cool Sites     Widgets Decommissioned     Projects and Positions CMS Forums     Announcements Board     Content Postings / Updates     Product Review Requests     CMS Technical Questions     Process Questions     Collaboration & Suggested Articles

All times are GMT. The time now is 06:48 AM.

///