Flex :: Start Application From A Simple AS File?

Oct 27, 2009

I want to use vkontakte's new wrapper feature, that enhances your application abilities by running under SWF wrapper. This is a sample application that uses this mechanism. It uses pure action script to display it's contents rather than an mx:Application.

Using the wrapper on my mx:Application failed due to the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.managers::FocusManager/activate()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersFocusManager.as:702]
at mx.managers::SystemManager/activateForm()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersSystemManager.as:2493]
at mx.managers::SystemManager/activate()

[Code]...

Unfortunately - it also failed, and the question remains, how to start Application from a simple AS file?

View 2 Replies


Similar Posts:


XML :: Loading File In Flex Before Application Start / Initializes

Jul 22, 2009

I've got a configuration xml file that I need to parse for values before a flex application loads. I've created a static class that allows for the values in the xml config file to be retrieved. I'm initializing this class when the application first loads but as the xml file is loaded with a Loader class that loads a synchronously the class is being asked for values before the xml file is actually loaded - so it is throwing a error. Is there a way to load this xml file synchronously. We cannot embed the file as a class variable as we need to be able to change the values remotely.

View 5 Replies

.net :: Flex : Simple Chat Application Using FluorineFX?

Jun 26, 2009

I'm trying to create a very simple chat application in Flex/.Net using FluorineFX but can't get it to work.

<mx:VBox
width="100%"
height="100%"
xmlns:mx="http://www.adobe.com/2006/mxml">

[code]...

It's compiling all fine, and when I try to send I don't get any errors, but also no result. No message is received. Am I on the right path? What's the logic behind the endpoint uri? What port should I use? Should I configurate Web.config? (beyond the flourinefx configs that enable RemotingService?) I don't get any response in the flourine.log.

View 2 Replies

Flex :: Add A Simple Bitmap Or Sprite On New Application?

Jun 27, 2011

Maybe it is a bad habbit which still i have from Flash Professional, but : I am trying to add a simple Sprite or/and Bitmap on just created, empty application, and it just not hapening.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 2 Replies

Flex :: Implement A Simple Chat Application In Adobe With Php As Back-end?

Mar 10, 2011

I am trying to implement a simple chat application in adobe flex 3 with php as back-end. I have found few frameworks on net, AMFPHP and WebOrb. But I see that both these frameworks do a polling to the server at regular intervals.

View 4 Replies

Flex :: Setting Text Property Of A Combobox On Application Start?

Jul 20, 2011

I am using the combocheck example from the following site: [URL]

It's a very useful component and works very well.

Now, I need to set the text property of this combo box upon application startup with certain values (which are defined dynamically according to some criteria). The problem is that although I have no problem setting the text property of the combo box at other times of the application run, setting the property at startup seems to have no effect unfortunately.

For example, I want to set the text property of the combobox to "Bob" (which is one of the items in the dataprovider for the combobox) and the "set text" method is called on the combo box. Performing a step-through shows that the "set text" method is receiving the correct value item but not setting the _text property.

I have tried not doing anything until "ApplicationComplete" but no joy there either.

Here is the code (a combination of the code from the URL above and some other changes to it). However, as I've stated above, the codes does work. The problem is that it doesn't work at the application startup. Whenever an event is fired and setComboText is called as a result, the text of the combo box is set correctly.

