Flex :: Initialize() Or CreationComplete() Method Not Invoked When Revisiting The Page?

Dec 17, 2010

In my flex application I use the viewstack.selectedchild() property to change the views.

When I revisit the views by the viewstack.selectedchild() property the initialize method doesnot get invoked..

View 5 Replies


Similar Posts:


Flex :: Performance - Six Seconds Between Initialize And CreationComplete

Apr 4, 2011

I'm working with a large flex applications and I have noticed that one of our largest components (with lots of child canvases) takes about 6 seconds between the initialize and creationComplete events. I've been doing some reading and have found that having lots of nested canvases can cause slowdowns, but i'm not sure if this is where the slowdowns would be?

View 3 Replies

Flex :: Initialize Some Variables After CreationComplete Event Is Dispatched?

Mar 7, 2011

I tried to send some services to fetch data in the creationComplete handler. Then I need to process the server raw data before displaying some sub components. Where should I put these kind of code?

View 2 Replies

ActionScript 3.0 :: Notify A Scene When A Method In Document Class Has Been Invoked?

Jul 16, 2010

I have a SWF file having different scenes. This swf has one document class. I want to notify an event to a particular scene, when a change is happening in any function in document class. For example:

I have 3 scenes in an SWF and one document class. When a function will be invoked (from lower layer) in document class, I want to disable the button controls in Scene 2. How this is possible?

View 7 Replies

.net :: .NET MVC Controller Action Not Invoked By GET Or POST From Flex App

Mar 3, 2010

A flex app running in a view of my .NET MVC app can load data fine from another route, but submitting data via either POST or GET never invokes the controller action. Interestingly, the only way I can get the action method to fire is by passing intentionally malformed post variables in the http request. Odd. Content type is application/x-www-form-urlencoded and I have set authentication to "None" in web.config with no improvement.

View 1 Replies

Flex :: Use Tweenlite Effect To Be Invoked In The ShowEffect/hideEffect Of A Canvas?

Aug 27, 2011

How can I use Tweenlite effect to be invoked in the showEffect/hideEffect of a Canvas?

View 1 Replies

Actionscript 3 :: TileList CreationComplete In Adobe Flex 3.0

Jul 3, 2010

I have made a tile list is Adobe Flex as follows

[Code]...

the problem is the creationComplete event is not fired for each PageImageRenderer, and it is fired only for the tiles visible at start so the rectangles drawn in initComponents() is only drawn for those tiles with valid values, and when I scroll to next row using scrollToIndex() function the rectangles are shown with previous values. and no initComponents() is called for these tiles? however the data.name, data.class are correctly displayed but not the rectangles, why it is so? What is the proper event against which I should call initComponents()?

View 1 Replies

Flex :: 4 AddElement Or Something Wrong With CreationComplete Event?

Aug 19, 2010

I am using the new Flex4 Spark stuff but I'm stuck at an awful problem. Let me explain a bit of the situation first. I have a container (mx:Canvas) in which I do addElement() of one type instances (DocumentWindow). The document window class is supposed to be the holder for a view according to the type of the document. The DocumentWindow class extends TitleWindow. I also have a task bar which is a mx:Canvas with buttonBar inside so that the windows should be switchable. So in 2 words I got windows holder and a taskbar. The strange thing comes now: When I put a DocumentWindow with type "doc" (which loads swf made by swftools) the window appears in the windows holder and as task on the taskbar.

But if first I open something else - DocumentWindow with type audio or video which causes the DocumentWindow to instantiate different view inside, the window doesn't appear on the screen neither a task button is being shown in the taskBar. I put a trace() on that and it shows that numElements is increasing, the taskBar ButtonBar.dataProvider.length is increased, so the things are there - just that they stay invisible until I open DocumentWindow with type 'doc'? I even tried to make DocumentWindow not to load the view inside because I thought that the only difference is the view... but then even the 'doc' typed DocumentWindow didn't show. A clue may be that creationComplete is never called until a 'doc' view is added.

[Code]...

View 1 Replies

Flex :: Difference Between CreationComplete And ApplicationComplete Event?

May 16, 2011

I didn't get the difference between those two event.What is the difference between them ?

View 3 Replies

Flex :: Flex CreationComplete() Not Executing For Certain Machines

Jul 26, 2011

I have a creationComplete="myMethod(event)" in my s:Application, and it runs fine on my 3 flex (Flash Builder 4) development machines. However it is not working on the 2 end user machines I tried it on today!

