Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




PLEASE HELP *Error Loading Fuse* ?



OK... Loosing it...Please, can someone explain why I'm getting this error?**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 9: The class 'Fuse' could not be loaded.var f:Fuse = new Fuse();I'm going through the video tutorial on "Advance Fuse Animation". I think the code is correct.. ?Running MX04 on OSX... ThanksHERE iS the code:___________import com.mosesSupposes.fuse.*;ZigoEngine.register(Fuse,PennerEasing);this.creatEmpyMovieClip("leader",1);function moveLeader():Void{var f:Fuse = new Fuse();f.push({target:leader, x:grp, y:grp, controlX:grp, controlY:grp, time:1, ease:"easeOutQuad"});f.push({func:moveLeader});f.start();}moveLeader();function grp():Number{return Math.random()*600;}this.onEnterFrame = function(){var t:MovieClip = this.attachMovie("circle","c"+this.getNextHighestDepth(),this.getNextHighestDepth());t._x = leader._x;t._y = leader._y;}



Actionscript 2.0
Posted on: Thu Jan 04, 2007 5:44 pm


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Error With Fuse Inside A Class
Hello,
I have a class file "Slider.as" which I import the fuse classes into. When i publish my FLA, everything works, but if I try and check syntax in the class file itself, I get an error saying "There is no method with the name 'ZigoEngine'." I've tried putting things like "var ZigoEngine:Object;" at top to kill the errors...but then when I save and test the movie again, it doesn't work. Anyone? Is there a proper way to import the fuse class into another class? thanks in advance...

Slideshow With FUse / Error 'undefined'
Hi,

Am just starting to get into both Flash and Fuse and wanted to create a small slideshow... But when I run it in the output window I get 'undefinied' if anyone has any ideas would be much appreciated!

Code:

import com.mosesSupposes.fuse.*;

ZigoEngine.register(Fuse, PennerEasing);

for (i=1;i<11;i++) {
    var tmpClip:MovieClip = eval ("Pic" + i)
    tmpClip.loadMovie("images/"+i+".jpg")
}

// Start the slideshow on a setInterval
var slideShowTimer:Number = setInterval(nextImage, 5000);
var counter:Number = 0;

// The workhorse function, gets called by setInterval, and should run every 5 seconds.
function nextImage():Void {
   var img:MovieClip = images[counter % 3];
   img.swapDepths(counter);
   trace(img.getDepth());
   img._alpha = 0;
   img._visible = true;
   img.alphaTo(100, 2, "easeOutSine", null, {func:cleanUpPrevious, args:[(counter-1) % 3]});
   counter++;
}

// A function to be used in the tween callback to make the image that was just covered up invisible.
function cleanUpPrevious(image:Number):Void {
   images[image]._visible = false;
}

// Show first image immediately.
nextImage();

External Swf Is Loading, But Not Animating Using Fuse
ok please bare with me trying to explain this...

I have an empty container movieclip which I need an external .swf to load into, and then be animated using fuse. With the code I have below, the .swf loads but isn't animated using fuse.

the only way I got this to work was by putting contentHolder.loadMovie("contenttest.swf"); outside of the onRelease function, but i need it in there. Can anyone help me??

Code:

this.createEmptyMovieClip("contentHolder", 1);
contentHolder._x = -1000

btnOne.onRelease = function() {
contentHolder.loadMovie("contenttest.swf");
if (f != undefined) f.stop();
var f:Fuse = new Fuse();
f.push([{target:mcLine, x:165.1, y:0, width:64.8, start_Blur_blurX:100, seconds:1, ease:"easeOutElastic"},
{target:contentHolder, x:170, seconds:1, ease:"easeOutElastic"}]);
f.start();
}

External AS Component (Fuse) Loading On First Frame
Hi there.

I am calling the Fuse component on Frame 5 of my movie but it seems to be wanting to load in on the first frame which is where my preloader is. The fuse file seems to be around 107kb so my movie seems to be loading the fuse stuff before the preloader.

Any ideas on what I can do to get the Fuse stuff loading when called (frame 5)

Thanks a lot

Tony Mead





























Edited: 05/01/2008 at 10:07:25 AM by tony_mead

Strange Error: Error Opening Url File (that Is No Longer Loading Into Movie)
I had a few external swf's loading into my main movie, and after several revisions I went through my directory and deleted the swf's that were no longer being used.
Now I am getting an error that one of them cannot open, (it is one of the deleted that I am no longer using)
I know where the code should be, because of the timing of when the error appears in the output window, but I cannot find
code anywhere telling this movie to load.

Any ideas about what I could have done and how to find it?


Here is the actual message:
Error opening URL "file:///P|/Web%20Projects/CBS/Natri/NATRI%202003/hosted.swf"

Error #2044: IoError / Text=Error #2032 When Loading Xml
Hi guys,

I am still experimenting with the whole concept of use of packages. I did Victors tut and now wanted to apply the same concept of loading button code externally to loading an external xml. But the output window greeted me with this error.

Error #2044: ioError unverarbeitet. text=Error #2032: Stream-Fehler. URL: file:///C|/Projects/GettingStartedWithAS3/Kopie%20von%20Dev%5FDevelop/testxml.xml

the structure is:
// a main.swf has the movieclip Loadxml in its library with com.company.xmltxt.Loadxml as a base class
//the main.swf loads the document class "Documentclass" in the external .as file with the same name
//which imports com.company.xmltxt.*
//the Loadxml.as file is accessed through the directory xmltxt.
//it loads its function Loadxml(), which I can tell from the trace statement but when trying to access the xml the error occurs.


I checked for similar cases and solutions...to no avail. Now I try as a last resort to upload the files here.

**Error** TempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax Error: Expecti
Hi,

