Hello strk,

Tuesday, October 31, 2006, 11:43:19 AM, you wrote:
s> mm.. I don't see the reduction with mozilla and the Flash 7.0 r25
s> player... maybe try to reduce further ?

Attached a new version with controllable size.

This revealed a few problems:

- onLoadInit does not get called (that's why it isn't scaled)

- _xscale/_yscale are not pre-initialized. At start _xscale+5 leads to
  a xscale of 5.0 instead of 105.0

- The AGG renderer does not scale the strokes!



Actionscript code:

=== frame 1 (only frame in movie) ===

var container:MovieClip = createEmptyMovieClip("container", 
getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("gravity.swf", container);

function onLoadInit(mc:MovieClip) {
    trace("onLoadInit: " + mc);
        size=50*1;
        mc._xscale = size;
        mc._yscale = size;
}


=== buttons ===

on (release) {
        size = (size*1)-2;  // or +2
        container._xscale = size;
        container._yscale = size;
}

"size" is displayed as text under the buttons.

Udo

PS: Going back to mailing list since this may be of general interest.

Attachment: gravity-embedded2.swf
Description: application/shockwave-flash

_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to