My datagrid component appears to be broken.
When I drag one out onto the stage, its just a square. Nothing in it. Just a square...
Then, when I tried to programmatically add it to the stage, using an example straight off the docs, it throws some errors:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/DataGrid.htm...
Hi can anyone help me with a problem please. I am not looking for anybody to write code for me but just give me a few pointers.
I want to to put a frame or border around an image in actionscript3. I want to use an image that is considerably bigger than the border. the effect would be that the image would move around but only show what i...
Hi
Is it possible to get the bitmap data from a component using ActionScript?
I dynamically load an image.
onComplete I create a Flex Image component and add the loaded image to the source
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event):void
{
var image:Image = new Image();
image.x = 0;
im...
I ask this question time and time again and havnt got an answer. Its driving me crazy evertytime I get it. Sometimes it works, and sometimes it doesnt. When I pass a object through the constructor, it gives me the error message. So I always got to make a second method to get it to work. Here is my code if anyone can please help me
var d...
I wrote a loader class that has a tries property that indicates how many times to retry loading a url if an error code is returned. For instance with Twitter, the loader would retry loading a method call if a fail whale is returned, since the next call would probably return success.
I specify the many errors that can be dispatched with ...
I am using a box element to add a transparent overlay to a column of buttons. I want to add a click event to the buttons. However, when you click a button the click event is only triggered on the overlaying box. Is there anyway to pass the event to the underlying button or perhaps a better way to display an overlay without blocking the c...
I have flash cs4 and when I am typing code in the editor. It appears that the more code I add to my .as document, the more sluggish it gets. When typing, it appears to be a delay for when my text actually appears on screen. does anyone know what this could be.
My computer is not even a year old.
...
In my game, I have airplanes that are flying past the screen from a top down view. when the air planes crash, I scale them down to make it appear as if they are falling closer to the ground and farther away from the screen. I have turrets on these crafts as well. they are seperate objects from the air plan. I scale them down as well. The...
Just curious, If i nest a movieclip inside of another movieclip, and the nested movieclip is attached to a custom class. And that custom class has a Event.ENTER_FRAME listener. when I destroy the container movieclip, will flash get rid of the event listeners inside of nested movieclip's custom class ?
May seem like a silly question but ...
What is the best technique to apply anti-aliased text as texture on cube using papervision3d?
make dynamic textfield, convert it to moviematerial then apply it to the faces of cube.
Design a bitmap using any picture editor and make a bitmapFileMaterial to apply on faces of cube.
Any other suggestions please.
...
I have a TextField that is formatted with bold and blue. Then, when I change the TextField.text, the formatting of the textfield resets and I have to setTextFormat again.
This is the code I use to set my TextField. myText is the variable for my TextField. (this is just part of my code, it is part of a function for my EventListener.
...
Hello,
I'm having difficult time solving an absolute/relative path issues.
When using as3 and embed my swf via swf object JS, one of the parameters that being transferred to the embed JS function is "base=http://www.mydomain.com" which needed in order to load external widget into application.
Now, am also loading external assets like ...
Ok so I am writing an open source library. A section of this library deals with moving an entity in a two and three dimensional space so it will have functions that manipulate the rotation, position etc.
Now ideally I would like my library to work well with other libraries, in particular things like Papervision3D and other Flash 3D engi...
I'm working on a Flash project where all of my code is in an external Document.as file.
How would I go about setting up an intro MovieClip that runs and finishes before other MovieClips are loaded? What happens right now is that the clip loads along with everything else in the Document class (content, UI... etc). I want the intro clip t...
Hey,
I have a reference to a XML node which is part of a bigger XML tree. Is there a way to get that elements next/previous sibling without accessing the parent and looking for it? Something like DOM's nextSibling would be what I look for.
edit: Given that there is no natural way to do this with E4X, I'll just stick to the following (e...
I'm using the netstream and video object to play a video in flash. Specifically a mp4 video.
What I'm trying to do is start playing the file from a specific position (Ex. 20seconds).
However with netstreamObject.seek(20) doesn't work unless the stream has been loaded past 20seconds. Is there a way to specify starting to load at 20s?...
I have an air application that loads an external swf when prompted by the user. In the external swf, I have a class that loads all the necessary fonts for that particular swf. When my air application attempts to load the swf I get ArgumentError: Error #1508: The value specified for argument font is invalid. Any ideas? Thanks.
...
In the method Graphics.lineStyle() you pass the alpha as the third parameter. I don't want to change the thickness or color which are the first 2 parameters, so is there a way I can just change the alpha? or at least "get" the thickness and color so I can re-pass them so they wont change?
Thanks!!
...
When I create a tab dynamically via ActionScript, the style for the newly created (and selected) tab get applied to the skins, but not the text, unless I click on another tab and then click back to it.
This is the A/S, MXML and CSS code I am using:
private function clickAddTabHandler(event:Event):void{
var vbox:VBox = new VBox;
v...
hey all
i am a self-taught actionscript 3 programmer and i have written a gaming-app to run on an all-in-one touchscreen pc in fullscreen kiosk mode. this project is a "garage business" meaning i learn as i go and i dont have any of the resources of a full company ("only" a great idea and a great app).
my question regards flash/air cpu...