ActionScript 2.0 :: Robot Movement And Neural Netting - Variable Tables?

Feb 11, 2003

Using FMX:I have a scene in which a robot runs around an "arena". It has two bump sensors. When a bump sensor comes into contact with the arena, it registers a collision with that sensor, and backs up and moves accordingly.

I already have code for precisely locating the position of the sensor when it hits something.What I want to do is:Have the robot run through the arena for a while, and everytime it bumps into an object (there are "rocks" in the arena), to write that exact location (x,y) to a list of some sort, or perhaps an array. Idealy I would like to write each value to an external text file.

This is where the cool stuff comes in. I am going to use the newly created "bump map" to tell the next robot where not to go.I just can't think of a good way to make a giant list of variables like I would need here. If only I could save the traces for these variables...

View 14 Replies


Similar Posts:


ActionScript 3.0 :: Robot Passing Object To Another Robot?

Jan 21, 2011

Flash CS5
AS3

I'm working on a project where I need to animate multiple robots picking up parts and dropping them. I've attached a quick demo of the kind of movement I need.At the moment I have a Part MovieClip inside a Robot MovieClip (so it will rotate with the robot) What I can't work out how to do smoothly is, how do I release this Part Movie Clip so I can transfer it to another robot & rotate it following the second robot.I can't seem to copy/paste the Part's last position from the 1st Robot's animation to the 2nd Robot without it changing scale/position. Leaving me to basically position a new copy of the Part MovieClip until it sort of lines up with the old parts and switching between the two in the timeline.

View 0 Replies

Robot Passing Object To Another Robot

Jan 21, 2011

Flash CS5
AS3

I'm working on a project where I need to animate multiple robots picking up parts and dropping them. I've attached a quick demo of the kind of movement I need.

At the moment I have a Part MovieClip inside a Robot MovieClip (so it will rotate with the robot) What I can't work out how to do smoothly is, how do I release this Part Movie Clip so I can transfer it to another robot & rotate it following the second robot.

I can't seem to copy/paste the Part's last position from the 1st Robot's animation to the 2nd Robot without it changing scale/position. Leaving me to basically position a new copy of the Part MovieClip until it sort of lines up with the old parts and switching between the two in the timeline.

View 2 Replies

ActionScript 2.0 :: Flash For Mobile Robot?

Apr 30, 2005

For the first time we are planning on making an autonomous robot which would be based on macromedia flash.

1. A map of the entire room would be created in macromedia flash. I have already been able to achieve this part. In a text file i give the coordinates of the walls and obstacles. When flash is executed it uses the "lineto" function to create the walls and environment.

2. Now the start position of the robot is decided by the user and also the end goal in the environment. The coordinates of these points can be found by using "getproperty" function. I have been able to get this too.

3. Now once the environment is entered and the start and end positions, i need to write some algorithm which shows the path my robot would take. I did hunt online and found some of them based on the A star algorithm. but they are way tooooo complex. And dont know how to incorporate them into my project.

4. If i can get that done then the next step is breaking that path into smaller segments and sending the data for each segment out of the computer to a oopic microcontroller board which will control the motors of the robot.I am under the impression that "XMLSocket" function will let me send data out from the serial port. If not then probably i could incorporate flash into Visual Basic and get that data out.

View 3 Replies

ActionScript 2.0 :: Controlling An Actual Robot With A Flash GUI

Apr 12, 2004

I was just wondering how the heck I can connect the two - xml socket? I'm not sure how to start googling this topic. I want to use my flash apps for more than just web functionality, I want control over the things outside my computer

View 1 Replies

ActionScript 2.0 :: Controlling An Actual Robot With A Flash GUI?

Apr 12, 2004

I was just wondering how the heck I can connect the two - xml socket? I'm not sure how to start googling this topic.I want to use my flash apps for more than just web functionality, I want control over the things outside my computer!

View 1 Replies

ActionScript 3.0 :: Codes They Are Using A VerticalChange Variable For The Time-based Character Movement?

Jun 2, 2009

sample codes. In those codes they are using a verticalChange variable for the time-based character movement.But I can't figure out how this code works and why we needthose calculations - char.dy*timeDiff + timeDiff*gravity?So here is the code:

