SourceTec Software

It is currently Wed Apr 23, 2014 11:02 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Wed Apr 06, 2011 3:35 am 
Offline
Member

Joined: Wed Apr 06, 2011 12:14 am
Posts: 5
I have a test.as
[code]
package {
import flash.display.Sprite;
import flash.text.TextField;

public class ate extends Sprite {
private var container:Sprite;
private var text:TextField;
public function ate():void {
container = new Sprite();
text = new TextField();
text.text = 'Hello ActionScript!';
addChild(container);
container.addChild(text);
}
}
}

[/code]

I use flex sdk3.5 compiling....to test.swf
But test.swf still show blank_page (missing "Hello ActionScript!")
WHY??


Top
 Profile  
 
PostPosted: Wed Apr 06, 2011 1:31 pm 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
Because your test.as file must be named ate.as


Top
 Profile  
 
PostPosted: Wed Apr 06, 2011 2:43 pm 
Offline
Member

Joined: Wed Apr 06, 2011 12:14 am
Posts: 5
I rename to ate.as (compiling..)
but still show blank_page :cry:


Top
 Profile  
 
PostPosted: Wed Apr 06, 2011 3:35 pm 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
In Publish Settings you need to set ActionScript3 and in Settings write ate.as as Document class.


Top
 Profile  
 
PostPosted: Wed Apr 06, 2011 5:14 pm 
Offline
Member

Joined: Wed Apr 06, 2011 12:14 am
Posts: 5
[quote="PaperMakeiT"]In Publish Settings you need to set ActionScript3 and in Settings write ate.as as Document class.[/quote]

Hi Do you have msn?
I can show settings photo for you.
because not work...still blank_page


Top
 Profile  
 
PostPosted: Wed Apr 06, 2011 7:02 pm 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
Take this file and place it into the same folder as ate.as file


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Wed Apr 06, 2011 10:44 pm 
Offline
Member

Joined: Wed Apr 06, 2011 12:14 am
Posts: 5
It's can work,thank you~

another if I have a swf file and I import this file
and I put the *.as files in my C:\000 (more folders and more as files)
when I compiling...error (Line 7: Syntax error: expecting identifier before leftbrace)

and I save this file (pets.sqf) ,can I send to you ?


Top
 Profile  
 
PostPosted: Thu Apr 07, 2011 1:26 am 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
Send to info @ papermakeit.com


Top
 Profile  
 
PostPosted: Thu Apr 07, 2011 2:45 am 
Offline
Member

Joined: Wed Apr 06, 2011 12:14 am
Posts: 5
please check your e-mail
thank you~


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group