[Tool] LINE CREATER - 行番号メーカー -

by clockmaker
♥7 | Line 25 | Modified 2011-01-22 15:01:28 | MIT License
play

ActionScript3 source code

/**
 * Copyright clockmaker ( http://wonderfl.net/user/clockmaker )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/knK2
 */

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        <![CDATA[
            
            import mx.controls.*;
            private function coppieee():void
            {
                var str:String = "";
            
                for(var i:int=start.value; i<(start.value+end.value); i++)
                {
                    str += i + "\n";
                }
            
                System.setClipboard(str);
            
                var alert:Alert = Alert.show("Copied Clipboard.");
            }
        
        ]]>
    </mx:Script>
    
    <mx:Label text="[LINE CREATER]" fontSize="16" />
    
    <mx:Label text="START NUMBER" />
    <mx:NumericStepper id="start" minimum="0" maximum="1000" value="1" />
    
    <mx:Label text="REQUIRE NUMBER" />
    <mx:NumericStepper id="end" minimum="0" maximum="1000"  value="25"/>
    
    <mx:Spacer height="20" />
    <mx:Button label="COPY CLIPBOARD" click="coppieee()" />

</mx:Application>