ActionScript 3.0 :: Rotate Four Virtual Coordinates Of A Square?

Mar 4, 2010

I have the starting point of a rectangle, and the rotation of the line that I would like this rectangle to be parallel to. My initial thought was to create a Rectangle() then rotate it, but there doesn't seem to be an easy method rotate a rectangle. From this rectangle I create I can obviously get the four points, but I need these to be adjusted based on an angle of rotation that I pass it.

View 1 Replies


Similar Posts:


Flash - How To Rotate Around 3D Coordinates In AS3

Feb 24, 2010

I wanted to write a simple 3d image rotating around the y-axis as the Image carousel. I can place all the photo around the axis but I can't get the main image facing towards the screen. I mean the z-axis isn't pointing towards the screen. Instead, the z-axis is towards the top left corner. How do I make the z-axis pointing perpendicular to the screen?

View 1 Replies

ActionScript 2.0 :: When Creating A Dynamic Square With The Api - Won't Drawing Api Square Object

Dec 2, 2010

when creating a dynamic square with the api. 400 by 400. I am not sure why it wont draw the object

[Code]...

View 2 Replies

ActionScript 2.0 :: Have An Enemy Square That Chases The Player Square?

Jan 15, 2010

I have this game, and some levels have a moving square as the player, you move the square with your arrow keys.... I want to have an enemy square that chases the player square.... They only chased mario when you didn't look at them? Kinda like that...... but in this regards:

I only want the enemy square to chase the player square when the player square moves.... soo say the player square moves 5 pixels per movement (know how to do all that), I want the enemy square to move when the player square moves..... towards the player square at like 7 pixels per movement..... so eventually you won't be able to avoid the enemy square....

View 4 Replies

Actionscript 3 :: Convert Global Coordinates To Local Coordinates Of A UIComplenent In Flex Project?

Dec 19, 2011

I was trying to convert global coordinates to local coordinates of a UIComplenent in my flex project using below code using below code

var gp:Point = new Point(e.stageX,e.stageY); //global point
var lp:Point = uic.globalToLocal(gp); //local point

uic is UIComponent in which I have subclass of Sprite for drawing something I have set the sprite's mouseEnabled and mouseChildren to false to not interrupt the mouse event. above code is within uic's mousemove event where I was tracing the gp and lp gp was giving correct value and suprisingly lp was giving negetive values. when I move the move to the top left corner of uic i expect lp to be 0,0 but it is giving the -width of of uic. I broke my head for hours and ended up finding an alternate by using offsets. Infact my original code was much simpler like this which was same issue

var lp:Point = new Point(e.localX,e.localY);

I am not sure what exactly is causing this problem. the workaround had lot of issues and it creating a mess in my rest of the algorithms.Just now I found even more interesting thing (which is actually weird). for some reason I went and create a new lp2

var lp2:Point = new Point(e.localX,e.localY);

now surprisingly it was giving correct values as expected and I went back and changed the code as

var gp:Point = new Point(e.stageX,e.stageY); //global point
var lp:Point = uic.globalToLocal(gp); //local point
var lp2:Point = new Point(e.localX,e.localY);
var lp2:Point = uic.globalToLocal(gp);

now it is expected to have all the lp, lp2 and lp3 variables to be same but weiredly lp two is giving wrong value and lp2 and lp3 were giving correct. I am suspecting using the variable lp has something to do. I am not sure about that but above proves it so right now I am using lp2.

View 1 Replies

ActionScript 2.0 :: Converts 3d Coordinates To 2d Coordinates - Difference Between MoveTo And LineTo?

May 21, 2007

I was reading the 'Isometric Transformations' tutorial by Danko Kozar and I have a few questions. I understand what all the code does, but not how it does it. First of all, how does the following code work:

