In Firefox 3, all the mouseWheel events in my haXe/Flash app are firing twice. This only seems to happen in the Windows version of Firefox; it doesn't happen in IE or Opera, and it doesn't happen in Linux.
Is this a known issue, or could I be doing something wrong? Is there a workaround that doesn't involve something crazy like checki...
I have a file Employee.as with the following source code. I am unable to compile it from the command prompt.
package Office{
public class Employee{
private var _firstName:String = "";
public function get FirstName():String{
return _firstName;
}
public function set FirstName(value:String):String{
_fi...
Hi all
i have one question about pureMvc.
i uew pureMvc to build an engine, in the engine init part i have an requirement
1) moduleA must init firt
2) moduleB , moduleC need init after moduleA init complate.
3) moduleD need init after moduleB & moduleC init complate.
4) moduleA , moduleB , moduleC , moduleD all extends Proxy beacu...
Is there a way to iterate through radiobuttons belonging to a certain group or movieclip?
Like this:
private var radioButtons:RadioButtonGroup = new RadioButtonGroup("radioButtons");
for (var i:int = 0; i < radioButtons.numRadioButtons; i++ )
{
trace(radioButtons);
// Here i want to do something like this: radioButtons[i].label = "h...
I'm rendering display objects to the stage depending on the given XML elements, as you can see here:
PageRenderer.as
private static var curElements:Dictionary = new Dictionary();
//renders the current page
private static function renderCode(pageCode:XML):void
{
if (pageCode)
{
/...
I have the following code:
var tf:TextFormat = new TextFormat();
tf.font = "arial";
aRButton.textField.antiAliasType = "advanced";
aRButton.setStyle("textFormat", tf);
aRButton.setStyle("embedFonts", true);
When i run this i get antialias on my radiobutton but the Swedish characters å, ä and ö disappears. Is there a way to manually e...
As of right now. I have 3 objects. One BitMap that acts as my canvas. And 2 bitmapDatas. One is my buffer and another is my tiles. I am creating a tiling effect for a game. I would like to take my tile:BitMapData, and turn it into a custom object. reason being is I want each tile to be interactive. So I can click on each one. Is it possi...
I am using as3. Just a simple question.
If I created a static method. say I decide to call on other methods within that static method. Do those methods I call on need to be static as well? what If I used some of the properties. Not to store data permanently, but just within that process. Do those properties need to be static ??
...
Hello,
I'm currently trying to built a little Air Application where I want to set the normal Command-C key to call a function? Is this even possible to use a standard Menu Command?
function createMenu():NativeMenu{
var menu:NativeMenu = new NativeMenu();
var menuOneCommand: NativeMenuItem = menu.addItem(new NativeMenuItem("Menu 1"));
m...
Using actionscript, how do I find if the following string contains the substring assets/Wallpaper?
http://virtual.c7beta.com/assets/Wallpaper/default.jp&session_id=1fb764b01a2843763a76316a6c85313a
...
I have an image that I am attempting to load, and then reload. Here is my code for the loading of the image:
public function loadImage(url:String, _w:int, _h:int):void
{
this._stwidth = _w;
this._stheight = _h;
this._imageURL = url;
if(!_imageURL)
{
return;
}
...
I'd like to use Flash to capure video from the user's webcam and then save it on the same server that hosts the Flash file. The web server will be running ASP.Net technology. Seems easy, right?
Lot of searches yielded the same lines of code to start a webcam capture using Flash. I can't find anything that sends that captured video back ...
I have created a Bar chart(having total 4 bars), wherein there is a gap between these bars.
Kindly let me know , how to remove this gap between the bars as there is no inbuild property available...
Thanks & Regards,
Narender R.
...
Hi Friends,
I am trying to use Flex Profiler to improve the application performance (loading time, etc). I have seen the profiler results for the current desgn. I want to compare these results with a new design for the same set of data. Is there some direct way to do it? I don't know any way to save the current profiling results in histo...
I'm using a progress bar to let a user know how much more live streaming video data is to be buffered before it starts playing. Have that much working fine.
Problem is, if the buffer gets used up, and I need to rebuffer, I can't seem to get the progress bar reset and visible again. Seems once it hits 100% on app start up it can't be r...
Hello,
I'm really frustrated in this case.
While developing with Adobe Flex, I'm working on my first application - and use pretty much actionscript.
In my mxml application, I include as3 file via <mx:Script source="as/myas3file.as></mx:Script>.
In myas3file.as, I include (thru include "variables.as";) file variables.as, which contai...
How can I make sure all the components, even those that are not going to be visible at the beginning, load right away when I start my application?
I have an application with a ViewStack whose visible child is set via a sidebar menu. Say the ViewStack has two children, A and B. A is initially visible, whereas B is not. How can I make su...
The title might be a little misleading. Look at my code and I will explain
public static function loadTile(tileDir:String = "empty"):void
{
if(tileDir != "empty")
{
tPoint = new Point(0,0);
tRect = new Rectangle(0,0,30,30);
//load in tile sheet image
...
Here's the scenario: I wait for a creationComplete event to occur for an mx:Text object at which point I can access the setTextFormat method of its protected member textField. (textField is not valid until creationComplete.) At that point the text formatting done through textField.setTextFormat increases the height of the text. But t...
Is there a way to get an instance reference to the document class to call a method of it from the stage's timeline?
I see that here's a possible solution: using a singleton
Other solution I though of is using stage.getChildAt( 0 ) but it's not very nice.
Is there an 'official' instance reference? because the document class is obviously i...