Flash :: Can Flex Application Detect It's Own URL

Aug 19, 2010

Let's say I had a flex application (Web, not Air), that was meant for Mass Distribution, to be included like a plug-in of sorts, at various websites. Is there any way for a particular instance of the SWF to detect it's own URL while it's running? If so, can you point me in the right direction of which ActionScript command I might google for more info?

View 3 Replies


Similar Posts:


Flex :: Flash - Detect In App If A Camera Is Already In Use By Another Application?

Mar 30, 2010

I am making an application that plays the video stream from the user's local system (both Windows and Mac). I use the Camera.getCamera() method and in turn Camera.names to get a list of camera attached with the system.

Unfortunately, if the camera is already in use by another application, say a desktop application on user's system, the browser is crashed. Is there any way that I can detect if a specific camera from the list of available camera is already in use by any other application?

View 3 Replies

ActionScript 2.0 :: Way In Flash To Detect When User Has Quit Application

Apr 17, 2010

Is there a way in Flash to detect if the user has quit the application? For example if the user closes the browser window, or has not been active for 5 minutes, then so remove them from the list of active members.

View 0 Replies

Javascript :: Detect When Key And Mouse Events Occur Inside Of A Flash Application?

Mar 5, 2012

I've some very old Flash applications, which we don't want to rebuild to add a new feature. We simply need to detect when the user has become idle. So, if the Flash application receives no key or mouse events after 3 minutes, we want to track that time till the user interacts with the application again.

We've considered wrapping the applications in newer Flash applications to include the key/mouse event tracking; however, early research shows that some of our apps are so old that they use event systems or AVM's (ActionScript Virtual Machines) that are incompatible. Also, it seems that mouse events on the inner application don't bubble up to the outer application. (I think the direction of event processing is backwards in versions of Flash prior to 8)

Anyhow, the next idea on the table is to see if we can determine when the user stops interacting with the old Flash applications using JavaScript. Can anyone confirm whether or not it is possible to detect, using JavaScript only, when a swf in an HTML document loses focus or key and mouse events stop and start occurring on the swf?

View 1 Replies

ActionScript 3.0 :: Possible For Shockwave Application To Detect If Keystroke Came For Keyboard

Aug 18, 2010

I was wondering, is it possible for a shockwave application to detect if a keystroke came for the keyboard, or from another application simulating a keystroke?

View 1 Replies

Flash - How To Detect 32-bit Or 64-bit OS In Flex

Mar 18, 2011

I need to detect 32-bit or 64-bit OS through Flex.

var osName : String = Capabilities.os;

This only gives Windows XP or Windows 7. I need to detect 64-bit Windows XP.

View 1 Replies

Flex :: Flash - How To Detect Browser / Tab Closure

Oct 8, 2009

I need to detect browser/tab closure from within a flex application in order to delete the session information in the server. I'm familiar with JavaScript events but I was wandering if there is an event in flex for application unload or something of that sort ...

View 4 Replies

Flex :: Detect Memory Leaks In Flash?

Feb 11, 2010

How do you know if your compiled SWF file has a memory leak?

Are there tools, a firebug setting, etc... to see if there is a problem? I cannot find much in the debug Flash player besides file size and loading time.

I have a large Flash application that I maintain and suspect that is using way too much memory so I wanted to measure the amount of RAM being used while it executes to find key areas to optimize.

View 3 Replies

Flash :: Detect Screen Resolution In Flex 4?

Mar 7, 2011

I want to make an application with an image that only bounces to the users screen resolution. How can I go by detecting the users screen resolution in flex 4? (If you can that is.)

View 2 Replies

Flash :: Detect File Encoding In Flex / Actionscript?

Feb 8, 2011

is there method/algo to detect universal file encodings ?

View 1 Replies

Javascript :: Detect If An Embedded Swf Is Created With Flex Or Flash?

Apr 15, 2011

Is there a way (in javascript) to detect if an embedded .swf was created with Flash Professional or Flex.We have a page with several tabs, each of which can contain an .swf.All tabs are defined within the same HTML file and the javascript framework calls a .rewind() and .play() on the swf when the containing tab becomes active.This works great on regular flash animation, making sure they start playing from the beginning when the tab is opened. On an swf created with Flex however, the rewind and play wreak havoc on the Flex framework and the application doesn't load.