transforms x,y,z coordinates into Flash x coordinate
xFla = function (x, y, z) {
// cartesian coordinates[code].....

I understand that it converts 3d coordinates to 2d coordinates, but I don't understand how. What numbers whould be punched into x, y, and z to acquire certain desired effects?Also, what's the difference between moveTo and lineTo:

red line
style(1, "0xFF0000", 100);
plot(0, 0, 0);
draw(200, 0, 0);

View 4 Replies

ActionScript 3.0 :: Converting Papervision Coordinates Into Cartesian 2D Coordinates?

May 3, 2010

Im making a little app in flash using papervision I want to make a regular movieClip show up in the same place as a papervision object. The coordinates seem like perspective is affecting the number displayed.

View 2 Replies

ActionScript 3.0 :: Enemy Animation Sequence - Rotate + Move, Then Stop Then Shoot Then Rotate Back And Move Off Screen

Aug 10, 2009

I am having some dificulty making a path for this enemy i'm trying to create... cause i want him to rotate + move, then stop, then shoot, then rotate back and move off screen... Its easier if you see it.. you can download the swf file in the zipped archive to demonstrate what i mean. I did it there with tweens. Anyway.. i tried and make it but i'm a little stuck on the stopping part... you can also see what i did in the fla file attatched...

View 1 Replies

ActionScript 3.0 :: Can't Find Virtual Machine

Nov 20, 2008

I got an error message, when trying to compile. At one point it was working, but maybe I screwed up one of the environment variables.

View 1 Replies

ActionScript 3.0 :: Save A Swf Over A Virtual Server?

Jul 9, 2010

I now know that it is impossible to save a swf over a virtual server (in real time) which has had its text changed dynamically.  But does this apply to webcam video?  What I mean is, if I allow someone to use my app on the internet, and this app allows them to record a video using their webcam, can they then save this swf to their computer?

View 1 Replies

Professional :: Use Virtual Camera In Flash Cs4?

May 15, 2011

I watched some videos on youtube, they are good but not in depth. Are there any good, easy to understand resources that how to use the virtual camera?

View 1 Replies

ActionScript 3.0 :: Code Own Virtual Camera?

Jul 5, 2011

So I've heard it's easy to code your own Virtual Camera. Since I am no coder has one of you lovely fellows probably coded a camera himself?
 
All I need is zoom and it should work with a stage size of 1024X576. I have tried the popular vCam AS3 v1.1 link: [URL]..page_id=12but it only seems to do an aspect ratio of 4:3 and not 16:9 (which is the aspect ratio you get when you use 1024X576) so everything is skewed and distorted.
 
Maybe there is just a little detail that needs to change in that code but I have no idea what it is.

View 1 Replies

Professional :: Virtual Graphic For Donations?

Jul 13, 2011

I'm not sure if I'm posting in the right area or even able to describe clearly what I'm trying to accomplish.I want to create a graphic (as an example, let's say a Christmas tree) where stars can be purchased as a donation via PayPal to light up the tree.  Once the donation is made, PayPal needs to return to the Flash graphic with the new star and message attached to it  I'd like to do this for various holidays (Valentines, Easter, etc.)

View 2 Replies

Ajax :: Creating A Virtual Tour?

Jul 12, 2010

we need to add a simple virtual tour to our web site. Is there any simple way to do this? do we have to create it from scratch? is there any service provider to do this on cloud?

View 1 Replies

Actionscript 3 :: Virtual Array Of Particles

Mar 25, 2011

I made a particle class following a tutorial a while ago. Basically it uses some sort of a virtual list, replacing the array method, which makes it really fast solution. So everything is working perfectly fine except the fact that i really can't understand what actually is going on. It is pretty confusing so im trying to find the logic in this stuff, unfortunately with no success.[code]

View 1 Replies

Php :: Implement Virtual Filesystem With Flex?

Apr 9, 2011

I am creating an EDM (Electronic document Management) system which will use Flex for front-end, PHP at server side and Mysql as database. Since its an EDM a single file will have many versions old copies will be stored hence one to one files mapping is not a choice. Wondering whats the best way to do so.

View 1 Replies

Flex :: Facebook Log In With Virtual QWERTY

Oct 3, 2011

I am working in a project which uses the Facebook graph-api to log in. I have the requirement of only using a virtual keyboard (no hardware will be present). I have looked everywhere, but can't find a solution for adding a virtual qwerty keyboard to the popUp. I can put the keyboard into a popup, or I could add the qwerty keyboard into the screen with the addChild() method, but I still have one problem: the virtual keyboard does not focus to the textInputs of the popup and when i press a key, everything "explooota".

I mean... when i prees the virtual key, i call a java function wich simulate a physical keyboard, but i lose the focus into the facebook input text and the letter is not in the textinput. and i dont know how to recover the focus.

View 1 Replies

ActionScript 2.0 :: Add More Pages To Virtual Book?

Aug 26, 2009

Anyone know how to add more pages to the virtual book?

View 3 Replies

ActionScript 3.0 :: 3D Cars Animation On Virtual Map

Oct 12, 2009

