ActionScript 2.0 :: Doesn't Load External SWF

Apr 28, 2006

I'm having a problem using the loadMovie action, I'm pretty sure I have everything I need, but when I click the button that should load my external SWF on top of my main movie, it doesn't load the external SWF & it just reloads my main movie.

View 13 Replies


Similar Posts:


ActionScript 2.0 :: External Swf Doesn't Load Xml?

Sep 29, 2006

I have a main swf [1] that loads an external swf [2] into it In the external swf [2] there is a movieclip that when pressed loads some information from an XML file when i try the external swf [2] it works fine but when i try it from the main swf [1] it doesnt work

here is the code for the movieclip

i tried putting _root. or this. but that didnt work

Code:
this.onRelease = function(){
portfolio_xml.load('xml/portfolio4.xml');
}

View 3 Replies

ActionScript 3.0 :: Doesn't Load External Movieclip

Aug 10, 2010

I have a flash file that loads an external class. Everything till here works file, now this flash when run loads menu from xml file and when you click one link it gotoAndStop() in a movieclip. In one of the frames I am loading an external movie. This script I took from another tutorial and which run well if I try it in a new flash file but when I put it there and run the file, everything works well except that the movie doesn't load. so I have: MainClass.as which is the default script which loads inside it another as file for the menu. Inside the frame where I want to load the movieclip I have this code:

[Code]....

View 0 Replies

Flash :: External Swf Doesn't Load Onto A Stage Via UIloader?

Dec 3, 2011

I have a typical logo on the right top corner and a menu bar just above it. Above the menu bar, I have a UIloader in which I load photoalbum.swf when one of the menu buttons is pressed. The problem is that setting the scaleContent property to true doesn't load my external swf.Setting it to false, everything appears as expected, except that the bottom part of my photo album is cut since the scaleContent property set to false (this makes the loaded swf file's size the same as the stage's and as the UIloader begins just above the menu, the bottom part gets cut off).

View 2 Replies

ActionScript 2.0 :: Handling Exceptions When External Data Doesn't Load

Sep 23, 2010

I'm loading external data from a txt file into a MovieClip. It contains data that is crucial to the presentation viewing. It is necessary to load, not right away but at some point (the sooner the better). When the txt is on the same server it works instantly, but I'm loading data from another server.

Two problems: the onLoad code is stuck if the file doesn't load (connection problem, server down?) and in offline mode what happens if the data is purged out of browsers cache (history problem)?

How can i handle these exceptions?

1. Some code that uses a "timer" to periodically try to load the data again if the connection is slow and the txt doesn't loads the first time?

2. When it doesn't load at all, and the onLoad fails, how can I simulate notOnLoad - exception for data download fail? And retry the dataLoad?

I've already made cross-server data loading possible using crossdomain.xml policy.

The site is still in development. This problem occurred when the server which contains the data.txt was down due to maintenance, and when one of the test-visitors was downloading so much in the background that his connection didn't had enough bandwidth to load data correctly (browser thought he had connection problems).

View 3 Replies

ActionScript 1/2 :: External Image / Once The Site Loads If Go To The "Contact Us" Page The Content Doesn't Load Correctly

Jun 11, 2010

[URL] Above is a link to view the project I'm working on. Once the site loads if you go to the "Contact Us" page the content doesn't load correctly. I'm using an extrnal .xml and .css files for the content. I'm also embedding the fonts dynamicly. If I test the file locally on my computer is works fine the image loads as it's supposed to and content looks correct. However when I post the files to the server (which work exactly the same way) I get the white box when you can see from the link above. I'm at a complete loss as to how to to fix this.

View 3 Replies

ActionScript 3.0 :: External Interface Call Doesn't Work With Function That Is On External JS File

Apr 17, 2012

I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.

I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.

I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.

how to call a JS function that is on an external file from AS3?

View 6 Replies

ActionScript 2.0 :: Preloader For External Swf's - Doesn't Work For The External Movies?

May 22, 2005

... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:

[Code]...

View 5 Replies

ActionScript 2.0 :: External Text Files Wont Load Into External Swf File?

May 28, 2007

Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.

View 4 Replies

Actionscript 3 :: Load A Local External SWF, The Application Load-unload Infinitely?

May 6, 2011

I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.

