Topic: Flash and Actionscript versions?

Hi,

I'm currently trying my hand at creating some widgets but being a newb need some help!

What version of Actionscript will the Chumby support? - I think it's 2.0 but when I publish a widget with this setting it will not display on the Chumby. Everything works ok with the Actionscript 1.0 settings but I need to use some string parsing thats only available in 2.0.

I'm using Adobe CS3 trial version.   

And one more question if any one knows - What character creates a new line in a flash textbox? - I have a bunch of text that I would like to remove <p> tags and paragraph - I have set the html setting on the textbox but it still shows.

Thanks very much!

James.

2 (edited by lo_toad 2008-02-09 04:41:31)

Re: Flash and Actionscript versions?

As a follow up to this,I get this error when testing the movie with Flaslite 2.1 and AS 2.0 settings:

"Clip events are permitted only for movie clip instances"

The source that generates the error looks like this:

onClipEvent (enterFrame){

if( scrolling == "up"){

  content.scroll--;

}

which is in a sub movie of the main frame - I think...  smile

ta!

Re: Flash and Actionscript versions?

Hi **Please ignore my above posts ive sorted them!!**

chumby is Flashlite 2.1 and AS 2.0!

I still have two questions though:

1) Can a textbox display html at all even simple stuff like <p> and <b> tags?

2) How can insert a newline chracter in a textbox?

Thanks!!

Re: Flash and Actionscript versions?

Actually, the chumby uses Flash Lite 3 and can handle both Actionscript 1 or 2.

1) The "Render as HTML" options supports p, br, sbr, font (with face, color, and size attributes), b, and i.

2) myField.text = "First line.\nSecond line.";

Re: Flash and Actionscript versions?

Thanks Duane, I didn't realise you had to set the htmlText property of the textbox with the content! - Just about to publish my first widget - Woo!