Is there a ActionScript-version of JavaScript's Canvas.clearRect()?
I only know graphics.drawRect(...) which allows me draw but not remove rectangles.
If there is no such method in ActionScript, how can I emulate it?
...
Hello there!
After whittling down of the options we've encountered a problem with PNG's and ActionScript 3 (AS3).
When loading a PNG 8 or PNG 32 with alpha transparancy we're getting the following error reported in Flash:-
"Error #2124: Loaded file is an unknown type"
Now, we're dealing with some legacy images, and it appears as thou...
I have a Dynamic TextField created with ActionScript (multiline, wordwrap & autosize=true).
While running the SWF, if you click into the TextField you get an arrow "move" cursor, then you can double-click to put it into Edit mode to select text. I want it to work like PowerPoint - if you click into the box you'll always get a flashing c...
I have swf that loads swf, which loads another swf(video player).
Is there a trick in publish settings? everything works fine on my local machine, when I upload it on the sever error happen and video doesnt load
SecurityError: Error #2148: SWF file
http:// (URL where Site is
hosted)/video.swf cannot access local
resource
f...
i've programatically created a vector graphic (rect), repositioned the graphic, and set up an MOUSE_MOVE eventListener to trace color information of the graphic using getPixel(). however, the bitmapData is placed at 0,0 of the stage and i don't know how to move it so that it matches the graphic's location.
var coloredSquare:Sprite = ne...
Need to create a application which reads input from card reader.
Input coming from card reader as strings which is similar to the keyboard event. In flex,I can catch this string by listening key event.
Problem is that when someone presses key while swiping a card from card reader. Both will be appended in the input. How can i resolve ...
I appreciate loading AS2 into AS3 is never going to be fun, but unfortunately I have to on this one.
I'm using the Loader Class in AS3 to load an external AS2 SWF onto the stage as a AVM1Movie Object. Anything that is placed on the stage in the AS2 FLA displays fine, but no ActionScript runs at all.
The loaded AS2 SWF has one layer, on...
I want to handle the keydown event globally in my application and as such have added the event handler to the top most DisplayObject in the display list. However, the event doesn't seem to fire unless the cursor focus is on a Textbox or Datagrid or the like.
How can I have key presses handled globaly by the application?
...
Hey guys,
My Flex client app has got some data from the back end (RemoteObjects, BlazeDS, Spring). Client has got all the data it needs, it now needs to put some information in a CSV format and make it available for download.
Using Flex 3 for this. Any ideas?
Thanks,
Sri
...
In my application I tried using following codes to do this:
<mx:HTML x="0" y="0" width="100%" height="100%" location=“http://www.example.com”/>
The page is loaded fine.But when I click the links I found sometimes there was no any response while I need a new explore window opened with the linking url.And also I tried:
<mx:Script>
<...
So, I'm working on the basics of Actionscript 3; making games and such.
I designed a little space where everything is based on location of boundaries, using pixel-by-pixel movement, etc.
So far, my guy can push a box around, and stops when running into the border, or when try to the push the box when it's against the border.
So, next, ...
before somebody screaming RTFM, let me clarify.
does system.totalMemory test the memory used in movie which invokes it, or used by all movies running on the browser/system?
I want to initiate garbage collaction for my app when it reaches a certain limit and i dont want the process to be initialized by the user watching funny cats youtu...
I have a flash app using the flex framework - I would like to bind a display object textField with data from my dataModel.
How do I do this without the flex binding brackets "{ }"
Thanks in advance everyone.
...
I am trying to dynamically resize an flv playing back in a flash player. To do this, I need to get the flv's width/height so I can maintain the original aspect ratio.
I have noticed that in Firefox the onMetaData event will be hit right away, and the video will resize properly. In IE however, onMetaData is not hit until the buffer is fu...
Hey Everyone,
Currently I am mostly a PHP/Javascript/CSS/HTML applications programmer. But I would like to start learning how to create flash movies also. However, I do not want to spend the money to get CS4. Can I create flash movies from only Actionscript 3? Or would anyone recommend that I jump straight to air? All of the different a...
I have a menu with button objects in As3. I want to display the page where user is and for this I must show buttons' over state (which is mc) when flash loads. I'm sending the page parameter to flash. I just need to play the movie clip inside the specific button.
Looking for something like:
btn1.m1.gotoAndPlay(1); or btn1.m1.play();
...
Im basically working on an image analyser that downloads images from another server. I have no control over the server but I only want to scan images not html pages.
would something like this work?
new URLRequest('http://otherserver.com/someimage.jpg');
Or would I have to use a PHP script to act as a proxy for my script and have the ...
My Flash designer is reading an XML stream I'm sending back to the browser (I'm a C# dev). We have this working fine.
He is then selecting into an XMLList where a element has its id a certain value i.e. . This is also working just fine.
In this XmlList, are Events, that look a little something like this:
event
startdate
...
Is there a way in flex (Flash Builder 4) to make regions like in c#, to group a part of the code allowing us to collapse it and see through our project more easily?
In c# it's like:
#region exammple
// my funtions I want to group
#endregion
...
Some pseudo-code for accomplishing a linear fisheye distortion of a MovieClip's contents would be very appreciated.
The attached illustration shows how the "fisheye effect" is automatically applied to an area around the mouse-pointer.
The Flare toolkit has examples of both Bifocal and Fisheye distortion here.
...