Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 9 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-31-2007, 12:04 AM   #1
Renge
Flash/Flex/AS3 luvr luvr
 
Join Date: Mar 2005
Location: Sausalito, CA
Posts: 43
Default Document class

Hiii.

I'm trying the very simple Document class textfield in the Properties dialog box, where I add in the value: Main

I save that as myFlashCS3.fla. There's nothing else in that .fla.

In that same dir, I have Main.as, which has this code:

Code:
package
{
	import flash.display.MovieClip;
	
	public class Main extends MovieClip
	{
		public function Main()
		{
			trace("holla");
		}
	}
}
I publish my myFlashCS3.fla and the Output shows nothing. I was expecting it to show: holla

What am I doing wrong?

Thank you.
Renge is offline   Reply With Quote
Old 07-31-2007, 12:11 AM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

Looks like it should work. Double-check spelling and naming and file locations.
__________________
(6)
senocular is offline   Reply With Quote
Old 07-31-2007, 12:38 AM   #3
Renge
Flash/Flex/AS3 luvr luvr
 
Join Date: Mar 2005
Location: Sausalito, CA
Posts: 43
Default

I looked it over and all seems to be in order.

I've attached the .fla and the class file for review.

I also made sure that the file system allows me all the rights I may need, and I confirmed that I do have those rights.

Thanks for replying so quickly before.

Thank you.
Attached Files
File Type: zip myFlashCS3.ZIP (5.0 KB, 109 views)
Renge is offline   Reply With Quote
Old 07-31-2007, 12:47 AM   #4
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
Default

it works for me as is
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman
Flash Gordon is offline   Reply With Quote
Old 07-31-2007, 12:54 AM   #5
Renge
Flash/Flex/AS3 luvr luvr
 
Join Date: Mar 2005
Location: Sausalito, CA
Posts: 43
Default

I'm debugging my class file by adding a breakpoint at the trace command, but I'm not sure what to look for that may explain why this isn't working for me.

Any recommendation?

Thank you.
Renge is offline   Reply With Quote
Old 07-31-2007, 01:16 AM   #6
Renge
Flash/Flex/AS3 luvr luvr
 
Join Date: Mar 2005
Location: Sausalito, CA
Posts: 43
Default

Problem solved.

'Verbose' option not selected for Filter Level, which is an item on the Output Panel's context menu.

aaargh!!!

Thanks all for your help.
Renge is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you refer to the Document Class? LostInTheCosmos ActionScript 3.0 17 04-05-2008 03:24 PM
Is a custom event handling class wise? frank grimes ActionScript 3.0 8 07-28-2007 04:25 AM
attachMovie kills MovieClip subclass objects Flash Gordon ActionScript 2.0 10 05-17-2007 08:03 AM
Reusable class ... ? xxlm ActionScript 2.0 3 01-18-2006 04:29 AM
How can I implement a two-way relationship between classes in AS 2.0? MHH ActionScript 2.0 5 10-13-2004 05:35 PM


All times are GMT. The time now is 09:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.