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.
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.
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?
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)?
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.
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.......
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);
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.
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:
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.
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?
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]...
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.
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?
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.
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?
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]..
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.
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?
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.
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).
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?
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.
(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...
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?
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.