ActionScript 3.0 :: Error #1009 With Nested Swfs?

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


Similar Posts:


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

ActionScript 3.0 :: Error #1009 - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

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

Error #1009 Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

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

ActionScript 3.0 :: 1009 On Nested MovieClip X Translation

Apr 15, 2010

OK so inside one of my object classes i have this function

[Code]....

My preferred simple way of having animations in flash (im not fond of flashes drawing tools ) TA is a movieclip inside the Movie clip that the class is linked to, and TP is the one inside that one which contains the bitmap. Running this function in my enter frame gives me a

[Code]....

View 4 Replies

ActionScript 2.0 :: Getting Nested SWFs To Communicate?

Jan 9, 2009

Whats the simplest way to get a nested swf to modify the value of a variable located in the parent's swf? I'm not sure localConnection is what I need.

Here is a simplified example of my situation:

main.swf
content01.swf
content02.swf

main.swf loads and unloads content SWFs ontop of it's stage.

A piece of script in each content.swf needs to modify the _hieght of a movieclip in main.swf

(imagine the movieclip is a visual container for content, and content that takes up for space needs a taller content box; hence, changing the _height of the movieclip content box)

I'm also animating the movieclip's height expanding using actionscript:

ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var bodySize:Tween = new Tween(BOX_Body, "_height", Strong.easeOut, 200, 500, 2, true);

I figured I could put these lines of code on the first frame of the content.swfs, but change them to affect the "Box_Body" MC on the main.swf stage?

View 4 Replies

ActionScript 2.0 :: Communicate Between 2 Nested Swfs

Feb 26, 2011

I am using a flipbook that I purchased on activeden. It loads swf files as pages. If have one video on page 1 (page1.swf) and one video on page 2 (page2.swf). Both pages are on the same spread. I want the video on page 2 to start after the video on page 1 has finished. So on page 2 I want to listen for a .complete from the video on page one. This is the code that I am using to load the video on page 1 where I need to listen for the .complete.

[Code]...

View 0 Replies

ActionScript 3.0 :: Finding Link URL In Nested SWFs

Feb 27, 2012

I have a "wrapper swf" that loads a remote flash player that in turn loads video preroll ads from various advertisers. So my wrapper is the parent and the remote swf is a child and the video ad is a grandchild. I am looking to capture the url that the grandchild will navigate to when clicked. I am trying to trace it in the parent (wrapper) mouseUP and mouseDOwn event.

Is there a way to traverse ALL children until I get to the "bottom/last loaded" swf and get the URL? I wish to save the url to a variable so I can launch the url in another player of my own as opposed to having it launch an external IE browser.

View 18 Replies

Flash :: Dynamic Loading Of Nested Swfs

Dec 12, 2011

Background: I have a class called MultipleChoiceQuestion which pulls the stem and choices from an xml file. The choices for each question are randomized. The Quiz class has a set of specified multiple choice questions which it loads dynamically. It also references the xml file to determine # of questions. The quiz controls the question progression based on correct answers. The main movie launches the quiz at the appropriate time.

Issue I want the question building to be dynamic and load the choices and randomize them. How do I do this? Right now I publish the quiz as a swf and then load it into the main movie, but that is static and always has the same choices in the same order. How can I do this dynamically?

View 1 Replies

ActionScript 3.0 :: Find Link URL In Nested SWFs?

Feb 27, 2012

I have a "wrapper swf" that loads a remote flash player that in turn loads video preroll ads from various advertisers.

So my wrapper is the parent and the remote swf is a child and the video ad is a grandchild.

I am looking to capture the url that the grandchild will navigate to when clicked.

I am trying to trace it in the parent (wrapper) mouseUP and mouseDOwn event.

Is there a way to traverse ALL children until I get to the "bottom/last loaded" swf and get the URL?

I wish to save the url to a variable so I can launch the url in another player of my own as opposed to having it launch an external IE browser.

View 0 Replies

Professional :: Error - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null

Feb 28, 2010

Starting new thread for this topic as suggested by forum. I have a website which tweens movieclip pages (named home, bio, music, video and contact). Love the effect and trying to keep it.  Main timeline contains the main buttons (home_btn, bio_btn, music btn, video_btn, contact_btn).  Music page has a XML mp3 player contained in it with button control.  Video page has an encoded video with no code. 
 
I need the following:

1 - Music and video to shut off as those pages/movieclips tween off the stage.  Gets annoying with them playing especially at the same time

2 - Music player to play correctly.  It is not with the new code.
 
I have the following code.  The "Tween Code" is on frame 1 of the main timeline of the movie.  The "MP3 code" is on frame 1 of the music movie clip. I am getting the following ERROR message when running my movie.  I ran the Debugger as I publish and it points to music.my_channel.stop(); in below code.  My thought process on this was that it would reach out to the music movieclip, find my_channel and stop it.

[Code]...

View 9 Replies

ActionScript 3.0 :: MyButton_btn Does Not React To Click Events , Get An Additional Error Error #1009?

Sep 30, 2009

