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.41 - 60 of 117 results

  1. // Last time I compiled I was able to press a key and start a game. Now
  2. // It dosn't respond. Is this just me? If not, please show problem.
  3. package  {
  4.     import Box2D.Common.Math.*;
  5.     import com.actionsnippet.qbox.*;
  6.     import com.bit101.components.*;
  7.     import flash.display.*;
  8.     import flash.events.*;
  9.     import flash.filters.*;

SuperFlashKart

 
  1. //Copied from here: http://www.bit-101.com/blog/?p=2313
  2. //from http://wonderfl.net/c/njsw
  3.       package
  4.       {
  5.           import com.bit101.components.Accordion;
  6.           import com.bit101.components.Component;
  7.           import com.bit101.components.HBox;
  8.           import com.bit101.components.PushButton;
  9.           import com.bit101.components.VBox;
  10.           import com.bit101.components.Window;

forked from: Accordion 1

 
  1. package {
  2.     import com.actionscriptbible.Example;
  3.     import flash.utils.describeType;
  4.     public class FlashTest extends Example {
  5.         
  6.         public function FlashTest() {
  7.             // Use a regular expression to find \u0064
  8.             
  9.             // TODO: put your regular expression here
  10.             var re:RegExp = /\\u0064/;

regular expression escaping

 
  1. // forked from makc3d's Tween capture
  2. package  {
  3.     import caurina.transitions.*;
  4.     import caurina.transitions.properties.CurveModifiers;
  5.     import com.bit101.components.ComboBox;
  6.     import com.bit101.components.Label;
  7.     import com.bit101.components.PushButton;
  8.     import com.bit101.components.TextArea;
  9.     import flash.display.Sprite;
  10.     import flash.events.Event;

Question: Tween capture

   
  1. // I want to resize the whole animation to a 1280*720 size, and center it. I would like to make that for many animation found here.
  2. // But, if I can make the resolution to 1280*720, I can't align it, and make it bigger
  3. // (I've just modify [SWF(width=465,height=465,backgroundColor=0,frameRate=60)]
  4. // to [SWF(width=1280,height=720,backgroundColor=0,frameRate=60)]
  5. // forked from nutsu's F5BitmapDataSample2
  6. // forked from nutsu's BitmapDataSample11

How to resize and align an animation?

 
  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.events.*;
  4.     import com.bit101.components.*;
  5.     import org.si.sion.*;
  6.     import org.si.sion.sequencer.SiMMLTrack;
  7.     import org.si.sion.utils.SiONPresetVoice;
  8.     public class FlashTest extends Sprite {
  9.         private var track:SiMMLTrack;

How to give slide effect in guitar

 

frocessingについて

smta smta

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

  1. // forked from shmdmoto's 線を引く
  2. package 
  3. {
  4.     import frocessing.display.F5MovieClip2D;
  5.     /**
  6.      * Frocessingを使った直線の描画
  7.      * @author shmdmoto
  8.      */
  9.     public class GraphicExample extends F5MovieClip2D
  10.     {

frocessingについて

 
  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. package
  2. {
  3.     import Box2D.Collision.Shapes.b2FilterData;
  4.     import Box2D.Collision.Shapes.b2Shape;
  5.     import Box2D.Collision.Shapes.b2ShapeDef;
  6.     import Box2D.Common.Math.b2Vec2;
  7.     
  8.     import com.actionsnippet.qbox.*;
  9.     
  10.     import flash.display.*;

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

 

ページの先頭へ戻る