private function onComboChecked(event:ComboCheckEvent):void {
var obj:Object=event.obj;
var index:int=selectedItems.getItemIndex(obj);

[Code]....

View 2 Replies

Flex :: Creating Simple Live Drawing / White Board Application?

Jul 9, 2010

How do I create a simple live drawing board/whiteboard functionality using flash as3, and flash media server 3.5.

View 1 Replies

Flex :: Start Creating Voice Chat Application Using Adobe And Red5?

May 5, 2011

I will create a voice chat application with Adobe Flex and I want use the opensource Red5 as a server.But, I confuse how to start it. it's possible just use NetStream and NetConnection?

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

Flex :: Activate An Application So The User Doesn't Have To Click Inside It To Start Getting Keyboard Events

Nov 26, 2010

My Flex application is heavily keyboard-oriented. It uses 100% of the browser window and I'd like the user to be able to start using it immediately - as soon as it loads. However, it seems that the application is only first "activated" (i.e. the activate event fires) when the mouse clicks somewhere inside it, which is very inconvenient for my keyboard-heavy app.

Can I force an activation of my app at some point during/after it loads? I hope I don't have to display some silly "click inside to activate" overlay every time the page loads..

In certain browsers ([cough] Chrome [/cough]) the focus is lost whenever the user switches away from the browser (or even touches the address bar) and is not regained when switching back. So the solution has to take in consideration not just the first focus when the page loads but also "re-focusing".

View 2 Replies

Flash :: Start IPad Application From Another Application Builtin

Aug 19, 2011

Do you know is it possible to start iPad application from another application that is developed in Flash? I need to create small iPad app with two buttons (and some graphics/animation) in Flash. Clicking on those buttons, another iPad application should be started. My guess is that will use ExternallInterface, but I don't know what to send :)

View 1 Replies

ActionScript 3 :: Flex SDK 4.6 - Using FXG File For Simple Graphics

Mar 1, 2012

I have flex sdk 4.6 installed and I want to compile AS3 class that uses FXG file for simple graphics. I have and fxg file called Speaker.fxg and I tried to import it like a package
import Speaker;

But when compiling it returns
Error: null

Also tried this
[Embed(source='Speaker.fxg')]
private var Speaker:Class;
private var sp:Sprite = new Speaker();
[Code] .....

I used the fxgeditor air app from here [URL]. I also tried using A. Illustrator exported fxg file and it compiles but the swf is blank.

View 1 Replies

Include Properties File Or Config File In Flex Application?

May 21, 2011

I have a flex application which contains different feature that includes google maps, twitter, facebook etc.

Currently I have hardcoded api keys in the code it self but I want to use a properties file/config file where I can put such things and use anywhere I want in the application.

Is it possible to achieve this in flex? I am using swiz framework. Is it possible to achieve this using this framework?

View 3 Replies

ActionScript 2.0 :: Simple Counter - Start From 0 And Increase Value By 0.31?

Jan 13, 2009

I have this simple counter I cannot get it to work! I just need it to start at $0 and increase by $0.31. So it would look like this $0 - $0.31 - $0.62 - $0.93 - $1.24 and so on. And also it would do keep going when it hits $100.31 - $100.62 so forth!

View 1 Replies

Simple Slideshow - When It Start It Only Shows Images For One Second And Goes To The Next?

Jun 25, 2009

i need is a simple slideshow. already have images ready but when it start it only shows images for one second and goes to the next.i want it to stay on screen for ten seconds (i am new) (cs4) and needs to work when uploaded to website not just on my computer

View 3 Replies

Flex :: Get The Size Of A Remote File Before Start Downloading It?

Mar 25, 2010

I need to figure out the size of a remote file before I download it.And I know that in local place this can be done as follows

var _filePath:String = "X:/save/abc.exe";
var file:File = new File(_filePath);
if (file.size > 1000)

[code]....

But when I tried a remote file like

var _filePath:String = "http://www.aaa.com/webfile.exe";

It didn't work.And how can I get the size of a remote file before I use

var _downLoadPath:String = "http://www.aaa.com/webfile.exe";

View 2 Replies

Actionscript 3 :: Flex File.browseForDirectory Start Folder

Mar 17, 2012

I'm using the file.browseForDirectory() method to make the user browse his computer and choose a folder. It's all perfect since here. But what if I want the dialog box to already show a specific folder opened at pop up?

View 1 Replies

Windows :: Start Air/flex Application With Windows?

Sep 21, 2009

I want to provides an option in my air/flex application. A user can check an option and the application starts when windows starts.I don't find with google how to do this, someone knows do that ?

View 1 Replies

Flex :: Simple File Upload Using UI And Spring/Hibernate/BlazeDS Backend?

Jul 13, 2010

I'm trying to implement a simple application which uses Flex on the front end and a Spring/Hibernate application on the back end, with communication between the two going over a BlazeDS channel.

I'm seeking direction as to the best and/or simplest way to approach this. I have the UI set up in such a way that the user is presented with a file chooser in which they pick the image file they want to upload. When this is chosen and submitted (as a form submission) then the server side should receive the image file data as well as some related metadata such as a description and date, then populate a Hibernate entity/POJO with the image file data and related metadata, and then persist the entity/POJO into the database.

I have found some examples of how you would do a file upload and download using servlets here and the FileReference class (here and here) but these don't appear to address the problem in a way which leverages BlazeDS and/or Spring/Hibernate. I want to put the image file data and related metadata (description, capture date, etc.) into a value object within the Flex application and then send this over BlazeDS to a service provided by my Spring/Hibernate application running on Tomcat. In this service I want to extract the image data (both the actual JPG/PNG/GIF data and the related metadata such as description, etc.) from the value object sent from the Flex app into an entity/POJO which is then persisted via Hibernate in my database.

Can this be done, and if so what's the best way to go about it? Am I mistaken in assuming that if I use BlazeDS then I am somehow bypassing the need to provide HTTP-based services such as servlets on the server side and instead I can use my Java services as "RemoteObjects"? Is there necessarily a one-to-one mapping between Java POJO/entity class and the Flex value object class when making this sort of transfer? If so is there a tool which creates corresponding Flex value objects from Java POJOs or vice versa.

Update: Some code to make this more clear:I have this as my value object in Flex:

package valueobjects
{
import flash.utils.ByteArray;
[Bindable]

[code]....

When I set a breakpoint in the method above and look at the image variable it looks to be empty, so I'm assuming that the transformation from the Flex value object to the Java POJO did not go as expected and that there's more to it than just adding a RemoteClass alias in the Flex value object class.

View 1 Replies

Flex :: File Write Permission To Application Directory In Windows 7 In Flex?

Aug 11, 2010

I am creating an AIR application using Flex. In it I use a file in application directory to store some data in it.Its working very well to read and write data to this file with various OS except windows 7. In windows 7 it is not working. May be its a permission problem.

How can i write file in the application directory with Windows 7 ?

View 2 Replies

Flex :: Reset/reload A Flex Application Without Refreshing The HTML Page Or Reloading The SWF File?

Jan 12, 2011

I have a flex application that has a home button. I need to reset the application when this button is clicked. I can't use navigateToURL or ExternalInterface.call("window.location.reload"); as its not acceptable to reload the swf file.

View 5 Replies

Professional :: Where To Start Simple Platform Game With Jumping Object

May 28, 2010

What resources should I look at to learn how to create a very simple platform game, with a character who can simply jump on platforms and avoid enemies to reach the end of the level? I have made games like this with other languages but never flash.

View 2 Replies

Flex :: Executing A Local File From An Intranet Flex Application

Apr 12, 2010

I am creating a Flex application for intranet use.I need the application to execute files, with different file types (txt, emails, etc.) at specific known locations on the clients computer.Is it possible to give permissions to the Flex application to execute local files? (I have administrative rights on the clients computer)

View 1 Replies

Xml :: Using A Flex Web Application In Another HTML File?

Mar 30, 2012

i'am developing a flex media player that will be include in a simple html file. my project plane is:

1-loading a xml file (using HTTPService)
2-find the sound address in the xml (Using E4x)
3-load the sound
4- ...

when i run it with adobe flash builder or generate a release version, it works fine. but when i use the flash file in my html file it's xml loading process doesn't work!

after some try , i realized that if the swf file be in the flash builder workspace directory, it work , else it doesn't work.

note that my OS is Microsoft Windows 7 32-bit

what is the different between the workspace directory and usual directories?

View 1 Replies

Flex :: Download A File In An AIR Application?

Jun 15, 2009

Is it possible download a file in an AIR application, store it on the user's system, and prohibit access to the files by applications other than the one with which it was downloaded?

View 3 Replies

Tool For Simple Interactive Web Application?

Nov 10, 2011

I want to create not complex interactive web application. It has some pinboard and user can create many simple objects on this pinboard (e.g. many small circles). [code]...

I think that I can use Flash/Flex or JavaScript/SVG/VML for this purpose. Disadvantage of Flash is that user must have plugin. Minus of JS/SVG/VML is that there aren't such powerfull developing tools as in Flash case, but if we use some library (url...) application won't require flash plug-in.

View 2 Replies

ActionScript 3.0 :: Pass A Var From Flex Application To A Swf File?

Jun 10, 2009

how to pass a var from flex application to a swf file that is on my server?

[code]....

how to GET the VAR THat is passed into the swf file some get method from FLEX?

View 1 Replies

Flex :: Delete A File In The Application Directory?

Nov 19, 2009

We are writing log files to File.applicationDirectory and want to clean out old log files. The question is how do you delete files out of that directory? When I try and delete old log files out of this directory it gives a security exception. Is there anyway around this? I know you are not supposed to write to File.applicationDirectory, but we are writting are logs there anyways.

View 2 Replies

Flex :: Write A File To Application Directory?

Dec 28, 2009

how to write a file to File.applicationDirectory in flex. i am getting security filewrite resource error.

View 2 Replies

Flex :: Preload A File Before The Application Initializes?

May 5, 2010

Problem: An XML configuration file needs to be loaded at runtime and be ready when the application's createChildren() gets called. At the latest, because configuration values are needed to properly initialize child components. Preferably, I would like the configuration loading be complete before the application even gets created. In short, I want to do this: load configuration, then initialize the application using the loaded configuration.

I created a custom preloader to help solve this. But as it turns out, the application's createChildren() method already gets called during preloading, when the configuration is not yet guaranteed to be loaded. That is, before the custom preloader dispatches the COMPLETE event.

View 2 Replies







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