Flex :: Unreachable, Existing Variable?

Jun 13, 2010

I'm new at as3, maybe thats the reason why i don't understand, why the setInterval causes an error.

<mx:Script>
<![CDATA[
import flash.utils.setInterval;

[code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Set MovieClip Variable To Existing?

Jan 31, 2012

I have 4 MovieClips on my stage with the following variables[code]...

I've also got 4 buttons with 4 event listeners that all point to the same function. The function checks the event target and depending on the event is supposed to set a variable to the correct movieClip I want to use.[dcode]...

View 3 Replies

ActionScript 3.0 :: Using A Variable To Reference An Already Existing Movie Clip?

Jan 28, 2009

I have been struggling with what I suppose is a very simple issue: I am importing content into my application via a text file, this all works fine. I have about 10 different movie clips on the parent timeline that I have hidden (dc_mc.visible = false.So what I need to do is take one of the variable names that I've got from my text file and use its value to "turn on" one of these hidden movie clips.So I'm trying stuff like:

var directory = e.target.data.directory; // Grabs the data, sets var
var raceNameButton:String = directory+"_mc"; // Set data into new var
raceNamesButton.visible = true; // display movie clip with var name

[code]........

View 1 Replies

ActionScript 3.0 :: Setting A Variable For Pre-existing Movieclip In Timeline?

May 23, 2011

I'm basically trying to reference a number of preexisting movieclips on the stage through a for loop, give it a variable and assign and action. So, where in AS 2.0, I would have gone:

ActionScript Code:
for (var i:Number=1;i<=4;i++){
var refMC:MovieClip=this["myMC"+i];

[code]...

View 9 Replies

Flex :: Adding Flex Capabilities To An Existing J2EE Enterprise Application Project

Sep 17, 2010

I have an J2EE Enterprise Application Project in which I would like to add a few Flex screens. How do I go about adding Flex capabilities.

I have build Flex/J2EE applications from scratch but can't think of the best way to do this.

I am currently using Flex Builder Plugin for IBM Rational Application Developer 7.5.

View 1 Replies

Flex :: AIR App That Loads And Runs Existing AIR Swf?

Feb 19, 2010

I have an existing AIR app whose main content is App.swf.I would like to have another AIR app that hosts and runs App.swf. When I say run it, I mean displays it's WindowedApplication.Here's the code for the 2 AIR projects (imports are omitted for brevity):

// App AIR Project -> App.mxml -> App.swf (it's just a window)
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">[code]....

I get the following error while App.swf is being loaded:

TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.managers::SystemManager/initHandler()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersSystemManager.as:3001]

I believe the issue has to do with AirAppHostApplication's SystemManager conflicting with App's SystemManager because they are both living in the same app domain. Can an AIR app be written where a WindowedApplication class isn't statically defined, but loaded at runtime by loading a swf and instantiating the WindowedApplication subclass that's contained in the swf.The reason I want to do this is for an automation scenario where I have to assume I don't have the source code for the app I'm automating, but I do have access to the names of the public classes and their public methods exposed for automation. I have complete control over the environment and don't have to deal with any constraints around that, so I can put 2 AIR apps in the same directory, etc.

View 2 Replies

Flex :: Compile An Existing Project With The SDK

Jun 20, 2010

I'm trying to compile an existing Flex3 project with the Flex4 SDK. I'm getting this error:

Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.The resulting file is roughly the same as my old Flex3 compiled .swf file. Playing the resulting .swf file in the Flash Player also gives the following errors:

An Actionscript error ocurred: VerifyError: Error #1014: Class spark.core::SpriteVisualElement could not be found If I set the compiler attribute static-link-runtime-shared-libraries to true, then the error disappears and all is well. However, the size of the resulting .SWF is a couple of 100K's bigger. And that's not what I want.

I don't fully understand the concept of runtime shared libraries, but it seems that with the option to statically link them set to true, the libraries are included in the .swf. However, I like to exclude them from the .swf and only load the needed library at runtime, as my project seemed to do with Flex3 (I didn't know that by the way).

If I understand correctly, playerglobal.swc should hold all the necessary code for the external libraries that my .swf has to load. Do Flex4 compiled files need more libraries? Should I do something with the factoryClass in the Frame metadata tag?

I think my question boils down to this: How do I compile a Flex4 .swf that is the same size as my previous Flex3 compiled .swf?

View 3 Replies

Web Development :: How To Integrate Flex With Existing Web App

Sep 2, 2010

I'm having trouble conceptually understanding how to integrate flex components -- forms, charts, data grids, etc. -- with an existing web app. There are certain aspects of the web application where I believe it makes more sense to use flex -- however, I DO NOT want to replace the (html/js/java) web-app with a pure flex based app.For example, currently the web app displays user data using html tables and java based charts, I'd like to re-implement this "data display" using flex. Would I have to create a flex "application" for the "data display"?

View 1 Replies

Flex :: How To Add New Column Based On Existing One

Apr 6, 2011

I have a AdvancedDataGrid in flex3 (Flex 3) with 4 columns:
id : int
category : String
name : String
isPreferred : Boolean

And I would like to add a fifth column
favorite : Image
The value of favorite will be based on the value of is Preferred : if true, then favorite will be a read-heart-icon, if false, a grey-heart-icon.

Below is my code :
the mxml content
<xml version="1.0"?>
<mx:Application xmlns:mx="[URL]" applicationComplete="init()">
<mx:Script>
[Code] .....

View 1 Replies

Flex :: Reading In Existing File In 4.6?

Mar 8, 2012

I have a data file on my computer that I need my flex mobile app to read from. Is it possible to put this file in a certain location on my computer so that the app will see it when I'm testing(ex-can i put it in a folder that is linked to the applicationstoragedirectory directory)?

View 1 Replies

Flex :: Add Additional Name-value Pair In An Existing Object?

Apr 5, 2012

adding additional name-value pairs to my existing object in Flex;

I have an object1 of Object Type and I declare a new object2 = object1 plus some extra name-value pairs, is there a way to attach new name-value pairs to an existing object?

View 2 Replies

Flex :: Expose Component's Existing Events With New Name?

Jan 21, 2010

I created a flex component that hosts several built in (mx) components such as a listbox and combo box. My component relies on external data, and I need to expose events such as ComboBox.enter and List.click to get certain pieces of data.I was wondering if there is any easy way to do this without having to create my own custom event handlers. I'm simply trying to expose these events with different names so that when my component is used, I can do things such as:

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" xmlns:com="com.*">

[code]........

View 4 Replies

Flex :: Rebuilding Existing Flash Project

Nov 23, 2010

I'm not a flash developer.We paid a developer to build us an app. It is nearly perfect, but a few things in the actionscript need tweaking (purely the values of some URL's for action when buttons are clicked.)I believe I need to rebuild the project to pull this information through.I believe he has sent me the full source. Do I need to install all of the dependencies to get this to work? I'm tempted to just go in and make the changes in a hex editor..

View 1 Replies

Flex :: Replace An Existing XML File Using Webservice In It?

Jul 15, 2011

Is it possible to Replace an existing XML file using Webservice in Flex(browser-based application)?

I wanted to replace an existing xml file with new xml file of same name for example 'dashboard.xml'.

How can i replace this file from Flex browser-based application? can this is possible using webservice?

what things should be taken care to implement this?

View 1 Replies

Actionscript 3 :: Edit An Already Existing Flex Project?

Nov 18, 2011

I am trying to edit an already existing Flex project, and I see a warning on the line "import com.Adobe.utils.StringUtil;" and the warning it shows is

Multiple markers at this line:

-mx
-The import utils could not be found.
-The import StringUtil could not be found.

Well I was wondering what is the difference between import com.Adobe.utils.StringUtil; and import mx.utils.StringUtil;

View 2 Replies

Flex :: How To Clear Existing List Data Values

Feb 17, 2010

I would like to know how to delete(clear) the existing list data values before binding new values. I'm using the list for binding data dynamically using http services. When I make a new call to the service, I want the exiting items to be flushed and bind the newly retrieved data to the same list. How can I achieve this?

View 2 Replies

Flex :: Cannot Add Method / Function To Class Of Existing Project?

Mar 28, 2011

I'm totally new to Adobe Flex Builder 3. I've been assigned a fully functional project but when I want to add the simplest function to any class, I always got the same error :
Call to a possibly undefined method through a reference with static type

For example, in some random class there is a function defined like this :
public function GetID() : String { return m_strID; }
If I try to define a new one like below :
public function GetIDFoo() :String { return m_strID; }

And then I try to call both of them like this:
trace ("This line is ok : " + oPhysicalScreen.GetID());
trace ("This line gives me an error : " + oPhysicalScreen.GetIDFoo());
[Code] .....

View 2 Replies

Flex :: Append Submenus To An Existing FlexNativeMenu Instance?

Aug 12, 2011

I'm completely confused by this. An Adobe Flex WindowedApplication has a 'menu' property, which by default is assigned a FlexNativeMenu instance, which is used to create a native menu tree for the application.For example, on OS X, if I create a WindowedApplication, I get the standard 'application menu', 'File', 'Edit' and 'Window' menus created on startup. The question is, how do I append additional menus to this without creating an entirely new menu? I want to use the default OS X menus as a starting point and add my own. If I assign menu = new FlexNativeMenu; I just get a completely empty application bar with no menus at all.

View 1 Replies

Actionscript 3 :: Create A Swc File For Existing Flex Application

Jan 24, 2012

I had flex project with few action script files.I want to make the project as swc file. So can i know how to create it as swc file.

View 2 Replies

Flex :: Use TextMate With Existing Projects Created In Flash Builder?

Jul 23, 2010

I am wondring if anyone has a good resource for opening existing Flex projects that where created in Flex / Flash Builder and run them using the TextMate bundle for Flex and Actionscript projects.

Basically I just want to know if I can walk into an existing project and configure this easily or am I pretty much stuck with using Eclipse ?

View 1 Replies

Java :: Implementing Role Based Authorization For Existing App In Flex

Jul 9, 2011

I have an application that is coded using Flex 3 on UI side and java @ the service layer, along with BlazeDS. Now we need to authorize the users accessing the system based on the roles that are defined for them in the database, e.g. : say a user with role guest should not be able to access Admin tab on ui and also should not be able to do any operations other than viewing the data displayed on dashboard. Also the point to note here is that roles can be created dynamically by Super users from UI. I came across this link which describes how to perform Role Based Authentication & Authorization. With this approach I need to define the roles in service-config.xml but since my roles are not pre-defined I cannot go with this.

View 1 Replies

Android :: Upgrading And Existing Flex Application Using The Mx Library To Work?

Aug 12, 2011

I am trying to make my flex app work on Android, and that involves making an AIR app to run on Android. Seeing as the flex app needs the mic, an AIR app is required. I am using flash builder 4.5 on win7 with air 2.6. The trouble seems to be that most of it is now not available. For example mx.containers is there, but not mx.containers.viewStack. I notice that there are obvious equivalents in spark for some components but not others. VBox, HBox, Canvas VDividedBox, AdvancedDataGrid and associated custom renderers are the components my application uses the most. What is the fastest way to make this work on Android, I am under time pressure. Is there a site somewhere that recommends the best way to do this, and what components can be replaced with which?

[URL]

View 1 Replies

Flash :: Builder - Know Exact Flex Sdk Version From Existing Project Files?

Nov 23, 2011

I received an inheritance old flex project. I've never worked with Flex. I installed the latest Flash Builder and I need to know the exact version of used Flex SDK. Is there any way to know used SDK version from project files?

View 2 Replies

Flex :: Use Existing Tools To Facilitate Process Of Changing Data On Server Using DataGrid?

Aug 18, 2009

It is very simple to retrieve data from a database and display it inside a DataGrid. However, what are the current practices to push the changes in the DataGrid back to the database? One can achieve this by inserting a lot of meta information, however, it is very tedious and not reusable.

View 4 Replies

Flex :: External SWF Variable Updates Global Variable In Main Timeline?

Feb 8, 2010

I have 2 movie clips, one being loaded into a container MC via "loadMovie();"In the main movie there is a variable with no value, in the external movie there are 5 frames, each with a value to update the variable in the main movie.

IE: if on frame 1, global value = 1 / if on frame 2, global value = 2 / etc etc I'm familiar with passing variables INTO an external swf, but am stumped on how to do it the reverse way.

View 1 Replies

Flex :: Store ColorPicker Value In A Variable And Bind The Variable To A TextInput

Dec 11, 2009

I would like to store a hex colorPicker value in a variable and then cast the value of the var backout to a textInput. The textInput is just to see witch hexcolor i have choosen.

thus meaning seeing 0x000000 in the textInput.

what i've done now is pretty simple i have bound the flex colorPicker directly to my textInput. but i want to store the value from the colorPicker in a var first and than spit it backout to the textInput to see the value that i have picked.

When i pick a color value that begins with the number 0 it drops the 0's at the beginning of the number and only spits out the numbers greater than 0. (000033 becomes 33, FF0000 stays FF0000). I want to catch the whole value or write some kind a function to figure out how many 0's got dropped and concatenate it together with 0x. Store that all into a var and bind it to the flex TextInput.

This is what i've got.

<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"

[Code].....

View 1 Replies

Flex :: Importing Existing Flash .xfl And .as Files Into Flash Builder 4?

Nov 6, 2010

I got a XFL file, its library files and AS files in a directory.I would like to use Flash Builder 4(FB) for editing AS files, running the compiled SWF and profiling.When I created a New->ActionScript project in FB, I could edit the AS files but didn't know how to link the XFL file and run them.When I created a New->Flash Professional Project, I was prompted for a XFL file, and although the chosen XFL file and the AS files are in a same directory, the AS files are not automatically included in the project. I couldn't find a way to add exiting files in the project either.

View 1 Replies

Flex :: Access Member Variable By Using A Variable In The Name?

Aug 17, 2009

How can I access the member variable of an object by using a variable in the name.Example:

Entries Object has properties 1, 2, 3, 4, 5.
Normally I would access them by
var i : int = Entries.1;

[code].....

View 1 Replies

ActionScript 3.0 :: Flex - Construct A Derived Class Instance From An Existing Base Class Instance?

Jan 22, 2010

I have a base class which is being created via remote_object [RemoteClass alias] from the server.I have other specialized classes that are derived from this baseclass, but serialization with the server always happens with the base class.The base class has meta data that defines what the derived class is, for example

[RemoteClass (alias="com.myco...')]
public Class Base
{

[code]....

View 2 Replies

ActionScript 2.0 :: Create A String Variable...and Then Use The Value Of That Variable To Declare Another Variable?

Jan 3, 2006

f you know PHP...then you know that you can create a string variable...and then use the value of that variable to declare another variable. like this:

PHP Code:

<?php$foo = "haha";$i{$foo} = "success";print $i{haha};?>

and it would display "success"...or like this:

PHP Code:

<?php$foo = "haha";$$foo = "success";print $haha;?>

and it would also display "success".

View 6 Replies







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