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


Similar Posts:


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

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 :: 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 :: 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

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

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

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

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

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 :: Stop A Web Service From Executing?

Jan 12, 2010

is it possible to stop a web service from executing?

I have a flex web application that searches clients with both full name and client id, when searching by name sometimes the usuer just types the last name and it takes a long time.

Since the app is used when clients are waiting in line, I would like to be able to stop the search and use their full name or id instead, and avoid waiting for the results and then having to search the user manually within the results.

I meant "web service" I actually meant mx.rpc.soap.mxml.WebService, I want to stop it from waiting for the result event and the fault event.

View 2 Replies

Flex :: When Does Executing Return False In SQLite

Sep 7, 2009

I've read the flex language reference: [URL]. This property is true if execute() has been called and not all of the results have been returned from the database. However, I'm having trouble understanding what that means exactly. I keep receiving an error:
Error #3106: Property cannot be changed while SQLStatement.executing is true.

I've tried creating an event handler for SQLEvent.RESULT, my thinking was that's how the results would get returned from the database and therefore executing() would return false - didn't work. Does this mean i'm trying to change my SQLStatement variable too quickly? how long does the execute() function take?

The code in question:
private function fileProgress(p_evt:ProgressEvent):void {
var char:String;
var line:String = "";
var counter:int = 1;
sqlStatement = new SQLStatement();
[Code] ....

Stream is a filestream. I'm trying to read a textfile and put every line into a new sqlite table row. I've also tried using sqlStatement.parameters as an alternative way to do my insert queries, but to no luck. that throws a different error:
Error #3110: Operation cannot be performed while SQLStatement.executing is true.

View 3 Replies

Flex :: Components - Executing A Function On Another View?

Jun 5, 2011

I have a headerbar.mxml that is displayed when user swipes_down in my app. The headerbar.mxml contains a button component I want to run an erase() in the main application window. The main application is a drawing app that contains an erase(). I just don't know how to call a function from another mxml view file. I thought it would be something like

click="{mainwindow.drawPanel.erase()}";
EDIT:
protected function onColorChange(event:List):void{

[code]......

View 1 Replies

Flex :: Parent Not Executing Child's Function

Jun 7, 2011

I have a main.mxml, child.mxml and headermenu.mxml. I click a button on the headermenu that dispatches an event up to the main.mxml which then executes a method in child.mxml. I know this works because I put an AlertDialog in the function I'm calling inside of the child.mxml. The child.mxml contains a drawingArea object that has an erase(). When I call this directly from child.xml it executes, however if I put drawingArea.erase() inside of the function being called by child's parent (main.mxml) nothing happens.[code]...

View 1 Replies

Flex :: Wait For A Couple Of Seconds Before Executing?

Mar 21, 2012

I want my code to wait for a couple of seconds before executing. So is there any function similar to sleep in flex?

View 3 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

Flex :: Executing Code After All Skin Parts Have Been Added?

Aug 19, 2010

I have several skin parts defined in a custom component and I want to execute some code after all parts have been added.Currently, my only idea is to use if statement in overrided partAdded method to test if all parts have been added. Something like this:

override protected function partAdded(partName:String, instance:Object):void
{
super.partAdded(partName, instance);[code]....

View 1 Replies

Flex :: Get Current Target Values While Effect Executing?

Jun 29, 2011

At a certain point in an effects execution i would like to execute some code.

Say for example that i have a move effect on objectA and half way through this effect i want to make objectB disapear.

Is there any functionality built in to the spark effects framework to do this or do i need to implement the effect myself by hand?

View 2 Replies

Javascript :: Executing Adobe Flex Without Using Browser Control?

Jan 3, 2012

I want to add scripting functionality to my Adobe Flex application. I know it's possible to use the Browser control, and add the script packaged as a HTML file to the Browser control, and expose Flex objects. However I'd like to if it is possible to execute JavaScript without using the Browser control.UPDATE: I guess my question hasn't been clear enough. I'll explain what I'm trying to do.I want to make my application customizable using JavaScript ie., add scripting/plugins to my application dynamically.I realize that it's possible to dynamically execute Javascript by inserting the JS code into the HTMLLoader control. I would like to know there is a direct way to execute JavaScript without inserting it into the HTMLLoader control.

View 2 Replies

Flex :: Changing Default Cursor When Executing Copy On An Item List?

Jul 26, 2011

I was trying to get the COPY cursor using DragMananger and event.preventDefault()- but got a very weird cursor behavior (the items' drop indicator was wrongly presented - etc.) Therefor i am trying to stick to default - this works fine - but my cursor now on copy is a simple arrow, and i would like to get the arrow with the grin plus on it

View 1 Replies

Actionscript 3 :: URLLoader Not Using The Same Web Session On Some Machines?

Apr 4, 2011

var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("http://domain.net/registerVideo.php");
var vars:URLVariables = new URLVariables();[code]....

The above client side code works for my machine(using the same web session),but not working for some other machines.

View 1 Replies

IDE :: Flash Displays On Some Windows Machines Not Others

Oct 21, 2009

I have tested the movie on ff (linux, mac, windows), ie, and safari.everything seemed to be fine. then one user tried to view it from his windows machine, and he had problems in both ff and ie.it was almost as if the flash movie was not transparent (the flash div overlays an html div.)and yes, i did set wmode to transparent.he is running xp, the newest flash, newest ff, and ie7. the other windows machines i've tested it on have the same.

View 1 Replies

IDE :: Flash Lagging On Slower Machines

Feb 5, 2010

I created this flash object, which preloads the file on the first frame before continuing to play, yet on slower machines it moves much slower then the 30 fps it is supposed to play at. The file is 1.2 MB in size. Using actionscript 3.

[URL]

View 1 Replies

Media Server :: FMS Looks Dead To Other Lan/remote Machines?

Mar 31, 2010

i set FMS running fine. I have even enabled TCP port forward, not that i need it localy.the thing is, from other machines the FMS wont answer. FME is going

rmtp://192.168.1.100/live/livestream
FMS is in 192.168.1.100 (same machine)

if i go from another lan machine, it simply wont connect.. nor does Access.log relates to anything trying to connect to it. (from other machine, from same machine everything goes smooth)

View 5 Replies

Professional :: Swf Published From CS5 Doesn't Load On Other Machines

May 22, 2010

I produced an ActionScript 3.0, Flash Player 10 swf in a newly downloaded CS5 (trial version). The file loads fine in both Chrome and Safari on my computer. But when I open it on another machine I only get five animated dots - ..... - in a "wait while loading" manner. The swf never starts. Same on my brother's computer.
 
My browser has Flash Player 10,1,52,14 installed along with CS5 (swf works). My other computer claims to have Flash Player 10,1,53,38 installed (swf doesn't work). My brother's computer has Flash Player 10,0,45,2 (swf doesn't work).I've tried various publish configs such as on/off xml meta data, on/off hidden layers, embed minimal or more of my font etc.When I configure for ActionScript 2.0 and/or Flash Player 9 my animation breaks totally.

View 1 Replies

Professional :: Fonts Display Wrong On Certain Machines

Nov 15, 2010

I am working on a large batch of banners with another designer. We are both using the same assets, the same version of Flash (CS4) and are both working on Macs. We are also both using the same fonts through Universal Type Client yet when I open files that he has produced the text elements display lower down than they should. If I align them correctly on my machine and then give back the file the text appears too high when he opens it. There are no font errors when the files are opened and the characters display fine except for the alignment. Does anyone know what might be causing this in Flash or is it an issue with the fonts themselves?

View 3 Replies

ActionScript 3.0 :: Communicate Between Flash Movies On Two Different Machines?

Apr 7, 2009

I want to communicate between flash movies on two different machines. Is this possible? Maybe with Flex? Also, can you open a windows command prompt with flash and send it commands?

View 1 Replies







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