search for: createtextfield

Displaying 15 results from an estimated 15 matches for "createtextfield".

2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
...g differ diff --git a/test/image/text-field-autosize.as b/test/image/text-field-autosize.as new file mode 100644 index 0000000..3aee9ba --- /dev/null +++ b/test/image/text-field-autosize.as @@ -0,0 +1,19 @@ +// makeswf -v 7 -r 1 -s 200x150 -o text-field-autosize-7.swf text-field-autosize.as + +this.createTextField ("t1", 0, 25, 25, 100, 100); + +t1.autoSize = "left"; +t1.background = true; +t1.backgroundColor = 0xFF0000; + +this.createTextField ("t2", 1, 25, 25, 100, 100); + +t2.autoSize = "center"; +t2.background = true; +t2.backgroundColor = 0x00FF00; + +this.createT...
2007 Nov 01
0
2 commits - libswfdec/swfdec_text_field_movie.c test/image
.../dev/null +++ b/test/image/text-field-color-transform.as @@ -0,0 +1,22 @@ +// makeswf -v 7 -r 1 -s 200x150 -o text-field-color-transform-7.swf text-field-color-transform.as + +var c1 = new Color (this); +c1.setTransform ({ ra: 50, rb: 244, ga: 40, gb: 112, ba: 12, bb: 90, aa: 40, ab: 70}); + +this.createTextField ("t1", 0, 25, 25, 300, 300); + +t1.border = true; +t1.background = true; +t1.backgroundColor = 0xAA0000; + +this.createTextField ("t2", 1, 25, 50, 300, 300); + +t2.border = true; +t2.background = true; +t2.backgroundColor = 0x00AA00; + +this.createTextField ("t3", 2, 5...
2007 Oct 25
0
12 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...w String () +10: String () +11: "test" +12: Number +13: Number.prototype +14: new Number () +15: Number () +16: 1 +17: Array +18: Array.prototype +19: new Array () +20: Array () +21: [] +22: new Array (), __proto__ changed and restored +23: XML +24: MovieClip +25: this +26: TextField +27: createTextField (...) + + 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 + 0 0 + 1 + 2 0...
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
...ME: Not tested yet: The properties should only be created if the +// prototype Object has not been initialized by any object's constructor with +// native properties (TextField, TextFormat, XML, XMLNode at least) + +check_and_reset (); + +var tmp = new TextField (); +check_and_reset (); + +this.createTextField ("t", 0, 0, 0, 100, 100); +check_and_reset (); + +this.createTextField (); +check_and_reset (); + +this.createTextField ("t"); +check_and_reset (); + +this.createTextField ("t", 0); +check_and_reset (); + +this.createTextField ("t", 0, 0); +check_and_reset ()...
2007 Oct 17
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_movie.c libswfdec/swfdec_system_as.c libswfdec/swfdec_text_field_movie.c test/trace
...ndefined +undefined diff --git a/test/trace/text-field-variable.as b/test/trace/text-field-variable.as new file mode 100644 index 0000000..68dee49 --- /dev/null +++ b/test/trace/text-field-variable.as @@ -0,0 +1,36 @@ +// makeswf -v 7 -r 1 -o text-field-variable-7.swf text-field-variable.as + +this.createTextField ("t", 0, 0, 0, 50, 50); + +// movie clip +this.createEmptyMovieClip ("m", 1); +m.test = 1; +t.variable = "m.test"; +trace (t.text); +m.test = 2; +trace (t.text); +t.text = 3; +trace (m.test); + +// object +o = new Object(); +o.test = 1; +t.variable = "o.test"...
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question.. I often crash my Safari when using ''Enter'' on InPlaceEditor''s for submitting. Works fine on firefox(win & Mac) - no javascript errors. Anyone else seen this behavior? (Maybe it is just my alterings of InPlaceEditor :-) Best Regards Michael Krog
2007 Oct 14
0
10 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...NULL && ((SwfdecFormatIndex *)(iter->next->data))->index <= start_index; commit b12359a1bb3a12b72aed6561ab2d1b1ee225eb26 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sat Oct 13 15:53:14 2007 +0300 Convert the x, y, width and height units correctly in createTextField diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libswfdec/swfdec_text_field_movie_as.c index 8d7389a..8a08dd2 100644 --- a/libswfdec/swfdec_text_field_movie_as.c +++ b/libswfdec/swfdec_text_field_movie_as.c @@ -677,10 +677,12 @@ swfdec_text_field_movie_createTextField (SwfdecAsContext *cx,...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...uot;, true], + ["_global.MovieClip.prototype", "beginMeshFill", true], + ["_global.MovieClip.prototype", "clear", true], + ["_global.MovieClip.prototype", "createEmptyMovieClip", true], + ["_global.MovieClip.prototype", "createTextField", false], + ["_global.MovieClip.prototype", "curveTo", true], + ["_global.MovieClip.prototype", "duplicateMovieClip", false], + ["_global.MovieClip.prototype", "endFill", true], + ["_global.MovieClip.prototype", "ge...
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...+ t.hscroll); + if (t.maxhscroll > 100) { + trace ("maxhscroll: ~" + (t.maxhscroll - t.maxhscroll % 100)); + } else { + trace ("maxhscroll: " + t.maxhscroll); + } + trace ("maxscroll: " + t.maxscroll); + trace ("scroll: " + t.scroll); +} + +this.createTextField ("t", 1, 0, 0, 100, 100); + +var fmt = new TextFormat (); +fmt.size = 14; +t.setNewTextFormat (fmt); + +trace ("# EMPTY"); +trace_scroll_properties (); + +trace ("# WITH TEXT"); + +t.text = "asdfo jsofa jsapofjpsajf pjsadpfjsapf josapof jsafjposajf pjsapfj dposajf...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...4 @@ +// makeswf -v 7 -s 200x150 -r 1 -o mask-textfield.swf mask-textfield.as + +rectangle = function (mc, color, x, y, w, h) +{ + mc.beginFill (color); + mc.moveTo (x, y); + mc.lineTo (x, y + h); + mc.lineTo (x + w, y + h); + mc.lineTo (x + w, y); + mc.lineTo (x, y); + mc.endFill (); +}; + +createTextField ("text", 0, 0, 0, 100, 100); +text.background = true; +text.backgroundColor = 0xFF00; +text.text = "Hello World"; + +createEmptyMovieClip ("a", 1); +rectangle (a, 0xFF, 50, 50, 100, 100); + +text.setMask = a.setMask; +text.setMask (a); + diff --git a/test/image/mask-wi...
2007 Oct 18
0
14 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_format.c
...a/test/trace/remove-movie.as b/test/trace/remove-movie.as new file mode 100644 index 0000000..8d84096 --- /dev/null +++ b/test/trace/remove-movie.as @@ -0,0 +1,37 @@ +// makeswf -v 7 -r 1 -o remove-movie-7.swf remove-movie.as + +// TODO: Button + +this.createEmptyMovieClip ("m", 4); +this.createTextField ("t", 5, 0, 0, 100, 100); + +m.test = "Wasn't removed"; +t.test = "Wasn't removed"; + +// work around ming lowercasing removeMovieClip +t["removeMovieClip"] = _global.MovieClip.prototype["removeMovieClip"]; +m.removeTextField = _global.TextF...
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...ot;, + "target", + "underline", + "url" +]; + +function format_to_string (fmt) { + str = ""; + for (var i = 0; i < properties.length; i++) { + str += " " + properties[i] + "=" + fmt[properties[i]]; + } + return str; +} + +this.createTextField ("t", 1, 0, 0, 200, 200); + +var texts = [ + "a", + "a\rb", + "a\r\nb", + "a\r\rb", + "a<p align='right'>b</p>c" +]; + +t.html = true; + +for (var i = 0; i < texts.length; i++) { + for (var j = 0; j <= 3; j+...
2007 Nov 26
0
14 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_file_reference.c libswfdec/swfdec_load_object.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_system_security.c test/trace
...some other objects + +// no object +var func = this.getSWFVersion; +asm { + push 0, "func" + getvariable + push undefined + callmethod + trace +}; + +var n = new Number (42); +n.func = func; +trace (n.func ()); + +var f = new TextField (); +f.func = func; +trace (f.func ()); + +this.createTextField ("t", 0, 0, 0, 100, 100); +t.func = func; +trace (t.func ()); + +loadMovie ("FSCommand:quit", ""); commit f3ab518943957c3c7e2aef5c7cd5ceea4c00086f Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Thu Nov 22 14:35:41 2007 +0200 Implement MovieClip.getS...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...", + + // format + //"antiAliasType", + "embedFonts", + //"gridFitType", + //"sharpness", + //"styleSheet", + "textColor"//, + //"thickness", + + // misc + //"menu", + //"filters" + ]; + +this.createTextField ("field", 1, 0, 0, 50, 50); + +for (var i = 0; i < properties.length; i++) { + var prop = properties[i]; + trace ("Testing: " + prop + " (default: " + field[prop] + ")"); + for (var j = 0; j < values.length; j++) { + field[prop] = values[j]; +...