ActionScript 2.0 :: Determine The Instance On The Desktop
Jul 3, 2006
i am doing a searching algorithm, so let's say the path is from A to B to C and finally D (A->B->C->D) and it is represented in an array, such that path={"A", "B", "C", "D"}; how can i link these four elements to redim as instances on the desktop, such that i have four instances, named A, B, C, D, and also the line which connected to one of the each other, named AB, BC, CD.
for instance, how to set the color line AB, BC, CD? (the array always can be in different set of answers.) before that someone told me dont use the double quotation, but i think that's not working with my program, further more, i need to combine two elements, which represent the line connected to two ends.
View 3 Replies
Similar Posts:
Dec 6, 2011
How can I find out what the current application type is? i.e. whether it's running on a mobile device or as a desktop Air application?[code]...
View 4 Replies
Aug 25, 2009
How do I determine if the HttpService instance timed out?
View 3 Replies
Aug 11, 2009
What it says on the tin: I have an XMLList, and I want to find where in it a particular XML item falls. First index is good enough for my purposes. Note that I have no problem writing a function to do this by hand... but I was hoping that the API has something buried somewhere that'll do it for me. I didn't see it, though.
View 2 Replies
Mar 20, 2009
Does creating a new instance of an Object that uses an identical name to an older instance, delete the previous instance? Or should the original instance be deleted first? The code uses a ridiculous amount of XML vars. Isn't it less memory intensive to parse the XML and save the properties to an Object, and then delete the XML Object, rather than keep the XML Object around and reference it's child nodes directly? Is it better form to break up a huge XML file (>600lines/3200vars) into smaller chunks?
View 1 Replies
Jun 17, 2010
I have a library object (SomethingMC) which extends a custom class (Something). Something, in turn, extends MovieClip.If adding SomethingMC to the stage within Flash CS3 IDE, is it possible for it's super class (Something) to assign an instance name from a class constant (Something.THE_CONSTANT)?
package
{
import flash.display.MovieClip;[code].....
The above does not work. It throws Error #2078: The name property of a Timeline-placed object cannot be modified. if the instance is assigned a name in the IDE, and it just doesn't work if no name is assigned in the IDE.
View 1 Replies
Dec 2, 2010
I have a BUNCH of bumpers of four types bounceUp, bounceDown, bounceLeft, bounceRight. during a collision which you hit determines the bounce so they always do the same thing so here's my question.....can i just name every bounceUp instance the same thing and then just add that one instance name to the list the collision detector checks?
i just dont wanna go through and name a hundred each of bounceUp s and bounceDown s individually as the potential for screaming increases proportionally.......
View 5 Replies
Apr 16, 2011
I placed a movie clip instance inside a button, and I want this movie clip to play when the button is released. I'm using this code on the frame containing the button:
function playMovie(event:MouseEvent)
{
this.theButton.theMC.gotoAndPlay(3);
[code].....
View 2 Replies
Jul 19, 2004
Does anyone know if it is possinle to scroll a graphic or a movie instance as well as a text instance in flash. I want to scroll text and images as well. Actually text with imges embedded in it.
View 3 Replies
Mar 14, 2006
I am wrapping my brain around OOP in AS2. I am making two posts on two different subjects. My question here is: when should I use local instance variables, and when should I attach new properties to the instance object? (Feel free to correct my terminology.) Let's say I have a class for a scrolling background, which scrolls when I mouse over its edge. I want to put these values somewhere:
1) How wide is the border in which a mouseOver makes it scroll? This is basically a semi-constant I set it up once and keep it the same, unless the user changes it in an options menu to make the border wider or narrower. Call this scrollBorderWidth.
2) How fast is the background scrolling now? I want to track this so I can smoothly change the scroll speed over several frames. This is often changed. Call this scrollSpeed.
It seems I have two ways I can store and access these values and darned if I know which is better practice. METHOD A: Make them local variables in the class, so the scrolling background instance has them as local vars. I set them up thusly:
[Code]....
View 4 Replies
Jul 5, 2011
how can I test my AIR for mobile on desktop to simulate swipe events?
View 1 Replies
Feb 1, 2012
When I publish the swf file with html, it works fine on my computer. If I send it to my old computer with Win XP and for most other people it works fine. But there are some who just get a black screen when it plays or a "get flashplayer" symbol. They update and it still doesn't work. They do not have a company setting that does not allow them to play the file and I have walked them through the browser settings so that anything should play. But still, no luck.
View 2 Replies
Jan 4, 2010
i'm new to creating desktop applications. I've a working site in php with mysql support. I want to convert this site into a desktop application. Is Adobe AIR or Adobe Flex better?can i use php as such in both AIR and Flex? or should i convert them to xml or something which it uses?
View 3 Replies
May 16, 2010
I have only worked on web apps for my whole career.I'm starting a new desktop (Adobe AIR) app project but I found myself having difficulties with:
stuck with thinking about overall UI design in the traditional page model
not sure how to handle the navigation part in the UI
not taking advantage of states
deciding what should be implemented on client vs server side, (or on both?).
View 3 Replies
Aug 17, 2010
Suppose I develop an application with the logic as a CLI program that can be compiled to various platforms. To add a GUI, I could develop native versions separately for each platform or I could use a cross-platform tool like Tcl/Tk, wxLua, or PyGTK. Some people, like Bruce Eckel and James Ward, promote Flash/Flex on Adobe AIR for this.[code]...
View 1 Replies
Aug 21, 2008
I want to have site visitors be able to put a link to a website on their desktop. Asking them to click on a link, bookmark it, and then save the link to their desktop is too involved. A one click solution is what I'm hoping for, but something like dragging an icon off the .swf to the desktop would be okay.
View 5 Replies
Nov 22, 2011
This post might belong to the As3 forum, but i think i might fit in here too..I am trying to get 2 "windows" or swf to to connect together (one sending event and the other receiving them, one way.) for a desktop application offline. First i thought I should use the localConnection, but it doesnt really work offline, i get errors and sandbox violations Now i am considering the nativewindow with a AIR app. All this using Flash CS5 (not flex). What is the best way to proceed?
View 1 Replies
Nov 3, 2009
Creating some flash desktop apps to be run fullscreen in a condo lobby. I'd like the ability for an administrator to login to the interface and then click a button to 'close' the flash app from within itself, thus closing the flash player and returning to the desktop.
View 2 Replies
Nov 7, 2008
I am trying get one of my buttons to link to a PDF file whichwould not open, but would ask the user where to save the file (i.e.to the desktop), is this possible?
View 6 Replies
May 31, 2009
I wish to replace my desktop replacement with a tablet PC I have visions of Cintique-like functionality yet portable majesty...
But the graphics cards on these machines are total crap. However, some graphics card models claim to steal memory from the RAM, so in theory if I soup up the RAM I have a really powerful graphics card?
Anybody out there author on a tablet PC? I'm running Flash CS3, and must make my decision soon![URL]..
View 5 Replies
Jun 11, 2009
Can we do remote desktop sharing by using AS3?
View 2 Replies
Dec 4, 2009
I used my Flash encoder to convert a .wmv to .flv and FTP to my server but I cant play it. I can play it fine on my desktop but not on my web page. www.holy-trinity-schoolschool.org/index.html. I ftp'ed the Script file and the .flv but nogo.
View 1 Replies
Oct 15, 2009
I am writing a desktop application and trying to decide between using AIR (FLex) or Java.Some of the requirements for the application are: needing to securely connect to webservices and JMShave a very interactive UI (lots oflittle and big features)displaying videoCommunicate with a C++ applicationTo implement the web services and JMS for Flex we were thinking of using Merapi to communicate with a Java application. Does this mean we should probably go with Java or does the better graphics capabilities of Flex still make it a better choice?
View 5 Replies
Jul 10, 2010
building a desktop app that can compile java, c, c++ files and display the results using the flex app
View 3 Replies
Aug 29, 2010
What languages/techniques are used for letting the web browser interact with the desktop, e.g. dragging files to the web browser, dragging files from web browser to desktop, and maybe more features that I'm not aware of.
View 2 Replies
Nov 2, 2010
Can Flex be used for a desktop application whose business logic is written using Java? Everything I've read about flex uses a remoting or http protocol to communicate with the backend via a J2EE server, so I'm not sure how that would work for a desktop app (unless an embedded j2ee server was running in the app).
View 4 Replies
Jul 31, 2011
I create a Flex Desktop App by Flex builder 4. I want to log some debug info into a file , named by process id
//var pid:int = NativeApplication.nativeApplication.getPid() ??
var logFile:String = "/var/log/MyApp_"+pid+".log";
Is these any API to get pid in Flex/ActionScript3?
View 3 Replies
Jan 3, 2012
I have been looking all over the internet and I can't find any good (or recent) example from a air application where an image (for example) is dragged from the desktop in the application.
The problem is that flashbuilder gives errors on:
import flash.desktop.DragActions;
import flash.desktop.TransferableData;
import flash.desktop.TransferableFormats;
import flash.desktop.DragManager;
(and this are only the errors at the import section)I know this last one can be replaced by mx.managers.DragManager, but this is another class since than I get errors on "DragManager.acceptDragDrop" for example...
View 1 Replies
Mar 1, 2012
I'm working on a desktop application that uses API keys for Twitter but AFAIK, AIR applicatioons are easy to decompile. I want the processing of the API requests to be client-side, not server-sided. At most, I want to keep the dependency onto the server to as low as possible.
What I'm thinking is sending the API from the server to the AIR app on the first run. I've already seen Shared secret with API in an Ajax Adobe AIR app but my question is a bit different in that, I want to know how secure ELS is?
How does Adobe work it's way to storing stuff into the ELS? Does it go through multiple encryption sessions before finally getting stored somewhere on the computer?
View 1 Replies
Apr 3, 2012
I want to create a simple desktop admin application for an IOS app that will work with a REST api I've built.Couple of years ago I would go with Flex/Air, just makes it very simple. But since I am butt-hurt with the way Adobe have handled Flash in general, I am looking to write it using some different tool.So far, Java Swing looks rubbish (UI-wise I mean). Others aren't cross platform and often too complicated.
View 1 Replies