[Code]...

View 2 Replies

ActionScript 2.0 :: Trigger External Swf To Load Into Main Swf From Button In Another External Swf?

Apr 22, 2007

I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:

metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);

[code].....

View 2 Replies

Doesn't Work When Loaded Into External Swf?

Aug 30, 2011

I've only been working with flash for about 3 weeks and I'm fairly new to programming soI'm using Flash CS5 with AS3 btw.

Code:
///////////////////////////
// Custom Mouse Controls

[code]....

View 2 Replies

ActionScript 3.0 :: CSS Doesn't Load And Code Is Right?

Mar 18, 2009

I must be missing a capital or something because this just doesn't work.

Code:

import flash.text.*;
import flash.display.*;
import flash.net.*;

[code]....

Note: No runtime errors. No nothing. The text shows up entirely unformatted. I even made an HTML document and imported the same exact css file into that, and it worked fine... It just doesn't work in flash.

View 2 Replies

ActionScript 3.0 :: IE7 - Video Doesn't Load

Apr 7, 2009

My new player is 99% done, and works great in many browsers, but doesn't work in IE7 in parallels. It doesn't run any of the netstream functions and seems to stop completely, with my spinny progress bar going infinitely. I'm using the debugging player, but no errors are being thrown.

Here's a link: [URL]

I can post code on request. What does IE do differently related to netstreams that might be causing this?

Alternatively, can I post errors to a text box in the player to test?

View 2 Replies

Actionscript 3 :: URLLoader Doesn't Even Try To Load

Sep 20, 2010

I am trying to use URLLoader to load an XML file from server (same domain as swf). This should be too simple but I am getting Error #2032: Stream Error.If I trace the HTTP status event it just shows status=0 though I have read that Mozilla doesn't supply status codes to Flash Player so maybe it's not informative.I have sniffed the HTTP traffic with Charles and Flash isn't even trying to load the url - no request is made, so it doesn't even fail.I can browse to the url, which is on an internal url that looks like:URL...I have tried putting a crossdomain.xml in there (with and without a to-ports="8080"), though it shouldn't need one.Neither the onOpen nor onActivate events fire, just one HTTPStatus and then the IOError.I have copied the common URLLoader code from Adobe example, mine looks like this:[code]

View 2 Replies

Actionscript 2.0 :: FLV Doesn't Load / Play

Aug 24, 2009

The main problem is that the FLV doesn't load/play, which most likely causes the secondary problems, such as the bufferClip always visible and no way to test the video and audio scrubbers.[Code]...

View 2 Replies

ActionScript 3.0 :: Menu Doesn't Load To The URL

Jan 12, 2010

For some reason the menu doesn't load to the URL that I specify in my xml file. When I click on it, it showed up as text underneath the menu itself as Link clicked How can I make it so that the link will actually go to URL that I specify in my xml file?[code]

View 2 Replies

ActionScript 2.0 :: CS3 : Load External Library Objects From An External Swf?

Jan 19, 2009

How do you load external library objects from an external swf? I want to have an external swf that only contains library objects that are exported for Actionscript, and load these from the master .swf file dynamically during the master swf execution. (I may have multiple external swf resource files)I want to be able to load the external swf, and then access it's library objects via actionscript in my main swf file.

View 6 Replies

ActionScript 3.0 :: Using Loader To Load An External Swf And Control The External Swf?

Nov 17, 2010

as3 is new for me, but i would like to write a script using loader to load an external swf, and control the external swf. But I find I can't control the swf, because there are no fixed instance name. here is my script.

[Code]...

View 3 Replies

Actionscript 3 :: Load An External Swf File Using Loader.Load?

Sep 19, 2011

When i try to load an external swf file using Loader.Load(); The swf starts playing even before the init event is fired. Is there any way to stop the swf from playing atleast until the init event or complete event is fired?

View 1 Replies

ActionScript 3.0 :: External Swfs Load In Different Places On 2nd Load

Oct 19, 2009

I'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.

This is the bare bones of it:

Code:

sceneHolder.x=0;
sceneHolder.y=0;
addChild(sceneHolder);

[Code].....

View 1 Replies

ActionScript 3.0 :: Load External Swfs Which Load Videos

Apr 11, 2009

Okay so I am trying to load external swfs which load videos dynamically.