I have created an invisible button myButton_btn inside a moviclip with instance name supermarket_mc. The supermarket_mc is based on a class Supermarket, which has the following code and works fine.

public class Supermarket extends MovieClip
{
public function Supermarket()[code]....

Now, if I have a button on Stage they work fine when I add a listener to them. However, when I add a listener to myButton_btn ie:

supermarket_mc.myButton_btn .addEventListener(MouseEvent.CLICK, turn);

myButton_btn does not react to click events and I get an additional error Error #1009: Cannot access a property or method of a null object reference.I suspect that the MouseEvent.CLICK in the class definition overrides the MouseEvent.CLICK on the nested button.

View 4 Replies

Professional :: TypeError: Error #1009 - (Null Reference Error) With Flash?

Jun 13, 2010

I am not an expert in flash, but i do work with AS and tweak Flash projects , though not having deep expertise in it. Currently i need to revamp a flash website done by one another guy, and the code base given to me, upon execution is throwing the following error."--- TypeError: Error #1009: Cannot access a property or method of a null objectreference.atNewSite_fla::MainTimeline/__setProp_ContactOutP1_ContactOut_Contents_ 0() at NewSite_fla::MainTimeline/frame1() --"The structure of the project is like, it has theifferent sections split into different movie clips. There is no single main timeline, but click actions on different areas of seperate movie clips will take them between oneanother.All the AS logic of event handling are written inline in FLA , no seperate Document class exists.

Preloader Movie clip is the first one getting loaded. As i understood the error is getting thrown initially itself, and it is not happening due to any Action script logic written inline, because it is throwing error even before hitting the first inline AS code.I am not able to figure Out what exactly it causing the problem, or where to resolve it. I setup the stuff online, for reference if anybody want to take a look at it, and here is the link.You need to have flash debugger turned ON in your browser, if need to see the exception getting triggered.

View 7 Replies

Flash :: Flex - TypeError: Error #1009 - (Null Reference Error)

Jun 13, 2010

I am not an expert in flash, but I do work with AS and tweak Flash projects, though not having deep expertise in it. Currently I need to revamp a flash website done by one another guy, and the code base given to me, upon execution is throwing the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at NewSite_fla::MainTimeline/__setProp_ContactOutP1_ContactOut_Contents_0() at NewSite_fla::MainTimeline/frame1()

[Code]...

View 1 Replies

ActionScript 3.0 :: Error: Error #1009: Cannot Access A Property Or Method Of A Null Object Refer

May 4, 2010

I added a flv into my Scene 1 then i added a new Scene.I just wanted to after finishing the .flv flash go to next scene.but when i added a new scene,and I test my movie,the .flv didnt show and i recieved these errors

[Code]...

View 5 Replies

ActionScript 3.0 :: Error TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference.

Mar 10, 2009

This is my code,

stop();
button3.addEventListener(MouseEvent.CLICK, playClick3);
function playClick3(Event:MouseEvent):void {
gotoAndStop(422);
}

On frame 422 there is no code at the moment. I keep getting the error TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 2 Replies

ActionScript 3.0 :: Error Appeared In The Browser TypeError: Error #1009?

Jun 5, 2011

I've been away for a while and I just started to work on my new portfolio website (in flash). The design is finished and I followed a tutorial on youtube called the ''the fluid flash website to keep your flash website always centered''.The tutorial went good but when I wanted to go to another frame with other contents, an error appeared in the browser saying:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at serrick_port2_fla::MainTimeline/resizeDisplay()

The code for the website is:

Code:
stop();
import flash.events.MouseEvent;
var myStage:Stage = this.stage;

[code].....

View 6 Replies

ActionScript 3.0 :: Put Some Code In Second Frame And Gets Error TypeError: Error #1009?

Aug 14, 2011

when all my script code is in the first frame everything working fine, but when I put some code in second frame, i've got the error:

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

in the second frame i've receive the error i wrote about in the beginning. (i click btn_training, script sends me to the second frame, and when i click btn_back i receive the error).

View 2 Replies

ActionScript 3.0 :: Flash Strange Sound Error - Error #1009?

Apr 18, 2012

sometimes I get this strange error during gameplay:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.

[code]...

I still don't know what causes the error. The only thing I discovered is that sometimes an object is null inside of my SoundManager. But I don't know why. I already checked all appropriate arrays if something's missing there but all seems to be ok there.

[code]...

View 3 Replies

ActionScript 3.0 :: Use The Scroll Pane Component - Getting An Error Error #1009: Cannot Access A Property Or Method Of A Null Object Reference?

Oct 1, 2007

I am trying to use the scroll pane component and I am having a few teething troubles. I have a scroll pane as a child object of a movie clip which is essentially a 'page', if I display this page it works fine and the scroll pane does too. If I then remove this page from the display list, go to another page and come back by readding it to the display list, I get the following error, even though nothing else has changed:

TypeError: Error #1009: Cannot access a property or method of a null object reference.at fl.containers::ScrollPane/fl.containers:ScrollPane::endDrag()

The scroll pane is still visible and works correctly, but ideally I'd like to stop this error.

View 3 Replies

ActionScript 3.0 :: Output Error. TypeError: Error #1009?

Feb 25, 2011

I'm creating a simple gallery for a website which literally loads the next image when the image is clicked. I've set it up so that the images fade in. When i preview the .swf file in flash i get the below message:TypeError: Error #1009: Cannot access a property or method of a null object reference.atOutside_Portrait_fla::MainTimeline/fl_FadeSymbolIn_12()Everything seems to work ok, but im wondering if this is going to cause any problems. I've copied in the action script text which i have used below.

stop()
/btn1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);
function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):v oid