I'm trying to convert my AS2 project to AS3. I got rid of all errors but one :

**Error** tempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax error: expecting identifier before 45.
var 45:MovieClip;

I got no idea what tempInit is, and no where do I declare a variable called 45...

After searching the web for hours I am tired and thus asking for your help.

Thank you,

Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error. Cannot Be Caught
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/LocalWorkspace/Simulation%20Platform/sim/assets/conversations/14/Maria/NPC_104.MRK


Hi all, I'm getting this error, and I damn well know why. Its because I'm trying to load a file that doesn't exist. But the thing is, I'm wrapping the code in a try catch, and I'm still getting the error. Also, I'm being told that the error is on this line:


ActionScript Code:
var loader:URLLoader = new URLLoader();

I need to do it this way because i know that some of the files I'm trying to load do not yet exist.

But what could possibly be wrong with this line? And either way, it should be caught by the try, catch. So, whats the problem?



ActionScript Code:
try {
        var loader:URLLoader = new URLLoader();
        loader.addEventListener(Event.COMPLETE, completeHandler);
       
            loader.load(new URLRequest(_filename));
        } catch (error:Error) {
            trace("DATA: loadAnimData(): Error loading lip synch data.");
        }

Error Message ? Error #2044: Unhandled IoError:. Text=Error #2032:
Can anyone give me any advise on why in safari 3 and firefox i am getting this error:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.nayomusic.com/music/1.mp3

URL: http://www.nayomusic.com/home

The error occurs when a any link is clicked on from within homepage

If anyone has got any idea why this error occurring then this would be much appreciated

Thanks

Jon

Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.
I'm trying to open a new centred window with a javascript in AS3, the code is working in the browser but when tested in flash I got this error:
"Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: javascript:void(newWin=window.open('http://www.actionscript.org','newWindow','width=500,heigh t=500,left=590,top=262.5'))"

This is the code that I'm using.

Code:
var resX:int = flash.system.Capabilities.screenResolutionX
var resY:int = flash.system.Capabilities.screenResolutionY

var winW:int = 500
var winH:int = 500

var winX:int = (resX/2) - (winW/2)
var winY:int = (resY/2) - (winY/2)

var jsCode:String = "javascript:void(newWin=window.open('http://www.actionscript.org'," + "'newWindow','width=" +winW + ",height=" + winH +"," +"left=" + winX +",top=" + (winY-winY/2) + "'))";


var urlLoader:URLLoader = new URLLoader()
urlLoader.load(new URLRequest(jsCode))
What is wrong becouse if you test a compiled .swf with this code in the browser a centred window opens.???

Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error.
Hi all,

I created a simple streaming mp3 player and it works perfectly fine locally, but when i upload it i get the below error. I only get this error if i go to refresh or leave the page. The flash itself loads but does not function.

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at player.audio.actions::SoundLoader()
at player.audio.actions::Mp3Player()
at main_fla::MainTimeline/frame1()

The code that includes the url is below:


Code:
var songs:Array = ["believe.mp3", "newSong.mp3"];
the swf file is saved in the same directory as the mp3 files but i am still getting the stream error.

I have tried changing the path to a full url with no luck.

What is strange is that if i load the mp3 directly via the URL i have uploaded it to, and then go back to the player, it works. but only in firefox and IE. safari for windows does not work either way.

the class i used to load the url is below:


Code:
public function SoundLoader(songs:Array, player:Mp3Player)
{
songList = songs;
musicPlayer = player;
soundReq = new URLRequest(songList[songIndex]);
loader.load(soundReq);
loader.addEventListener(Event.COMPLETE, songLoaded);


}

Does anyone have any ideas? It's driving me nuts!

Much appreciated!

Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error
This is my code. (Even though this error occours, it doesnt affect my file in anyway, except when you look at it on a website a little error comes up (click it away) and everything is still exactly fine)

ANyway its annoying me now, so iw ont to get rid of it:

Heres my code:


ActionScript Code:
var s:Sound = new Sound(new URLRequest("Galactik_Football.mp3"));
s.play(0, 1000);

var ba:ByteArray = new ByteArray();

addEventListener(Event.ENTER_FRAME, loop);

var bmd:BitmapData = new BitmapData(700, 400, true, 0x000000);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);

var sp:Sprite = new Sprite();
addChild(sp);

var blur:BlurFilter = new BlurFilter(10,10,3);

var colorMatrix:ColorMatrixFilter = new ColorMatrixFilter([
    1, 0, 0, 0, 0,
     0, 1, 0, 0, 0,
     0, 0, 2, 0, 0,
     0, 0, 0, 0.99, 0
]);

function loop(e:Event):void
{
    sp.graphics.clear();
    sp.graphics.lineStyle(2, 0xFFFFFF);
    sp.graphics.moveTo(-1, 150);
    SoundMixer.computeSpectrum(ba);
    for(var i:uint=0; i<256; i++)
    {
        var num:Number = -ba.readFloat()*200 + 150;
        sp.graphics.lineTo(i*2.75, num*1.3);
    }
    bmd.draw(sp);
    bmd.applyFilter(bmd,bmd.rect,new Point(),blur);
    bmd.applyFilter(bmd,bmd.rect,new Point(),colorMatrix);
    bmd.scroll(3,0);
}

Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error
Hi, i've written out some code that doesn't seem to want to work and im not too sure why. Basically i've imported a sound file in to flash and i have two buttons to play and pause. I've set up a custom class thing in the linkage properties of the sound file.


ActionScript Code:
var audio:Sound = new Sound(new URLRequest("Phil.mp3"));
var audioChannel:SoundChannel = audio.play();

pauseBtn.addEventListener(MouseEvent.MOUSE_UP, pauseSound);
playBtn.addEventListener(MouseEvent.MOUSE_UP, playSound);

