ActionScript 3.0 :: Traffic Control Game - Set The Car Run Independently?

Aug 25, 2010

I want to make these kind of game [URL] but in more compleks route, and i want to make the car can choose direction (straigt, turn left of turn right) but 1st thing 1st. i need a logical state for the timeline how the car works? how can i set the car run independently? because it can't be done in the main timeline. i'm guessing it has something to do the the action script, but i have no idea. i'm kinnda new to flash, this is the 1st time i want to create a AI-like programing with flash.

View 21 Replies


Similar Posts:


Professional :: How To Control Movieclips Independently

Jun 6, 2010

I'm new to flash, so I am sure I am missing something basic, but I have not been able to reference movie clips independently in code.  I have set an instance name on each symbol, but when I reference in code it is undefined.
 
If it matters my project is set up this way:Using Flash 4 Pro. Layer one: Static Background Layers two-five: individual movie clips Layer six: transparent buttons over the movieclips.The buttons work fine, but I wanto to play the movieclips on mouse over.

View 4 Replies

ActionScript 2.0 :: F8 - Attach Sound Object To A Separate Mc To Control Independently From All Other Sound / Root Volumes

Mar 15, 2008

I have been at this for about 19 hours straight! I am going to go to bed immediately after this post, but for crying out loud, I have NEVER had this problem before today! Before anyone reads ahead and says 'you have to attach your sound object to a completely separate mc to be able to control it independently from all other sound/root volumes.' see if the following code accomplishes just that:

[Code]...

View 2 Replies

Creating The Traffic Lights?

May 15, 2009

I am creating traffic lights, but I'm new to flash. I have a timer that ticks 6 times. However, I want to make the timer refresh after 6, and on each tick, a different traffic light shows.So far I have this:

var myTimer:Timer = new Timer(2000,6);
var counter:Number = 0;
myTimer.start();

[code]....

View 3 Replies

Asp.net :: Check If UDP Traffic Is Enabled?

Feb 22, 2012

I have this application that consists of two phases. Queuing phase and chatting Phase.The chatting uses UDP (a flash-app).So before the user enters the queue phase I want to check if UDP traffic is possible.I could do this both in the ASP.NET app (that wraps the flash-app) or in the flash-app.I'm not sure on how to do this in either of themMy initial thougth is to connect via UDP to some tiny webservice a server, but is there an easier way of doing it

View 1 Replies

Php :: Traffic Going Between My Flex Application And ZendAMF?

Aug 8, 2011

I am using ZendAMP php and Flex (Flash Builder 4). It works great, but I noticed when I am looking at the traffic going between my flex application and ZendAMF, there packets moving even though I am not requesting communications in my code.For example, this is what my service looks like in flex:

var activityLogService:RemoteObject = new RemoteObject("zend");
activityLogService.showBusyCursor=true;
activityLogService.endpoint="http://myserver:80/amf/";[code].........

