Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Flex App not initialized on some browsers?

Posted on 2010-08-23
2
Medium Priority
?
672 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 …
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

688 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