Code:
// assume character pulled down by gravity
var verticalChange:Number = char.dy*timeDiff + timeDiff*gravity;

[code]....

View 4 Replies

ActionScript 3.0 :: Get All Tables In Sql In Air Application

Aug 1, 2010

I can't figure out for the life of me why I can't get this to select all tables. If I select a specific table it works..

[Code]...

It seems like this should be working because in the documentation it says, "If a result expression is * then all columns of all tables are substituted for that one expression. " here is the docs. [URL]

View 6 Replies

ActionScript 2.0 :: HTML Tables In Flash?

Sep 3, 2009

I need to create a 3-column 10-row (sometimes up to 12) table in Flash. I don't need any sorting or resizeable colums or anything like the DataGrid component offers. I'd be happy with 30 dynamic text fields, but that doesn't seem like the right way of doing it.I can make an XML document or an HTML page (although flash can't load HTML pages/tables if I understand correctly? Only basic html). I think XML would be easiest. This is for data that is reloaded every 15 seconds, so it needs to be somewhat efficient.Currently I am just loading htmltext using loadvars, but the problem is that I can't align the 3 columns.[code]

View 7 Replies

ActionScript 3.0 :: Create Tables With AlivePDF?

Jan 7, 2011

Create tables with AlivePDF?

View 3 Replies

ActionScript 3.0 :: Render Several Tables Into A Movieclip?

Apr 13, 2011

I am using a html parser [URL].. to render several tables into a movieclip.My problem is: as it takes some time to render, the only one actually being added to the movieclip is the last one. I would use a timer, but that means I would need to call a function, and I am using a "for" loop to build the movielips. Is there a way to say "wait for x seconds before continuing processing" in ActionScript3?

View 2 Replies

Professional :: Linking Two Tables/pictures?

Oct 11, 2011

I want to basiclly create a spot the differance game but instead of the user being able to just click on side of the pictures to get the answer, i want them to click on one picture and than the other picture to get the answer. So basiclly they have to click on the picture on the left and than on the right to mark something as a answer which would link both pictures. Or another example, is linking two tables. If i had two tables up and the objective was for the user to link one line of the table to another on the other table, it would link and draw a link from one side to the other showing the link.

View 1 Replies

Database :: Get All Data From The Server As Raw Tables As XML

Oct 26, 2011