function pauseSound(e:MouseEvent):void
{
    audioChannel.stop();
}

function playSound(e:MouseEvent):void
{
    audioChannel = audio.play(audioChannel.position);
}

When i try and run the code, it comes up with this message

"Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at Untitled_fla::MainTimeline/Untitled_fla::frame1()"

if anyone can give any assistance as to why this doesn't work - it'd be super.

Error #2044 Unhandled IoError:. Text=Error #2032: Stream Error. URL:
Hey Everyone
Can someone explain this to me. I am using Go Live CS2 to upload my files and I only get the Error (below) when I upload my files to the internet. I have one FLA file and inside the FLA I have a request to a .xml doc to load in my images. The images appear when I test the file in FLash, and when I test my published html page. But as soon as I upload the files to the internet I get the error below. The flash file runs correctly but the images do not appear.
My page www.ii-designs.com/maybe then click on the works tab and where the bottom gray lines is where the images are suppose to be

I get this error
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///private/var/tmp/folders.501/TemporaryItems/AdapterTemp/Server_1/public_html/maybe/data/photoImages.xml at _photoImages/frame1()
please help this is driving me crazy
Thanks
Ryan

Error #2044: Unhandled IOErrorEvent:. Text=Error #2038: File I/O Error.
Gday guys,

im making a lil flex app to upload images for guys on my forum.. problem is, it works fine in opera and firefox im told now also, but in internet explorer.. im getting this error..

"Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
at uploadd$iinit()
at _uploadd_mx_managers_SystemManager/create()
at mx.managers::SystemManager/::initializeTopLevelWindow()
at mx.managers::SystemManager/::docFrameHandler()"

this is my code? its str8 off the adobe site itself. from what i gather, its the way the scipt is handling the error itself? its terminating itself bcos of it.?


Code:
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.events.DataEvent;


public var fileRef:FileReference = new FileReference();

public function upload():void {
// listen for the file selected event
// listen for the upload complete event
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.addEventListener(Event.COMPLETE, completeHandler);
fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA , uploadCompleteHandler);


// browse for the file to upload
// when user selects a file the select handler is called
try {
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
var allTypes:Array = new Array(imageTypes);
var success:Boolean = fileRef.browse(allTypes);

}
catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);

}



}

// when a file is selected you upload the file to the upload script on the server
public function selectHandler(event:Event):void {
var request:URLRequest = new URLRequest("upload.php")
try {
// upload file
fileRef.upload(request);
textarea1.text = "uploading " + fileRef.name + "...";
}

catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);

}



}

// dispatched when file has been given to the server script. does not receive a response from the server
public function completeHandler(event:Event):void {
trace("file uploaded complete");


}

// dispatched when file has been uploaded to the server script and a response is returned from the server
// event.data contains the response returned by your server script
public function uploadCompleteHandler(event:DataEvent):void {
trace("uploaded... response from server:
" + String(event.data));
textarea1.text += event.data as String;
}

]]>
</mx:Script>
Also id like to be able to directly have the link traced into the message box itself, so people dont have to copy n paste.. is there an easy solution in the php code?

Heres the link, the upload is on the left of the main reply box.. heres a direct link to the forum, use

User: Ryann
Pass: temp

http://www.weride.net/ThrashedMinis/phpBB2/

, and press a reply or new topic sumwere to view it.. thanks for anyone taking a look..

Ryann.

Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.
Hi all I really need help. What I understand from this error is that Flash can't find the file which is a bit of confusing, because if I copy the code to other file it works. Is there something with that I have 2 urloaders in the code I load 2 different type of files one txt and one xml? This is the structure of my xml file
Code:
<xml>
<name>Some Name</name>
<address>Some Address</address>
<option>Some Option</option>
<other>Some Other</other>
<bank>Some Bank</bank>
<iban>12300 0000 0000 0000 0000 00</iban>
<bic>25500000</bic>
</xml>
Please help

Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.?
I get this message "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error." when I try to get parameters from a .asmx doc that looks like this:

.net:

