ganado / redtamarin

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

ReferenceError evaluating redtamarin.version #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download red_0.2.5.0.234.zip
2. Create test.as:

import avmplus.System;
import redtamarin.version;

trace( "hello world" );

trace( "avmplus v" + System.getAvmplusVersion() );
trace( "redtamarin v" +  redtamarin.version );

3. Run buildAndRun.bat test.as

What is the expected output? What do you see instead?

I expect to see:

test.abc, 243 bytes written
hello world
avmplus v1.0 cyclone
redtamarin vXXXXX

but I see:

test.abc, 243 bytes written
hello world
avmplus v1.0 cyclone
ReferenceError: Error #1065

What version of the product are you using? On what operating system?

0.2.5.0.234 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by mab2...@gmail.com on 28 Jun 2009 at 12:55

GoogleCodeExporter commented 9 years ago
seem valid, I didn't replicated on Windows yet but will be fixed next update

Original comment by zwetan on 28 Jun 2009 at 12:43

GoogleCodeExporter commented 9 years ago
BTW, this test.as works fine:

import avmplus.System;
//import avmplus.redtamarin.version;
trace( "redtamarin v" + avmplus.redtamarin.version );

So perhaps it's more of a documentation issue?

Uncommenting the import does cause a ReferenceError which seems unexpected 
though.

Original comment by mab2...@gmail.com on 28 Jun 2009 at 7:25

GoogleCodeExporter commented 9 years ago
yes looking at it more closely, the redtamarin class is in the avmplus package

so the usage would be

import avmplus.redtamarin

trace( redtamarin.version );

see
http://code.google.com/p/redtamarin/source/browse/as3/redshell/trunk/src/redtama
rin.as

and
http://code.google.com/p/redtamarin/wiki/AVMPlus

Original comment by zwetan on 29 Jun 2009 at 6:15