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.
- // forked from makc3d's flash on 2013-4-20
- package {
- import flash.system.System;
- import com.actionscriptbible.*;
- public class FlashTest extends Example {
- public var count:int = 3;
- public function FlashTest() {
- Wonderfl.disable_capture();
- stage.frameRate = 1;
- addEventListener ("enterFrame", loop);
- package
- {
- import com.bit101.components.InputText;
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.net.URLLoader;
- import flash.net.URLRequest;
- /**
- * Compiles everything from a .swf into a single .as file, given a source code directory! TODO: WIP...
- * @author Glenn Ko
- // forked from MikeEVMM's flash on 2013-3-11
- package {
- import flash.net.URLRequest;
- import flash.display.Loader;
- import flash.display.BitmapData;
- import flash.events.MouseEvent;
- import flash.geom.ColorTransform;
- import flash.events.Event;
- import flash.display.Sprite;
- public class FlashTest extends Sprite {
- /*I am new to this....
- *
- * How can I edit a fla file?
- * How can I access the code of an fla file using this website??
- *
- *Thank you */
- //@tail_y @yukarigohan @zmpn_x31 @bangflash @SKYH_O_RSE_2 @Lamune @shr_em
- //笑ってツイート、RTしないでください。分からないから質問しているのです。分かるなら教えてください。
- //スクリプトが動きません。
- //どうすれば良いのでしょうか?
- //HTMLでブラウザで開いた場合は、
- //ちゃんと表示されます。
- //よろしくお願いいたします
- <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="01_四角が動くだけ" align="middle">
- package
- {
- import flash.display.*;
- import flash.events.*;
- import flash.geom.*;
- import flash.net.*;
- [SWF(frameRate = 60, width = 400, height = 300)]
- public class Main extends Sprite
- {
- package {
- import alternativa.engine3d.alternativa3d;
- import alternativa.engine3d.materials.TextureMaterial;
- import alternativa.engine3d.materials.VertexLightTextureMaterial;
- import alternativa.engine3d.materials.StandardMaterial;
- import alternativa.engine3d.objects.WireFrame;
- import alternativa.engine3d.objects.Mesh
- import alternativa.engine3d.primitives.GeoSphere;
- import alternativa.engine3d.primitives.Plane;
- import alternativa.engine3d.resources.BitmapTextureResource;
- //直接コードに関する質問ではないのですが・・・
- //編集画面(edit画面)で右下に出ているコンパイルやエラーを通知するログ画面が、
- //私のPCですとほとんど見えなくなってしまいます。
- //おそらくノートPCで縦の画面解像度が低い(縦786)ためと思われます。
- //そこで、編集画面の大きさを変えることは可能でしょうか?
- //よろしくお願いします。
- package {
- import flash.display.Sprite;
- public class FlashTest extends Sprite {
- package
- {
- import flash.display.*;
- import flash.events.*;
- import flash.net.*;
- [SWF(frameRate = 60, width = 465, height = 465)]
- public class Main extends Sprite
- {
- internal var image :Image;
- package
- {
- import com.bit101.components.*;
- import flash.display.*;
- import flash.events.*;
- import flash.geom.*;
- import flash.ui.*;
- [SWF(width = 800, height = 600, frameRate = 60)]
- package {
- import flash.display.Sprite;
- public class FlashTest extends Sprite {
- public function FlashTest() {
- // Im trying to play a mml string with any other instrument than default, any ideas?
- /*var tono:String = tonos[stIntrumento.value];
- var numtono:String = numtonos[stIntrumento.value];
- package {
- import flash.display.Shape;
- import flash.events.*;
- import a24.tween.Tween24;
- import com.actionscriptbible.Example;
- public class FlashTest extends Example {
- private static function lightBounceEase(t:Number, b:Number, c:Number, d:Number):Number {
- if (t < 0.75) {
- package
- {
- /**
- *
- * Here is example of workers http://esdot.ca/site/2012/intro-to-as3-workers-hello-world
- * but it's doesn't run on wonderfl.net. because this servier can't run new FlashPlayer features.
- *
- */
- package
- {
- import flash.display.BitmapData;
- import flash.display.DisplayObject;
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.geom.Matrix;
- import flash.geom.Point;
- import flash.geom.Rectangle;
- import flash.text.TextField;
- package {
- import flash.display.Sprite;
- import org.flixel.*;
- /*
- * Questions 1: How do I import/attach another file or package hosted on wonderfl?
- * The folowing does not work!
- */
- import kongregate.QuickKong;
- package {
- import com.actionscriptbible.Example;
- import flash.geom.*;
- public class WhatTheFuck extends Example {
- public function WhatTheFuck() {
- // identity matrix
- var m:Matrix3D = new Matrix3D;
- // vector with w != 1
- var v:Vector3D = new Vector3D (1, 2, 3, 4);
- v = m.transformVector (v);
- package {
- import flash.display.Sprite;
- public class FlashTest extends Sprite {
- public function FlashTest() {
- // write as3 code here..
- }
- }
- }
- // forked from xxxYukihiroxxx's forked from: flash on 2010-6-2
- // forked from coppieee's flash on 2010-6-2
- package {
- import com.actionscriptbible.Example;
- public class FlashTest extends Example {
- public function FlashTest() {
- // XMLの属性を参照している。これはこれで問題あるな。w
- trace(@[1,2,3].length); // output:"1"
- すみません、大学の宿題で出された問題なんですが分からないので誰か教えてくれませんか。
- ちなみに授業での条件としてWonderflやFlash Builderで動くことになっています。
- 問題
- CTRLキー、スペースキー、zの文字キーを3つ同時に押すと円が消える。
- package {
- import flash.text.TextField;
- import flash.display.Sprite;
- import flash.display.BitmapData;
- import flash.geom.Matrix;
- import flash.geom.ColorTransform;
- import flash.display.Bitmap;
- public class BitmapData_Draw_Bug extends Sprite {

















![ff[2]: flash on 2010-6-2](http://wonderfl.net/images/capture/6/69/6992/6992a067d9e9ebfdca7839f0b15fd961fdddc6b7.jpg?t=1335455784)
