ganado / redtamarin

Automatically exported from code.google.com/p/redtamarin
Other
2 stars 0 forks source link

new projector and abc versioning support #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
as of v0.3.5 even if we declare versioning
this is quietly ignored

for ex
http://code.google.com/p/maashaack/source/browse/platform/avmglue/trunk/src/flas
h/system/Capabilities.as#266

        [API(CONFIG::FP_10_1,CONFIG::AIR_2_0)]
        public static function get touchscreenType():String
        {
            CFG::dbg{ trace( "Capabilities.get touchscreenType()" ); }
            return avmplus.System.profile.touchscreenType;
        }

if you run
$ ./redshell -API FP_9_0 avmglue.abc myprogram.abc

you will still be able to access
Capabilities.touchscreenType

there is 3 problems here

1) abc versioning is not active in the current redtamarin

we need to upgrade to the latest tamarin-redux
and also upgrade to a new asc.jar to be able to support it

2) about passing command line options to the avmshell/redshell

in scripting or CGI mode you could do that workaround

        #Apache AS3
        AddType application/x-httpd-as3 .as3
        AddHandler cgi-script .as3

or simply running *.as file as shell script
see http://code.google.com/p/redtamarin/wiki/RunningShellScripts

you could use a wrapper
    #! /bin/sh
    ABCNAME=$1
    shift
    /usr/share/redtamarin/redshell -api FP_9_0 "${ABCNAME}" -- $@

what is considered is as part of the SDK to be able to define an environment 
variable
REDTAMARIN_OPTIONS = -api PF_9_0

so each time the redshell run, it will look for this first

3) about passing options for a projector

see http://code.google.com/p/redtamarin/wiki/Projector

when you embed an ABC or SWF with the redshell exe
there is simply no way or support to add options to the redshell itself

$ ./redshell -API FP_9_0 avmglue.abc myprogram.abc
to
$ ./myprogram

"myprogram" as an executable has no way to configure the redshell/avmshell

luckily there is this patch

Bug 765905 - Improve the avmshell projector
https://bugzilla.mozilla.org/show_bug.cgi?id=765905

see also
https://bug765905.bugzilla.mozilla.org/attachment.cgi?id=634165
https://bug765905.bugzilla.mozilla.org/attachment.cgi?id=634164

once upgrade to the latest tamarin-redux and this patch applied
it should solve the problem for projectors

Original issue reported on code.google.com by zwetan on 16 Feb 2013 at 5:25

GoogleCodeExporter commented 9 years ago

Original comment by zwetan on 20 Nov 2013 at 5:13

GoogleCodeExporter commented 9 years ago
all is working

we have versioning in the ABC files and in the runtime :)

now we need to implement the last bit from Bug 765905

Original comment by zwetan on 15 Dec 2013 at 3:30