I have a flash project that connect with a server. I get all data from the server as raw tables as XML. So I have to do the server logics client side. (Don't ask why!)

I have looked for a framework or some code base that have solved this. A framework that can do mapping of keys asf. Basically a frame work that stores the data and handles retrieving of the data like SQL.

Ie. I can get user with the userid without iterating through all the instances. This gets more complex when you have more id in the same table.

So is there a data framework for flash out there?

(the HTML 5 sqlLight would be great if more browsers supported it)

View 2 Replies

ActionScript 3.0 :: Kerning Tables In TextField

Nov 24, 2009

I'm using a font that has a kerning table with a TextField object to display text. However, it appears the kerning table is never being used.[code]I figured kerning=true would force the text field to abide by the font's kerning table. If I use the same font with the new Flash text rendering engine it seems to respect the kerning tables as expected, but at this point we can't switch to the new rendering engine.

View 0 Replies

ActionScript 3.0 :: Reading Cache / Temporary Tables

Apr 5, 2011

I have an action script that reads a map and the information on it and then allows me to search by name and returns the coordinates of that name.The script is compiled and executed via a local web page that I open and the map is on a web site.Anyway, I am trying to figure out where the action script is storing the information so that I can dump it to a flat file to share.If I close the web page, the information is gone and I need to re-scan the map which can take up to 4 hours.I looked in the cache directory on my hard drive and the infomration is not being saved there that I can find which leads me to believe that it's being stored in my computers memory or a temporary table.My experience is with VBA, not action scripts, so I am not sure if theres a way to locate where the information is being stored and retrieve it to write to the flat file since I can't write it into the code to export the flat file for me.

View 1 Replies

ActionScript 2.0 :: How To Align Dynamic Text / Tables

Apr 14, 2011

I'm loading an XML file into a dynamic text field. The information needs to look like a table, meaning that there are distinct columns. Here's basically what I need:
Code:
Item 1 Some Info Time
Item 36 Some more Info Time

Right now, I'm accomplishing this by inserting the correct amount of whitespace like this:
ActionScript Code:
for (i = 0; i < maxLength - myString.length; i++){
myTextField.htmlText += " ";
}
This works fine, but only with mono space fonts which are ugly. Is there another/better way to accomplish this?

View 2 Replies

ActionScript 2.0 :: HTML Tables In Flash Document

Jul 31, 2007

How does one go about putting a table into a flash document, that is controlled by an html page on the server? I've searched everywhere but I've only found a few that charge for the service. I know there must be a simple way of accomplishing this.

View 1 Replies

ActionScript 3.0 :: Tables In External HTML To Show In Flash?

Aug 16, 2010

is it possible to get <tables> from a external HTML file to load in flash? I've searched google like crazy and everywhere I see they say it can't load the tables from the external HTML file..

Is there maybe a way to cheat in this? or make something that will look the same?

View 6 Replies

Database :: Flex - Creating Multiple Tables In Adobe Air

Nov 30, 2011

I want to create 2 tables in a single adobe air database. I am using Adobe flash builder with the import flash.data.*;
I tried initializing the statement below. it give me the error on creating the second table. Do I have to use other API so that

private function db_opened(e:SQLEvent):void {
sqls.sqlConnection = sqlc;
sqls.text = "CREATE TABLE IF NOT EXISTS test_table ( id INTEGER PRIMARY KEY AUTOINCREMENT, first_name TEXT, last_name TEXT);";
sqls.execute();
[Code] .....

ERROR
Error: Error #3106: Property cannot be changed while SQLStatement.executing is true.
at Error$/throwError()
at flash.data::SQLStatement/set text()

View 1 Replies

ActionScript 2.0 :: Performance - Retrieve Information Of Different Tables In Mysql?

Oct 4, 2004

I'm building a Flash website with database information with php>mysql>xml>Flash mx 2004. I'm having some major problems!I need to retrieve information of different tables in mysql, and was worried about performance issues.The first query gets the whole model list...The second query will be performed after a model is clicked. Something like: select * from modelinfo where modelID=modelIDinFlash.

The third query is what I have a lot of trouble with! This has to run on the same time or immediatly after the second query. It reads the picture urls and id's from that particular model. I need the filenames for the picture viewer.But everytime I try this third query, the site becomes very slow and have problems displaying the model info.NOW I have a temporary solution: in the first table I have a field which states how much pics each model has, and this number Flash uses to build the nr buttons. But this is not a very solution since I want to keep everything dynamic. I also want to build a drag and drop function... something like a shopping cart. For that to work, every picture must have an unique ID.

View 1 Replies

Flex SQLite Optimization: Adding Database Name In Front Of Tables?

Sep 18, 2011

This article on Livedocs says you should add the database name in front of tables.[URL]..My question is, should I do that everywhere where a table name appears or only once?In this query: select T1.col,T2.col from T1 left join T2 on T1.id=T2.id order by T2.order;

Should I add main.T1 and main.T2 everywhere or just after for, the first time: select T1.col,T2.col from main.T1 left join main.T2 on T1.id=T2.id order by T2.order;

View 1 Replies

ActionScript 2.0 :: Dynamic Text/Clip Sizing & Crating Tables?

Nov 5, 2003

1. Dynamically resizing screen elements to fit dynamic text: I've been loading data into Flash via XML files and dynamically populating Movie Clips with the data. How can I make the movie clip expand to match the size of the data loaded? Maybe there's a different approach to this as well?2. Stacking Movie Clips: When I load data into movie clip elements, I'd like to be able to stack them, one on top of the other, i.e. creating a table and filling the cells with the data elements. How do you tell Flash to start the next movie based on the lower left corner of the previous clip? How about if they were dynamically sized?I don't ask for much do I?Also, I'm in the Chicago, IL area and I'm looking for a tutor.

View 5 Replies

Dynamic :: Make A "robot" Appear To Be Talking On Website?

Jan 5, 2011

I have seen that some websites offer talking characters (very human looking avatars), but I do not want to pay HUGE money for those. So I started thinking about some of the cartoons I used to watch and if there was a talking computer, their way of visually portraying speech was with an equalizer.

For the "robot", I would just have 2 dots for the eyes, a nose, and a "mouth", but this mouth would really be an equalizer, and I could animate that with flash so that when there is loud sound, the mouth would open wider than it would for a soft sound ( if you watch an equalizer, the bars go way up and turn red when the music is loud, and remain low and green when sound is soft )

The only web technology that I imagine could do such a thing is flash, but I know very very little flash. I have been searching and searching and searching and all of the equalizer tutorials I have found are just bars with random movements that do not sync with the audio.

View 1 Replies

ActionScript 3.0 :: Adobe AIR Nested Tables - Save The Information For A Layout Of Movie Clips On Stage

Jul 24, 2010

I am trying to save the information for a layout of movie clips on my stage. I am using the sqlite functionality in order to be able to save the layout to the local database. Each layout consists of several movie clips. My plan was to store pertinent information regarding these movie clips (such as x and y position) in order to be able to reload some new clips in the exact same place.

My problem here is that I want to create just one row in my database for each layout, but I want one column in that row to store the information for each of those clips (in a single row). Is there some kind of nested table functionality in sqlite?6564

View 2 Replies

ActionScript 2.0 :: Circular Movement To Linear Movement - Carousel To Conveyer Belt?

Jul 9, 2010

I've been playing with carousel code, and was wondering how to change it from circular animation (carousel) to left/right linear (conveyer belt) style animation, how to change the mover code and 't.angle = i * ((Math.PI*2)/numOfItems);'

[Code]....

View 1 Replies

ActionScript 2.0 :: Flowing Mc Movement Opposite Of Mouse Movement

Feb 12, 2003

I have a mc (fStrip) which looks like a piece of filmstrip with thumbnail images in it. I want this mc to move when the users mouse is positioned over it, but I only want it to move only along it's x-axis and in a direction opposite that of the mouse. And I want it to move or flow smoothly.

I've been trying to figure this out (see my lame attempt below) but without much luck.

onClipEvent (mouseMove) {
buffer=20 //movement buffer
mousePos=_root.fStrip._xmouse //store mouse position
if (mymouse!=_root.fStrip._xmouse){ //if the mouse has moved

[Code].....

View 3 Replies

ActionScript 2.0 :: Ants Movement (based On Snow Movement)?

Jun 22, 2004

I wish to get the effect of ants scuttering across the screen or up a tree, I have not decided which direction yet. I started with the tutorial code for the snow effect from kirupa, and changed it around to fit the little vector ant I created. The way I have it now looks pretty good, but the movement is a little too fluid. They obviously move in sinusoidal paths bc the code tells them to. I have about 20 copies of the main obj, and they're all a little different in size and specs (speed, transparency, etc) but what I was wondering was if there is any way I can change the code to make it a little more hectic, or erratic, not so fluid. If there is no way of doing so, it looks pretty good right now. If there is, however, I think it could look awesome. here's the code I'm using for the object.

onClipEvent (load) {
//stage
movieWidth = 850;
movieHeight = 50;

[code]....

View 5 Replies

ActionScript 3.0 :: 2D Character Movement With Camera Movement

Jun 10, 2011

how to get the camera to move with a character? At the minute he just moves off screen when i press right rather than the camera following him.

View 3 Replies

ActionScript 2.0 :: Set Movement Speed On Any Particular Movement?

Oct 2, 2002

I have a Mogli (Junglebook-like) Character that i got to move with the arrow keys on the keyboard.

I want the character to jump (so for example , he must while moving to the right of the "gamearea" , you must be able to hit a key (say for example the "control" key ) and then the character must jump ( go up ) and as soon as the key is released he must obviously come down.

And also how do one set movement speed on any particular movement.

View 12 Replies

ActionScript 2.0 :: Create A String Variable...and Then Use The Value Of That Variable To Declare Another Variable?

Jan 3, 2006

f you know PHP...then you know that you can create a string variable...and then use the value of that variable to declare another variable. like this:

PHP Code:

<?php$foo = "haha";$i{$foo} = "success";print $i{haha};?>

and it would display "success"...or like this:

PHP Code:

<?php$foo = "haha";$$foo = "success";print $haha;?>

and it would also display "success".

View 6 Replies







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