Are these just some kind of 'keep alive' messages?If so, is there a way to turn them off? Also, if so, is there a way I can use them to keep some kind of session alive on the server side maybe (maybe that's what they are for)?

View 1 Replies

ActionScript 3.0 :: Make A Traffic Simulation?

Oct 16, 2010

since i'll be asking so many qustion, I will put all my problem in one thread here I'm planning to make a traffic simulation with AS3.0

[Code]...

which will still run the if function when the error is below 1 pixel. but i dont really like things that isn't sure, specially I'll make tens of guide movements on the stage.

View 4 Replies

Flex :: Inspect HTTP Traffic In Adobe Air?

Aug 22, 2009

How does one inspect the HTTP traffic in Adobe Air? Obviously because it's running outside of a browser you can't use firebug .

View 4 Replies

Flex :: Inspect HTTPS Traffic From SWF Files?

Feb 8, 2010

Is there a way to inspect HTTPS traffic from Flex applications compiled to SWF files?I'm trying to use Fiddler for this, have added DO_NOT_TRUST_FiddlerRoot to my Trusted RootCertification Authorities so my IE now can access other HTML sites that would normally complain about untrusted certificate. However, the HTTPS traffic from the SWF file still doesn't appear in Fiddler and, in fact, the Flex app wouldn't work (HTTPS with a self-signed certificate is not supported by Flex apps I believe). Is there a way around it?Update: To be clear, I am interested in the traffic between the SWF file running under Flash Player and the server (typically, Flex components like HTTPService will be used for this). The SWF file itself can be served via HTTP or HTTPS, it doesn't really matter.Clarification 2: Don't assume that the source code is available for the SWF file. If it was, Flash Builder 4's Network Monitor could be used.

View 3 Replies

Web Development :: Monitor Traffic Between A Flash Object And A Server?

Jan 25, 2012

Here's what I want to ho: In firebug, there's a Net tab, where you can see all requests, which javascript is making to the server.I would like to be able to do the same with a flash object.What is the best way of doing this?

View 1 Replies

ActionScript 2.0 :: Run A Little Slower Due To The Many Accounts And The Volume Of Server Traffic?

Oct 28, 2009

We have recently had to change servers for reasons beyond our control. The server we were on had limited accounts and what we are using now seems to run a little slower due to the many accounts and the volume of server traffic.Anyways, I have a couple Flash pages where customers can listen to audio clips. This is one of them:I have never had any issues with this before but on this new server, when you choose a song and click "listen", more often than not, a brief blip of the audio plays, stops for a few seconds and then resumes.This is the code I am using for the Listen button:

Code:
mySound = new Sound();
mySound.loadSound("SongLists/Audio/" + _parent.selectedSong + ".mp3", true);

[code].....

View 0 Replies

Media Server :: Fmsedge Stops Passing Traffic On :80 (not :1935)?

Jun 19, 2009

I'm a systems administrator at an ISP running many FMS 3.5.1 instances for an array of clients. About half of these FMS 3.5.1s fall over dead after 2-3 weeks of runtime. Specifically, 'fmsedge' becomes unresponsive to http/rtmp tests on port 80; NOT on port 1935. The process appears to be doing work (cpu time is nonzero), and it answers the phone - I can connect to port 80. But I can't pass traffic to the daemon.

Logs give no indication anything's wrong. I can't strace or truss java with any legibility, due to fmsedge living atop a multithreaded virtualmachine.This occurs regularly, but does not occur on /every machine/; only about half of them. Where it happens, it's at 2-3 weeks after process launch.how to collect additional diagnostics, so that I can find what's breaking in fmsedge and either prevent it.I am running on CentOS 5.3 (like RHEL-5), 64-bit; I install nothing but Adobe FMS, and used Adobe's installer.

View 3 Replies

Media Server :: Add Additional FMS Servers And Load Balance The Traffic?

Jul 21, 2009

I run a FMS 3.5 Server and I want to add additional FMS Servers and load balance the traffic. The plan is to use a script for the developer version of FMS that forwards two incoming FME streams to the different servers, so each FMS Server has all streams. Is there a script for this? In addition there is a need for a script that somehow redirects the users to the server with the lowest users/bandwidth in use.

View 1 Replies

ActionScript 3.0 :: Resize All The Elements Independently?

Mar 8, 2011

I am currently working on a project that needs to be resized depending on the size of the browser. I do not have much trouble in terms of coding it, but I have some 'good practice'

I cannot just resize the background of my swf et change the position of the elements on the scene; I need to resize all the elements. So I'm wondering about the text... My main swf is contained in a loader, so I could simply resize it ( the main swf) and all the elements would follow. The problem is I will end up dealing with half pixels and I guess my swf will look filthy...especially the text! Do you think it would be better ( but a lot more fastidious) to resize all the elements independently?

View 1 Replies

ActionScript 2.0 :: Load Movie Independently?

Jun 27, 2004

I am new in Flash actionscript, and I have a very simple request. I have a Flash file with one button on it. When I click on the button, it will play a small clip. Now what I want to do is to have that small clip as a separate Flash movie; so it will load only if I click on the button. How do you do that

View 1 Replies

ActionScript 2.0 :: Preloading Then Showing Mcs Independently?

Jul 13, 2007

I have 5 or so mcs on the same layer. I would like each one to preload, and then show when they have loaded - so you might see each mc appearing in cannon, or staggered. All five will not show at once.However, it doesnt seem like the preload code is working for each mc, everything just appears. I have simulated download when I view the mc. Is my problem with the code or how I am testing the movie?Within each mc i have this code on frame one :

Code:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;

[code]....

View 1 Replies

ActionScript 3.0 :: Can't Get The Timer To Work Independently

Aug 2, 2011

I am (trying) to build a Banner for my companies website in AS3. I am currently using CS5 with the Greensock TweenLite package.

I want product images to slide in from the right of the screen, pause for 5 seconds, and then reverse() out of view.

The 11 different product images are assigned to variables a - j .

I also have an independent timer function that I would like to fire 5 seconds after the image has been on screen.

My problem is that I cant get the Timer to work independently with each function without writing a function for each variable (which pretty much defies the point of functions and variables...amirite?)

Does anyone know the best way to have Flash cycle through each image 1 at a time?

a.reverse() works...but is there anyway to say, like...currentMc.reverse instead?

I've been told a "Loop" may be necessary.

View 6 Replies

ActionScript 2.0 :: Increase Traffic Or Make Flash Site Visible In Search Engines

Feb 12, 2003

Is there a way to increase traffic for flash web site. Is there an action script to make your flash website "visible" for others. I heard that if I build a flash web site it will be difficult to get customers due to the fact that flash pages usually don't show up in the data bases. Is it right?

so anyhow is there a way to increase traffic or make my flash site "visible' in search engines. do you think building a splash page in html and then redirect them to flash is a good idea?

View 4 Replies

ActionScript 2.0 :: Play Movie Clips Independently?

Jan 17, 2009

I have two movie clips embedded on my timeline each with a button that on release plays the clip. I want them to play independently so that when i click on the first video it just plays that video and not both. The same for the second video for it to just play the second video.

View 5 Replies

ActionScript 2.0 :: Adjust The Volume Of Two Sounds Independently

Mar 12, 2007

I'm working on a project in which sound plays an important part. I want to be able to adjust the volume of two sounds independently, �nd have access to the position in the soundfile. The code below plays 2 soundfiles ("L36 Bass.wav" & "L36 Perc.wav"). The sounds are declared as 'new Sound' with qualifiers("L36Bass" and "L36Perc" recpectively) in line 03 & 04 within empty movieclips, to allow individual volume-adjustments. The volume-mix between the 2 is then governed by the x-mouse position (line 10 - 16):

[Code]...

This works just fine (as long as the WAV-files are in the library and the option 'Export for Actionscript' is selected). However, when I try to access the position within a soundfile with the statement SndBass.position; this results in an 'undefined-error'. When I remove the qualifier in line 03, and go for 'SndBass = new Sound()' in stead of 'SndBass = new Sound("L36Bass")', the property SndBass.position is available, but, as expected, the individual volume-control is lost.

View 4 Replies

ActionScript 3.0 :: Movieclip To Act Independently Of The Main Timeline FPS Change?

Jun 19, 2009

My question. How do I control a movie clips FPS independently of the main time line. I believe in the previous version of Flash this was not possible but I think it can be done with CS4 with AS3.
 
I have five images with motion add to them. One fades out while the next fades in. To get this to work slower then the main time line I would have to add a lot of frame for that movie clip to not run so fast. Which this will make the file size larger.
 
I need this movie clip to run at say 12 FPS instead of the 24 the main timeline is running at.

View 1 Replies

Flash :: Apply Texture To Each Side Of Cube Independently?

Dec 31, 2011

Using Away3D, I've successfully displayed a cube. So far, if I want to display a texture on each side of the cube independently (different textures on each side), I'd have to put them all in one texture, kind of like a sprite map. Is there a way I can do this so I can apply a different bitmap to each side of the cube? Here's my code so far:

[Embed(source = "texture.png")] private static var _texture:Class;
var texture:Bitmap = new _texture();
cube = new Cube(new BitmapMaterial(texture.bitmapData),240,240,240);
cube.material.smooth = true;
cube.material.mipmap = (texture.width == texture.height);

View 1 Replies

ActionScript 3.0 :: Dynamically Change Pitch And Tempo Independently

May 15, 2010

I'm finding lots of ways to change the "speed" of a loaded mp3 file. However, is it possible to only change the pitch or tempo (and not both at the same time)?

View 1 Replies

ActionScript 2.0 :: Drag To Rotate Circle And Ring Independently?

Jun 5, 2005

I have this problem...no worries it is only about ActionScript! I have created two movieclips: one is called "sun_mc" (with a nice smile) and a ring of sunrays (short and long ones) called "ring_mc".the ring is situated around the sun.

The user clicks the sun and drags to rotate it.The user can click the ring to rotate that too.When the sun is rotating...the ring should not be...and vice versa.

I have three problems...

1) I can't get the two mc's to move independently 2) When rotating the mouse position always jumps to a certain point on the movieclip...not the point where you clicked it first 3) The ring is also rotating when the mouse is outside the ring...

