Changeset 8161 for lang/actionscript

Show
Ignore:
Timestamp:
03/19/08 21:56:19 (5 years ago)
Author:
gyuque
Message:

doubleslider: API for js

Location:
lang/actionscript/doubleslider
Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • lang/actionscript/doubleslider/DTest.as

    r8159 r8161  
    33        import flash.display.*; 
    44        import doubleslider.*; 
     5        import flash.external.ExternalInterface; 
    56        public class DTest extends Sprite 
    67        { 
     
    910                function DTest() 
    1011                { 
     12                        configureExternalAPI(); 
    1113                        mBar = new DBar(360, 10); 
    1214                        addChild(mBar); 
     
    1517                        mBar.y = 35; 
    1618                } 
     19 
     20                private function configureExternalAPI():void 
     21                { 
     22                        ExternalInterface.addCallback("init", api_init); 
     23                } 
     24 
     25                private function api_init():void 
     26                { 
     27                } 
    1728        } 
    1829} 
  • lang/actionscript/doubleslider/dstest.html

    r8160 r8161  
    1010        <body> 
    1111                <div style="text-align: center;"> 
     12                        <img alt="dummy" src="dmy.png" width="640" height="480" /> 
    1213 
    1314                        <object data="./DTest.swf" type="application/x-shockwave-flash" width="640" height="64"> 
    1415                                <param name="movie" value="./DTest.swf" /> 
    1516                                <param name="autostart" value="true" /> 
     17                                <param name="allowScriptAccess" value="always" /> 
    1618                                <p>Install Flash Player 9</p> 
    1719                        </object>