ActionScript 3.0 :: My App Works But Not When Load It Into Another Swf?

Mar 11, 2010

I have a map application I've built using Flash CS4 and ActionScript 3 .as files. It's working fine on my local machine. I'm trying to build a preloader for it. My usual way of doing that is to create a shell .swf file which exists just to load the main movie and show the user preloading progress. Unfortunately, whenever I try to load in a movie that uses external .as files, stuff breaks. I'm assuming that it has to do with the LoaderContext and ApplicationDomain, but I've tried every ApplicationDomain option, and I always get the same errors.

In my map application, I've got a constructor function called Imap() that simply calls an init() function which then sets everything in motion. As I said, when I run the map app, things run smoothly. When I load it into my loader swf, I get (the functions trace out their names as they begin to run):

Imap()
init()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.[domain].imap::Imap/init()
at com.[domain].imap::Imap()

[code]....

View 2 Replies


Similar Posts:


IDE :: Preloader Works To Load On A Site?

Jul 15, 2009

I made a preloader that works perfectly to load one of my .swf's on my machine, but how do I make it work on a site? I'm mocking up a site currently just using local files.

View 2 Replies

Flash :: Unable To Load On Desktop (works On The Web)?

Aug 18, 2009

Experience with Flash: very very little (very) Version: CS4 Operating system: XP Pro. I was given an FLV file to display on the web. I imported the file into flash and exported it as an html file.

The movie worked great online, but then I was asked to save a copy of the movie on a CD to send it to a client - I saved all the files in a folder. I tested it on my computer and I was able to view the movie, but when the client loaded the html page, all they saw was a bar (that has the volume & play buttons) and a green line that scrolls across it. Here's what it looks like

Some people can load the html file and view the movie and others cannot (on their desktop). On some computers I tried updating the flash player (I removed the existing one first), but it still did not work.

As much as I'd like to be, I am not a Flash developer - I just use it to the extent that I must (the nature of my job) Did I provide enough information for someone to be able to tell what the issue is and how to resolve it?

View 6 Replies

ActionScript 1/2 :: Continue Use Of The First Swf Load - Only Works In IE ... Not Other Browswers

May 20, 2011

I have a swf banner that is resident on every page. It loads the first time when the home page is loaded. However, it keeps reloading everytime I change pages. I do not want it to do so. I want it to just continue use of the first swf load. I used the following code to solve my problem and it works great in IE, but not in Safari, Firefox or Chrome. modify or whatever so that the reloading of the swf is stopped in other browsers. code entered in frame 1 of AS layer

View 4 Replies

Flash :: Professional - Works But Movies Never Load

Aug 18, 2011

I created a simple Flash app that shows a menu on the side with 2 movie choices. Each movie choice is supposed to play a different movie. The whole thing works just fine on my local machine but when I upload to the test server, the movies never start. Near as I can tell the SWF loads and functions fine but the movies dont work... constant loading bar. Of course, I want them to stream in a YouTube-like fashion. I've fought with this for some time, tried .FLV files directly in DW (no joy there either) so I'm stuck. If I replace the movies with images, the SWF functions just fine. Just can't seem to do the movies.

View 3 Replies

ActionScript 2.0 :: Online RSS Load Only Works In Editor

Jun 29, 2009

im loading some RSS from twitter.. it works fine when i'm testing local, but when customer uploads it on 3rd part server, it doesent work. It's most likely a flash security issue. Is it possible to make a serverscript file that outputs the RSS to flash? Our server does have both ASP and PHP directories.. so any will do.

View 0 Replies

ActionScript 2.0 :: Load Xml Works Locally But Not Online?

Dec 6, 2009

I'm trying to load xml files on another domain on mine. This code works locally but not when i post it to my server. [code]...

View 0 Replies

ActionScript 2.0 :: Load Function Works Locally But Not On Webserver?

Mar 17, 2009

I finally finished my game and now whenever my game communicates with my php file/mysql database it fails when the file is being run off the server, but somehow it works fine when played locally.

Here is some sample code:

(This works locally, hence the full url for the load function. But it does not work on the server which I thought was strange.)

