Solved

Flex App not initialized on some browsers?

Posted on 2010-08-23
2
662 Views
Last Modified: 2013-11-11
Not really sure what happened but I've got 2 different PC not running my flex app.
The app is the simplest one (just display Alert on initialization). Therefore on some of the browsers the flex app does not run init() function.
What is strage if I check in JavaScript for the object - it does exists (returns [object HTMLObjectElement] with the proper id. So it is there, loaded but did not run init() ... what am I missing?

1st PC:  Win7 64bit
works: Opera 10.61 (flash: 10.1.82.76)
works: FF 3.6.8 (flash: 10.1.82.76)
doesn't work: IE 8 (flash:  (flash: 10.1.82.76)
doesn't work: Chrome 5.0.375.127 (flash: 10.1.82.76)

2nd PC: Ubuntu 9.10 64bit
works: Chrome 6.0.472.36 beta (flash 10.0.r32)
works: Opera 10.61 (flash: 10.1.82.76)
doesn't work: FF 3.6.8 (flash: 10.0.32.18)
<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundAlpha="0" initialize="init()">

<mx:Script>

  <![CDATA[

    import mx.controls.Alert;

    public function init():void { 

      Alert.show("1");

    }

</mx:Script>

</mx:Application>

Open in new window

0
Comment
Question by:LGDE
2 Comments
 
LVL 4

Expert Comment

by:andreMariano
ID: 33502037
use creationComplete instead
0
 

Accepted Solution

by:
LGDE earned 0 total points
ID: 33615652
thanks andreMariano, your comment was useful for other part of my app but the issue was bit different - caching. Some browser no matter what I tell them, they still cache the SWF (seems to be most issue with Chrome) so I ended up adding random file name: "file.swf?rand=rand()" maybe it is a problem of creating SWF with SWFObject or browser itself ...
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now