Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 03-20-2012, 04:32 PM   #1
JSVM
Registered User
 
Join Date: Mar 2012
Posts: 2
Default Why a MovieClip disapears randomly in FireFox and Chrome from an AS3 flash web app?

Hi everybody,

I'm not sure it's the good section to post this thread but I take a chance.

The AS3 flash web application is preloaded by a AS3 flash preloader.

When I run the application on an HTML web page with Firefox or Chrome, the MovieClip that should be always displayed at the foreground to show the progression, disappears, reappears, disappears partialy and randomly. With Internet Explorer, it's work fine. Nothing in the application can cause that or mask/hide the MovieClip. I try this on 3 computers.

I realy don't understand what's happen there.

Firefox 10.0.2
Chrome 17.0.963.79 m
Flash Player 11.1.102.63
Internet Explorer 9.0.8.112.16421

I think something in the HTML goes wrong but I can't find it.

That's the way I embed it :
Code:
<html lang="en" xml:lang="en">
    <head>
        <title>Application</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style type="text/css" media="screen">
        html, body { height:100%; background-color: #ffffff;}
        body { margin:0; padding:0; overflow:auto;}
        #flashContent { width:100%; height:100%; }
        </style>
    </head>
    <body>
        <div id="flashContent" align="center">
            <object data="loader.swf" type="application/x-shockwave-flash" height="800" width="1200">
                <param name="movie" value="loader.swf" />
                <param name="quality" value="best" />
                <param name="bgcolor" value="#ffffff" />
                <param name="play" value="true" />
                <param name="loop" value="true" />
                <param name="scale" value="noscale" />
                <param name="menu" value="false" />
                <param name="devicefont" value="false" />
                <param name="salign" value="" />
                <param name="allowScriptAccess" value="sameDomain" />
                <p>Alternate content goes here</p>
            </object>
        </div>
    </body>
</html>
Thank you for your future help.

PS: English is not my native language. So, if you don't understand this, I will try to explain better.
JSVM is offline  
Old 03-21-2012, 02:35 AM   #2
adninjastrator
Senior Member
 
Join Date: Feb 2010
Posts: 220
Default

Hopefully that is not the actual HTML... because for starters, there is no DOCTYPE declaration:
http://www.w3schools.com/tags/tag_doctype.asp
But if it's a preloader problem, then it's most likely an error in the Flash preloader itself.
Please post a link to the actual page so we can test and diagnose for ourselves.
Best wishes,
Adninjastrator
adninjastrator is offline  
Old 03-21-2012, 03:42 PM   #3
JSVM
Registered User
 
Join Date: Mar 2012
Posts: 2
Default

I finaly find it. It was not an HTML issue like I trusted.

In the AS3 flash app, I created 2 functions, the first to init after the app is loaded to start the sounds and images loading, the second to start the app when all sounds and images are loaded. But, like a noob, I put the interface display function in both funtions. When I tested it directly in flash, it's worked fine, but with a web browser like Firefox and Chrome, the display issue happen. When I tested it with Internet Explorer, it's worked fine too. So, I started to think it was an HTML issue.

So, I just remove the interface display function from the start function an now it's realy work fine.

Thank you for your help and I will try to be smarter next time.
JSVM is offline  
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:33 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.