flUser.Movie = string.Format(@"{3}?UID={0}&strUserName={1}&strWsUrl......


In as3:

var oParam:Object = LoaderInfo(root.loaderInfo).parameters;
strUserID = oParam.UID;

I get the parameters written into a textfield but it doesn't work? Anyone know what's wrong? Could it have something to do with Sandbox issue? Do a miss an "import.display"?

Loading Bar Error
please see loading bar script below.. .

onClipEvent(load){
var preloader=this.width;
_parent.stop();
}
onClipEvent(enterFrame){
this.width = (preloader/_parent.getBytesTotal())*_parent.getBytesLoaded();
_parent.per = int((100/_parent.getBytesTotal())*_parent.getBytesLoaded()) +"%";
if(_parent.getBytesTotal() == _parent.getBytesLoaded()){
_parent.nextFrame();
}

what seems to be wrong with it? the text that shows how many percent has been loaded doesn't move. it remains at 0% all the time. the swf file is about 650KB big.

plus everytime the page is refreshed, or a link to the page with the swf file, it does the loading thing again. shouldn't my puter have cached it already? isn't this the purpose of loading?

.swf Loading Error?
I have a main flash movie that has an empty movie clip that my .swf files load into.

In my main movie on the first frame I have:
loadMovie("home.swf", "contentholder");

When I test it I get an error saying:
**Error** Scene=Scene 1, layer=Content Holder, frame=1:Line 1: Statement must appear within on/onClipEvent handler
targetPath(this)

It loads fine and I have no problems just if anyone can help me to remove this error.

cheers!

Loading....error
I am having problems with loading external .swf files. I want a .swf file to load it only, not the main one. So what do I have to use instead of _root. while creating the preloader for external swfs????!!!!

[F8]Loading .SWF Error
Rather a displeasing effect.

When i load the .swf into my main flash movie, it keeps appearing at only about 75% of the size i want it.

Specifically. I load the .swf into a movie clip 550x400 px. The loaded swf is only about 400x300px (im only guessing the ratio). However, when i change the movieclip it is loaded in to a smaller dimention, the loaded .swf is smaller than that.

Any clues?

Loading XML Error
I am trying to learn how to load xml into Flash 8.0 using the following:

Code:
// Create a new XML object.
var flooring:XML = new XML();

// Set the ignoreWhite property to true (default value is false).
flooring.ignoreWhite = true;

// After loading is complete, trace the XML object.
flooring.onLoad = function(success) {
trace(flooring);
};

// Load the XML into the flooring object.
flooring.load("flooring.xml");
And each time I get the following error:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: The class or interface 'XML' could not be loaded.
var flooring:XML = new XML();

Total ActionScript Errors: 1 Reported Errors: 1

Can someone help me? Thanks

Error Loading SWF From Another SWF
I want to load a SWF form another SWF and a have one error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MoverBall$iinit()

Any help?

here is the actionscript code:

package {
import flash.display.*;
import flash.events.*;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
import flash.geom.Point;

public class MoverBall extends MovieClip{

private var gameSprite:Sprite;
private var ball:Ball2;
private var xpos:Number = 0;
private var ypos:Number = 0;
private var zpos:Number = 0;
private var vx:Number = 0;
private var vy:Number = 0;
private var vz:Number = 0;
private var friction:Number = .95;
private var fl:Number = 250;
private var vpX:Number = stage.stageWidth / 2;
private var vpY:Number = stage.stageHeight / 2;

public function MoverBall(){

// INICIALIZAR SPRITE
gameSprite = new Sprite();
ball = new Ball2();

stage.addChild(gameSprite);
gameSprite.addChild(ball);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
}

function onEnterFrame(event:Event):void{
xpos += vx;
ypos += vy;
zpos += vz;
vx *= friction;
vy *= friction;
vz *= friction;
if(zpos > -fl){
var scale:Number = fl / (fl + zpos);
ball.scaleX = ball.scaleY = scale;
ball.x = vpX + xpos * scale;
ball.y = vpY + ypos * scale;
ball.setCentro(new Point(ball.x+10, ball.y+10));
ball.visible = true;
}
else{
ball.visible = false;
}
}
function onKeyDown(event:KeyboardEvent):void{
switch(event.keyCode){
case Keyboard.UP :
vy -= 1;
break;
case Keyboard.DOWN :
vy += 1;
break;
case Keyboard.LEFT :
vx -= 1;
break;
case Keyboard.RIGHT :
vx += 1;
break;
case Keyboard.SHIFT :
vz += 1;
break;
case Keyboard.CONTROL :
vz -= 1;
break;
default :
break;
}
}

function getBall(){
return ball;
}
}
}

*******************************************
the Ball2 code:

package {
import flash.display.*;
import flash.geom.Point;
import flash.display.*;

public class Ball2 extends MovieClip{

private var centro:Point;
private var aux:int;

public function Ball2(){
graphics.beginFill(0xff0000);
graphics.drawCircle(0,0,10);
graphics.endFill();
this.x=100;
this.y=100;
centro = new Point(this.x+10, this.y+10);

aux=1234;
}

public function getCentro(){
return centro;
}

public function getVar():int{
return aux;
}

public function setCentro(c:Point){
centro=c;
}
}
}

************************************************** **************
And the code in my FLA is:

// Request the content
var url:URLRequest = new URLRequest("Ball2.swf");

// Create a loader object
var loader:Loader = new Loader();

// Load the content
loader.load(url);

// Add loader into the Display List
addChild(loader);

I Met An Error Of Loading RSS.
Hi, all
I try to load a RSS xml (through Https) but met this error message:Error #2044: Unhandled ioError:.

The code is :

var variables:URLVariables=new URLVariables("rid=/webcontent/uuid/00c1a8fd-fea0-2a10-0997-f57d42baee83");
var request:URLRequest=new URLRequest();
request.url="https://***/irj/servlet/rss/prtroot/feedserver";
request.method = URLRequestMethod.GET;
request.data=variables;
xmlLoader.load(request);


Any one has idea about this?
Thanks a lot!
Aaron

Loading Error
I am still fairly new to Flash and AS3 but feel like I am moving along fairly quickly. Every once in a while I get tripped up by some error that no matter what I do, I can't fix it.

I have a series of buttons that when clicked, load an external SWF to a loader and then a child is added to a container that is on the stage. When a new button is clicked, the content is removed and then a new SWF is loaded.

This works the first time but I get an error (below) when I click the second button. Any ideas on how to fix this? It is absolutely driving me nuts? Thanks!

Best,
Drew

Error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::Loader/flash.display:Loader::_load()
at flash.display::Loader/load()
at main_fla::layout_1/loadNewContent()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at main_fla::layout_1/clearContent()
at main_fla::layout_1/changeContent()

Actionscript:

ActionScript Code:
stop();
var contentLoader:Loader = new Loader();
var homeLoader:Loader = new Loader();
//var content_mc:Sprite = new Sprite();


menu_mc.project_mc.projectsub.pdescription.addEventListener(MouseEvent.CLICK, changeContent);
menu_mc.project_mc.projectsub.updates.addEventListener(MouseEvent.CLICK, changeContent);

menu_mc.team_mc.teamsub.drew.addEventListener(MouseEvent.CLICK, changeContent);
menu_mc.team_mc.teamsub.greg.addEventListener(MouseEvent.CLICK, changeContent);
menu_mc.team_mc.teamsub.colin.addEventListener(MouseEvent.CLICK, changeContent);
menu_mc.team_mc.teamsub.others.addEventListener(MouseEvent.CLICK, changeContent);

menu_mc.media_mc.mediasub.photo.addEventListener(MouseEvent.CLICK, changeContent);
menu_mc.media_mc.mediasub.pvideo.addEventListener(MouseEvent.CLICK, changeContent);
menu_mc.media_mc.mediasub.science.addEventListener(MouseEvent.CLICK, changeContent);

menu_mc.outreach_mc.outreachsub.offerings.addEventListener(MouseEvent.CLICK, changeContent);
menu_mc.outreach_mc.outreachsub.uevents.addEventListener(MouseEvent.CLICK, changeContent);

menu_mc.support_mc.supportsub.sponsors.addEventListener(MouseEvent.CLICK, changeContent);
menu_mc.support_mc.supportsub.donate.addEventListener(MouseEvent.CLICK, changeContent);

var targetButton;
var subButtonSelect;      // Holds Name of Button Currently Selected
var subbuttonArray:Array = [menu_mc.project_mc.projectsub.pdescription, menu_mc.project_mc.projectsub.updates, menu_mc.team_mc.teamsub.drew, menu_mc.team_mc.teamsub.greg, menu_mc.team_mc.teamsub.colin, menu_mc.team_mc.teamsub.others, menu_mc.media_mc.mediasub.photo, menu_mc.media_mc.mediasub.pvideo, menu_mc.media_mc.mediasub.science, menu_mc.outreach_mc.outreachsub.offerings, menu_mc.outreach_mc.outreachsub.uevents, menu_mc.support_mc.supportsub.sponsors, menu_mc.support_mc.supportsub.donate]
var contentArray:Array = ["pdescription.swf", "updates.swf", "drew.swf", "greg.swf", "colin.swf", "others.swf", "photo.swf", "pvideo.swf", "science.swf", "offerings.swf", "uevents.swf", "sponsors.swf", "donate.swf"];


homeLoader.load(new URLRequest("home.swf"));
homeLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, onHomeLoaded);             

function onHomeLoaded( event:Event ):void{
   content_swf = MovieClip(homeLoader.content);
   content_mc.addChild(content_swf);
   resetScroller();
}



function loadNewContent(e:Event):void {
    for(var i:int = 0; i < subbuttonArray.length; i++) {
        if(targetButton == subbuttonArray[i]) {
            contentLoader.load(new URLRequest(contentArray[i]));
            contentLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, onContentLoaded);
            subButtonSelect = targetButton;
         }
       
      }
}


function onContentLoaded( event:Event ):void{
   content_swf = MovieClip(contentLoader.content);
   scroller.y = scrollbar.y
   content_mc.y = 206;
   content_mc.addChild(content_swf);
   resetScroller()
}


function changeContent(event:MouseEvent):void
{
       targetButton = event.currentTarget;
      this.addEventListener("CONTAINER_CLEANED", loadNewContent);
      clearContent();
}

function clearContent():void
{
   content_mc.removeChild(content_swf);
    this.dispatchEvent(new Event("CONTAINER_CLEANED"));
}

Loading SWF Error
Hi Everyone. I am newbie and I am pleading for help to get me through this project. A friend told me to come here said you all were the best. I haven't really found and solution to the problem I am having because, to most programmers, the problem is very simple. Here is my problem. [url="http://www.aestyria.com/jmkozlow.zip"]Download my files[/URL

In frame 1 of MainLoader.swf (basically just a preloader) I have this code:


Code:
preloader_mc.stop();
preloader_mc.visible=false;

var swf:String='Main.swf';
var richiesta:URLRequest=new URLRequest(swf);
var loader:Loader=new Loader();

loader.contentLoaderInfo.addEventListener(Event.OPEN,openMC);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,working);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,done);
loader.load(richiesta);

function openMC(e:Event):void
{
preloader_mc.visible=true;
preloader_mc.play();
}

function working(e:ProgressEvent):void
{
var percentage:uint=(e.bytesLoaded/e.bytesTotal)*100;
preloader_mc.loader_txt.text='loading '+percentage.toString()+'%';
}

function done(e:Event):void
{
preloader_mc.stop();
preloader_mc.visible=false;
addChild(loader);
}
This used to load "Main.swf" but now that I have added a document class "Main.as" to control my main menu. I get an error when I launch "MainLoader.swf."


Quote:




TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Main/::init()
at Main$iinit()




Basically, how do I load a swf and it's class into a preloader like this. I am open to any other suggestions or help to make this project more efficient. You can get the files here. Everything is bare bones.



Thanks!

jmkozlow

Error Loading XML In AS 3.0
Hello, I'm trying to do the XML in AS 3.0 on this site, but the code doesn't work properly.

This code gives an error every time.

var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(newURLRequest("http://www.kirupa.com/net/files/sampleXML.xml")); function LoadXML(e:Event):void { xmlData = new XML(e.target.data); trace(xmlData);}

I get type was not found or is not a compile time constant pointing to line 9
which is 'function LoadXML(e:Event):void {' Can someone explain how to fix
this and why it's causing an error?

LOADING Swf ERROR... Need Some Help
Hey kings of FLASH,

I'm upto my second flash site and have come across this hitch..
I'm have main layout to which i'm loading in a swf using

onClipEvent (mouseDown) {
loadMovieNum("web_d_port.swf", 1);



this seems to work........ but when I try to load various other minor particles into the second swf file doesnt seem to load...... the problem is that while the second swf is totally animated the third layer of wordings is kind of alpha'd in....... so the animated background is slightly visible.

the problem that I have is that the third one doesnt seem to load its mini assets....... can anyone help me out...

I've tried avoiding any clashing of levels meaning each individual swf loads into a seperate LEVEL....... need some help!!!!!!!!!!!!!!need some help

Error Message Loading Pic
Hi,
when it says "error opening file name// ...path..../pic1.jpg"
what exactly is meant or wrong? I know it sounds like a stupid question but but I need to know.

Thanx

Loading Sound Error
i build a courseware using flash MX 2004 and using a load sound function as display.
_global.tgt.splice(tgtIndex-1, 1);
_parent.snd = new Sound();
_parent.snd.loadSound("LA2/LA2_63_vo3.mp3", true);
_parent.snd.start();
_parent.snd.onSoundComplete = function() {
play();
tgtIndex = _global.tgt.push(_target);
};

and the function to stop the sound are:
function playSND() {
if (sndStatus == "paused") {
snd.start(sndPos/1000);
sndBgMusic.start(sndBgMusicPos/1000);
} else if (sndStatus == "stopped") {
snd.start();
sndBgMusic.start();
}
sndStatus = "playing";
MCPlay.gotoAndStop(1);
}
function pauseSND() {
trace("SS");
sndStatus = "paused";
sndPos = snd.position;
sndBgMusicPos = sndBgMusic.position;
snd.stop();
sndBgMusic.stop();
MCPlay.gotoAndStop(2);
}

but the problems occured when i click the play pause btn so many times (non stop clicking) where is it not stop where at the current position (supposed to be stop) and also it will jump to other frames to another. can somebody give an advice about how to solve this solution.

[F8] XML Loading Order Error
Hi,

I was hoping I could get some help with this code for a thumbnail image display , data loaded from an XML file, http://www.julianbenjamin.co.uk/.

All the thumbnails are loading on the stage correctly and in the correct order when playing movie locally, but as soon as I try Simulate Download or view the movie from the web the thumbnails lose there order.

after clicking the other categories several times the order seems to sort itself out, so im lost as to what is going on, I thought it might of been the size of the thumbnail size, but no luck after reducing...

can anyone help here is the code and the FLA is attached

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
itemname = [];
description = [];
thumbnails = [];

total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
itemname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("commercial.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
disPos = 1;
YPos = 0;
XPos = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
//preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
preloader._visible = true;
picture._alpha = 0;
picture.loadMovie(image[p],1);
name_txt.text = itemname[p];
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p],1);
name_txt.text = itemname[p];
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0],1);
name_txt.text = itemname[0];
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller",1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._heig ht)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+40)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k,thumbnail_ mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {

target_mc._x = (target_mc._width+2)*disPos;

target_mc.pictureValue = k;
target_mc._alpha = 30;
disPos++;
//trace((target_mc._width+2)*disPos);
//trace(k);
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
preloader._visible = true;
};
target_mc.onRollOver = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 10;
} else {
this._alpha = 100;
}
};
thumbNailScroller();
name_teaser.text = itemname[k];
};
target_mc.onRollOut = function() {
this.onEnterFrame = function() {
if (this._alpha>30) {
this._alpha -= 10;
} else {
this._alpha = 30;
}
};
name_teaser.text = "";
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k],"thumbnail_mc.t"+k);
}

[CS3] Surreal Loading Error
hi,
i have really weird problem with loading external .swf into my pageflip magazine.
For loading them I use this kinda code

listener.onLoadInit = function(target:MovieClip):Void {
xxx
xxx
}
contentLoader.addListener(listener);
contentLoader.loadClip("x.swf", y);

where the code within onLoadInit is executed ONLY and ONLY if the clip is fully loaded of course. Now in the standalone Flash player or simulated downloading again in Flash workarea I never have this problem but live in opera or explorer, some pages sometimes just don't load, and yet the code in the onLoadInit is executed.

I tryied figuring out whether maybe the page is just off the screen somewhere, but no, those pages that I couldn't see weren't there for sure bcus I was unable to target any of the elements on those pages.

So the point is that even if an error occurs the code onLoadInit is executed. And I have to mention aswell that all pages start showing some loading process but when it comes to 100% some pages just don't appear. Weird as it is.
Can anyone give me a tip about this? thx a lot

Loading Exernal Swf Error
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

I'm trying to load the external .swf into a movie clip, and I don't have any text file link to external.swf. Used exactly the same code to load another external swf into a different movieclip and it works fine, only this one is having this error, please if you have any idea what's going on...

[F8] Error Loading Url Problem Help
hi, I have been having this problem for days now and i just can't seem to figure it out.

basically i am using the netStream class to play flv video from a http address. I have been experimenting by using video from youtube which works fine, but only for about a day.

when i come back to test the movie ctrl-enter the output window says that there was an error opening url. whats going on??? it was working before so why the probelm now???

I have tried the adobe flash player settings manager and have specified the .swf to communicate with the internet.

Please if anyone could suggest something it would be much appreciated.

I am on a mac with safari browser, using flash pro 8.

[CS3][As2] Error When Loading In Web Browser?
Hi.
In my swf I will dynamicly load a number of pictures into the swf.
But I want to see if the file exist first otherwise i will get a number of errors in the web browser when I try to load them. So how can I see if a file exist without getting an error in the browser if it don't?

[F8] Error Opening URL When Loading XML
Hi,
I'm trying to load some URLs from a XML file.
The .fla, .swf and .xml files are all located on my desktop.

My code for loading the XML is:

Code:
url = new Array();
function loadXML(loaded) {
if (loaded) {
for (zx=0; zx<this.firstChild.childNodes.length; zx++) {
url[zx] = this.firstChild.childNodes[zx].childNodes[0].firstChild.nodeValue;
}
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("urls.xml");
The error the outputs is:

Quote:




Error opening URL "file:///C|/Documents%20and%20Settings/User/Desktop/undefined"




My XML file name is urls.xml .

The file itself appears to be loading because 2 URLs show up, while 1 does not. I have a total of 3 URLs in the .xml file.



What am I doing wrong?
Thanks in advance.

Error Loading Xml On Some Systems
I have an ActionScript program that loads an XML file from the server to control an animation. It works great for most people, most of the time. But there are some systems on which the XML load fails all the time. They aren't on old versions of Flash player, they have plenty of RAM, current operating systems, etc. If they access the XML file directly from a browser, it loads fine, so their systems can access the file (but not from my ActionScript). I can't figure out why it fails for these folks when it works for the vast majority of users.

Below is a fragment that loads the xml and tests for success. I'd appreciate any suggestions on what I might be doing wrong here or how to make it more robust, or how else to track it down. (If you want to see the application running, visit http://www.BoatingSF.com/ais_map.php.)


Code:
var xmlAddr = "http://www.boatingsf.com/ais_test.xml"+"?n="+Math.random();
// note: random number added to force load of new file rather than cache
pos_xml = new XML();
pos_xml.ignoreWhite = true;
pos_xml.load(xmlAddr);

pos_xml.onLoad = function(success) {
if (success) {
trace("XML read succesfully");
// process the xml file here
}
else {
trace("Error loading XML file");
}
}
Thanks in advance for any suggestions.

Michael

Error Loading External SWF's Twice
Hey guys ,
I am using the open source page flip by Macc (http://www.iparigrafika.hu/pageflip/)

I load it into a empty movie clip

Code:
_r=this.createEmptyMovieClip("resumeHolder",this.getNextHighestDepth());
_r.loadMovie("resume.swf");
It works fine
Then I remove it using

Code:
_r.unloadMovie();
_r.removeMovieClip();
Then when I load it the second time it loads the external swf fine but it doesnt work correctly. The same thing happens when I am testing just the pageflip swf inside the Flash8 IDE, when I test it by pressing Ctrl + Enter
and then press ctrl + enter 2ce to reload it without closing the window.

Hope I am making sense

cheers
firdosh

Help Error Loading Flash
Hi people
I'am really new here and new to use Action script.I have used some open source files but always getting the following error when inclding them in my own flash "The files work perfectly when alone, but when i paste them in another flash that has many scene i got this msg:


Code:
**Error** Scene=Scene 4, layer=Layer 13, frame=2:Line 1: ')' or ',' expected
set("xpos" add c, random(200));
The action in frame 2 line 1 is:


Code:
set("xpos" add c, random(200));
set("speed" add c, Number(random(4)) + 2);
duplicateMovieClip("/flake0", "flake" add c, c);
setProperty("flake" add c, _x, eval("xpos" add c));
size = Number(random(50)) + 25;
setProperty("flake" add c, _xscale, size);
setProperty("flake" add c, _yscale, size);
for (i = "1"; Number(maxFlakes) >= Number(i); i = Number(i) + 1)
{
setProperty("flake" add i, _y, getProperty("flake" add i, _y) + (eval("speed" add i)));
} // end of for
please, any help will be appreciated...

Can't Activate...Error During Loading
Hello:
I installed Pro Flash 8 and when I load the program it freezes
at the "initializing fonts" section. Therefore, I can't activate it!
Thank you in advance for any hints, help or suggestions.

Error With Loading XML File.Help Me
Hi!

I am trying to make an mp3 player for my web site but I am having a little problens and I hope you can help me out.
It is a xml driven mp3player. I have a mp3player.as file and a songs.xml file. Inside my flash movie I only have #include "mp3player.as".

Here is my mp3player.as code :

[CODE]
//Setup Sound Object
var s :Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);

//Array of sounds
var sa:Array = new Array();

//Current Playing Song
var cps : Number = -1;

//Load the XML into a xml file
var xml :XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes : Array = this.firstChild.childNodes;
for(var i=0;i<nodes.length;i++)
{
sa.push(nodes.attributes.url);
}
playSong();
}

xml.load("mp3player.xml");


// Play mp3 file
function playSong() :Void
{
if(cps == sa.length -1)
{
cps = 0;
s.loadSound(sa[cps],true);
}
else
{
s.loadSound(sa[++cps],true);
}

}
[/CODE]

And here is my songs.xml file :
[CODE]
<?xml version="1.0" encoding="UTF-8"?>
<songs>
<song url="musicsetsite.mp3" />
<song url="musicSoul Magic - Soul Magic.mp3" />
<song url="musicTechnotronic - NRG Flow.mp3" />
</songs>
[/CODE]

Everytime I test my movie I have this msg :
Error opening URL 'file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/Web%20Sites/site%20MAIO%202007/undefined'

What is wrong with my code?

When I comment this line xml.load("songs.xml") my movie runs fine.But I cant fix it..

thank you

Loading A Swf From An Swf Gets URL Not Found Error
I have a loader.swf which loads other swf files and plays them. I put all the swf files in the same diectory and it works fine locally. When I put it into our webserver and try to run it, I get the error below.

#2035: URL Not Found.

The code to load in the loader.swf looks like:

function init(){
var url:String = "page1.swf";
var urlReq:URLRequest = new URLRequest(url);
ldr = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);
ldr.load(urlReq);
}

Anyone know whats causing it? How shoudl I be pathing it?

Very Strange Jpg Loading Error
Hi There,

I've just been experimenting with using the MovieClipLoader object to load jpg images. I've copy and pasted the example from the the manual and it all works fine.

I then modified the example to load images from my website instead of the example image on the macromedia website. This is where things started to get strange.

If the image the flash loaded from my website was an actual jpg file on the webserver it works fine. But if the image is generated by a php script that is url rewritten to look like a jpg the flash fails with the error below:

Error opening URL "

