Does anybody see what I'm doing wrong? I'm new to the coding part of flash which I guess means I'm still pretty new to Flash. Thanks in advance for any help.
I recieved the repeating errors:
| G:\Flash\Project 2\Project2\DD3.as, Line 103 | 1120: Access of undefined property Lightningflash. |
| G:\Flash\Project 2\Project2\DD3.as, Line 77 | 1120: Access of undefined property Lightningflash. |
| G:\Flash\Project 2\Project2\DD3.as, Line 59 | 1120: Access of undefined property Lightningflash. |
| G:\Flash\Project 2\Project2\DD3.as, Line 30 | 1120: Access of undefined property Lightningflash. |
Code:
import flash.display.MovieClip;
import flash.events.*;
import flash.net.*;
import fl.video.*;
public class DD3 extends MovieClip
{
//boolean to track whether the trailer is playing (for buttons) and/or producing sound
private var isPlaying:Boolean = false;
private var isMuted:Boolean = false;
//attributes
//constructor
public function DD3()
{
//stops all animations (besides the background)
trailer.stop();
board.stop();
board.player.stop();
board.muter.stop();
Lightningflash.stop();
//sets the movie controls to function as buttons
board.player.mouseEnabled = true;
board.player.buttonMode = true;
board.muter.mouseEnabled = true;
board.muter.buttonMode = true;
//adds appropriate event listeners
board.docButton.addEventListener(MouseEvent.MOUSE_UP, gotoDoc);
}
//event function for the "documentation" button
public function gotoDoc(e:MouseEvent):void
{
//makes the trailer "disappear"
trailer.stop();
trailer.visible = false;
seeker.visible = false;
isPlaying = false;
//shoot some lightning from the background
Lightningflash.gotoAndPlay("lightning");
//navigates to the billboard's "documentation" frame and resets event listeners
board.gotoAndStop("Doc");
board.bkButton.addEventListener(MouseEvent.MOUSE_UP, goBack);
board.docScroll.update();
}
The rest of the code are mostly repeating but I am missing something. I know I need to define the Lightningflash but how?
North America
Europe, Middle East and Africa
Asia Pacific