3 Replies - 3370 Views - Last Post: 13 February 2009 - 12:48 AM

#1 se7ensmatrix1216  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 12-February 09

Full Screen Movie Clip Issues

Post icon  Posted 12 February 2009 - 10:21 PM

My question is what needs to be done in order to make a projector file stay in full screen without falling to a black screen when a movie is played?

I have tried coding it, however I come up with the following error.

Quote:
ReferenceError: Error #1056: Cannot create property worldVideo on flash.display.Stage.

at flash.display::MovieClip/gotoAndStop()
at FixedLayout5_fla::MainTimeline/dropClick()[FixedLayout5_fla.MainTimeline::frame1:77]

For instance. The movie clip is on say frame 11 of the main stage. When you click the button from the drop down menu, it goes to the correct frame, but instead of loading the FLV onto the stage as it is supposed to instead of coming up with the above error and going to a black screen.

What should I do to fix this? This is not going to be an HTML file, however, so the initial thought of changing the publish settings does not seem to work this time. I have ensured that the ActionScript settings are set to Automatically Declare Stage Instances, so this is not the issue, and using the common "package" deal does not yield working results either.

Can someone please help me sort this out?

Is This A Good Question/Topic? 0
  • +

Replies To: Full Screen Movie Clip Issues

#2 skater_00  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 12
  • View blog
  • Posts: 256
  • Joined: 30-April 08

Re: Full Screen Movie Clip Issues

Posted 12 February 2009 - 10:57 PM

Have you tried worldVideo.fullScreenTakeOver = false;?
Was This Post Helpful? 0
  • +
  • -

#3 se7ensmatrix1216  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 12-February 09

Re: Full Screen Movie Clip Issues

Posted 13 February 2009 - 12:26 AM

Yes I have, and I have been given the following Error.

Quote:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at FixedLayout5FS_fla::MainTimeline/frame1()

Here is the full code that I have on frame 1.

stop();

fscommand("fullscreen", "true");
worldVideo.fullScreenTakeOver = false;

//---Photos Page Selection---\\
navBar_mc.photoBTN_btn.addEventListener(MouseEvent.CLICK, photo1F);
function photo1F(event:MouseEvent):void{
	trace("photoBTN_btn was clicked");
	if(currentFrame ==11){
		SoundMixer.stopAll();
		gotoAndStop(1);
	} else {
		gotoAndStop(11)
	} if(lyricsDrop_mc.currentFrame <<2){
		lyricsDrop_mc.gotoAndStop(1);
	} else {
		lyricsDrop_mc.gotoAndPlay(29);
	} if(demoDrop_mc.currentFrame <<2){
		demoDrop_mc.gotoAndStop(1);
	} else {
		demoDrop_mc.gotoAndPlay(29);
	}
}

//---Videos Page Selection---\\
navBar_mc.videoBTN_btn.addEventListener(MouseEvent.CLICK, video1F);
function video1F(event:MouseEvent):void{
	trace("videoBTN_btn was clicked");
	if(currentFrame ==13){
		SoundMixer.stopAll();
		gotoAndStop(1);
	} else {
		gotoAndStop(13)
	} if(lyricsDrop_mc.currentFrame <<2){
		lyricsDrop_mc.gotoAndStop(1);
	} else {
		lyricsDrop_mc.gotoAndPlay(29);
	} if(demoDrop_mc.currentFrame <<2){
		demoDrop_mc.gotoAndStop(1);
	} else {
		demoDrop_mc.gotoAndPlay(29);
	}
}

//---Credits Page Selection---\\
navBar_mc.creditsBTN_btn.addEventListener(MouseEvent.CLICK, credits1F);
function credits1F(event:MouseEvent):void{
	trace("creditsBTN_btn was clicked");
	if(currentFrame ==12){
		SoundMixer.stopAll();
		gotoAndStop(1)
	} else {
		gotoAndStop(12)
	} if(lyricsDrop_mc.currentFrame <<2){
		lyricsDrop_mc.gotoAndStop(1);
	} else {
		lyricsDrop_mc.gotoAndPlay(29);
	} if(demoDrop_mc.currentFrame <<2){
		demoDrop_mc.gotoAndStop(1);
	} else {
		demoDrop_mc.gotoAndPlay(29);
	}
}

//---Dropdown Menu Listeners---\\
demoDrop_mc.addEventListener(MouseEvent.CLICK, dropClick, false, 0, true);
var btnName:String = "";
function dropClick(e:MouseEvent):void
{
	btnName = e.target.name;
	trace(btnName + " was clicked");
	if (String(currentFrame) == btnName)
	{
		gotoAndStop("home");
	} else
	{
		gotoAndStop(btnName);
	}
}


lyricsDrop_mc.addEventListener(MouseEvent.CLICK, drop3Click, false, 0, true);
var btnName3:String = "";
function drop3Click(e:MouseEvent):void
{
	btnName3 = e.target.name;
	trace(btnName3 + " was clicked");
	if (String(currentFrame) == btnName3)
	{
		gotoAndStop("home");
	} else
	{
		gotoAndStop(btnName3);
	}
}

//---Demo Button Dropdown Animation---\\
navBar_mc.demoBTN_btn.addEventListener(MouseEvent.CLICK, demo1F);

function demo1F(event:MouseEvent):void{
	if(demoDrop_mc.currentFrame <<2){
		demoDrop_mc.play();
	} else {
		demoDrop_mc.gotoAndPlay(28);
	} if(lyricsDrop_mc.currentFrame <<2){
		lyricsDrop_mc.gotoAndStop(1);
	} else {
		lyricsDrop_mc.gotoAndPlay(29);
	}
}

//---Lyrics Button Dropdown Animation---\\
navBar_mc.lyricsBTN_btn.addEventListener(MouseEvent.CLICK, lyrics1F);

function lyrics1F(event:MouseEvent):void{
	if(lyricsDrop_mc.currentFrame <<2){
		lyricsDrop_mc.play();
	} else {
		lyricsDrop_mc.gotoAndPlay(28);
	} if(demoDrop_mc.currentFrame <<2){
		demoDrop_mc.gotoAndStop(1);
	} else {
		demoDrop_mc.gotoAndPlay(29);
	}
}

//---Video Buttons to Videos---\\
vids_mc.addEventListener(MouseEvent.CLICK, vidClick, false, 0, true);
var btnName7:String = "";
function vidClick(e:MouseEvent):void
{
	btnName7 = e.target.name;
	trace(btnName7 + " was clicked");
	if (String(currentFrame) == btnName7)
	{
		gotoAndStop("home");
	} else
	{
		gotoAndStop(btnName7);
	}
}

Was This Post Helpful? 0
  • +
  • -

#4 se7ensmatrix1216  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 12-February 09

Re: Full Screen Movie Clip Issues

Posted 13 February 2009 - 12:48 AM

If played outside of Flash via Flash Player 10...it gives both of these codes when you click the button to bring up the video.

Quote:
ReferenceError: Error #1056: Cannot create property worldVideo on flash.display.Stage.

at flash.display::MovieClip/gotoAndStop()
at FixedLayout5FS_fla::MainTimeline/dropClick()

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at FixedLayout5FS_fla::MainTimeline/__setProp_worldVideo_Scene1_AudioTest_4()
at FixedLayout5FS_fla::MainTimeline/frame5()
at flash.display::MovieClip/gotoAndStop()
at FixedLayout5FS_fla::MainTimeline/dropClick()
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1