Solved

Flex App not initialized on some browsers?

Posted on 2010-08-23
2
667 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

617 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