Code:
startupvars = new LoadVars();
startupvars.load("http://alexville.com/alexvillenetwork/startup.php");
startupvars.onLoad = function(success){
if(success){

[Code].....

View 1 Replies

ActionScript 2.0 :: Load() Function Works Locally But Not On Webserver?

Mar 31, 2009

I really want to finish this project that I'm working on, but this stupid problem keeps holding me back.

When I try to Load variables from my PHP file on my webserver from my local computer everything goes fine. But when the swf file is actually on the webserver the Load function fails to return any result with no error.

Here is my code:

Code:
Stage.scaleMode = "exactFit";
startupvars = new LoadVars();
startupvars.load("startup.php");

[Code]....

What happens after this code runs is that the text boxes dont get filled with ANY text, not even the Logged In As before the variable. So I guess the "startupvars.onLoad = function(success){" code is not being run.

View 1 Replies

ActionScript 3.0 :: Preloader Works But If Re-load IE Page It Hangs?

Apr 21, 2009

I have a preloader that works fine, but when I reload the Internet explorer page with F5, it hangs, it basically stays there... keeps looping, but does not move to next scene.If I close the IE window and relaunch or if I clear cache it works fien again.Thsi is the AS3 code I am using:

import flash.events.ProgressEvent;
stop();
root.loaderInfo.addEventListener(ProgressEvent.PRO GRESS, loadProgress);

[code].....

View 2 Replies

ActionScript 3.0 :: Can't Load File From Server With URLrequest, But Works Locally

Dec 22, 2008

I have made a XMLloader with URLrequest, and it works locally by calling the file directly by its name ie. "myFile.swf". var presLoader:Loader = new Loader(); presLoader.load(new URLRequest("myFile.swf")); addChild(presLoader);

But when I uploaded the loader to the server, I have no file, only "URL not found"-error. So I found out that I should change to URL to "/Files/Images/subloader/myFile.swf" then it will load. But thats a real problem, because I have several loaders.

View 1 Replies

ActionScript 3.0 :: Load An Assortment Of Random Old Flash Works To A Main Swf?

Oct 27, 2009

I'm trying to load an assortment of random old flash works to a main swf, to just grab bits and pieces from their libraries at runtime.the embedded code of the old SWFs is unimportant and subsequently throws misc errors when i load them in. So I'd just like to disable any external actionscript and really just load an SWF's assets for use.

View 3 Replies

ActionScript 3.0 :: Load Sound Via XML Works Locally But Can't From Website / Server

Jul 26, 2010

Anytime this .swf is ran from my computer during test runs it works flawlessly. As soon as It is embedded in an HTML page the sound doesn't play.

View 3 Replies

ActionScript 2.0 :: Custom Cursor Works Fine Until Load In XML Gallery

Jun 19, 2007

I have a custom cursor, all works fine until I load in my XML gallery. My cursor conflicts with the xml gallery, I know it's a script problem somewhere in the gallery script, but I dont know how to fix it. If I take the script out of the cursor action, the gallery works fine, but no custom cursor, and vice versa. Here is the code for the xml gallery and below is the code for the cursor, sorry for so much script:

[Code]....

View 4 Replies

ActionScript 3.0 :: When Load Swf Into Another SWF / Click Event Works / MouseOver Doesnt Glow

Apr 27, 2010

I have an swf with a few images on it, the images glow on mouseOver, and trigger an event when clicked.However, when I load that swf into another SWF, the click event works but the mouseOver doesnt glow.

View 5 Replies

Actionscript 3 :: URLLoader.load POST - Getting Http Status=0 And No Data. Works In Flash IDE

Jul 13, 2011

I am making rest calls with a urlload.load(urlRquest).

also
urlRequest.method = URLRequestMethod.POST;
urlRequest.contentType = "application/xml";

When I make the calls within the Flash IDE, I get HTTPStatusEvent.status = 400 (or whatever) when an error occurs. And the IOErrorEvent.data contains xml (or sometimes a string).

However, when I run the swf in a browser (Firefox Mac or PC), the HTTPStatusEvent.status = 0, and the IOErrorEvent.data is empty. (Interestingly in Safari Mac, I do get the 400 status, but still no data.)

View 1 Replies

ActionScript 2.0 :: Create A Movie With Buttons That Load External Movies And Works Seamlessly?

Nov 18, 2007

i used kirupa's [URL].. tutorial to create a movie with buttons that load external movies and works seamlessly.

my problem is that i want to do the same thing on the external movies that are loaded so to be able to load new external movies on top of them. it does not work and i know its because of the _root script that gets messed up when a new movie is loaded. it has to become _parent or smthing but i can't seem to be able to make it work..

View 4 Replies

ActionScript 2.0 :: ClipEvent - Reset Or Refresh (unload, Reload) This Function So It Works Correctly Everytime Load A New JPG?

Sep 1, 2006

I have a blank container mc into which I am loading JPGs after you click on a button. There are 10 buttons in the movie, each associated with a different JPG.This container_mc is part of a function called on the main Timeline.The Flash movie is 1 frame on the main Timeline. This code works correctly on the first JPG when I click on a button for the first time), but then when you click on a different button I believe it just uses the dimensions and coordinates of the first JPG. How can I reset or refresh (unload, reload) this function so it works correctly every time I load a new JPG?

//after full size image loads into detailthumb_mc,
//resize image so that neither width nor height is > 150, tben recenter
onClipEvent(load) {
var maxWidth = 150;

[code]....

View 2 Replies

ActionScript 3.0 :: Movie Clip ROLL_OVER Only Works Once But MOUSE_OUT Works Infinitely

Apr 11, 2011

I have a movie clip (with instance name rectangle_mc) on the stage. Within this movie clip there are two separation animations on the timeline. The ROLL_OVER animation starts on frame "over" and the MOUSE_OUT animation starts on frame "off." If I roll over the movie clip, the initial animation plays, and when I mouse out the other animation plays to restore it to it's initial state. However, once the rollover animation has played once, it will not play again when I roll over it again, but for some reason the MOUSE_OUT plays every time.

[Code]...

View 1 Replies

Load The .swf, And Click "Play Trailer" Locally It Works Perfectly?

May 30, 2009

I have a problem with a FlvPlayBack movie. So when I load the .swf, and click "Play Trailer" locally it works perfectly. But when I load the .html page, and click "Play trailer" the player doesn't show up and it won't play the video.
 
Link to .html page What files exactly need to be on my server in order for the video to play? Have I called the video wrong? (the .flv file is on my server)

View 3 Replies

ActionScript 2.0 :: Images Does Not Load Properly In Flash 8 And Firefox - Works Fine In Flash 9 Or IE

Oct 25, 2006

Here's the site: [URL] From feedback I've gotten, it appears that under certain circumstances the first image in a set of images does not load properly, although I haven't seen it myself. I'm told this happens only in Firefox. And I believe only Flash player 8. Works fine with FF and Flash player 9, or IE with 8 or 9 I believe.

View 14 Replies

Internet Explorer - IE 9 Flash Loads But Only Half Seen - IE Flash Does Not Load - Every Other Browser Works Great

Dec 2, 2011

look @ the source for this page [URL] It works great in all Webkit/Mozilla browers but in IE 9 we can only see the top half of the swf and in IE 8 it doesnt load @ all. I searched all the other threads and nothing seems to work

View 1 Replies

Flash Won't Load When Embedded But It Works On The Published Embedded Html?

Nov 11, 2009

I made a flash mp3 player and it works fine in any other test pages. but when i embed it onto my site it just shows blank. what do i do? my site is [URL] and the flash player i tested here [URL] and it plays. What im i doing wrong? i tryed everything. right now i just got it in a iframe but i dont want that iframe.

View 1 Replies

ActionScript 2.0 :: Load In A 4 Second Alpha Fading Load Instead Of Just A Hard Load?

Sep 7, 2008

I'm loading a background into a background container with the following code:

loadMovie("backgrounds/bkg_wht.swf",bgContainer);

I'd like it to load in a 4 second alpha fading load instead of just a hard load. Any ideas what code I need to write?

View 3 Replies

ActionScript 3.0 :: Works On Mac Not PC In IE9

Oct 19, 2011

I have some AS3 code that reads multiple xml files.On a Mac it runs fine.On a PC it runs in firefox and chrome, but not in IE9.It loads and hangs. The code is rather complex, so I'd rather avoid posting it.I'm just wondering if people have had this happen to them, and what the issue was so I can get some ideas of where to start looking?

View 2 Replies

Event Only Works Once?

May 22, 2009

The problem is that the buttons only work once, after that the event listener isn'ttriggered (I think) I have no removeEventListener in my code for those events so I'm totally lost as to why is this happening.

stop();var correr:Boolean = true;Globals.vars.videoP = CM_player;SnowManInst.addEventListener(MouseEvent.MOUSE_DOWN, mudarVideo_SM);bananaKingInst.addEventListener(MouseEvent.MOUSE_DOWN,

[code].....

View 1 Replies

ActionScript 3.0 :: AS3 Works On Mac But Not Pc

Nov 10, 2010

I've been working on a flash animation with some actionscript 3, which basically is the main.swf that calls upon 5 other swf and txt files that I am embedding into a web template. It all works fine on my mac but when I test on a pc I am able to call upon the other swfs and it pops up but the close button does not work. I assume that it has something to do with my actionscript with the children swf. But just in case I will show both.[code]

View 2 Replies

Flash 10 :: Works In FP 9 But Not In 10?

Jul 7, 2011

This should work! I cant figure out why it doesn't. Fortunatley I discovered that it worked perfectly in Flash Player 9. But I guess it must run on FP 10, snice I was thinking to implement this in an AIR for Android application. On the stage I got a button with the instance name of: submit. In the library I have a MovieClip with the linkage of: radioButton. This MovieClip is just to frames with different grafics. It is supposed to work like a checkbox or a radiobutton.

[Code]...

View 2 Replies

IDE :: SWF Works Only On Firefox

Aug 21, 2009

I finished my website and uploaded to internet. And when I showed friends that use IE7, Chrome or any other browser besides Firefox it failed to work. The SWF gets stuck at the preloader at a certain percentage but the animation of the preloader still runs. Here is the link (try to watch from different browsers): [URL]

View 2 Replies

ActionScript 2.0 :: MX Scrolling Works Only Once

May 26, 2009

I made a scrolling text box that I feed xml into. The only thing is when I scroll down or up I can only get it to work once.

[Code]...

I want it so that every time I that I press the button that I scrolls down.

View 6 Replies







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