ActionScript 2.0 :: Build A Flash Application To Find The Shortest Path Using Ant Algorithm?
Sep 20, 2006who wants to build a flash application to find the shortest path using ant algorithm. but i have not the refferrence about that?
View 5 Replieswho wants to build a flash application to find the shortest path using ant algorithm. but i have not the refferrence about that?
View 5 RepliesI want to put shortest int in shortest:
shortest = 500;
for(i = 1; i <= _global.var_process_count; i++) {
if(_root["process" + i].process_time_original.text < shortest)
shortest = _root["process" + i].process_time_original.text ;
}
What's wrong with above lines of code?
I am currently working on a quite big map and trying to provide the shortest path service between two points. From what I saw, this is possible with a small map since it has to calculate ALL possible paths and then choose the shortest one (Am I right?).
View 3 RepliesI have finished a little game called "math match". The idea of the game comes from "math mountain", a game is for the player who must caculate some kind of mathmatic questions, if the answer is correct, the player will move along a predefined path in several steps. I am newbie for programming games, so I am not sure what I have done in moving the role is the correct one, although it works okay. I know in Flash CS3, I can use motion guid layer to make the role move along a predefined path, but it seems it's not good in the game, or I don't know how to control it in actionscript 3.0. So I used many 'marks'(little movieclip) along the path. That divide a path into small pieces of lines, so I can move the role along the lines. If the 'marks' is enough, the precise is enough, the movement works okay.
But I think it's quite not a good method. I don't know if there is any good algorithm to move the movieclip along a predefined path, and this path is random, is hardly to be described by any math equation. I think in Flash CS3, we can draw a path by author tools, indeed Flash CS3 use some algorithm to do that. If we can get that math equation, we can simulate the movement very precisily, but is it possible? I don't know.
I am coming from flash to flashbuilder I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled.So today I did that in flashbuilder, included AS3_classes_dir via Flex Build Path/Source Path ... but now the compile time are a couple of minutes, even though I am not even importing ANY of the classes from within.
View 2 RepliesI have found some question which refers to my initial question :on xcode Usually resolved in synthesis by :
flushing certificate cache correcting the signing certificate ( using Distribution in replacement of Developper) C checking and correcting the Application ID who was sometimes not the same between the one declared in iTunes Connect and the one in the app.xml file
The fact is that I still has the problem on Flex Builder, which is when I upload my application, it failed with "Application failed codesign verification"
[Code]...
So the question is what could still block the uploading of the application on the App Store?
How to resolve "Application failed codesign verification." when uploading Application, build with Flash Builder 4.6?
get the target path of an object.So that i can give properties/methods to that object.Actually i need the target path when an event occurs.like on click/keyup/enterframe..and so on.
var curinstance:Object = ev.target.valueOf();
In the above code i get the instance name of the particular object i cant give properties and methods to it.
I'm interested in building a chat application in Flash.
View 2 RepliesI'm looking for examples (code) of applications that uses Flash (NOT Flex) and Remoting classes for ActionScript 3 (NetConnection). Once there was ARP, a repository of code of this kind, but it seems there is not anymore. I'm trying to figure out how to build an applications that makes heavy use of calls to WebORB and responders. I need an architect point of view, NOT a sample of communication between parts, but a real world scenario.
View 1 RepliesHow can I find the path to the user's temp folder (e.g. C:UserslisnilAppDataLocalTemp) from Flash/AS3? It needs to work on any version of Windows, at least XP, Vista and 7.
View 1 RepliesI want to build an application that will allow the user to upload a movie file, then allow the user to give information about the movie (like synopsis, title, etc.) so that he or she can watch it from the server at a later time. Almost exactly like a youtube clone, for all intents and purposes.
I'm running into a problem, however, with serving up the movie to be watched. I want the user to be able to watch the movie on a variety of different platforms, including over the web in all of the common browsers, on iOS devices and on Android devices (as well as GoogleTV in the future).
I had initially planned on having the user upload whatever file formats they want, store that file, then transcode it on the fly using ffmpeg (or something similar) to serve it up to whichever device is requesting it. This is handy, because I'd be able to transcode it to a smaller size if I needed to to save on bandwidth. Unfortunately, I'm having a tough time finding a method that will do this to display the movie in a web browser.
I've tried VLC to death. I'm able to get it to stream a video on demand over RTSP, but (as I understand it), both the HTML5 video tag and Flash won't accept an RTSP stream. I haven't had any luck finding a method of streaming an on-the-fly transcoded video over HTTP, which looks to limit my options to embedding either a windows media player or quicktime. FFServer with FFMpeg has the same problem; it can create an RTSP stream, but not an HTTP stream.
Which is the best for build an application show like in image. For the better graphics and performance wise. I want to know Flash for Flex is more suitable for this.In Flash ca we be able to build a grid kind of applications easily? I headed that Flex have the functions to handle grid and other things. Drag & scroll Zoom like feature. but am not sure able the graphics of flex. Is the components are customizable
View 3 RepliesI am trying to get the flash buttons for my website to work, but every time I do the getURL thing it keeps saying 'Cannot find(directory)'. The website is offline and I'm using Macromedia Flash MX 2004, I also might be able to use Flash 8 but these are the only two versions I have access to.The action script for the button is:
on(release){getURL("..********(Website directory)(sub directory)(Website page).html")}
I am making the website in Dreamweaver 8 and this is really holding me back as it's nearly finished but the buttons still don't work.
My client ask me for build some flash application which will be show on his kiosk exhibition. And what I wondering is it any different kind of addEventListener for touch screen interface? Or it is similar like mouse click or double click?
View 4 RepliesAnyone know where I can find good a tutorial to help me build a 3d flash carousel in AS 3.0? Or anywhere I can download a flash file or anything I can play around with to figure it out? I would prefer it to be XML driven. I would like to build a carousel like this:
Carousel in 2.0 Only I would like to learn to build it in action script 3.0.
I recently switched a Flex project over to using RSLs. It built fine for quite a while but has recently dug its heels in and is giving me this error:configuration variable 'runtime-shared-library-path' requires a value for 'rsl-url'I went through all the flex XML files I could find and either this value doesn't exist or there are entries available for it. Nowhere did I see a <rs-url></rs-url> with no value.
View 1 RepliesIs there a way of getting the current active document path from the flash application by AppleScript? The only command available in the Adobe Flash dictionary for applescript is "do script", can I call a script to get the path of active document?
View 1 RepliesIn Actionscript, I'm trying to work out the best way to create the shortest route between two point on the map above. I have all the distances.
Algorithms like A* I dont think are relevant as it is near impossible to work out the heuristic distance.
I thought I could create a big array of all the nodes with the distances to any connected nodes and just iterate through until Ive found the the shortest distance, but this I know is very inefficient.
I need to disable all the aspects of functionality which access the client file system in a flash/flex application. I started having a look on how to do this. It appears that the package flash.filesystem need to be importated to allow the interaction with the file system. However, I did not find any reference to this package in the application. I am a beginner concerning these technologies so maybe I am missing a point here. Do I need to look into an other direction?
View 1 RepliesWhere can I find the path to the Flex SDK? Last time I embeded metadata, Flash CS5 automatically found it for me. This time its not working. I get this message in the output window:You have used a feature that requires the Flex SDK:"Embed" metadata Please set the Flex SDK path if necessary and add it to the library path for this file. The Flex SDK folder contains the bin, frameworks, lib and other folders.
View 3 RepliesIs there a way to get the path to the movieClip I'm clicking?
e.g. event.currentTarget.path? (This doesn't work but I'd like something like it!)
i wrote an swf application using action script 2,i want to be able to know the file name of the current running swf file.i know that in php i have __FILE__ to get current running php file, is there something like that in flash?
View 1 RepliesI just installed flashdevelop and downloaded a sample project source at the bottom of this link. I open it up in flashdevelop and when I go to run it, I get an error saying I have to set the field: path to Flash IDE. I'm confused, why is the IDE asking me for the path to the IDE?
View 1 RepliesI am trying to build a .xml image scroller using the scroll pane component in CS4.I choose Actionscript3. Drag the component to the stage. Give it an instance name.Then I look for the Parameters that used to be in the properties panel in CS3. Not there anymore.I find that the Components Inspector has Parameters in there now.OK.I need to use ContentPath to tell the component where the .xml file is so it can find the images for the scroller.Can't find 'ContentPath'.How can I point the component to a .xml file?Is there a way of getting Parameters back in with properties - it was so much easier.
View 5 RepliesHow to find out targetpath of a movieclip or a textfield.? i need to get full path of a movieclip like Object(root).moviclip1.movieclip2.textfield
View 4 RepliesI am currently looking at a way of visualising data and a part of the algorithm needs something 99% the same as A* Path Finding but I cannot wrap my head round it fully. I know it will be a fairly simple modification. (specific cost instead of least cost)
Basically I need to plot a path (2D Grid, no Diagonals) from point A to point B in X number of steps.
E.g. If the start and end points were right next to each other and I needed the path to be 3 steps it would have a tiny loop. (moves: up, right, down). Is there a known name for this algorithm or is the use of this so rare it's uncommon? I am currently looking at this AS3 Librbay for modification as it is apparently very fast and seems clean and simple to me:[URL]..
I have a path drawn in the flash IDE, accessible as a MovieClip.
With AS3 I need to find the closest point lying on this path to another point.
i want to find the windows path on hard! it may be c:windowsor e:folderwindowshow can i find this path with AS2?
View 1 RepliesIs it possible to make desktop Air application by using HTML/JavaScript and Flash?Actually I want to make an Air app (which is for desktop) by using flash and want to use HTML , javascript and CSS as well.Is it possible ?
View 1 RepliesI need to implement add mp3 player to my AIR application build with flex
is there any tutorials on building mp3 player ( i didn't found any in the web )