Java :: Way To Access Library From Flash?
Sep 23, 2011Flash is great tool for animations. I was wondering if I could send events to Java and receive results back. In other words call some functions in flash and get their results.
View 2 RepliesFlash is great tool for animations. I was wondering if I could send events to Java and receive results back. In other words call some functions in flash and get their results.
View 2 RepliesI am searching for a free charting library, either in Java, JS, or Flash, that allows for drill-down type interaction. An example of this sort of behavior can be found in the trends section on mint.com. JFreeChart seems like the generally recommended choice for charting purposes, but from a little browsing of their API there doesn't seem to be any obvious way to detect mouse clicks on a particular slice and change the chart in response.
Any advice on how to handle this sort of behavior using JFreeChart, or if this is not possible any recommendations for other libraries that do support this behavior?
I am searching for a flex library for job scheduling. I know the Timer API, but this is not exactly what I am searching for. Here is (one of) my usecase for my AIR application:Try to ping to website xyz every 15 minutesEvery first monday of a month try connect to website abcdefgo I am searching for a library like quartz in java, just a small sweet library for executing cron(like) jobs.
View 1 RepliesI have to access jsp variable in mxml file... or how to access jsp variable in java file...
View 1 RepliesIs it possible to access a movieclip inside an external swf (.fla file), using data from a vector?
The following code works correctly:
this._graphics.message2_mc.textLabel_txt.text = "Test";
Where as when I loop through a vector and try to replace "message2_mc" it cannot find the movie clip:
for(var i:uint = 1; i <= this._playlistState.subMovieVector.length - 1; i++)
{
var movieName:String = this._playlistState.subMovieVector[i].movieName;
this._graphics.movieName.textLabel_txt.text = "Test";
}
Presumably this is because I am putting a string in the middle of the line of code accessing the movie clip?
What are the options (or is it possible at all) for a web page (running on a remote server, not localhost) to access a data stream (not video) coming in via the USB port of the local computer?
Ideally this would work cross-platform (Windows, Unix, Mac anyway) and the local computer would not have to download/install anything to make it work (beyond what you can reasonably expect a computer to have)
An embedded Java applet seems the only way, but I'm wondering if there's any other technologies that could do it. If the restriction is lifted so that the user can install something (basic for non-techies, not setting up a local server running node.js for example) does that make more things possible (Flash?)
I want to develop a GWT javascript application that must interact with a flex widget and fire events from 2 directions (flex to GWT and GWT to flex)For example I develop a function in GWT called onWidgetSelected(int widgetID){ ...} the generated javascript code does not contain the name of this function. So If I want to invoke it from flex through javascript call what should I do ?
View 2 Replieshow to access a shock-wave flash player which has the Content-Type: application/x-shockwave-flashits a request get so i am using GET method of HttpClient .any solution to access flash content through Httpclient?
View 1 RepliesI have a client-server multigame suite for PC ("kind of" cross-platform using cygwin), which is developed in Java(game menus and database management), C++ (server side), and adobe Flash (game graphics & interaction).
I have never tried to develop for android, so i have no experience.I am thinking of migrating this suite to google TV. So i would like someone with android experience to give a clue on the following :
1) Is it going to be easy to migrate the Java application to an Android application?
2) What kind of Flash support does Android have? Can it load directly swf applications? Does it have to load swf's through browser?
3) Can i find any kind of performance indexes for google TV hardware?
I need to load somehow the html code of a webpage A into a javascript string of another webpage B, on a different host. I know this is impossible to do with javascript alone because of the same origin policy, and I know I could do it loading the page via php on my server and then send results back to the user's client but I wouldn't be able to handle so many requests, so I need it to be done directly by the user's browser. I can use nearly whatever browser scripting language/applet framework common enough to be installed on the majority of my users' computers, like flash and java.On example, what if I use flash or java to load the external html code and then call a javascript callback function providing the source? Could this work?
View 2 RepliesIf one doesn't have the source code, the only to test is to send keystroke and mouse move so I found this product but it's not free and opensource price is not even known :([URL] Squish supports automating interactions and testing non-HTML/DOM elements, that is, native objects, which are embedded in a web page. This is done at a fairly abstract level, which means that mouse and text input can be recorded and replayed.
In addition it is possible to inspect embedded native objects with the Spy tool and to insert verifications for these native objects. All of a native object's public properties can be accessed in test scripts.
How can I access the Principal object in a Flex client that was returned by the doAuthenticate() method in the LoginCommand?
Adobe's LCDS Custom Authentication page isn't much help in this matter, as this is the only example they show for a successful login:
// Handle successful login.
private function LoginResultEvent(event:ResultEvent, token:Object=null):void {
switch(event.result) {
[Code].....
I can return a strongly typed object as the Principal from the doAuthenticate() method, but how do I access it in the client's result handler?
Update: I've read the LCDS documentation twice now and there is no mention of accessing the Principal in the client. The only data I can retrieve from a result is the string 'success'. Anyone know if this is this the only result available from a custom authentication?
i currently have a Java Observer/Observable setup in which i switch on some field within the Object parameter of Observer.update (e.g. event id) to determine how to handle an Observable notification. this creates verbose code like:
[Code]....
We're trying to upload a file from a flex client to a JEE app.
In a full HTTPS environment
JEE server is JBoss 5
Using BlazeDS 'Custom' authentication (username and password are entered through a flex form)
Using BlazeDS per session authentication
In regular AMF calls, we can access user principal and use role mechanism. However, in our upload servlet, we have no access to user principal.
request.getUserPrincipal() // returns null
I'm creating library swfs in as3 this way, works like a charm (except for the slow mxmlc compiler):
package {
import flash.display.Sprite;
public class Library extends Sprite {[code]....
I would like to create the same kind of libary using swfmill. I've tried the following swmfill simple xml:
<movie version="10">
Examining the libraries in FlashDeveloper's explorer reveals that the as3 library exports BOTH classes and symbols, but the swfmill library exports ONLY symbols.My host application is accessing the as3 library assets this way:
private var loader:Loader = new Loader();
private function onCreationComplete():void {
this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);[code]....
But with no exported swfmill classes, there's obviously nothing to instatiate...Is swfmill expected to export classes this way? If not,is there a way of accessing the symbols without instantiating them as classes?
I'm working on a Flash project and someone recommended Red5 as a media streaming server. Do I need to know java to use build applications that use Red5 as their server?
View 2 RepliesI seem to be getting the following error when I try to access a Remote Java class (on Spring/BlazeDS) from the Flex/Cairngorm application. I am going crazy at the moment trying to see what is wrong
[Code]...
I was working on a file where I imported a few sounds to the library but now lost the actual sound files, but I have the sound in my library (in the fla). How can I use them through AS3? Currently I do something like: Quote:
var music:Sound=new Sound(newURLRequest("outbreak.mp3"));
var sc:SoundChannel = music.play();
how can I access the sounds in the library?
Got two classes "Engine.as" and "Player.as". Engine.as is the document class that is calling Player.as.
The point is to have Player.as create a movieclip on the stage, but it seems it cannot access the library or something. Because when the player class is at the createHero() method it gives me the "error 1009 cannot access a property or method of a null object reference"
Engine class:
Code:
package test{
import flash.display.*;
import flash.events.*;
[Code]....
I have a main swf called, main.swf; Inside it I load another movie, skin.swf (this has 10 movieclips in the library with linkage name). What I want is to attach the movieclips from skin.swf inside the main.swf.
But problem is I am not able to attach the movie clip in the main.swf from skin.swf.
Does flash store the items in the library in an array? I would guess yes. For example if i have an array named pics in my fla file can i write something like:
for(var counter:int = 0;counter < library.array.length;counter++){
pics.push(library.items[counter];
}
I'm having some doubts about how to access some features of embedded files and loaded.
For example, I created a .fla and added a symbol to your library - a MovieClip with name and class circle. Then convert the .fla to .swf, thus becoming test.swf.[code]...
I have a swf file which contains in its library couple pictures.After it is loaded using preloader I would like to be able to create couple instances of them and add them to the stage.If I use swc approach and import it in library path I can not preload it but instancing is very simple i.e [code]How to access them when doing it with swf and loader class?
View 1 Replieswants to know whether i can access a online library for actionscript.Example: A place where it'll explain what "==" means, aswell as listing other script definitions.
View 2 RepliesI'd like to put a given cursor design in the library, then make a call to it using the custom cursor script I'm working on (detailed in the other thread). This is more professional and attractive than keeping some thing on the stage.
View 8 RepliesHaving this litle code, how do I access the erro textArea?[code]...
View 1 RepliesAnd I'd like to create app with air for ios. how can I access iPhone camera with air and use library ( ASFEAT and Away3D ) for create AR app.
View 1 RepliesIf it's possible to access the class library, i.e. instantiate custom classes, from a loaded external SWF file?
I have a sprite on the stage with the instance name "speakers". I've got this working so far[code]...
I have a swf file which contains in its library couple pictures.After it is loaded using preloader I would like to be able to create couple instances of them and add them to the stage
If I use swc approach and import it in library path I can not preload it but instancing is very simple i.e [code]...
I have a folder with my .fla, and a folder called "classes" where I stored all my classes. I'm trying to access a MC in the .fla file so that I reference it from one of those classes in the "classes" folder. for you visual learners...
Code:
<project>
project1.fla <- library here
[code].....