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

 
  1. package {
  2.     import away3d.cameras.Camera3D;
  3.     import away3d.containers.Scene3D;
  4.     import away3d.containers.View3D;
  5.     import away3d.controllers.HoverController;
  6.     import away3d.debug.AwayStats;
  7.     import away3d.entities.Mesh;
  8.     import away3d.lights.PointLight;
  9.     import away3d.materials.ColorMaterial;
  10.     import away3d.primitives.CubeGeometry;

3D Tree (Matrix3D Rotation Error?)

 
  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.text.TextField;
  4.     public class FlashTest extends Sprite {
  5.         public function FlashTest() {
  6.             // write as3 code here..
  7.             
  8.             graphics.beginFill(0);
  9.             graphics.drawRect(0,0,1000,1000);
  10.             var t:TextField = new TextField();

can't load old swf on wonderfl.net

 
  1. package
  2. {
  3.     import flash.events.Event;
  4.     import flash.display.Sprite;
  5.     import flash.ui.Multitouch;
  6.     import flash.ui.MultitouchInputMode;
  7.     import starling.core.Starling;
  8.     public class Main extends flash.display.Sprite
  9.     {

SOLVED: How To File Reference with Starling?

 
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
  3.     <mx:Script>
  4.         <![CDATA[
  5.             import mx.events.ItemClickEvent;
  6.             import mx.collections.ArrayCollection;
  7.             
  8.             private var arr:ArrayCollection = new ArrayCollection([
  9.                 {COL1:"aaa",COL2:"bbb",COL3:"ccc",COL4:"ddd",COL5:"eee",COL6:"fff",COL7:"ggg",COL8:"hhh",COL9:"iii",COL10:"jjj",COL11:"kkk",COL12:"lll",COL13:"mmm",COL14:"nnn",COL15:"ooo",COL16:"ppp",COL17:"qqq",COL18:"rrr",COL19:"sss",COL20:"ttt"}
  10.             ]);

Flex3 DataGrid scroll programmatically

 

Eye balls

O_MEG_A O_MEG_A

  1. package
  2. {
  3. import flash.display.Sprite;
  4. import flash.events.Event;
  5. import flash.events.MouseEvent;
  6.     public class eye_ball extends Sprite{
  7.         private var eyeball:RotateToMouse;
  8.         public function eye_ball(){
  9.             stage.addEventListener(MouseEvent.CLICK, SpareEyeBall);

Eye balls

 

Sphere (AWAY3D)

O_MEG_A O_MEG_A

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

  1. //How can I have a very smooth sphere ?
  2. //how can I add lights and shadows?
  3. package
  4. {
  5.     import flash.display.Sprite;
  6.     import flash.events.Event;
  7.     import flash.geom.Vector3D;
  8.     import away3d.containers.View3D;
  9.     import away3d.controllers.HoverController;

Sphere (AWAY3D)

 
  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.events.Event;
  4.     public class Fresnel extends Sprite {
  5.         public var bg:Sprite=new Sprite();

Reflection

 
  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.events.Event;
  4.     import flash.text.TextField;
  5.     import flash.text.TextFormat;
  6.     import flash.utils.setInterval;
  7.     [SWF(width="465", height="465", backgroundColor="0x45C076", frameRate="60")]
  8.     public class TextFieldResizeBug extends Sprite {
  9.         public static var $log:TextField = new TextField;
  10.         public function TextFieldResizeBug() {

Text Field Resize Bug

 
  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.events.KeyboardEvent;
  4.     import com.adobe.images.JPGEncoder;
  5.     import flash.display.BitmapData;
  6.     import flash.utils.ByteArray;
  7.     import flash.net.FileReference;
  8.     import com.adobe.images.PNGEncoder;
  9.     import flash.geom.Matrix;
  10.     import flash.geom.Rectangle;

CircleFractal - ioError 2038 ?

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

OpenID 2.0 for Google Accounts is going away

 
  1. //Why background color still white?
  2. package {
  3.     import flash.display.Sprite;
  4.     import flash.display.BitmapData;
  5.     import flash.display.Bitmap;
  6.     import flash.text.TextField;
  7.     import flash.events.Event;
  8.     
  9.     [SWF(frameRate = 5, width = 70, height = 70, backgroundColor = 0x0)]

TextField Properties and Class Functions

 

flash on 2014-7-15

MaxiBro MaxiBro

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

flash on 2014-7-15

 
  1. package {
  2.     import flash.display.Sprite;
  3.     public class FlashTest extends Sprite {
  4.         public function FlashTest() {
  5.          // You know perlin noise works across an infinite number of terrain tiles and can scroll infinitely.
  6.          // Ie. yoo can sample any seeded region and it'll have the
  7.          // deterministic pattern  be generated accordingly for that tile region. But can the same be done for the below algorithm?
  8.          // Basically, I want to see a visual example of a heightmap generated through terrainIterateFault(), that scrolls infinitely!
  9.             
  10.         //   http://www.lighthouse3d.com/opengl/terrain/index.php3?fault

Can the faultline algorithm scroll infinitely?

 
  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

 
  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 {

ログ画面が見えない

 

ページの先頭へ戻る