Hello,
This may be very simple, but I have no idea how to do this.
I created a photo gallery in AS3, everything is on one keyframe. In this photo gallery I have a link to home. My goal is, when someone clicks the "home" link I want everything to start over. Any ideas on how to do this in AS3?
Appreaciate it.
L.
...
How can I prevent mouse selecting (and moving caret) with Editable TextField(),
this one does not seem to fully work when SELECTING text, but it prevents clicking. I want to keep cursor in place where its going.
protected function handleMouseDEvent(evt:MouseEvent):void {
if (evt.type == MouseEvent.MOUSE_DOWN) {
var max : int;
max = this...
Textfield () - how to prevent mouse right click menu from appearing (a menu having COPY, PASTE, SELECT ALL etc options).
...
I have a few object params in HTML page I like to enumerate, what is the easiest method?
I would like to use for loop to go through each param and insert them into my own Array.
...
Does ActionScript 3.0 offer any means to accept an arbitrary number of parameters? I usually use .NET, but I'm being forced to use AS3 for a project and something along the lines of function blah(params double[] x) would be awesome for a helper library.
Thanks;
...
For some reasons, asdoc seems to be only good at 'excluding' classes but not 'skipping', which means all the files will always be walked through and examine for errors.
Is there a way to make asdoc really 'skip' some certain files? So it can bypass some already known problematic files and still generate the necessary docs gracefully.
T...
Hello,
in AS3, I'm making this dynamic textfield that is populated from an XML file based on where the user clicks.
The dynamic textfield has a custom scrollbar to it. My problem is that if the text inserted into the textfield is less than the previously displayed text, you can still scroll the dynamic textfield as far as the previous...
How Can I open a web page from the As3 so that it replaces current iFrame (and Flash object).
...
I have a TextField() with a quite long text , sometimes last lines are not visible on screen (without scrolling).
Now I want to detect if e.g. word IBM is currently visible on screen, or is it outside of screen. Any ideas how to do this? I want to display this particular word IBM by scrolling myself the textField() to the right posit...
there seem to be no stage.border property in AS 3?
my class extends Sprite, what is best way to draw border around flash object?
...
My page has currently this set up - what is minimum REVISION I can configure here:
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 124;
For example my MacOSX ibook machine does not start this page...
I have always used the NumberFormat class in Java to do simple number padding ie. turn 1, 2, 3... into 0001, 0002, 0003....
Is there a similar utility in ActionScript to do my padding, or will I have to write a custom function?
...
If you try the following code:
g.beginFill(0xFF0000);
g.drawRect(0, 0, 50, 50);
g.drawRect(25, 25, 50, 50);
g.endFill();
You would think that it would draw 2 overlapping red squares. However, it doesn't - it draws two red squares except for the overlapping area which is now completely transparent.
Any idea how to get around this?
Po...
One of the features of the Flash app I'm working on is to be able to stream a webcam to others. We're just using the built-in webcam support in Flash and sending it through FMS.
We've had some people ask for higher quality video, but we're already using the highest quality setting we can in Flash (setting quality to 100%).
My understa...
If I have some xml like so:
<books>
<book title="this is great" hasCover="true" />
<book title="this is not so great" />
</books>
What's the best (or accepted) way in actionscript to check if the hasCover attribute exists before writing some code against it?
...
hello,
I'm building an animation in flash and as3, I have a function in which I add a stage
eventListener, stage.addEventListener(Event.ENTER_FRAME, setScrollPercent, false, 0, true);
Since this event is set inside a function of a function, "two functions deep," How can I reset all stage event listeners from outside of the functions ...
I'm having problems sending a ByteArray over to my Zend_Amf_server. I get a NetConnection.Bad.Call back from the server. If I send a variable with another datatype then ByteArray it works fine.
I used the same script before with AMFPHP witouth any problems. But for this project I really need this to work in Zend_Amf.
AS3:
var path:S...
How would I go on about changing éëíïñÑ (etc) to their counterparts? ie, eeiinN.
I was thinking about doing regex matching against é -> é and replacing both & and acute/grave; with empty strings, but I can't seem to find an AS3 function that encodes accents to their non-numerical entities (ê and the like). I've already tried...
I have a dynamic text field inside a MovieClip symbol. Whenever the mouse pointer is hovered over the symbol, the cursor changes to the I-shaped text editing cursor. This may be a very stupid question, but is there any way to avoid this? Not even using mouse.hide() keeps the "I" cursor from appearing.
...
I need to programmatically remove an alert.
This is why:
My application uses BrowserManager to enable deep linking based off of the content in the #hash part of the url. If an alert is currently up, and the user hits the back button, the application will revert back to its previous state. But the Alert will still be up, and in many case...