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.61 - 80 of 129 results

  1. // forked from clockmaker's フレームアクションで覚える Papervision3D サンプル Vol.01
  2. // forked from clockmaker's WonderflでaddFrameScriptを試してみる
  3. package {
  4. import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*;   import flash.filters.*; import flash.text.*;
  5. public class FlashTest extends MovieClip {
  6. public function FlashTest() {addFrameScript(0, func);}
  7. public function func():void {
  8. // ------------------------------------------------------------------
  9. // ▼▽▼ ここからフレームアクション ▼▽▼

forked from: フレームアクションで覚える Papervision3D サンプル Vol.01

 
  1. package {
  2.     import com.actionscriptbible.Example;
  3.     public class FlashTest extends Example {
  4.         
  5.         public function FlashTest() {
  6.             trace2 = trace;
  7.             new C().foo();
  8.         }
  9.         
  10.     }

XML appendChild

 
  1. package {
  2.     import com.actionscriptbible.Example;
  3.     import flash.system.ApplicationDomain;
  4.     public class FlashTest extends Example {
  5.         public function FlashTest() {
  6.             // I dont know a thing about application domains :(
  7.             // Please explain...
  8.             trace (ApplicationDomain.currentDomain == ApplicationDomain.currentDomain);
  9.             trace (loaderInfo.applicationDomain == loaderInfo.applicationDomain);
  10.             trace (loaderInfo.applicationDomain == ApplicationDomain.currentDomain);

Please explain...

 

Uploading over Socket?

jozefchutka jozefchutka

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

  1. package
  2. {
  3.     import flash.display.Sprite;
  4.     import flash.display.StageAlign;
  5.     import flash.display.StageScaleMode;
  6.     import flash.events.IOErrorEvent;
  7.     import flash.events.ProgressEvent;
  8.     import flash.events.SecurityErrorEvent;
  9.     import flash.net.Socket;
  10.     import flash.utils.ByteArray;

Uploading over Socket?

 
  1. // forked from greentec's Flock Attack
  2. // forked from greentec's Fleet Attack
  3. // forked from greentec's Ship Attack
  4. // forked from greentec's Ship Placement
  5. // forked from greentec's Circle Placement
  6. package {
  7.     import flash.filters.GlowFilter;
  8.     import flash.events.MouseEvent;
  9.     import flash.filters.DropShadowFilter;
  10.     import flash.display.Bitmap;

Squad Control

 

couldnt buildなのはなぜ?

tarot tarot

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

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- forked from genms's Flex動作テストテンプレート -->
  3. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="onApplicationCompleteHandler(event);">
  4.     <mx:Script>
  5.     <![CDATA[
  6.         public function onApplicationCompleteHandler(event:Event):void {
  7.             // ここに処理を書く
  8.         }
  9.         public function btnClickHandler(event:Event):void {

couldnt buildなのはなぜ?

 
  1. package {
  2.     import com.actionscriptbible.Example;
  3.     import flash.utils.getQualifiedClassName;
  4.     
  5.     // public class FlashTest extends A
  6.     public class FlashTest extends Example {
  7.         public function FlashTest() {
  8.             trace(getQualifiedClassName(A));
  9.         }
  10.     }

Can I inherit a public class from an internal class?

 
  1. /*
  2.     Are the new text engine methods available for Flash Player 10? 
  3. */
  4. package {
  5.     import flash.events.MouseEvent;
  6.     import flash.display.Sprite;
  7.     import flash.text.TextElement;
  8.     import flash.text.TextBlock;
  9.     

Are the new text engine classes available?

 
  1. /* I've been looking around other people's code and seen some awesome things, but I can't find an example of a looping mp3. I've found this code in a tutorial...
  2.    Ideally the mp3 would loop with no gap.
  3.    As you can tell, I have no idea where to begin. */
  4. package {
  5.     import flash.display.Sprite;
  6.     public class FlashTest extends Sprite {
  7.         public function FlashTest() {
  8.                        
  9.             

Simple mp3 loop

 
  1. //2010-12-17 19:03:36
  2. package
  3. {
  4.     import Box2D.Collision.Shapes.b2FilterData;
  5.     import Box2D.Collision.Shapes.b2Shape;
  6.     import Box2D.Collision.Shapes.b2ShapeDef;
  7.     import Box2D.Common.Math.b2Vec2;
  8.     
  9.     import com.actionsnippet.qbox.*;
  10.     

How to make a floating platform with Box2D?

 
  1. /*
  2.  * ------------------------------------------------------------------
  3.  * [遊び方]
  4.  * 右の出口を通過させないようにパーティクルをジャグリングさせるゲーム。
  5.  * ------------------------------------------------------------------
  6.  * [question&コメント]
  7.  *  ・・・にさせたいのだけど、ActionScript初心者には厳しい
  8.  * ・GameStartをクリックで始めたい
  9.  * ・ジャグリング中のタイムカウント
  10.  * ・パーティクル上には壁を設置できない仕様

forked from: forked from: Juggle Them!! (ジャグれ!!)

 

flash on 2010-12-10

modulationmatrix modulationma..

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

  1. //Question: I can't seem to build projects. It says it can't connect to a server.
  2. //Is this a firewall issue on my end?
  3. //"[ERROR]Couldnt Connect with Server, Reconnecting..."
  4. package {
  5.     import flash.display.Sprite;
  6.     public class FlashTest extends Sprite {
  7.         public function FlashTest() {
  8.             // write as3 code here..
  9.             //test
  10.       graphics.lineStyle(2,0x000000);

flash on 2010-12-10

 
  1. // licence: NYSL
  2. /**
  3.  * あなたの区切り線を教えて!
  4.  *----------------------------------------
  5.  * コメントで区切り線を書くときの
  6.  * みなさんの記述方法の違いを知りたい。
  7.  */
  8. package
  9. {
  10.     import flash.display.Sprite;

あなたの区切り線を教えて!

 
  1. ■tet07.mxml
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <s:Application 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" minWidth="955" minHeight="600"
  6.                creationComplete="application1_creationCompleteHandler(event)" xmlns:parts="parts.*">
  7.     <fx:Script>
  8.         <![CDATA[
  9.             import mx.controls.Alert;
  10.             import mx.events.FlexEvent;

forked from: forked from: tabNavigator内の値を初期化するには?

 
  1. // forked from 9re's forked from: flash on 2010-11-19
  2. // forked from aruerula's flash on 2010-11-19
  3. package {
  4.     import flash.system.LoaderContext;
  5.     
  6.     //複数ロードした画像をまとめてBitmap化したあと、matrixで加工したいのに出来ないです・・。
  7.     
  8.     import flash.display.Bitmap;
  9.     import flash.display.BitmapData;
  10.     import flash.geom.Matrix;

forked from: forked from: flash on 2010-11-19

 
  1. package  
  2. {
  3.     import com.bit101.components.Label;
  4.     import com.bit101.components.PushButton;
  5.     import flash.display.Bitmap;
  6.     import flash.display.BitmapData;
  7.     import flash.display.Sprite;
  8.     import flash.events.Event;
  9.     import flash.utils.getTimer;
  10.     

match 3 puzzle remove block algorithm

   
  1. package {
  2.     import flash.display.Bitmap;
  3.     import flash.display.BitmapData;
  4.     import flash.display.Sprite;
  5.     import flash.events.Event;
  6.     import flash.filters.BlurFilter;
  7.     import flash.geom.Rectangle;
  8.     import flash.text.TextField;
  9.     import flash.utils.getTimer;
  10.     /**

What is the most stable operation?

 
  1. package {
  2.     import flash.display.BitmapData;
  3.     import flash.display.Sprite;
  4.     import flash.geom.Rectangle;
  5.     import flash.text.TextField;
  6.     import flash.utils.getTimer;
  7.     /**
  8.      * What is your CPU performance?
  9.      * Please run few times and report min/max values.
  10.      * @author makc

What is your CPU performance?

 
  1. // forked from 9re's forked from: ContextMenu
  2. // forked from 9re's ContextMenu
  3. package {
  4.     import flash.events.Event;
  5.     import flash.ui.ContextMenuClipboardItems;
  6.     import flash.utils.setTimeout;
  7.     import flash.events.MouseEvent;
  8.     import flash.text.engine.TextLine;
  9.     import flash.text.engine.ElementFormat;
  10.     import flash.text.engine.TextElement;

forked from: forked from: ContextMenu

 

ページの先頭へ戻る