How can I build 3D object - a car which follows the path in Flash (like in 3d MAX's Path Constrant do)? I wanted to create a virtual map of our field, where stated our office, and wanted to animate a car which follows the paths (streets) showing how can you get to us. Ok, I can build streets in 3d Swift express (paint them from top then Commands -> 3d Swift Express), there are static, but the car must drive and turn in cross sections (so the car must drawn from each side).

View 0 Replies

ActionScript 3.0 :: Build A Virtual Keyboard?

May 8, 2010

So i am building a virtual keyboard, letters and numbers, for a touch screen app.[code]...

View 3 Replies

ActionScript 3.0 :: How Virtual Worlds Do To Load Different Swf

Oct 26, 2011

How virtual worlds do to load different swf? I mean, for example, I want to load a swf for a room behind my carachter, or a book that returns back to the game, after I press a button.

View 0 Replies

ActionScript 3.0 :: Create A Virtual Piano

May 25, 2010

I'm trying to create a virtual piano.

[Code].....

The sounds are linked as c or csharp or d.. and so on. The lines in bold are wrong. I think I'm supposed to use getDefinitionByName but I don't know how

View 3 Replies

ActionScript 2.0 :: Create A Virtual Wardrobe?

Nov 1, 2004

how to create a virtual wardrobe. I have the script for it but it didn't work so writing in to confirm and to check it up. A virtual wardrobe is where there is a mannequin and a set of clothes to chose from. The user is able to click on a set of thumbnails and the clothing will be preview on the mannequin.

View 3 Replies

ActionScript 3.0 :: Virtual Joystick - Flashes Back And Forth

May 20, 2009

I have a virtual joystick that I am making for one of my games, and I'm having a problem with the KEY_DOWN command.

Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, joyKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, joyKeyUp);
function joyKeyDown(joyEventGo:KeyboardEvent):void {
if (joyEventGo.keyCode==Keyboard.LEFT) {
joystick.gotoAndPlay(2);
}}
function joyKeyUp(joyEventStop:KeyboardEvent):void {
if (joyEventStop.keyCode==Keyboard.LEFT) {
joystick.gotoAndPlay(1);
}}

My problem is that I cant seem to get it to stop looping. I have a joystick in normal position in frame 1 of the joystick MC, and other positions in the other 4 frames. Here's what my code makes the joystick do. It flashes back and forth. I cant get it to stop pinging the function for gotoAndPlay, so it wont stop going to the right position.

View 4 Replies

ActionScript 2.0 :: Make A Virtual Keyboard Using Flash?

Aug 14, 2009

im trying to make a virtual keyboard using flash. im using keyCodes, problem is how do you do a backspace?

Code:
if (Key.getCode() == 65) {
var_text.text = var_text.text + "a";
}

the code above should display "a" in a dynamic text box when you press "a" but how about backspace? I thought that the code below would work but it deletes the whole entry rather than a character.

Code:
if (Key.getCode() == 8) {
var_text.text = var_text.text - "";
}

View 3 Replies

Media Server :: Creating A Virtual Host In FMS 3.5?

Apr 24, 2009

I've done the following:

created a folder /fmsRoot/conf/_defaultRoot_/stream.example.comcopied in Application.xml and Vhost.xml from _defaultVhost_specified a new apps directory here: /home/stream.example.com/fms_app/ then added

[code].....

View 15 Replies

ActionScript 3.0 :: Virtual Paper Page Flipper?

Feb 5, 2010

How do create virtual page fliper. Do you give me any idea.

View 2 Replies

Professional :: Flash CS4 Keeps Quitting - Virtual Memory Low

Jun 2, 2010

I'm working with a rather large flash file and I've already been to the flash website to download all the updates that deal with large file issues. Things are much better now. However, I was having issues with flash coming back and telling me that my virtual memory was low. I adjusted it and now I'm not getting that error anymore. Now every hour or so flash will just quit. I'll be working and then it will be gone. I don't have a lot of ram on my pc.. 2GB. I'm thinking I'll upgrade it to 4 tomorrow. I'm working
WinXP service pack 3
Intel Pentium D CPU 3.00GHz
2 GB of RAM Video Card: ATI Radeon X1050

View 1 Replies

ActionScript 3.0 :: Virtual World Avatar Assets

Jul 14, 2010

I have some beautiful CATS drwan up for me. In typical avatar style you can change the colour, hat etc... of your avatar.What is the best set up for the assets.

1. Would I programatically import the HAT asset for example when chosen by the user

2. Would I have all the assets sitting inside on a layer inside the avatar - then it would be MASSIVE
 
Once the avatar is created it needs to walk around my virtual world etc... I don't want the MASSIVE avatar walking around with all the assets inside it.How would I only get what the user chose ie: A red cat with a black hat.Also, the colours would be best to programme them in otherwise I would have to have 10 different coloured copies. Is that right?

View 4 Replies

Professional :: Pay 4 Guidance Building Virtual Office?

Nov 9, 2010

I'm willing to pay for referential help (ie answering questions when  stuck) as I build a highly scalable flash 3D virtual office  application/site.

I have some code background in  HTML/ColdFusion/MySQL and I plan ideally to host on Google App Engine using their datastore as the backend and the OpenBlueDragon port of  Coldfusion for GAE as the middle tier.

However I am  struggling with flash and/or flex.  Specifically while I've learned a  great deal of AS3 concepts and FB component coding, all the 3D engine  (lately Alternativa or Flare3D seem to have become the leaders)  tutorials seem to be Flash based rather than FlashBuilder.

Moreover,  I'm presently working through the Flash and PHP Bible (though trying to  adapt the PHP to CF code) and can't find any resources describing how  to connect Flash CS5 to Coldfusion (they all focus on FB4 and usually a  wizard therein).

And finally given the scope of the  intended project I recognize I will need a framework of some sort but  transparently lack the expertise as yet to pick/implement one.

View 1 Replies







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