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.1 - 20 of 104 results

Reloading swfと出たまま止まる

DoMqb DoMqb

    • forked:0
    • favorite:0
    • lines:5331

  1. // forked from GaoLu's QB狩りオンライン:フォーク(テスト用)
  2. package {
  3.     import flash.display.Sprite;
  4.     import flash.events.Event;
  5.     import flash.events.TimerEvent;
  6.     import flash.geom.Rectangle;
  7.     import flash.text.TextField;
  8.     import flash.utils.Timer;
  9.     import net.user1.logger.Logger;
  10.     import net.user1.reactor.Reactor;

Reloading swfと出たまま止まる

 

Sample Flash Game

blackrece blackrece

    • forked:0
    • favorite:0
    • lines:9

  1. package {
  2.     import flash.display.Sprite;
  3.     
  4.     import org.flixel.*;
  5.     /* 
  6.     * Questions 1: How do I import/attach another file or package hosted on wonderfl?
  7.     * The folowing does not work!
  8.     */
  9.     import kongregate.QuickKong;
  10.     

Sample Flash Game

 
  1. package {
  2.     import com.actionscriptbible.Example;
  3.     import flash.geom.*;
  4.     public class WhatTheFuck extends Example {
  5.         public function WhatTheFuck() {
  6.             // identity matrix
  7.             var m:Matrix3D = new Matrix3D;
  8.             // vector with w != 1
  9.             var v:Vector3D = new Vector3D (1234);
  10.             v = m.transformVector (v);

What is hapening with .w ??

 
  1. package {
  2.     import flash.display.Sprite;
  3.     public class FlashTest extends Sprite {
  4.         public function FlashTest() {
  5.             // write as3 code here..
  6.             
  7.         }
  8.     }
  9. }

How to convert Stage to Stage3D accel. gfx?

 
  1. // forked from xxxYukihiroxxx's forked from: flash on 2010-6-2
  2. // forked from coppieee's flash on 2010-6-2
  3. package {
  4.     import com.actionscriptbible.Example;
  5.     public class FlashTest extends Example {
  6.         public function FlashTest() {
  7.             
  8.             // XMLの属性を参照している。これはこれで問題あるな。w
  9.             trace(@[1,2,3].length);        // output:"1"

ff[2]: flash on 2010-6-2

 

ActionScriptの宿題の質問

chilno chilno

    • forked:0
    • favorite:0
    • lines:4

  1. すみません、大学の宿題で出された問題なんですが分からないので誰か教えてくれませんか。
  2. ちなみに授業での条件としてWonderflやFlash Builderで動くことになっています。
  3. 問題
  4. CTRLキー、スペースキー、zの文字キーを3つ同時に押すと円が消える。

ActionScriptの宿題の質問

 
  1. package {
  2.     import flash.text.TextField;
  3.     
  4.     import flash.display.Sprite;
  5.     import flash.display.BitmapData;
  6.     import flash.geom.Matrix;
  7.     import flash.geom.ColorTransform;
  8.     import flash.display.Bitmap;
  9.     
  10.     public class BitmapData_Draw_Bug extends Sprite {

BitmapData#draw() bug?

 
  1. package {
  2.     import flash.text.TextField;
  3.     import flash.display.Sprite;
  4.     import jp.progression.commands.tweens.*;
  5.     /**question**/
  6.     public class FlashTest extends Sprite {
  7.         public function FlashTest() {
  8.             var t:TextField = new TextField;
  9.             new DoTweener(t,{
  10.                         x:150,

where are api of DoTweener's parameters  in progression 4.0

 
  1. // forked from fatlinesofcode's BezierPatch away3D
  2. package {
  3.     /*
  4.     Warping a bitmap using away3D BezierPatch
  5.     */
  6.     import away3d.containers.View3D;
  7.     import away3d.core.base.Vertex;
  8.     import away3d.materials.BitmapMaterial;
  9.     import away3d.primitives.BezierPatch;
  10.     import away3d.primitives.data.PatchData;

forked from: BezierPatch away3D

 
  1. package {
  2.     import flash.display.Sprite;
  3.     public class FlashTest extends Sprite {
  4.         public function FlashTest() {
  5.             
  6.  
  7. // I have found the most wonderful visual effects on wonderfl!!!
  8. // I have downloaded an example that I really like
  9. //キラキラPixel3D!http://wonderfl.net/code/71344f9a655053d9f793a32c68f00921c67f1977    
  10. // I watch the .swf . . . . . magic

How do I download and use wonderfl code

 
  1. // forked from clockmaker's Xmas Message with Twitter
  2. /**
  3.  * ネットで投稿されたメッセージが
  4.  * クリスマスの夜空を飾ります
  5.  * 
  6.  * クリスマスメッセージは
  7.  * 「Twitter」と「はてなブックマーク」で送ることができます
  8.  * ※追記:11/5(木)、Twitter仕様変更によりTwitter投稿はできなくなりました
  9.  * 
  10.  * ※投稿はFlash内のボタンを押して、

3D Particle Text Effect

 
  1. // forked from albatrus_jp's プロとして恥ずかしくないActionScript3.0 メモ サンプル
  2. package {
  3.     import flash.display.*;
  4.     import flash.display.DisplayObject;
  5.     import flash.events.MouseEvent;
  6.     import flash.filters.DropShadowFilter;
  7.     import flash.events.TimerEvent;
  8.     import flash.utils.Timer;
  9.     import flash.geom.Rectangle;
  10.     import flash.events.Event;

forked from: プロとして恥ずかしくないActionScript3.0 メモ サンプル

 
  1. package {
  2.     
  3.     import flash.display.Sprite
  4.     import flash.events.Event
  5.     
  6.     import flash.display3D.Context3D
  7.     
  8.     public class Stage3DBase extends Sprite {
  9.         
  10.         private var context:Context3D

how to use CubeTexture?

 
  1. // forked from yonatan's yonatan challenge for people with nothing better to do
  2. package {
  3.     import flash.display.*;
  4.     import flash.events.*;
  5.     import flash.utils.*;
  6.     import flash.geom.*;
  7.     import flash.filters.*;
  8.     import com.bit101.components.*;
  9.     import net.hires.debug.Stats;

wmode="window"

 

static var typed w private class

makc3d makc3d

    • forked:0
    • favorite:0
    • lines:18

  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.utils.setTimeout;
  4.     public class test extends Sprite {
  5.             public function test () {
  6.                 // without constructor, you get
  7.                 // Error: Access of undefined property stage. Wonderfl.capture( stage );
  8.                 // but whatever... the point is below
  9.             }

static var typed w private class

 
  1. /*
  2. サイトの趣旨から外れ申し訳ないのですがご教授願います。
  3. このコードを自分のPC上のCS5でコンパイルしたく以下のような構成にして、調整をしコード的なエラーが出ないようにしました。
  4. ただ使っているalternativa3Dのバージョンが最新の7.8のせいか、以下のようなコンパイルエラーが発生します。注釈欄のように7.6にあわせたくても配布元には見当たらず、こちらでエラーの回避方法など、教えていただければと思います。
  5. コンパイルエラー詳細:
  6. -------------------------------------------------------------
  7. 場所:
  8. AlternativaTypes (コンパイル済みクリップ)、行 1

folked from :Picture Book [Alternativa3D 7.6 TIPS]

 
  1. // forked from keim_at_Si's wonderflで音楽♪カニテーマ from:蟹さん from:from:なんとかディウス
  2. // forked from nemu90kWw's なんとかディウスっぽい蟹さん forked from: なんとかディウスっぽい背景
  3. // forked from gyuque's なんとかディウスっぽい背景
  4. // 左右キーとスペースで操作できます
  5. package  
  6. {
  7.     import alternativa.engine3d.containers.ConflictContainer;
  8.     import alternativa.engine3d.core.MouseEvent3D;
  9.     import alternativa.engine3d.core.Object3D;

forked from: wonderflで音楽♪カニテーマ from:蟹さん from:from:なんとかディウス

 
  1. package {
  2.     import flash.display.Loader;
  3.     import flash.display.Sprite;
  4.     import flash.events.Event;
  5.     import flash.net.URLLoader;
  6.     import flash.net.URLRequest;
  7.     import flash.system.Security;
  8.     import flash.text.TextField;
  9.     public class FlashTest extends Sprite {
  10.         

load XML fail?

 
  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.events.MouseEvent;
  4.     import caurina.transitions.Tweener;
  5.    
  6.     
  7.     [SWF(width = "465", height = "465", frameRate = "60",backgroundColor="0x222222")]
  8.     public class FlashTest extends Sprite {
  9.         
  10.        private var grid:TileGrid;

Pathfinding issue

 
  1. package
  2. {
  3.     import com.adobe.serialization.json.JSON;
  4.     import flash.display.Bitmap;
  5.     import flash.display.Loader;
  6.      import flash.display.Sprite;
  7.     import flash.display.StageAlign;
  8.     import flash.display.StageScaleMode;
  9.     import flash.events.Event;
  10.     import flash.net.URLLoader;

Using WonderflApi By User Simple

 

ページの先頭へ戻る