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

  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

 

forked from: BezierPatch away3D

vegetable vegetable

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

  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

 
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Application name="Spark_Panel_layout_test"
  3.         xmlns:fx="http://ns.adobe.com/mxml/2009"
  4.         xmlns:s="library://ns.adobe.com/flex/spark"
  5.         xmlns:mx="library://ns.adobe.com/flex/mx">
  6.     <fx:Script>
  7.         <![CDATA[
  8.             import spark.layouts.supportClasses.LayoutBase;
  9.             import spark.events.IndexChangeEvent;

Test layout

 

many Balls

stylelab stylelab

  1. package {
  2.     import flash.text.TextField;
  3.     import flash.events.MouseEvent;
  4.     import flash.events.Event;
  5.     import caurina.transitions.Tweener;
  6.     import flash.display.Sprite;
  7.     import flash.display.Shape;
  8.     import org.libspark.betweenas3.BetweenAS3;
  9.     import org.libspark.betweenas3.easing.Expo;
  10.     //import org.libspark.betweenas3.events.TweenEvent;

many Balls

 

曲線の伸長

tsu_droid tsu_droid

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

  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. }

曲線の伸長

 
  1. /* XML.toString bug? 
  2. If a xml node contains multiple namespace definitions for the same uri, the XML.toString method is "smart" enough to manipulate the prefix from child nodes. 
  3. This is a dangerous situation while child can have default namespace defined on itself, what in result, moves child node into its default namespace.
  4. item in XML is within xmlns "one"
  5. item in XML.toString() is moved to xmlns "two"
  6. Any idea how to make XML to keep the namespaces correctly?
  7. */

XML.toString bug?

   
  1. // forked from menboyou's forked from: forked from: forked from: forked from: forked from: forked from: forked from: forked from: forked from: forked from: flash on 2011-6-5
  2. //疑問点が2つあります。
  3. //1.以下のソースが131行目にあるのですがこれを有効にすると最初に表示される文字が反転してしまいます。
  4. //camera.z += (2000 * Math.cos(mouseX / stage.stageWidth * 360 * Math.PI / 360) - camera.z) * .1;
  5. //これを反転させずに有効にする方法がわからず困っております。
  6. //
  7. //2.ローカルで作っているアニメーションがあります。このソースをダウンロードしてその最後に加えたいのですが
  8. //うまくいかず困っております。loadMovieを指定しても、MCのクラスにasファイル名を指定しても、環境設定から
  9. //クラスパスの指定をしてもうまくいきませんでした。
  10. //環境はflash8 proです。

camera.zの設定?flash8での読み込み

 
  1. /**
  2. * anyone know how to improve this..
  3. * I just don't know what to do anymore..
  4. */
  5. package
  6. {
  7.     import flash.display.Bitmap;
  8.     import flash.display.BitmapData;
  9.     import flash.display.GradientType;
  10.     import flash.display.Sprite;

water physics

 

ページの先頭へ戻る