I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error

[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]

Is there some specific method to casting within external swfs?

My code for loading the videos is this:

[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);

[Code].....

View 1 Replies

IDE :: Load Mp3 From External Xml File And Make To Load Random?

Dec 24, 2009

How I can make this script lo load mp3 files via an external xml file like music.xml and if is possible to load random

Code:
music = new Sound();
music.onSoundComplete = function() {

[code]....

View 1 Replies

ActionScript 1/2 :: Loading An External SWF But Doesn't Play

Apr 7, 2009

I'm trying to load an external SWF with the following code:

[Code]...

It loads the SWF, but doesn't play it correctly when I test it. Here's how the loaded movie is supposed to look: [URL] But instead, it plays without the transitions, like this:[URL] I've been trying to figure this out for a few days and have tried adding "this._lockroot = true;" to the SWF I'm trying to load, but I can't get it to play correctly. Can anyone tell me what I'm doing wrong?

View 2 Replies

ActionScript 3.0 :: Buttons Doesn't Work In The External Swf?

Nov 17, 2010

I searched every where but didn't have a solution. my main content has a button in the first frame I call it (wright_btn) when u click on it, u suppose to go to next frame this is a part of the code in the first frame:

ActionScript Code:
wright_btn.addEventListener(MouseEvent.CLICK, wrightAnswer);
function wrightAnswer(event:MouseEvent):void
{
nextFrame();
stop();

[Code]...

View 1 Replies

ActionScript 2.0 :: External SWF Doesn't Read .as Class

Jun 3, 2011

In my emptyMC, i'm calling a newsticker, that needs an external .as class to works propertly. But when it opens, it doesn't read my _x and _y coordinates and neither the .as.

My code to it, is in a frame:

Code:
this.createEmptyMovieClip ("noticias", 2);
loadMovie("newsticker.swf", noticias);
noticias._y = -50;
noticias._x = 0;

In my first frame I have locked the root with:

this._lockroot = true and i has been working perfectly.

Also in the root in a frame i'm loading a music.swf.

for further doubts, just ask.

I'm working with Flash CS5 and AS2, Flash Player 8.0. It's a TM template.

View 2 Replies

ActionScript 3.0 :: The External Preloader Doesn't Wait?

Jun 28, 2009

I have a new dilemma concerning external preloaders.Now I found out that sometimes external preloaders don't wait to load the entire swf file before this last one runs.I understood the concept and I applied both explained methods, but still couldn't find a solution: the swf file runs before the preloader finishes to load.This is my code (useless) so far:

import flash.display.MovieClip;
var myLoadedMovieClip:MovieClip;
var contentLoader:Loader;

[code]......

View 2 Replies

ActionScript 2.0 :: CS3 - Netstream - FLV Doesn't Load / Play

Aug 24, 2009

The main problem is that the FLV doesn't load/play, which most likely causes the secondary problems, such as the bufferClip always visible and no way to test the video and audio scrubbers.

[Code].....

View 5 Replies

Professional :: Swf Published From CS5 Doesn't Load On Other Machines

May 22, 2010

I produced an ActionScript 3.0, Flash Player 10 swf in a newly downloaded CS5 (trial version). The file loads fine in both Chrome and Safari on my computer. But when I open it on another machine I only get five animated dots - ..... - in a "wait while loading" manner. The swf never starts. Same on my brother's computer.
 
My browser has Flash Player 10,1,52,14 installed along with CS5 (swf works). My other computer claims to have Flash Player 10,1,53,38 installed (swf doesn't work). My brother's computer has Flash Player 10,0,45,2 (swf doesn't work).I've tried various publish configs such as on/off xml meta data, on/off hidden layers, embed minimal or more of my font etc.When I configure for ActionScript 2.0 and/or Flash Player 9 my animation breaks totally.

View 1 Replies

C# :: Embedded Flash Player Doesn't Load?

Feb 5, 2011

I wrote a program in C# that, when a user press a button, opens a new form containing an embedded flash object. The flash application needs the user to be logged in, so i added to the source something like

swf.SetVariable("__ses", sid);

This works fine for 2 user testing the application, while the third one can succesfully open one table, while all the others appear "black", just like if the loader can't get past the loading step.

View 1 Replies







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