wonderfl - build flash online

Flash Q&A

Flash,Actionscript Q&A feature released!

When you have something you want to do with Flash and Actionscript but you don't know the way to code it,
it's better not to ask for everything, but you'd better go as far as you can and at last, ask somebody for only the rest.
You can do this with wonderfl.

Use wonderfl, to ask questions about your code, and answer others questions.

How to ask: write code, explain your question in the title and comments, and tag it "question"
-> more info about: How to 'ask a question' in Q&A feature

How to answer: fork the question code and modify it
-> more info about: How to answer a question in Q&A feature

How to close question: change "question" tag into "question-closed"
-> more info about: How to close a question in Q&A feature

* It doesn't have to be exactly a Question and Answer, can be a Topic or a Contest which uses wonderfl's fork feature to gather codes.
* for example: "Use this template and write something cool with less than 140 characters!"

Questions

List of questions waiting for answers.101 - 116 of 116 results

  1. /**
  2.  * #16 Conway's Game of Life v3
  3.  * 
  4.  * ConvolutionFilter + paletteMap によるライフゲーム高速化実験。
  5.  * 意図的に遅くしないといけないとか、速すぎます。
  6.  * 色は意外と作られていない白黒にしてみました。おおよそ理解できたつもり。
  7.  * ところで黒白はどうやって作れば良いのでしょうか?
  8.  *
  9.  * FIXED:
  10.  * 乱数の種を常に0にしてたの忘れてた。ちょっとだけ増やしときますね。

#16 Conway's Game of Life v3 ( flash on 2009-9-2 )

 
  1. // stageを連打してるとClickThreadのinterruptedが実行されないことがたまにある
  2. // 一回目のクリックから3秒後にMainThreadからClickThreadにinterruptしてる
  3. package
  4. {
  5.     import flash.display.*;
  6.     import org.libspark.thread.Thread;
  7.     import org.libspark.thread.EnterFrameThreadExecutor;
  8.     public class InterruptTest extends Sprite

Threadの割り込みがうまくいかないことがある

   
  1. // forked from hacker_7i4tn9on's forked from: The same brightness looks different.
  2. // forked from borealkiss's The same brightness looks different.
  3. /*
  4. 左側が赤(赤255 = #FF0000)と黒(#000000)を使って
  5. チェック柄に塗りつぶした四角形、
  6. 右側が明るさ半分の赤(赤128 = #800000)で塗りつぶした四角形。
  7. チェック柄が見えなくなるぐらい十分離れた位置から見ると
  8. どちらの四角形も同じ”半分の明るさの赤色”に見えるはずだが。
  9. */

how i can make movie clipe illastrate as a dot pixel?

     
  1. package  
  2. {
  3.     /**
  4.      * PV3D でマルチビュー
  5.      * 
  6.      * ということで作ったものの、マルチビューは実現することができたのですが、期待通りの結果になりません。
  7.      * 
  8.      * 
  9.      * 
  10.      * --- 問題個所 ---

PV3D でマルチビュー(問題点あり)

 
  1. package { 
  2.     
  3.     /*
  4.      * [勉強]perlinNoiseを動かす(の解説を初級者がしてみる)
  5.      * 
  6.      * Forkするかどうかについて考えた結果、「Forkしないでくれ」って
  7.      * いう意見があったら削除する方向で行きたいと思います。
  8.      * 
  9.      * 毎度思うんですけど、コメントの幅がどれくらいあればいいのか
  10.      * 気になりますね。

[勉強]perlinNoiseを動かす(の解説を初級者がしてみる)

 
  1. package
  2. {
  3.     /*
  4.      * [追記]皆さん好意的な意見ありがとうございます。
  5.      * 少し安心しました。バッシング来たらどうしようかと思ってたので(笑
  6.      * 
  7.      * ただ、自分の作ったコードがおおっぴらに解析されるっていうのは
  8.      * 恥ずかしかったり、あるいは気分のいいものでは無かったりする
  9.      * というのは自分でもなんとなく判るので、難しいところですね。

forked from: HANABI(初級者がコードに注釈をつけてみた)

 
  1. //小さくうねったり大きくうねったりランダムな感じ(かつ自然な感じ)にしたい。
  2. //ロジックを変えて一応ランダムなうねうねにした・・・けどイマイチ
  3. //一定周期毎の変化じゃなくだんだん周期が変化する感じにしたい。
  4. package 
  5. {
  6.     import flash.display.Sprite;
  7.     import flash.display.Stage;
  8.     import flash.events.Event;
  9.     
  10.     /**

うねうねさせたい2

 
  1. /**
  2.  *
  3.  * 質問 : Object.init(); ってメソッドは何ですか?
  4.  *        何に使うんでしょうか?
  5.  *
  6.  */
  7. package {
  8.     import flash.display.Sprite;
  9.     import flash.text.TextField;
  10.     

Object.init() ?

 
  1. package {
  2.     import flash.display.Sprite;
  3.     public class FlashTest extends Sprite {
  4.         public function FlashTest() {
  5.             // write as3 code here..
  6. // This just gives me the error:
  7. // [error]couldnt connect with server, try again later!
  8. // but it hasn't worked for weeks.
  9.             

[error]couldnt connect with server, try again later!

 
  1. //thanks hiiragi
  2. package {
  3.     import flash.display.Sprite;
  4.     import flash.events.Event;    
  5.     public class Oscillation extends Sprite {
  6.         private var _sprite:Sprite;
  7.         private var _angle:Number =94;
  8.         private var _radius:Number =100;

Nothing is happening??

 
  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.system.Capabilities;
  4.     import flash.text.TextField;
  5.     import flash.text.TextFormat;
  6.     public class WhatIsFlash extends Sprite {
  7.         private namespace english;
  8.         private namespace japanese;
  9.         private var language:Namespace;

What is Flash for you?

 
  1. package {
  2.     import flash.display.Sprite;
  3.     public class MeaningOfLife extends Sprite {
  4.         public function MeaningOfLife () {
  5.             // write your response here..
  6.         }
  7.     }
  8. }

What is the meaning of life?

 
  1. // I could draw a Circle, by calling graphics.drawCircle
  2. // but how can I draw a Rectangle??
  3. //
  4. // graphics.drawCircleを使って円を描くことはできたけど
  5. // どうやったら四角形を描けるの??
  6. //
  7. package {
  8.     import flash.display.*;
  9.     public class FlashTest extends Sprite {
  10.         public function FlashTest() {

How to draw a rectangle?

 

ページの先頭へ戻る