Solved

Flex App not initialized on some browsers?

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

730 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