It is not executing the creationComplete at all, but it is running the application and it seems like all the other code is running fine - with the exception of possibly some other creationComplete code for other components in the app.

On my machines I have tested it under IE 8 and 9, FireFox and Chrome - on all 3 machines.

On these two machines it has the problem on both IE 7 and IE 8. I even installed FireFox new and it also has the issue. After installing the latest flash player and deleting all browser history/cookies it still has the problem.

What might cause the creationComplete to not execute?

Update: I tried using initialize() and no difference.

However, I believe I found the line of code causing the problem:

var isDebug:Boolean = new Error().getStackTrace().search(/:[0-9]+]$/m) > -1;

If I comment that out, it works fine. I need that to know if my app is running in development/debug mode or on an end users machine.

View 2 Replies

Actionscript 3 :: Flex Instantiated Object / Wait For CreationComplete

Nov 12, 2009

I have a simple component I created which I instantiate in my main program like so:[code]I receive the error "Cannot access a property or method of a null object reference" on the second line because newMessage was not fully created prior to hitting the second line of code trying to set my "body" textarea's text. I know I can build a "creationComplete" event handler, but isn't there a simpler way to do this?

View 2 Replies

Flex :: Events - 4 States IncludeIn And Component CreationComplete?

Feb 2, 2011

I have a component that, once it's all ready, I need to set the state based on a variable I'm reading in from XML. I tried doing it with creationComplete, but it's apparently not ready, as the state isn't being set with elements rendering properly, but the states & rendering work fine if I do a subsequent state change with a click action on some element.

What should I do in this situation to make sure the state gets set at the right time & elements that should appear due to includeIn exist so they can be rendered? initialize instead of creationComplete doesn't seem to do the trick for the first time the component is created. Any successive calls to the component are fine.

View 3 Replies

ActionScript 1/2 :: Revisiting: Referencing A MovieClip Using A Variable?

Jun 15, 2009

This is a problem I thought I understood and was addressed in a previous thread [URL] but I have a new situation where the old solution isn't working.I have 3 instances on a "nested" movie clip. Their instance names are: b1, b2, and b3. When I trace these movieclips from the main timeline, I get:
 
trace(b1); // result = _level0.slide_mc.newMC.b1
trace(b2); // result = _level0.slide_mc.newMC.b2
trace(b2); // result = _level0.slide_mc.newMC.b3
 
From the main timeline, I want to fade up these movieclips using tween, but I need to do this by building the instance name in a variable:

var myInstance:String = "slide_mc.newMC.b"+ instanceNumber //(instanceNumber is equal to 1, 2, or 3)
 
Now, I thought using the variable in this manner would work:

new Tween (this[myInstance], "_alpha", None.easeNone, 0, 100, .5, true);

...but it doesn't.
 
I've checked trying to use the actual movie clip instance:

new Tween (this.slide_mc.newMC.b1, "_alpha", None.easeNone, 0, 100, .5, true);
 
...and it works fine.

View 2 Replies

Flex :: LoaderInfo Null Inside CreationComplete Handler Function?

Apr 30, 2010

I've coded this small snippet to show what I'm not understanding:

[Code]...

Shouldn't I be able to read loaderInfo inside the creationComplete handler? I'm trying to pass a string from the html to my flash component, that's why I have to get loaderInfo working.

View 1 Replies

Flash :: Flex - Registering A Function As Callback Using CreationComplete Event Fail On Linux?

Jan 13, 2011

I have created a flex project on flash builder 4. In the MXML I have

xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init();"

And to check if it runs

[Code]...

View 2 Replies

Flex :: Setting Spark DataGrid Column's Default Sort On Application's CreationComplete

Sep 8, 2011

I have a spark DataGrid component with several columns and I want to have my application default to descending order on the first column in the DataGrid. I would like to use the built-in default sort that occurs when clicking the top header once. I have no need to sort the ArrayCollection I'm working with or change what the comparators are.I also want any user-generated sorting such as clicking on a different column's header to override the default sorting.

View 1 Replies

Flex :: Call A SortCompareFunction On Initialize?

Dec 3, 2009

I want to call the sortCompareFunction for a particular row when the grids first loads. Is this possible? Otherwise is there a way to call a sort method on grid load after it has been asssigned the dataprovdier has been updatad

View 2 Replies

Flex :: Sqlite3 - Using ApplicationComplete And Initialize Together?

Sep 26, 2011

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

[Code]....

Is that because i used both applicationComplete and Initilize together ?

View 1 Replies

