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 117 results

  1. // forked from makc3d's flash on 2013-4-20
  2. package {
  3.     import flash.system.System;
  4.     import com.actionscriptbible.*;
  5.     public class FlashTest extends Example {
  6.         public var count:int = 3;
  7.         public function FlashTest() {
  8.             Wonderfl.disable_capture();
  9.             stage.frameRate = 1;
  10.             addEventListener ("enterFrame", loop);

Why does the closure not die?

 
  1. package 
  2. {
  3.     import com.bit101.components.InputText;
  4.     import flash.display.Sprite;
  5.     import flash.events.Event;
  6.     import flash.net.URLLoader;
  7.     import flash.net.URLRequest;
  8.     /**
  9.      * Compiles everything from a .swf into a single .as file, given a source code directory! TODO: WIP...
  10.      * @author Glenn Ko

Testing load .as from github repository

 

forked from: flash on 2013-3-11

MikeEVMM MikeEVMM

    • forked:0
    • favorite:0
    • lines:52

  1. // forked from MikeEVMM's flash on 2013-3-11
  2. package {
  3.     import flash.net.URLRequest;
  4.     import flash.display.Loader;
  5.     import flash.display.BitmapData;
  6.     import flash.events.MouseEvent;
  7.     import flash.geom.ColorTransform;
  8.     import flash.events.Event;
  9.     import flash.display.Sprite;
  10.     public class FlashTest extends Sprite {

forked from: flash on 2013-3-11

 

Edit fla file?

CowonD2 CowonD2

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

  1. /*I am new to this....
  2. *
  3. * How can I edit a fla file? 
  4. * How can I access the code of an fla file using this website??
  5. *
  6. *Thank you */

Edit fla file?

 

四角が動くだけ

tpo tpo

    • forked:0
    • favorite:0
    • lines:26

  1. //@tail_y @yukarigohan @zmpn_x31 @bangflash @SKYH_O_RSE_2 @Lamune @shr_em
  2. //笑ってツイート、RTしないでください。分からないから質問しているのです。分かるなら教えてください。
  3. //スクリプトが動きません。
  4. //どうすれば良いのでしょうか?
  5. //HTMLでブラウザで開いた場合は、
  6. //ちゃんと表示されます。
  7. //よろしくお願いいたします
  8.             <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="01_四角が動くだけ" align="middle">

四角が動くだけ

   
  1.     package  {
  2.         import alternativa.engine3d.alternativa3d;
  3.         import alternativa.engine3d.materials.TextureMaterial;
  4.         import alternativa.engine3d.materials.VertexLightTextureMaterial;
  5.         import alternativa.engine3d.materials.StandardMaterial;
  6.         import alternativa.engine3d.objects.WireFrame;
  7.         import alternativa.engine3d.objects.Mesh
  8.         import alternativa.engine3d.primitives.GeoSphere;
  9.         import alternativa.engine3d.primitives.Plane;
  10.         import alternativa.engine3d.resources.BitmapTextureResource;

TileIndexMaterialTest

 

ログ画面が見えない

nowLoading nowLoading

    • forked:0
    • favorite:0
    • lines:7

  1. //直接コードに関する質問ではないのですが・・・
  2. //編集画面(edit画面)で右下に出ているコンパイルやエラーを通知するログ画面が、
  3. //私のPCですとほとんど見えなくなってしまいます。
  4. //おそらくノートPCで縦の画面解像度が低い(縦786)ためと思われます。
  5. //そこで、編集画面の大きさを変えることは可能でしょうか?
  6. //よろしくお願いします。
  7. package {
  8.     import flash.display.Sprite;
  9.     public class FlashTest extends Sprite {

ログ画面が見えない

 

Perfect Preloader

hemingway hemingway

    • forked:0
    • favorite:0
    • lines:147

  1. package 
  2. {
  3.     import flash.display.*;
  4.     import flash.events.*;
  5.     import flash.net.*;
  6.     [SWF(frameRate = 60, width = 465, height = 465)]
  7.     public class Main extends Sprite
  8.     {
  9.         internal var image :Image;

Perfect Preloader

 

OperaTabs

hemingway hemingway

    • forked:0
    • favorite:0
    • lines:189

  1. package
  2. {
  3.     import com.bit101.components.*;
  4.     
  5.     import flash.display.*;
  6.     import flash.events.*;
  7.     import flash.geom.*;
  8.     import flash.ui.*;
  9.     
  10.     [SWF(width = 800, height = 600, frameRate = 60)]

OperaTabs

 
  1. package {
  2.     import flash.display.Sprite;
  3.     public class FlashTest extends Sprite {
  4.         public function FlashTest() {
  5.             // Im trying to play a mml string with any other instrument than default, any ideas?
  6.             
  7.             /*var tono:String = tonos[stIntrumento.value];
  8.                 var numtono:String = numtonos[stIntrumento.value];

SiON MML with Voice

 
  1. package {
  2.     import flash.display.Shape;
  3.     import flash.events.*;
  4.     
  5.     import a24.tween.Tween24;
  6.     import com.actionscriptbible.Example;
  7.     public class FlashTest extends Example {
  8.         
  9.         private static function lightBounceEase(t:Number, b:Number, c:Number, d:Number):Number {
  10.             if (t < 0.75) {

Regarding custom easing

   

Invalid BitmapData?

GreekFellows GreekFellows..

    • forked:0
    • favorite:0
    • lines:86

  1. package 
  2. {
  3.     import flash.display.BitmapData;
  4.     import flash.display.DisplayObject;
  5.     import flash.display.Sprite;
  6.     import flash.events.Event;
  7.     import flash.geom.Matrix;
  8.     import flash.geom.Point;
  9.     import flash.geom.Rectangle;
  10.     import flash.text.TextField;

Invalid BitmapData?

 
  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?

 

ページの先頭へ戻る