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.21 - 40 of 129 results

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?

 
  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

 

ページの先頭へ戻る