The best way we've come up with to detect Flex is to count the number of frames the .swf has. With flex that's always 2. But this doesn't sound like the best way.We've also tried to add a callback method with ExternalInterface on the Flex application preinitialize event.Unfortunately this event is called quite late in the application startup and the javasctipt code checks the callback before the Flex code has added it.

View 2 Replies

Flash :: Flex PopUpManager: Detect The Existence Of A Modal Popup?

Sep 17, 2009

My Flex 3 application has some modal dialogs displayed via the PopUpManager, but there are times when I'd like other view components to know there is popup displayed. The PopUpManager doesn't have any method for actually checking the existence of popups. Is there any other way to detect this in flash/flex without writing my own global manager?

(also systemManager.popUpChildren.numChildren == 0 even when there's a modal popup)

View 2 Replies

Flash :: Detect When Flex Spark List's Data Has Changed

Oct 6, 2010

I need to detect when a Flex Spark List (spark.components.List) data has changed so that I can programmatically change its scrollbar. I know that List is a an EventDispatcher but it's unclear which event I'd register for.

Edit: My List's dataProvider is an ArrayCollection that elements are added too. So the dataProvider is never replaced. I considered listening to the backing ArrayCollection, but it's possible the List will react to the change after my listener, which alters the scrollbar. Thus my listener's changes will be superseded by that of the List.

View 1 Replies

Flex :: Adobe AIR Application To Receive Back Events From Native Windows Application?

Oct 8, 2010

I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?

View 1 Replies

Actionscript 3 :: Resizing Container On Resize Of Application Window In Adobe Flex/AIR Application?

Mar 4, 2011

I am working on an Adobe AIR Application. The size on Application window is 800X600 and is contains border container and border container contains many controls. What I want is to if user re-sizes the application then that container should also be re-sized according to scale. i.e If user maximizes or minimizes the window then that border container should also be maximized or minimized respectively.

View 3 Replies

Flex :: Come Back In Main Application On Click Of Logout Button Which Is In Application's Component?

Aug 4, 2011

How I will be back in Login Page after click of logout which is in application's component.

Project.mxml

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"

[Code]....

View 2 Replies

Flex :: Delete Application Storage Directory Instance / Data When Uninstalling Any Air Application?

Dec 22, 2011

how can i delete storage directory instances or folder while uninstalling any air application. In my application when i first time run my application, application copy some data from application directory to application storage directory. now i want to delete all data and application directory folder also while uninstalling application.

I am doing that because when i launch any update then application is accessing old data which conflict with my application new features.

View 1 Replies

Flex :: Gui - Switch Between Different Applications(mxml File With Application As The Root Tag) In A Big Application?

May 16, 2010

I'm new to flex. Now I'm writing an flex application. I plan to split my application into some MXML files(Application as the root tag). How can I switch from one mxml to another?BTW, what is the best practice for design large flex application? Just one MXML Application and many MXML component or many MXML Application?

View 1 Replies

Actionscript 3 :: Using External Xml Data In A Flex Application Without Compiling The Source Into The Application?

Jul 15, 2011

I want to read xml data to a mxml application from a xml file on my filesystem. The example I found was for AIR,link2, link3. But I want to target the Flash Player runtime. If I use the the tag, I can do it; however the xml compiles into my swf. How can I retain the xml file in my release build?

View 2 Replies

Flex :: SystemManager.addEventListener Of Sub Application Is Not Working In Main Application?

Mar 31, 2011

i used systemManager.addEventListener in sub application...... it is working well....but when i load sub application into main application through swfloader it doesnot working..

View 1 Replies

Ios :: Embed Adobe Air / Flex Application Inside A Standard Application

Aug 29, 2011

I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well. Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application? While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.

View 1 Replies

Flex - Application.application.nativeWindow.activate() On Windows?

Dec 8, 2009

I have an AIR application with a system tray icon. When clicked it shows and activates the app. This is working as expected when the app is hidden (docked), however if I select another application so my app is in the background clicking on the system tray icon does nothing.

Oddly I also have a contextual menu on the system tray icon, which has an option to restore, this calls the same event handler as ScreenMouseEvent.CLICK, yet works.

I expect it's something to do with the contextual menu changing the focus, perhaps it's a bug in how AIR works with the system tray, perhaps it's just something I'm missing. Would be good to know if that's the case.

View 1 Replies

Flex :: Launch A Separate Air Application Through My Current Air Application?

Sep 1, 2010

I've been trying to launch a separate Air Application through my current Air Application.Both apps are compiled using the Adobe Air 2.0 SDK. The methods I have found so far involve passing the Publisher ID in addition to the Application ID, but I believe the Publisher ID became redundant past Air 1.5.3? Below is my current implementation whic seems to correctly ascertain the Air Application's version number, but when I try to launch it, nothing seems to happen.

private static var _air:Object;
private static var _loader:Loader;
private static var appID:String = "someOtherAirApplication";[code].....

I have changed the app-config.xml (app descriptor) on the application I am trying to load to allow browser invocation.The version number of the app descriptor of my application I am trying to load is "V1" which the versionDetectCallback seems to pickup. If this is the case I would expect to be able to launch it but this doesn't seem the case.

View 2 Replies

Android :: Load Flex Application In Mobile Application?

Mar 7, 2012

I want to load a flex application in mobile flex application and also i want it to interact with the parent application. Right now I am trying to load the swf with swfLoader in mobile app, but it gives me security error. And also should I want the parent application to be generic in terms of child application as in down the line if someone wants he can have another child application with same name run.

[Code]...

View 1 Replies

Flex :: Using Flash Components Into Flex Application?

Sep 14, 2010

What is the right way for integrating a Flash component into a Flex application? I heard that there are different ways of integration between Flash and Flex: using SWF, using SWC (something else?). What are theirs pros and cons? What are the points of communication between them Flash and Flex? `I'm using Flash Builder 4 for developing Flex. And Flash Professional CS 5 for developing Flash.

View 1 Replies

Php :: Load A Sub-application From A Main Application In Flex?

Jan 19, 2010

I've created a client with login acces in Flex. After the succesful login i have to show a table based on a mySQL server. The database is composed by some tables, and I have created 6 flex mxml components with each own scripts for each of those tables. How can i load sub-applications, for example with a PopUpButton or a TabBar in the main application?

View 1 Replies

Flex :: Run A Flash Movie In Application?

Jul 27, 2009

I've a flash movie that I would like to use inside of a flex application, very similar to a preloader.

Looking at this tutorial, [URL], I expected it would be a matter of not extending "Preloader" and extending "Sprite" and using the class i created wherever i needed.

Alas, the movie I created, is not being shown.

This is the code for my class containing the movie, made based on the tutorial above:

package
{
import mx.preloaders.DownloadProgressBar;
import flash.display.Sprite;

[Code].....

View 1 Replies

Flash :: Set A Scroll Bar On Flex Application?

Feb 24, 2011

My Flex application is half cut off with no scroll bar in the browser window. How can I get a scroll bar? The application tag doesn't have a setVerticalScrollPollicy property.

View 3 Replies

Flash :: Flex - Builder 4.5 Won't Run Application

Jan 30, 2012

I was running my application from Flash Builder 4.5.1 without any issues. (It is a Flex application that connects to .Net Web Services). However, something has changed recently in my configuration or project, because when I try to run the app with the play or debug button, I just get a grey screen. I can't even stop on any breakpoints. Eventually (maybe 30 seconds), a message pops up like so: 'The Flash Builer failed to connect to the running application. Please make sure that you are running the debug version of Flash Player...'

[Code]...

View 2 Replies

Flex :: Flash - External Swf Control Application?

Dec 21, 2009

I have a flex application that loads an external swf file. I created the external swf file using flash cs4 so I can add code to it if that is what it takes.

Here is the code I use to load my external swf:

//add button swf
var request:URLRequest = new URLRequest("http://www.yadayada.com/media/but_button.swf");

[Code].....

Can I have my external swf send click events to my flex application? How?

View 1 Replies







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