I have this base class
package sevengames.miranda.front.res {
import flash.display.MovieClip;
import flash.text.TextField;
public class MenuButtonBase extends MovieClip {
protected var text:TextField;
protected var bt:String = null;
public function MenuButtonBase() {
stop();
...
Never had this happen before, I am loading a series of images but when i compile to swf output in Flash Builder, one image attempts to load but just fails, it doesn't error it just fails silently.
If I build to localhost in html then it works fine, this is really confusing.
Any ideas where to look?
...
Can you recommend articles,books and best practices on designing Flex applications? (both AIR and web).
I've read Creating components and enforcing separation of concerns with Flex and Building components by using code behind.
Does the application always have to start on the Main MXML? Can't I instantiate the first view from an Action...
In a ActionScript 2 code sample it uses some MovieClip.prototype's functions, as MovieClip.prototype.setModel;
I'm trying to write this example using an ActionScrip 3 class, but the MoviewClip.prototype does not exists, where can I get it from? Does it exists in ActionScrip 3?
--update
Ok, as you are asking, here goes, this code works...
What is the difference between TextField, Label, and TextArea in flash. I'm trying to find the most lightweight class to display text because I will be making lots of them. Any ideas would be helpful. Thanks.
...
Hi Guys,
A client wants the company I work for to build an expandable flash banner, I'm a dev, so my solution is: stack 2 flash banners, small one visible, big one on top of it, with display:none, catch the click event, animate the big one into position.
The client wants it done without javascript (their banner rotation network doesn't...
We have a flash app streaming live video to our clients which may or may not have available. When audio is available, we are showing controls to mute or alter the audio volume. When audio is not available, we hide those controls. These are necessarily different streams, but could be the same stream where the broadcaster has disbaled thei...
So I have a basic application descriptor file for my AIR app. It looks something like this, shortened for sanity:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/2.0">
<version>1.0.10</version>
</application>
Now I want in the application to display the version, but I...
Is there a way to implement something like icons on a desktop? Is there an easy way in Flex to implement a selection box and multiple drag and drop?
...
In Flash Actionscript 3, if a function is defined in Frame 1 of a flash animation and the animation loops, does it store another version of the function in memory upon each loop.
frame 1:
function blah() {
var n = "yes";
return n;
}
If so, is it a best practice to check to see if it's the first time the frame has been run, by set...
I have a file "simple.as" with the code:
lineStyle(1,0,100);
lineTo(100,100);
and I call it from my Flash Professional project using an action with the code on frame 1:
#include "simple.as"
and it works fine.
Now, I'm trying to make this same code run in a ActionScript 3 class, but with no success.
My try was:
package
{
impor...
Hi Guys
I am having a problem with flex.
How can I get the number of Days in a particular month in Flex?
Thanks
...
I define a variable which is dynamicaly changes based on the user interactions, for example ID of an object sets to variable when user touches on it. After the ID sets I call a function in a custom component which is related to that object. Like this;
activeObject.videoPlay(event) ---> if the activeObject is video1 ---> video1.videoPl...
I am currently working on a Photoshop-like transformer application to work with DisplayObjects as layers. I have an ArrayCollection which serves as my data provider for my List of values, but the problem is that the items are appearing in ascending order in the List:
0 - Item 1
1 - Item 2
2 - Item 3
3 - Item 4
Since it's a layer manag...
Preface: I'm making a map of the 50 US States using imported images.
I'm using a piece of XML to import image paths into Loaders, and then using the Loaders to populate multiple movie clips (this works fine). I find myself now needing to import SWFs in the shape of each US State as a hitTestState for the 50 buttons. It's been suggested ...
I was reading this: http://stackoverflow.com/questions/366088/flexunit-with-pure-actionscript-project-in-flex-builder-3/3472839#3472839
I am trying to do option 2 in his question. I have an existing actionscript project. I created a flex project with flexunit 4 setup and it runs. I set the flex project to have an external source library...
Is there some way to check if what you are loading is already in memory and don't need to be loaded a second time?
...
I have a group for which I want to enable horizontal scrolling. Vertically the group should be as wide as possible (100%).
<s:Scroller left="0" right="0" top="0" bottom="0"
visible="{isVisible}"
horizontalScrollPolicy="off"
includeIn="stateA">
<comps:MyComp
horizontalScrollPosition="0" verticalSc...
i've loaded external swf into ScrollPane and i need to dispatch click event to this external swf. is it possible? ScrollPane.content.dispatchEvent(new MouseEvent(MouseEvent.CLICK,true)); doesn't work. this is obvious cuz ScrollPane.content is an DisplayObject and it have not CLICK event...
I can't use MovieClip as container for external...
Here is my full code
import fl.controls.*;
var test:MovieClip = new MovieClip();
var btn:Button;
for(var i:int = 1; i<=7; i++){
btn = new Button();
btn.name = "btn" + i;
btn.x = i * 100;
test.addChild(btn);
btn.addEventListener(MouseEvent.CLICK, function(evt:MouseEvent) { nothing(i); });
}
addChild(test);
functio...