What should I do?I tried to obscure a part of the ring_mc with some masking...That didn't work.Should I try hitTest? And how should I do that? That only works with squares doesn't it?

[Code]...

View 2 Replies

ActionScript 2.0 :: Stopping All Including Nested Movieclips From Playing Independently?

Jun 18, 2010

I've had to work on a god-awful Flash movie with lots of nested hand animated movieclips and sub-clips, all with their own timeline.Every time I'm asked to update it, I wince trying to test it and spot details for tweaking.Does anyone know of a way to stop playback of every movieclip? irrespective of how its nested and without addressing them all using dot notation.

There are loads of movieclips you see, and I want a pause control to freeze everything, I've tried this with onEnterFrame events on each movieclip looking at a _root variable called "playState", but some movie clips ignore this, and keep playing.Is there an easy way to do this other than pasting my code into everything? Is there a way of making code affect all movieclips simultaneously - halting their own timelines? Then resuming?

View 5 Replies

ActionScript 3.0 :: Get An Attached Movie To Drag With Its Parent & Not Move Independently?

Oct 15, 2009

I would like to attach (using A3) a movie clip to a draggable movie clip. I has set up a movie clip using startDrag() all works fine. But I would like to be able to dynamically place a movie clip inside it so that it too drags. Ive got it to partly work you can drag the original movie clip around and the attached movie clip (using aadChild) moves too. But if I grab the attached movie clip instead of the original clip it moves independently.