[code]....

View 2 Replies

ActionScript 3.0 :: Getting #1009 Error - Can't Find My Error?

Jan 20, 2012

I'm trying to set up a contact form but I get a #1009 error. I read somewhere that it has to do with false targeting but I can't find my error(s). Please help.
 
// Imports needed for radio button grouping
import fl.controls.RadioButton;
import fl.controls.RadioButtonGroup;[code].....

View 3 Replies

ActionScript 3.0 :: Error 1046 Then Error 1009?

Mar 16, 2012

I have code on the first frame of timeline and code in a class file and when publishing I get Error 1046: Type was not found or was not a compile-time constant: MouseEvent. This error gets thrown on the frames where I have buttons and their corresponding MouseEvent code, thus the MouseEvent error I suppose.Although I don't know how to fix it, I tried adding import flash.events.*; to the first frame's code, which resolved the Error 1046, but then caused Error 1009: Cannot access a property or method of a null object reference pointing to line 29 of the class file which states container.addChild(btn); - the last item in the class file below.Each set of code works fine by itself, but when used together causes a problem. Can someone assist with what I need to change? I suppose there is some sort of conflict with the MouseEvents?

Code on the first frame:

ActionScript Code:
stop();
//tried adding import flash.events.*; but it caused Error 1046
I_acknowledge_btn.visible = false;[code].....

View 7 Replies

Flex :: Error In Using "removechild" Error #1009 : Cannot Access A Property Or Method Of A Null Object Reference?

Mar 11, 2010

Below is my code, and the question is explained after it.

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cal="cal.*"
layout="absolute"[code]...

This is exact error message I get: TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 2 Replies

Flash :: "TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference." Error On AIR Project For Using A Button

Dec 29, 2010

So my problem here is, I'm working on my Adobe Air project, so I decided to code some buttons to be able to navigate. The problem here is that I get a error for trying to do so. Here is my code.

[Code]...

I do not see what is wrong actually, I tried this on a blank non-AIR file, and it worked well.

View 2 Replies

ActionScript 3.0 :: How To Fix Error #1009

Feb 26, 2009

there I have a problem with this error #1009!I am making a platform game and I can not fix some bugs.When I use the debugger it says:"TypeError: Error #1009: Cannot access a property or method of a null object reference.at PlatformGame/checkCollisions()[D:gamePlatformGame.as:2445]at PlatformGame/gameLoop()[D:gamePlatformGame.as:951]".On line 2445 in the function checkCollisions() in my as3 file is the following code:

Code:
line 2445: if (hero.mc.hitTestObject(boss.mc))
line 2446:

[code].....

View 4 Replies

Error 1009 Should Be An Easy Fix?

Sep 21, 2010

I just started learning ActionScript 3.0/Flash CS5 a day or two ago, and I am still very early on with it, however I do have some other web development experience with PHP and some Javascript. I am learning from a book that was written for Flash CS4, but it did not seem like a whole bunch was different. I am now getting "Error #1009: Cannot access a property or method of a null object reference. at Main()"

I did several searches for the problem here, but most of the threads referencing this error are far more complex than what I am trying to do, involving multiple, long class files and the timeline. I have been unable to solve my problem after reading through various threads for hours now. Most of the fixes had to do with the timeline, however, all of my GUI is in one frame with no animation.

[Code]...

View 2 Replies

ActionScript 3.0 :: Getting Error #1009?

Aug 30, 2011

However I been coming up with an error which is this :

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Corestructure_Scene1_fla::MainTimeline/movingPlayer()[Corestructure_S cene1_fla.MainTimeline::frame4:83]

[code].....

View 2 Replies

ActionScript 3.0 :: Error 1009 While Calling Swf

Jul 25, 2009

Ive a AS3 xml Image gallery. IM calling it from another fla:

var swfToLoad: String = gallery.swf;
var loader: Loader = new Loader(); loader.load(new URLRequest(gallery.swf)); addChild(loader);

and it keeps saying this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at Gallery$iinit()

View 2 Replies

[AS3] :: Child AddEventListener #1009 Error

Jun 30, 2010

What is wrong with this snippet of code? It gives me a #1009 error. How do I make it so that event listener will work with this child? This is all on the first frame. I want it to stay in the first frame (I don't like using external stuff with packages)

[Code]...

View 4 Replies







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