This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://qiita.com/maginemu/items/435480b56b0c3269de67 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { | |
import flash.display.MovieClip; | |
import flash.events.Event; | |
public class SomeClass extends MovieClip { | |
public function SomeClass(){ | |
super(); | |
if (stage) init(null); | |
else addEventListener(Event.ADDED_TO_STAGE, init); | |
} | |
private function init(evt:Event) : void { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://jacksonkr.com/content/ios-scrolling-flash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the command was triggered here : | |
case "NetStream.Play.Stop" : | |
ns.seek(0); | |
break; | |
// but actually have to be triggered here : | |
case "NetStream.Buffer.Empty": | |
ns.seek(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://docs.unity3d.com/ja/current/Manual/HOWTO-UIMultiResolution.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://qiita.com/selflash/items/e8e354d7730b749b0252 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transform.Translate(new Vector3(0,0,Input.GetAxis("Mouse ScrollWheel"))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ChildObject.transform.parent = RootObject.transform; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iTween.FadeTo(gameObject, iTween.Hash("alpha", 0, "time", 10f)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MovieTexture movieTexture = gameobject.renderer.material.mainTexture as MovieTexture; |
NewerOlder