It think Flash is telling me that my array tabData is getting duplicated, but I only set it up once in the var section of my code:
This is the line with the error:
for (var i in tabData) {
TabMenu class
private var tabData:Array = []; // <- tabData created here
public function drawTabMenu(w, h, color, videoHDiff, ypos):void
{...
It might sound confusing so let me explain the situation. I made a movieClip. And in that movieClip I have a dynamic textfield set. I called this textfield "AmmoCount"
I dragged this movieClip onto the stage several times and each time I called on the AmmoCount varible in each movieclip and gave it a different value. I get the followin...
Hello,
I am trying to load an image in Flex (AS3) which already exists:
<mx:Image id="Img"/>
With this code:
Img.load('http://www.path.com/image.jpg');
The path is verified to work, but I always get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
I used the code from the documentat...
This is in reference to My Other Question
How do can you detect and dispatch an event when a drag and drop operation ends prematurely?
I need to know that the user is no longer dragging an item. Even if the dragDrop and dragComplete events do no fire. Its almost as if I need to add an event listener to the dragManager, but that's not ...
I just started using Swiz, and, it seems like Swiz forces you to create classes with weak encapsulation. Swiz requires all event handlers to be public in order to mediate events.
Assume that component 'A' dispatches a few events, which I want to listen to in component 'B'. Traditionally, I'll just add event listeners on 'A' in 'B' and a...
I have a pretty simple scenario here and it works, but my instincts tell me I'm making a mistake and would like to run it by some better minds.
Here I have a parent class that instantiates a MenuClass and handles transitions between pages.
public class ParentClass extends Sprite
{
public function ParentClass()
{
setupOp...
Hi there,
I'm trying to create a video player in AS3 that displays the player controls when the user hovers over the video, however I'm having a hard time getting the MOUSE_OVER event to fire. I've made sure that the video's index is at the top, so that's not the issue. Is there something I'm missing? Is there any reason why this event ...
I'm trying to implement this for an instance of ComboBox specifically, which uses a List to display the dropdown menu full of items. Lists can have icons associated with them, as described in the documentation:
var comboBox = addChild(new ComboBox());
comboBox.dataProvider = new DataProvider([{label:'item1',iconClass:IconClass1},{label:...
How can I create a preloader which does this? I have seen many examples of code to load an external swf, but never something that loads itself.
Thanks for the help, this is driving me crazy...
...
The ide i am using is flash cs3. the as2 swf contains a tween code using mx transitions.
when i remove this tween code and hard code it on the enterframe there seems to be no problem.
afaik avm2 should fully supports the as2 and as1 code. so i am unable to understand why this disparity when coding a simple tween in as2 swf.
i had made a ...
I'm building my first AIR application after two years of building Flex applications with a SQL Server database, using ColdFusion CFCs and .NET as WebService interfaces.
I want to create an AIR application with static data and I'm trying to figure out the best way of doing this, and how to do this. I have several related pieces of data.
...
[Edit: Short version - how do you properly handle namespace collisions in SWC files if one SWC has fewer classes from that namespace than another?]
I have a rather large Flash application which I'm building in Flash Builder (because coding/debugging in the Flash IDE is... not good) and I've got a ton of external SWC files which I'm link...
I've got a SWFLoader aligned to the center of an App like below:
<mx:SWFLoader id="imgLoader" scaleContent="true" width="100" height="100" horizontalCenter="0" verticalCenter="0"/>
The problem is that when I load new images of various sizes, they are not aligned to the center of the app. If the image is 10x10 pixels it is aligned to 0...
I want to be able to deliver music/mp3 using a flash player but I'd like to make it so that the mp3 files cannot be sniffed... i.e. you can't use safari, firebug..etc. to find out the mp3 location using the activity window. I don't have a streaming server. Any idea?
If I go with a streaming server, any suggestions on how to go about it...
I am designing a web application that as an end result creates images (graphs plots, etc). These images will get used in Google docs documents. Users also need to be able to edit these images after they already posted to Google docs.
In the current version, I add a link around the image with the url to the location of my Flash editor, ...
The preloader does not show up after 3% like it should have, it shows up when the file has loaded entirely.
Can someone help explain to me what I am doing wrong? My code is in the first frame, and it makes use of a rectangle object, and a textfield object. In other preloaders I have seen with code like this, it uses a movieclip with 100...
Hi everyone, I'm creating a tabbed navigation from an XML file. However for some reason my loop only creates textfields for the active tab and the last tab (in this case the 4th tab).
> You can preview my Flash here. < (I turned textfield borders on)
My Issues:
1. The Active Tab (light colored tab) does not size correctly based on ...
Is there a way to access or iterate through a list of all objects exported to ActionScript from the Flash IDE? I'm looking to save myself some hassle by just iterating through selected MCs and processing them in a certain way, without knowing their names.
Thanks.
...
Hi
I have a function called DrawPlaybook which listens to two events, one mouseclick event and one custom event.
public function DrawPlaybook(...):void
{
......
panel.addEventListener(MouseEvent.CLICK,
function(e:MouseEvent){onClickHandler(e,this.panel)});
panel.addEventListener(CustomPageClickEvent.PANEL_CLIC...
Hi
I want to call the parent function called "edit_groups()" from the itemRenderer.
The code for my itemRenderer is:
<mx:VBox id="vbx_container" paddingBottom="4" paddingLeft="4" paddingRight="4" paddingTop="4" borderStyle="solid"
dropShadowEnabled="true" width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolic...