Solved

Flex App not initialized on some browsers?

Posted on 2010-08-23
2
663 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

932 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

19 Experts available now in Live!

Get 1:1 Help Now