what action script is suitable for use with MovieClipScript

Questions on using the Translate actionscript compiler.

what action script is suitable for use with MovieClipScript

Postby rhildred » Fri Apr 25, 2008 9:20 pm

Hi Again:

I brought up the translate example, and I think that this is how I get the behavior that I want associated with my movie (only advancing to the next frame when the page-up key is pressed). When I run the example with a "hello world" example I get an output MovieClip.swf but a blank screen when I try to look at the .swf with firefox. This is my hello world script:

// Hello World in Actionscript (Flash MX onwards)

_root.createTextField("mytext",1,100,100,300,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = false;

myformat = new TextFormat();
myformat.color = 0xff0000;
myformat.bullet = false;
myformat.underline = true;

mytext.text = "Hello World!";
mytext.setTextFormat(myformat);

thanks

Rich
rhildred
 
Posts: 12
Joined: Fri Apr 25, 2008 8:02 pm

Postby smackay » Mon Apr 28, 2008 9:25 am

In Translate the built-in flash classes such as Math and in this case TextFormat are treated as special cases so it is possible that the line:
Code: Select all
myformat = new TextFormat();
is being treated as a user-defined class rather than a "system" one.

Can you send me the .swf file that is generated so I can see what the code was compiled into.

Regards,

Stuart
smackay
Site Admin
 
Posts: 594
Joined: Sat Sep 03, 2005 9:04 am


Return to Using Translate

Who is online

Users browsing this forum: buwziawal, stzrfcpbb and 0 guests

cron