I am trying to create a class called LinkButton, which is a simple class that loads a URL on a click (im doing this to simpify my designers' transition to AS3). Even though I am importing the button definition, the AS file gets a compile error: 1046: Type was not found or was not a compile-time constant: Button. and 1172: Definition fl....
I have a simple Flash movie with the following code. The idea is to move from one frame to the next or back using the arrow keys on the keyboard:
stop();
//listen for key press
stage.addEventListener(KeyboardEvent.KEY_DOWN, myKeyDown);
//if left or right arrow, go to previous or next frame
function myKeyDown(e:KeyboardEvent):void {
s...
I am kinda new to AS 3 development.. and the thing is I am always getting into problems how to structure the different views of an application state?
Do you use a MVC framework for this? I have looked at some puremvc, robotlegs but our flash projects are usually relativly small so I wonder if it is not a overkill :)
...
When i started working on mogobe.com
I wrote a small script that publishes all *.fla in all folder and sub folder.
Now I want to add error handling for that script.
I want to know is there is another way to get the data from those objects:
fl.outputPanel
fl.compilerErrors
instead of writing them as file to the file system...
I'm building a Flash CS4 application (AS3) and I can't keep all my movie clips in the library because there will be hundreds of them, and new ones will be added all the time.
Two parts to the question:
How can I externally load in a movieclip to use during run time? After loading I still need to be able to manipulate it as if I creat...
Hi,
I have a child SWF file that has the Camera functionality.
It works fine if I run the child SWF by itself.
However, when I load the child SWF into a parent SWF, the Camera functionality does not work.
Doing some tracing it says that Camera access is denied. That happens without me even clicking on the deny button and in fact the us...
hi,
Similar to the [Embed ()] tag I know from flex ¿ what's for the following code:
[Event(name="init",type="flash.events.Event")]
[Event(name="ioError",type="flash.events.IOErrorEvent")]
[Event(name="securityError",type="flash.events.SecurityErrorEvent")]
I've found this in several libraries I used, the one show here is from Flartoo...
I'm trying to get my Flash application to connect via socket to my server, so I need to set up a socket policy file server. It seems like there are various roll-your-own implementations floating around out there, but is there any kind of standard or best practice with what to use? Some google searches turned up nothing, so I'd be curio...
Is there any way to control a character made with Adobe CS4 Bone Tool via keyboard buttons? Its limbs are linked up by IK chains built by Bone Tool.
...
I got a Sprite that I'm rotating with rotationX & rotationY. This converts the clip to 3d object. Which makes texts in it blurred.
When I'm rotating this clip back to rotationX=0 and rotationY=0, I'm setting:
this.transformation.matrix3D = null;
Which makes the texts crisp.
BUT, when I'm adding another clip to this sprite, that has z=4...
Question 1: How to use ActionScript to control Flash-made-bone models to bounce realistically? My intention is to give audience the feeling of weight of the model. (Given that I know how to move the bones with IKMover.)
Question 2: My 2nd question is about the options of Armature of the bones. When I switch to Authortime mode, the Actio...
I'm using URLLoader in an ActionScript project to read in some XML. I then process it, and put it into a textfield. Everything looks fine. However, I don't really want the XML to be external to my SWF. So I did this:
var internalXML:XML = <Content><P>It was in <City>Paris</City> that I first
took a <Activity>walk in nature</Activity>.<...
Hi
I'm having some little bugs on my site I'm developping for a school project.
I'm using a flip mechanism to navigate through my site. The problem is: once it's flipped the content been displayed good just like I want it, but there's some offset from the flipped (right) parts en the solid left part (visible when you look closely). Also...
I am denying a user the ability to drop into my tree during certain conditions, it's all going well, but I want to tell the user why I'm denying the drop. I would prefer to do it with a toolTip, but it doesn't seem to work. Can I not have a toolTip during a drag operation? How can I force one?
Flex seems to treat toolTips as a property...
Hey,
I have a simple function going here.
import fl.transitions.Tween;
import fl.transitions.easing.*;
function goBack (e:MouseEvent):void{
var backAlpha:Tween = new Tween(MovieClip(parent).blueOverlay, "alpha", Strong.easeOut, 1, 0, 2, true);
MovieClip(parent).gotoAndStop("home");
}
btnBack.addEventListener(MouseEvent.CLICK, goBack)...
Is it possible to package all external files, such as images and videos, into the final .swf or equivalent file? I want to keep the external files separate because it is easier to change them out while developing, but I don't want them to be external when delivering the project. Does anyone know if this is possible?
...
I know there are a billion questions regarding what books are best and I'm sorry for posting another, but all of them see to have an orientation to a language I am not familiar with.
My problem is I learned to program before OO became big, then I stopped programming for a few years, moved into web design, moved into coldFusion, and now ...
I am creating a component that will be a large plus or a large minus. I don't want to use a bitmap because even I can draw this using the Graphics class, but the component must be clickable (the Shape class is not).
It will be part of an item renderer, so I want it to be as light-weight as possible. UIComponent does not seem to sent CLI...
I'm building a Flex app that will run publicly, and so I would like to protect the SWFs from reverse engineers as much as possible.
I once heard of ways to deny browsers direct access to the SWF files, yet allowing it to play within the main HTML page. I would like to know any such practices (and how to employ them) that can be used to ...
Hi to all, well, I have a combobox which I have bind his selectedItem property to a value object object, like this
<fx:Binding source="styles_cb.selectedItem.toString()" destination="_uniform.style"/>
<fx:Declarations>
<fx:XML id="config_xml" xmlns="" source="config.xml" />
<!-- Place non-visual elements (e.g., services, value objects) ...