ActionScript 2.0 :: _root.onLoad Not Working In Firefox?

Mar 4, 2005

I have a very, very simple thing in Flash that just will NOT work in Firefox and it's driving me nuts. On the very first frame of the root, I have the following code:

Code:
this.onLoad = function() {
_root.createTextField("test1_txt", 10000, 0, 0, 300, 100);
test1_txt.text = "WORK!!!";

[Code]....

This works all right but again, it's a hack, and I'd rather avoid using a hack like this.

View 1 Replies


Similar Posts:


ActionScript 1/2 :: OnLoad Working At _root Level But Not At Mc_target Level?

Aug 26, 2010

I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF.  Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1.  When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1.  However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not.  Here's my AS2 code:
 
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{    trace("loaded"); //This works    removeMovieClip(mc_Empty1.mc_FadedBg); //This works}

[code]....
 
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not. 

View 3 Replies

ActionScript 3.0 :: Flash Website Not Working On Firefox On PC But Works Fine On FireFox On MAC?

Jul 21, 2009

works perfect on my macbook pro (safari, firefox, and opera) but when I view the site on Vmare Fusion Windows XP and use IE and FireFox the pages don't load... I don't know what to make of this. Has anyone hear or seen anything like this happen before? BTW the website was created in Adobe Flash CS4/ AS 3.0 and published using Flash Player 10.

View 2 Replies

Professional :: Button Link Not Working In Safari, But Working In Firefox?

Apr 18, 2011

[URL]
 
The ad on the bottom right of the screen (the one with lightning flashing) has an invisible button in its Flash file (CS5) linking to [URL]. This file is imported as SWF in Dreamweaver CS5.
 
The hyperlink works in Firefox, but not in Safari. Maybe it is just my computer.

View 1 Replies

ActionScript 2.0 :: If(_root.currentframe Not Working?

Feb 10, 2009

I can't seem to get... if(_root.currentframe to work. It just doesn't seem to recongnise what the _root frame is and won't goto the desired frame.I've attached a simple flash example which is very basic with a button inside a mc that asks the _root for the frame and if it's on frame 1 then should goto frame 5 - but it doesn't work. I've added a trace and that's returning the correct frame so it knows what the frame is.The actionscript on the button is..

on(release){
trace(_root._currentframe);
if(_root.currentframe == 1){

[code]...

View 3 Replies

ActionScript 3.0 :: _root.MyVar Not Working ?

Feb 1, 2010

if i have embeded swf like myswf.swf?myVar=test.txt ,i get by _root.myVar (test.txt)how can i get this parameter in AS3? I have searched google but no success

View 3 Replies

ActionScript 2.0 :: If (_root._currentframe != 6){ Is Not Working?

Jan 8, 2007

this code should work, but doesn't. Am I missing something? I'm simply trying to disable the button "cardSearchBtn" when the root timeline enters frame 6 (along with two other play actions).

Code:
if (_root._currentframe != 6){
cardSearchBtn.enabled = true;[code].........

View 2 Replies

ActionScript 2.0 :: Referencing Something In _root Not Working

Nov 13, 2007

I have a class 'resizingObject', with a method 'addFunction()', which is instantiated in _root as 'resizer' (im certain of this - ive checked in the debug - variables list)

I then have another class, 'layerObject', that i want to be able to call the 'addFunction()' method - so inside the layerObject i tried _root.resizer.addFunction(), _level0.resizer.addFunction() and all manner of other business but to no avail...even an attempt to trace _root.resizer returns undefined.

why cant i acces the resizer instance of the resizingObject?

View 1 Replies

Professional :: Swf Not Working In IE 8 / But Working In Firefox / Chrome

Jul 26, 2010

I have just made a website (URL...), and I have two swf. One sound swf and one video swf but none are loading in IE? Anyone know what wrong?

View 1 Replies

ActionScript 2.0 :: OnClipEvent + _root = Sliding Pages Not Working

Feb 2, 2009

I'm having a tough time with a page sliding clip, and not sure what to do.

I've got a movieClip with a page sliding effect that I found here at Flash Kit. It's perfect for what I need, however the effect will only work in that movieClip. Once you try to load that movieClip from anywhere else, the sliding no longer works.

Here's the code that's on the image clip:

Code:
onClipEvent (load) {
_x = 0;
_y = 0;
spd = 5;

[Code]....

View 1 Replies

ActionScript 3.0 :: _root, _level... Not Working In Loaded File?

Feb 5, 2009

I have loaded as2 swf in as3 using Loader object. Loading is done fine, but the problem is that the as2 swf uses stuff like _root, _level1.. etc. that doesn't work in as3. So is there any way by which I can make as2 swf work properly inside as2? I have bought some readymade as2 swf and need to use them here. I dont have the as2 fla so can't make any changes in them...

View 9 Replies

ActionScript 2.0 :: Change The _root.broj And _root.logo Variables Inside The Function?

Jan 14, 2010

In the code below i want to change the _root.broj and _root.logo variables inside the function which returns values from .php file. Inside the function everything works fine and all values are correct but when i trace var broj outside the function it's still 0.

var result_lv:LoadVars = new LoadVars();
var send_lv:LoadVars = new LoadVars();
var broj:Number=0;
var logo = new Array();

[Code].....

View 1 Replies

ActionScript 2.0 :: _root.cargo Are Multipled By 10 And Added To _root.totalscore?

Feb 27, 2003

im lookin to make this so that the points taken from the _root.cargo are multipled by 10 and added to _root.totalscore

[Code]...

View 2 Replies

ActionScript 2.0 :: _root._root[eelmine].nextFrame()?

Sep 14, 2004

if a condition is true, then:_root.(MC with instance name that is the value of "_root.eelmine").nextFrame(); is this correct?_root._root[eelmine].nextFrame();

View 16 Replies

IDE :: GetURL Not Working In Firefox?

Oct 14, 2009

I have an _Xslide gallery that I need to make each photo link to an absolute URL. Works fine on IE but FireFox dosnt function at all. I can get it to work if I "_blank" but then it is applied to both browsers. The requirement is that the gallery function in the same window for all browsers.This swf is hosted in an "included" html file...where the swf does not live in the same directory...although I have tried that also but to no avail.

Ive also tried "_top", "_parent", "_self"
heres the AS...
one_mc.onRelease=function(){

[code].....

View 1 Replies

IDE :: Flash Not Working In New Firefox?

Mar 10, 2011

ive created my website and majority of it is flash. The problem is it that it works in every other browser except mozilla firefox and I usually get the message saying i need to install the latest flash version or update. I did that and it still doesnt work. It is my portfolio website so i need to resolve this on my end so when potential clients or employers look at it it works and they dont need to change any settings if that is the problem...but i also tried that and it didnt work (making it a trusted site, enabled javascprt)

View 3 Replies

ActionScript 2.0 :: Button Not Working In IE But Does In Firefox?

Feb 28, 2009

Quote:

on (release) {getURL("http://paulmillichip.com/1stop/transferprem1.php?pos=GK&playerid=premGK1&playerou tfield=premGK1value","_self","GET");
}

That's my code.. how come it works in Firefox but not IE?

View 1 Replies

ActionScript 1/2 :: Flash Not Working In Firefox?

Dec 9, 2009

When using SWFobject everything works fine in Safari and IE. Firefox plays sound but not imagery from flash? is the problem with SWF object or something else? Here's the source code.
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

[Code].....

View 1 Replies

Professional :: Flash Not Working With Firefox?

Aug 27, 2010

I downloaded flash to my new computer and videos will work using IE but when I try with firefox it acts as if I don't have it installed  (says "download flash here,etc. ) and videos wont play.

View 1 Replies

ActionScript 3.0 :: Not Working In Firefox & Chrome?

Mar 28, 2012

This is working fine in IE but not working in firefox & Chrome browsers
 
var pageURL:String      = ExternalInterface.call("window.location.href.toString");
if(pageURL == null)
{

[Code]....

View 3 Replies

ActionScript 2.0 :: Flash 8 Not Working In Firefox 3.0.19?

Sep 29, 2010

am having lot of movieclips and buttons in my swf.If you click each one ,it will execute one function.But in firefox 3.0.19 my swf not working.ie.,mouse cursor coming differenly and even if click nothing happend.

View 1 Replies

Flash Not Working Properly In Firefox And IE

Mar 4, 2011

I sorted this problem before, but it's back again.

Both of my animations work fine in firefox, but don't loop in IE.

ABOUT ME [URL]

KZX ANIMATION 2ND FROM BOTTOM [URL]

confirm that these animations don't loop properly in IE?

View 2 Replies

IDE :: ExternalInterface.addCallback Not Working In FireFox?

Jun 26, 2008

I have set up a function in Flash that i want available to Javascript.

Code:
function OpenBrowse():Void {
...
}
_trace(flash.external.ExternalInterface.addCallback("OpenBrowse",null,openBrowse));

[code].....

View 3 Replies

ActionScript 3.0 :: Display.Loader Not Working In Firefox?

Mar 14, 2012

I just inherited some code that produces an embedded rdio music player into a swf. It works great in firefox and safari, except the embedded player does not appear in Firefox... Is this a common issue with the Loader class or contentLoaderInfo events?

import flash.display.Loader;
import flash.display.Sprite;
import flash.display.StageAlign;

[code].....

View 1 Replies

Flash :: Copy To Clipboard Not Working On FireFox?

Jan 15, 2010

I had implemented copy to clipboard functionality. It is working fine with all version on IE but not working in FireFox.Detail are

<script src="../../Scripts/JQPlugins/jquery.clipboard.js" type="text/javascript"></script>
<script src="../../Scripts/JQPlugins/jquery.clipboard.pack.js" type="text/javascript"></script>

[code]......

View 1 Replies

Actionscript 3 :: SendToURL Working In Firefox But Not IE Or Chrome?

Dec 28, 2011

I am building a login page for my website. Right now it is very simple, but it only seems to work in Firefox and I have no idea why. Here is where it seems to be breaking. The code sends the user's login information to login.php which will eventually check it with the database and then sends the user on to a welcome page.The user gets to the welcome page, but the information never seems to be sent to login.php when the user is using Chrome or IE.

[Code]...

View 1 Replies

ActionScript 2.0 :: SetInterval Javascript Not Working On Firefox

Jan 18, 2009

I have a very odd issue with Firefox 3. Take the following code

ExternalInterface.addCallback("startAds", null, startAds);
function startAds() {
debug("Calling startAds");

[Code].....

The startAds function is called from javascript. When run in IE 6 & 7 everything works fine. When run in Firefox 3 i can see it enter the function and even assign and intervalId but the function set in the setInterval function never gets called. If i call setAds from actionscript and run it in Firefox 3 it works ok. Its just when the startAds function is called from javascript in Firefox 3.

View 2 Replies

ActionScript 3.0 :: URLLoader Not Working With Firefox Or Safari

Sep 18, 2009

i have this problem, the urlloader is supposed to stream some binary data to the server (upload) but it doesn't seem to work with anything except Internet Explorer!
I have tried it with Safari (only on mac!) on Firefox (on mac and on windows!) and on Chrome![URL] and these source is:

[Code]....

View 1 Replies

ActionScript 3.0 :: FireFox 3.6.4 Full Screen Not Working

Jun 25, 2010

Today the FF version was updated automatically to 3.6.4 and to my surprise none of my files work anymore in full screen mode, the files go full screen but you can't interact with anything.Dose anybody know the reason for this, there is some work around to fix this? Any help is appreciated.

View 2 Replies

ActionScript 3.0 :: Drag & Throw Not Working In Firefox?

Jan 29, 2012

I have a drag & throw style horizontal content scroller with ease movement that works great in other browsers but dosn't seem to want to work in Firefox 9.0.1. on a mac. Has anyone had this problem and if so what can be done to fix it?

View 0 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved