ActionScript 3.0 :: Loading External SWFs Error #1009 ?
Oct 8, 2009
I have an index called allproducts and I want users to be able to click on an element and load a new SWF (with several external .as files) that has specifics about that element.When I run JUST the element (SS_glutenfree.swf), it works great. When I run allproducts.swf and click on the gluten free button, I get: TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Handle()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()[code]....
TypeError: Error #1009: Cannot access a property or method of a null object reference. at Gallery()
allproducts.swf is in the folder above SS_glutenfree.swf and all of its .as files (which are Gallery, Handle, and Img).
View 8 Replies
Similar Posts:
Feb 23, 2009
Having a problem here. I can load external swf files, but once I started on one the pages I end up with the 1009 errorThey work fine on their ownand the placebo page still loads inside the mainREALLY need to get this working. What should I be doing?index.swf
Code:
var xmlPath:String = "index.xml";
var settingsXML:XML;
[code].....
View 1 Replies
Feb 23, 2009
I can load external swf files, but once I started on one the pages I end up with the 1009 error.
They work fine on their own
and the placebo page still loads inside the main
REALLY need to get this working. What should I be doing?
index.swf
Code:
var xmlPath:String = "index.xml";
var settingsXML:XML;
var tweensArray:Array = new Array();
[Code].....
View 4 Replies
Feb 23, 2009
I tried to load external swf in my mainpage.fla file. when Itest movie in flash, it throws error.Error #1009: Cannot access a property or method of a nullobject reference.
View 1 Replies
May 10, 2010
I am trying to load a menu as an external file .... and getting this :
TypeError: Error #1009: Cannot access a property or method of a null object reference. at com::menu()
Here is my code:
if(!menuLoader){
var menuRequest:URLRequest = new URLRequest("menu.swf");
var menuLoader:Loader = new Loader();
menuLoader.load(menuRequest); container.addChild(menuLoader);
menuLoader.x = 700; menuLoader.y = 50;
}
View 9 Replies
Jul 28, 2009
I have a button (LOW_btn), located in one movieclip, and is set to play the next frame of another movie clip "bodybox_mc" and at the same time load an external .txt file into a dynamic text box "musictext_txt", which is deeper within the "bodybox_mc". (There is an update to "musictext_txt"'s scrollbar as well). However at runtime i receive the error 1009 (output is after the code). Here is the code (sorry if the variables and stuff are a bit long):
[Code]....
View 1 Replies
Apr 23, 2012
I have One SWF loading Two External SWFs seprately that have dataGrid components in them. The Externals load and run fine on their own but when I try to load them into CORE SWF I get ....
TypeError: Error #2007: Parameter child must be non-null.
at flash.display:isplayObjectContainer/addChildAt()
at fl.controls::BaseButton/drawBackground()[code]..............
View 2 Replies
Feb 5, 2009
I have an index.swf that serves as the main part of my page, and it loads swfs as sub pages.One of my sub pages, home.swf, needs to be able to load it's own set of sub pages as well, which means I'll have a swf within a swf within a swf (index.swf > home.swf > home_1.swf). When I test compile home.swf by itself, it works fine. But when I test compile index.swf, I get the Error #1009. Here's my code with the line indicated where the debugger says the problem is:
Code:
// index.fla ///////////////////////////////////////
stop();
[code].....
View 10 Replies
Sep 11, 2009
I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf
View 3 Replies
Mar 26, 2009
TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-11() where is methodInfo-11?
[Code]....
View 4 Replies
Aug 9, 2010
Error #1009: Cannot access a property or method of a null object reference.
This is the error I cannot seem to understand. On the stage I have a movie clip, mcTree. It's keyframe is in frame 3143. There is no tween or anything. In frame 3144, I have the following actionscript:
mcTree.gotoAndStop(2);
I publish the movie and I get to frame 3144 then BAM TypeError: Error #1009: Cannot access a property or method of a null object reference.
at 2file_fla::MainTimeline/frame3144()
As you can tell, I'm more than 3000 frames into my animation here and have made it this far using this method, and it has worked.
View 4 Replies
Oct 11, 2009
I am trying to load an external swf (which references external files) everything seems to be fine only when i publish it i get error 1009
Here is my code
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("mainVideo/preview.swf");
[Code].....
and write the same code but i still get the error.
I read about referencing external swf with referenced files, seems to be an issue with that, am i right?
View 15 Replies
May 4, 2011
I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.
View 2 Replies
Jun 3, 2009
I'm trying to unload an external SWF, and this seems to work, but i get the #1009 error, and i can't figure out why.
Code:
stop();
this.removeEventListener(Event.ENTER_FRAME, gotTicket);
var loader:Loader = new Loader();
[code]....
View 21 Replies
May 7, 2010
I have write this code to load an .swf external file:
Code:
import flash.display.Loader;
//import flash.display.Sprite;
import flash.net.URLRequest;
[Code].....
And I've this error
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gare_fla::pda_777/frame110()
at flash.display::MovieClip/gotoAndPlay()
at gare_fla::pda_777/goHome()
View 1 Replies
Apr 10, 2009
Specifically, I am building a flash page that loads external swf files and inside some of the external swf files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf
View 1 Replies
Jan 7, 2010
I am trying to load a video and I get the 1009 error in Firefox, but not in Internet Explorer.
var myVideo:NetConnection = new NetConnection();
myVideo.connect(null);
var newStream:NetStream = new NetStream(myVideo);
var videoHolder:Video = new Video(720, 480);stage.addChild(videoHolder);
videoHolder.attachNetStream(newStream);
[Code] .....
View 6 Replies
Aug 4, 2010
I want to load an external swf when it's fully loaded. Then this is the code
ActionScript Code:
var contentLoader:Loader
function processSWF():void
{
[code]....
but flash give me TypeError: Error #1009: Cannot access a property or method of a null object reference instead, if i don't insert the listener, all goes fine
View 6 Replies
Aug 29, 2007
Well the shiny new app is now 830K and needs to be preloaded. Simple eh? I've got a preloader that works nicely but I've been trying all day to find a reasonable way to load a swf that was compiled as a document class. My solution was to make a bare bones swf that would preload my main app swf:
[Code]....
View 6 Replies
Apr 3, 2009
I´m having one problem with my .swf file which I´m trying to add to stage. It needs also a .xml file to work because it includes all the images and so on. I downloaded it from here for free : http:[url].....I tried to use this kind of a code
Code: Select allvar requestObj:URLRequest = new URLRequest("featureSlider.swf");
var loaderObj:Loader = new Loader();
addChild(loaderObj);
loaderObj.load(requestObj);
but with no result. Some error appears to the output window:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at featureSlider_fla::mc_featureSelector_4/featureSlider_fla::frame1()
Here´s the code of the .fla file
Code: Select allimport fl.transitions.*;
import fl.transitions.easing.*;[code]........
You are able to download the. zip packet as well over here http:[url]......add to the code to get it work? some if statement or what?
View 2 Replies
Apr 27, 2010
I am kinda new to flash but pretty well off in the beginner stage. I am currently creating a flash website for a client and need help with full screen issues im having.
My main swf has the following code:
[Code]...
When i publish i get the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at nexter_fla::MainTimeline/initialDisplay() But you need to realize that this error comes after I have clicked twice. By this i mean the "nexter" loads at the start up of the SWF. Then if I click "one_btn" or "two_btn" my swf still works. BUT! the moment click the opposite btn i get the above error. Wats going on?????
View 1 Replies
May 19, 2009
By itself, the gallery that I found here [URL] can run successfully.But when I load it into another movie I got this error :
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at classes::Script()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at classes::ImageViewer()
[code]....
View 1 Replies
Aug 30, 2009
I am trying to load an external swf file. It loads just fine, but when I try to attach it to the stage, it completely overwhelms the parent swf as if it was on top of everything. It also occurs when I attach it to a movieClip. Again, nothing is clickable on the parent swf (even at places, where the moveClip isn't on). When I used an event listener to attach it, nothing got displayed at all.Here is the code:
Security.allowDomain("http://[path-to-3rd-party-server].swf?camera_id=9593");
var camRequest:URLRequest = new URLRequest("http://[path-to-3rd-party-server].swf?camera_id=9593");
var camLoader:Loader = new Loader()[CODE3].....
}
I also seem to getting a "TypeError: Error #1009: Cannot access a property or method of a null object reference." if I don't use "addChild(camLoader)".
View 3 Replies
Jan 12, 2010
how can i load 3 external swfs into one movieclip at the moment i can only get it to load one or it may be loading each clip over the previous one.
View 3 Replies
Apr 27, 2006
I'm doing the tutorial for "transitions between external SWFs", but I'm having a problem because in the tutorial all of the buttons are on the main timeline, but in my site the buttons are on a different timeline. This is the actionscript that the tutorial tells me to use....
on (release) { if (_root.currMovie == undefined) { _root.currMovie = "work"; container.loadMovie("work.swf"); } else if (_root.currMovie != "work") { if (container._currentframe >= container.midframe) { _root.currMovie = "work";
[code].....
View 5 Replies
Feb 22, 2009
iv made a flash site using as3 using the actionscript on thefirst frame, this by itself works fine.iv also used an online tutorial tocreate a dynamicslideshow/photo gallery which again works fine, but this time usingan external .as file.When i try to load the external slideshow/gallery into amovieclip in the site it dosnt work and i get this error:TypeError: Error #1009: Cannot access a property or method ofa null object reference.im pretty sure its because the code used in the main flashfile is on the timeline and the code in the external file to beloaded in is in an external as file.
the code im using to load the external flash file is:
var toload =new Loader();
toload.load(new URLRequest("newfile.swf"));
[code]....
View 2 Replies
Feb 20, 2010
I am trying to figure out where is the problem with loading external swfs on a site that i uilt..actionscript 2. The site has an intro slide show and buttons underneath. It plays everything But when you go to "works" and click on a gallery, it takes you to that frame and although it looks like it starts loading it bubs you back to the beginning.
[Code]...
View 1 Replies
Dec 5, 2011
Iam try to load swf files from another directory. it is creating security error how can i solve this problam
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. app:/Main_Air.swf was attempting to load file:///E:/Main/images/background.swf.
at flash.display::Loader/_load()[code]......
View 1 Replies
Mar 31, 2009
I am loading one variable from javascript to one main swf file which does have 2 more links to other 2 external swf files, i want to use the same var to be transfered to those 2 files when they are loaded
This is teh javascript in the header:
function CountryCode(){
document.getElementById('Spotlight_en_gb').SetVari able("ccode", "SU");
}
This script is triggered onLoad when the page loads.
One dynamic text box var name is ccode and instance name countrychk is taking the values and action accordingly, other two files need the same var to use but on LoadMovie they dont get teh value.
Here are the links:
1.
on (release) {
unloadMovie(1);
loadMovie("Movies.swf", 1);
[Code]....
View 5 Replies
May 29, 2009
I have a question regarding the swapping out of swf files in Flash CS3 / AS3.I start my project with a �logo� swf, which has no interactivity.At the last frame, the following code is used to load another swf from the local folder:
-------------------------------------------
//Stop current swf and stop its sound
stop();
SoundMixer.stopAll();
[code]...
How do I remove and/or unload the previous swf when a new one is loaded? and remove that previous swf from memory? Can I give the current swf access to the previous one, then run a �remove� or �unload� function on it?
View 3 Replies