ActionScript 3.0 :: Loading Menu As External File But Getting Error 1009
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
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
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
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 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
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
Jun 17, 2009
I have a site that will load an external .swf for each menu button to display the content for each page. I have found tried several methods to do this and all at least create a loader and display the default .swf without problem.
Heres the code...
***start code***
stop();
var xPos:Number = 0;
var yPos:Number = 125;
[Code].....
Anyway I have no idea what else to try and cannot seem to find anymore information on the subject. Every description of the error just tells me that I haven't nammed something right but I have tripple checked every button and it looks right.
View 3 Replies
Mar 28, 2010
I can't for the life of me seem to find the problem with this 1009 error.I have a Flash Menu as a header for my website with the following actionscript:
//residential buttonresBtn.addEventListener(MouseEvent.CLICK, resLink);function resLink(event:MouseEvent):void { navigateToURL(new URLRequest("residential.html"));}//commercial
[code]....
View 7 Replies
Jul 19, 2011
I tried to load an image in the same folder of the flash but it didn't work.
package {
import flash.display.MovieClip;
import flash.net.URLLoader;
[Code].....
I tried many ways but still didn't get it right T_T
View 3 Replies
Mar 28, 2012
I keep getting this message in flash cs4 when I try to actions to the my menu buttons
"TypeError: Error #1009: Cannot access a property or method of a null object reference. at Enigma_fla::MainTimeline/frame1()"
[Code]...
Frame 1 on the timeline is empty, so I have no idea what I'm doing wrong.
View 6 Replies
Mar 9, 2011
I'm working on a game, and it was working fine until I added more frames. I have a menu (frame 1) and a separate (frame 2) for the main game. Once I added the menu with a play button I stated to get this error when going to frame 2. TypeError: Error #1009: Cannot access a property or method of a null object reference.
at testgame1_fla::MainTimeline/checkHitTest()
[Code]...
View 4 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
Dec 1, 2010
I am trying to load an external variable text file into a movie but it is returning compiler errors. Please suggest a solution. The source code is ......
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.DataFormat=URLLoaderDataFormat.VARIAB LES;
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
[code]....
The external file is "gxcvrt.txt" while name, slogan, rep, button1-7 are the variables to be loaded.The compiler returns the following errors (highlighted in red)
Line 4
'{' expected
Source = function onLoaded(e:Event) :void {
[code]....
View 2 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
Oct 9, 2008
it has been a while before i did something withactionscript again, but does anyone know if there has been some changes about loadingexternal text files in Flash?I tried loading an external text file from a online webserverthat worked fine. But now i wantedto move the text file to a different webserver and i got thiserror:
Error opening URL '
http://wwww.uniqwebdesign.com/mailform_test/dataformcs.txt'
httpStatusHandler: [HTTPStatusEvent type="httpStatus"
[code]......
View 1 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
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 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
Mar 27, 2011
I imported an .FLV file to my Flash.Whenever I run the SWF file of my flash, it kept showing errors (1052 & 1009). I named the imported FLV mod1_vid, everytime I go to the frame where the imported FLV is located, it shows the error 1052 and 1009(in that order)
I checked my settings, and checked "Automatically declare stage instances" and made sure that the imported FLV has an instance name.The frame contains a button that skips to the next part of my flash,and one of the function of that button is to stop th imported flv file
ActionScript Code:
btn_skip1.addEventListener(MouseEvent.CLICK, btnSkipTut1);
btn_mod1_tut_next.addEventListener(MouseEvent.CLICK, btnSkipTut1);
[code]....
maybe the FLV itself is a problem since maybe Flash declared the FLV as Private?
View 0 Replies
Apr 21, 2008
i'm trying to load a swf with some as2 code into a swf file coded in as3, I am using a Loader object and when trying to load the as2 swf file i keep getting this: TypeError: Error #1009: Cannot access a property or method of a null object reference
View 11 Replies
Nov 18, 2009
I'm trying to load a swf called "polaroids.swf" into my main swf called 9replacesSWF.swf". I keep getting the error when I test the movie. I'm completely lost and have been at this for hours. If I just test polaroids.fla the movie works fine but if I try to load it into 09replacesSWF.swf, I get the error.I tried to debug the movie and flash says......."Cannot display source code at this location"........ TypeError: Error #1009: Cannot access a property or method of a null object reference. at Polaroids$iinit()
Here is my AS code
package import flash.display.*; import flash.filters.* import flash.utils.*; import flash.net.*; import flash.events.*; import
[code].....
View 7 Replies
Apr 23, 2010
I just found the external preloader tutorial and it's Perfect, exactly what I needed! I just have one issue which I can't figure out.. It all works fine with other swf files such as the content.swf example it comes with, however when I try link it to a site I'm making (a fluid as3 layout) it states: "TypeError: Error #1009: Cannot access a property or method of a null object reference. at Website()" Here is the syntax - it's just the same as on the tut but trying to load 'website.swf'..
[Code]...
View 4 Replies
Jul 26, 2011
I am quite confident i am having no issue with my preloader codes and have managed to identify why i keep getting the Error #1009: Cannot access a property or method of a null object reference. My preloader.swf is loading a home.swf. Within this home.swf i have some codes that makes reference to the stage. EG stage.stageWidth/2 Once i deleted away this line of code there is no error. Is there anyway that i can still reference my stage in home.swf without getting Error #1009?
View 2 Replies