Error On Loading Crossdomain.xml Over In IE
The flash movie in my server (www.mydomain.com) is trying to access data from a different domain (www.otherdomain.com). I've placed the crossdomain.xml in the webroot of the otherdomain.
I am getting flash error on accessing the data from otherdomain. When I tracked the HTTP request sent, it shows only one request with URL: https://www.otherdomain.xml/crossdomain.xml and Result: INET_E_SECURITY_PROBLEM.
Its clear from this result that IE is not able to load crossdomain.xml file from otherdomain.
The same application works in Mozilla Firefox and failing in IE6.

Can anyone give me reason for this error in IE and solution?

Strange Error Loading SWF
Hi,

Hopefully someone here can help me with a strange error I'm receiving when trying to load an external SWF.

Basically, I have a Document Class which creates a loader object when the Class Constructor is run.

e.g. (note I've removed a lot of code for readability purposes)
quote:
public class Content extends MovieClip
{
public function Content()
{
// Create the loader object that will load all sub pages
_Loader = new Loader();
_Loader.y = 182;
addChild(_Loader);
}


Later in the code I have a function which loads different SWF files into the loader object. The function has one argument which is the name of the SWF being passed to it from a list of menu buttons.

So for example,
if I click on the HOME button then the function gets passed "Home" as an param and loads "Home.swf" into the loader.
if I click on the ABOUT button then the function gets passed "About" as an param and loads "About.swf" into the loader.

e.g. (again, please note I've removed a lot of code for readability purposes)
quote:
public function loadContent(c):void
{
// Request the content
_Request = new URLRequest(c + ".swf");

// Load the content
_Loader.load(_Request);

// Check loading progress
_Loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, checkProgress);

// Update progress bar
function checkProgress(e:ProgressEvent):void
{
// CODE FOR SHOWING A LOADING BAR GOES HERE...
}

// Check for errors loading the content
_Loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);

// Handler any errors that come up
function ioErrorHandler(e:IOErrorEvent):void
{
trace("ioErrorHandler: " + e);
}

// Check when content is loaded
_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, contentLoaded);

// Remove the progress bar objects
function contentLoaded(e:Event):void
{
// CODE FOR REMOVING THE LOADING BAR GOES HERE...
}
}


The problem is that when I run my movie, the "Home" SWF gets open/loaded fine when the main movie first loads - when I manually type into my code loadContent("Home") - but when any of my menu buttons get clicked (such as ABOUT) - which calls loadContent("About") - then I get the following error message....

quote:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at MethodInfo-18()


Now I'm not sure why this error is appearing? If I click on the "dismiss all" button then the "About.swf" movie loads fine but I want to understand the error that appears and how to avoid it as I can't have that appearing everytime a user clicks a menu button.

Thanks for any help you can give.

Kind regards,
Mark

Loading External SWF Error
I have successfully creatd the transitions for my site with the Loading external SWF file tutorial. I have the first section of the site loading as the first SWF after the initial base animation as the tutorial suggested, but when I press any of the buttons on the site which are on the main timeline I receive the following error. (The animation and transition plays out fine but this is what comes up in the Output panel for FlashMX 2004 Pro).

Target not found: Target="undefined" Base="_level0.container"
Target not found: Target="undefined" Base="_level0.container"
undefined
false

If anyone can tell me what this means and what to do to clear it I would be greatly appreciative. I am fairly new to this.
Thank you.

P Bragino

Very Strange Loading Error
Hi, I'll try to make this as understandable as possible.

I have 2 swf files, ROOT.swf and V003k.swf.
1) ROOT.swf should preload and run V003k.swf.
2) They are in the same directory.
3) V003k.swf is 40mb. (I know its crazily big for a flash file)

When I try this at home, it works fine; ie, I execute ROOT.swf, and it runs to preload and run V003k.swf.

When I hook it up to my server (both in the same directory) and run ROOT.swf, it runs fine.

I send it to be integrated on a remote server. The person I send it to uploads both files to
http://www.visitsingapore.com/GP/
It works fine here. However, the 2 files are automatically cached and mirrored onto
http://www1.visitsingapore.com/GP/
It needs to be able to run from here as well.

Now here's the problem. When I run ROOT.swf from domain www1, the preloader ALWAYS gives an error while loading halfway. moviecliploader gives loaderror with httpstatus = 0

I'm at my wits end with this. I've tried everything, and am convinced its probably their server causing the problem and not my script. But I want to be sure.

Pls get my ROOT.swf from http://www.earthsg.com/downloads/stb/www1/ The 3rd frame is where I point to the V003k.swf file. You will note that if you change the address to www.visit... it will complete 100% download, but if change it to www1.visit... it will give errors.

Please help!

Loading Swf + Error #1009
I am trying to load an swf, but i get this error:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at spontaneousBox_fla::MainTimeline/spontaneousBox_fla::frame1()
all the code is in the timeline, i tried using Event.INIT and Event.COMPLETE as the event type for my Loader, I have removed all references to 'stage' in the loaded swf, and it plays fine when tested.
I don't know what's wrong. Can someone tell me what's wrong?

Loading Vars Error
Hello

I am trying to load a movie into flash using an asp file to get the names of the url. the start will be "WEB_ADDRESS" and then it will add a the end using script.


Code:
loadMovie("WEB_ADDRESS" + _root.myVars.fileName + [i], "image"+ [i])
it is looking into the ASP file and trying to fine fileName which is the problem. the filename has a number after it, in this case it is the variable [i] but it is returning this


Code:
Error opening URL
'BLAH_BLAH_BLAHfileName=undefined0'
the Blah is the start of the address which you dont need to know about but the undefined with the number after it should be what it is loading. undefined0 should be "fileName0".

is there any way of making it think the _root.myVars.fileName + [i] is all one name?

Thanks

Stupid Saint

Life is only ever what you make of it

Copyright © 2005-08 www.BigResource.com, All rights reserved