Flex :: Tab Navigator Initialize Hidden Tabs?

Dec 2, 2009

My problem: I have a tab navigator, with many forms in each tab. But I have a single global save button.Problem is, if I don't open a Tab, it doesn't get initialized and therefore the forms it contains do not exist..

How Can I make it as if the user had clicked on every tab?

View 2 Replies

Flex :: Initialize Loading Event On Program?

Jul 15, 2010

what the onLoad() or similar Event is in Flex? I'm trying initialize, but no joy.

[Code]....

View 2 Replies

Flex :: Initialize Two-dimentional Typed Vector?

Aug 15, 2010

How can I initialise two-dimentional typed Vector is AS3? Now I can get working only this:

private var _mainArray : Array = new Array( MyConst.DIMENTION );
public function MyArray()
{[code].....

View 1 Replies

Actionscript 3 :: Initialize Data On Flex AIR App Statrup?

May 18, 2011

I have an AIR app, which keeps its settings stored on the disk.Now, when the application starts, i need to read these values from the disk file and populate the variables in my ModelLocator. My doubt is where to put this code during the App Lifecycle. I have it currently on applicationComplete. Since i am not making any updates to the UI in this code, can i move this initialization code to the 'initialize' event and thereby speed up the startup time?

View 1 Replies

Flex :: Override Public Function Initialize() Error?

May 6, 2011

i want to know what i should put befor .mx_internal

override public function initialize() : void
{
var target:DialogButtons;
var watcherSetupUtilClass:Object;

[Code]....

View 2 Replies

Flex :: Initialization - Completely Initialize A Component But Not Add It To The Display?

Dec 20, 2011

I need to completely initialize a custom component in my Flex app (i.e. I should be able to access it from action script and get its properties and its children etc), But I do not want to add it to the display or make it visible. I have tried to add it to my visible component, but keep it visible, but often many of its properties are set only when it is drawn, so i don't get what i need. Is there a way to add a custom component to some sort of 'Virtual' display, that is not visible to the user?

View 3 Replies

Flex :: Initialize And Make Condition For 2 Variables In Single For Loop?

Oct 28, 2010

How to initialize and make condition for 2 variables in single for loop in Flex let keep i and j are two variables

View 2 Replies

Flex :: S:WindowedApplication Is Empty And Does Not Initialize / Show Child Components

Jul 5, 2011

I have quite some experience with Flex and I am just starting to write my first AIR application and would like to use as much Spark as possible here. So I started withe a simple Hello World application:

[Code].....

Unfortunately this simple example shows no child components and even none of the initialize handlers is triggered. However as soon as I change the root tag to mx:WindowedApplication everything behaves as expected: The label and the button are shown and the console shows the output of the two trace statements.

View 1 Replies

Flex4 - Flex Spark Tabbar Initialize Hidden Tabs?

Sep 24, 2011

problem is I have a spark Tabbar, with many forms in each tab. But I have a single global save button.problem is, if I don't open a Tab,it doesn't get initialized and therefore the forms it contains do not exist..

How Can I make it as if the user had clicked on every tab?

View 1 Replies

Actionscript 3 :: Make Input Text Control Ready For Input On CreationComplete In Flex/MXML?

Mar 19, 2012

I have the following Application tag code in my widget:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*"
width="100%" height="100%" minWidth="200" minHeight="200" layout="absolute"
creationComplete="init()"
defaultButton="{Send_btn}">

[Code]...

View 1 Replies

Web Services - Initialize Webservice WSDL At Runtime Using Flex And Mate Framework?

Mar 17, 2010

I am developing a Flex application on top of Mate framework. In this application, I am using a webservice to retrieve data.As this webservice as not a fix location URL (depending on where customers installed it), I define this URL in a config file.When the Flex application starts, it first reads this config file, then I would like to use the value I found to initialize the webservice.But currently, I have no idea how to this.

[Code]...

View 3 Replies

Flex :: Sequence Flex/Actionscript Method/function Method Calls

Aug 11, 2011

OK, from what I know actionscript in Flex runs asynchronously. I need the ability to run a method in a loop synchronously. Consider this code:

public class CustomerContainer extends VBox
{
public function CustomerContainer ()
{

[Code]....

This is not my exact situation as it is a bit more complicated to explain here. There is an abstract class and several custom view objects derived from it. Some of the views are dependent on others being completed first but I cannot seem to order them in the correct order. TIMERS are not an option. Probably not explaining this correctly.

View 2 Replies







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