ActionScript 3.0 :: What Double Greater Than Means Or ">>", Or Doubleshift
Mar 22, 2011I been searching on google about ">>", but i couldn`t find any explanation... So what doubleshift means or">>"?
View 2 RepliesI been searching on google about ">>", but i couldn`t find any explanation... So what doubleshift means or">>"?
View 2 RepliesI'm creating my first as3 with flashdevelop I don't understand what the instructions mean:
package
{
import flash.display.Sprite;
import flash.events.Event;
[Code].....
What if (stage) init(); means ? What is Event.ADDED_TO_STAGE ? Why remove listener in init ?
I get the following error[ImageError - Reason: FLASH_HAS_RANDOM_NUM, Field Path = operations[0].operand.ad.image.data]
The only random call I have is to get a random 360 angle for a set of particles, and the code is at the end of a movieclip within other movieclips.
UPDATE:I am using Flash CS3 and the banner settings are: Flash 8 and AS2,The code for the random bit is this._rotation = Math.random() * 360;
Something is broken in my Flash Professional CS5, and it's creating a real pain. When I have finished editing a page of TLF text and want to return to the stage, I find the little left arrow Missing In Action.
I'd send you picture of it, but it can no longer be found. Here is an image that I snagged from Adobe TV to give you a rough idea what I'm saying. The difference is that when I was editing a text symbol, ( before it broke ) then its name would be where Scene 1 appears, and the arrow would be strongly visible ( dark blue? ) rather than grayed out like this one is.
When this first happened it took a while to find any way at all of escaping the edit, but I finally found a really clunky way to get out. I have to save then exit the entire .fla file edit session, then come back in and start over.
I'm running Flash Professional CS5 11.0.2.489, apparently 32 bit code under Windows 7 on a 64-bit i7 processor.
Not surprisingly, this creates a big problem for me, since I have a huge amount of work that must be done quickly. I spent the money necessary to purchase what I thought was the best tool on the market, now I need some help to get it working again.
Well, there is a huge debate going on with the "best way to show users language selection", but no answer.All seem to suck. 2 and 3 suffering from "Country != Language", 1 and 4 suffering from "Cognitively, selecting a word out of a list of words sucks."While this question may seem subjective, it is possible to answer this question in a non-subjective way.Such as if Flex or some Flex component exists as a "Language Chooser" such as that found on a mobile device.
View 2 Replies[code]...
Yeah, I can't workout how to make them swapVis basically. Any more efficient means/methods would be welcomed.I feel like my code is getting too straight up and down and not looking out to make it shorter etc.
I've been searching around forever trying to find a way to make traversing nested display lists more of a 1-line possibility.In AS2 you could grab a clip just by _container.clip1.nestedclip2.nestedclip3 and it was blatently simple.In AS3, is there any way to do that?So far my only methods are keeping a class level reference to important parts of the UI or doing a painful series of getChildByName chains until I drill down to it:[code]The casting makes the getChildByName method possible.
View 15 RepliesI overheard some watercooler talk the other day and the subject was using the mic as a means to control the interactivity of a flash site.Example: Every sound that the user's mic "hears" results in an event much like clicking on a button to reveal a dropdown menu.
Or: The more you scream, the more popups appear on the site.
Why would
if(vol > 0){
trace("worked");
}
NOT work if the value is a decimal value between 0 and 1?The trace only works sometimes. I didn't note though at what value it worked..STUPID ME...forgot and plus, it was 2AM.I am reading in an array ..byteArray, and then passing readFloat to vol.
Background story: many users (including me) browse the web from notebooks that are not constructed for sound performance. That means (besides other things) that the sound volume for most videos is too low, especially if the video itself is recorded at low volume.
Therefore...
I was wondering if there is any way of increasing the volume of such a video (especially Youtube, but could be extended to other types), because I'm interested in doing it and even publishing it as Firefox/Chrome/other browser plug-in.
I have an actionscript pulling data from an xml file. As you can see in the code below, I have textFields been created on the fly.I need to have the "resultsField" textfield to be programatically filled with the greater value from either "column1" or "column2".[code]
View 24 Repliesi want to know which method is greater for flash website for both performance and bandwidth
1st: Draw all the required graphics using ActionScript
2nd: draw all required graphics in photoshop or flash and load in the flash using actionscript when required
I have just found out that flash wont let me create a movie with width or height greater than 2880. The thing is I have an image of the stage which has a height of 3568px so some clipping has occured and I cannot see the rest of the image when I publish the movie. Is there a way to somehow adjust my movie to this height so that I can see the rest of the image? I have assigned a little AS2 to resize the stage:
Code:
Stage.height = 3568;
However this doesnt work!
I am trying to loop through a bitmap and determine if each pixel is lighter or darker than gray using getPixel(). Problem is, I am not sure how to tell whether the value returned by getPixel() is darker or lighter than gray.
Neutral gray is about 0x808080 or R:127, G:127, B:127. How would I need to modify the code below to accurately determine this?
[Code]...
I have a scrolling flash gallery. On mouse hover over a thumbnail, a popup with more description is shown. The problem is that my stage height is 200px but the popup requires additional about 200px to show properly. When I embed this in an HTML page with the object tag height set to 200px, i see the scroller completely but the popup get cut from the top. If i change the object height to 400px, it show me the popup fine, but this inserts extra blank space in the html page.
View 1 RepliesIt's possible to print in flex image (high resolution png/jpg file) with print quality greater than 72DPI?
View 1 RepliesThe below function goes through once, increments the _alpha of picture1 and then exits....wont loop until _alpha is greater or equal to 100.
function delaytext() {
if (picture1._alpha >= 100) {
picture1._alpha = 100;
trace("complete" + picture1._alpha);
} else {
picture1._alpha += 1;
}}
I'm trying to write code so that when the variable p_bw is greater than 0, an event is called. I've read that I need to use dispatchEvent but I can't seem to get it working .Here is my code....
package CIS.FLVPlayer[code]............
Just new in forum and just new in as3 programming. All i want to do is to make some physics simulations (i'm physics teacher...). So i made my first sim with the following code, just to simulate a simple motion with constant velocity. It works ok, except the part i need to reset the display by the means to start the motion all over again (reset button). Then the motion starts but the traces of the previous motion remains on stage. I tried the null command (sp=null) but the sim could not start again because the sp nedded to be non-null...
[CODE]...
I've got a bug in my code, where a button has to be double clicked to work.Just wondering what is the standard distinction for the difference between single and double click.
my code
ActionScript Code:
ns.seek(0);
subtitles._visible = true;[code].....
the idea is that it runs a function only when the above button is pressed, but it doesn't seem to work the first time you press the button ?
What means "package is unexpected" in AS 3?
View 2 RepliesIam using flex 3.5 . I want to set the back ground color of cell in a datagrid to yellow when the data in it is more than 6 .
View 2 RepliesDon't know why this matters all that much, but if ANYONE can shed ANY light on "why" for the following behavior, that'd be great!I ran across this when I tested my program and I expected errors because of a couple undefined's but they went right through my if!
So I decided to check it out. I started with a couple tests and got the expected answers:
[Code]...
I'm prepared to find out that I'm the only one who cares, but if anyone else is interested, please post your thoughts!
Don't know why this matters all that much, but if ANYONE can shed ANY light on "why" for the following behavior, that'd be great I ran across this when I tested my program and I expected errors because of a couple undefined's but they went right through my if!
So I decided to check it out. I started with a couple tests and got the expected answers:
Code:
trace ("undefined == 0 :" + ((undefined == 0)?"true":"false"));
trace ("undefined < 0 : " + ((undefined < 0)?"true":"false"));
trace ("undefined > 0 : " + ((undefined > 0)?"true":"false"));
[Code]...
I'm prepared to find out that I'm the only one who cares, but if anyone else is interested,
I wonder if there is a way in actionscript 2 that makes something happen if an object hit another object with a specific speed. For exemple: If Object 1 hits Object 2 with a speed greater than 10 I want something to happen.
View 5 RepliesDoes anyone here know much about the date object in ActionScript? I need to find out if a date is greater than or less than a particular date, and I'm not having any luck.
View 4 RepliesI was wondering if someone knew or has one of those accurate speed tests could test "not less than" versus "greater or equal to" speed in Actionscript 3 (Air 2.5 if that makes a difference)?I have virtual machines running on this computer and I am getting very inaccurate results.
Using it as such
if ( !(__index < _vector.length) ) return;
or
if ( __index <= _vector.length ) return;
I would have thought the first one, since all its doing is 1 test and then reversing it, but actionscript 3 has some of those quirks where you can never be sure.
I have CS5 but just upgraded to cs5.5 yesterday...but why are my swf files in Flash cs5.5 more than doubling in size compared to using cs5?
View 1 RepliesIs it possible to double up If Else statements? [code]...
View 2 RepliesI am no longer able to doubleclick SWFs on my PC and have them open up in their own little SWF preview window. It is asking me to choose how I want to open them. There was no option for any Flash player, so I have had to settle for Firefox fo now which is annoying as it has changed all my SWF icons to the FF logo.I have Flash CS3 installed, and use Flash regularly to create banners and things, so this is a pain.
View 2 Replies