Is there a way of getting a movie clip inside the draggable movie clip and have it fixed in place and not move if you happen to attempt to drag it.

View 6 Replies

ActionScript 2.0 :: Duplicate Movie Clip And Apply Function Independently To Each?

Feb 22, 2006

I am trying to draw circles dynamically with actionscript, duplicate/create multiples, have them move randomly around the stage independently of each other, and have them bounce off each other if they come in contact. The hit test for the latter has not been written yet. I can't get the circles to move independently of each other. My code is below.

** CHANGE STAGE COLOR TO SOMETHING OTHER THAN WHITE

Here I try to make 9 movie clips, draw circles inside of them, and apply the moveRandom function to one movie clip.

[Code].....

View 6 Replies

Flash :: IDE - Cs3 Independently Upload Photos To Server Without Serverside Script?

Aug 12, 2009

I need to develop small flash aplication which will upload photos, videos and other files to server. But is it possible to upload these assets without serverside scripting like php or coldfusion? I mean that flash should independently upload images to server. Is it possible?

View 2 Replies

Professional :: Object Movement - Drag Up And Down Independently With The Mouse (vertically Only) Between Set Limits

Jul 11, 2011

I would like 2 objects that I can drag up and down indipendantly with the mouse (vertically only) between set limits. I would also like a line between the two objects that stretches like a piece of elastic.

View 9 Replies

ActionScript 3.0 :: TweenMax/Lite - Animating Color Of Stroke And Fill Independently?

Oct 7, 2009

When I animate the color of any shape that has a stroke, the whole thing changes color. I'm using "tint" and "removeTint" for that. I'd like to animate either the stroke or the fill independently.I'm using TweenMax.

View 3 Replies







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