Search:
Type: Posts; User: deadbeat
Search:
Search took 2.06 seconds.
-
Flash can't dynamically load those image types at runtime - only JPG, GIF, SWF, and PNG are supported. If you need to use TIFF or BMP, you would need to have some way of doing a server-side...
-
Yeah...pretty easily...something along these lines:
var lib = fl.getDocumentDOM().library.items;
for(var i in lib){
var t=lib[i].itemType;
if(t=="movie clip"){...
-
Add the fillColor parameter when you create the BitmapData object - by default it will fill with solid white:
var bmpData = new BitmapData(source._width, source._height, true,0x00FFFFFF);
...
-
If you're using a standalojne projector, you can use fscommand to go fullscreen, and quit...see:
...
-
Multiply by 100 (for 2 decimal places) to move the decimal to the right, then round it to get rid of the rest or the number, then divide by 100 to move the decimal back to the left...
var...
-
Yeah, if you can only ever buy 1 item at a time, you can do away with the quantity part altogether...
The key part of that code is the if statement which checks whether there are enough funds...
-
You could also use a switch statement:
myVar=4;
switch(myVar){
case 1:
case 2:
case 3:
trace("Test 1");
break
-
<> does not mean cannot, it is a (deprecated) operator to test if two values do not equal each other...see:
...
-
Check out the sample FMS apps here:
http://www.adobe.com/devnet/flashmediaserver/sample_apps.html
There are a couple examples in there on recording a stream on the server...
K.
-
Use SWFObject:
http://blog.deconcept.com/swfobject/
K.
-
You would need to have Flash Media Server installed on the server in order to record a webcam stream...
K.
-
You can't - you would just store the path to the image file so you caould reload it when needed...
Alternately, if you're using Flash 8, you should be able to store a BitmapData object in an SO......
-
Well, your problem is that you are setting gotoAndPlayOld=gotoAndPlay. So everytime you call gotoAndPlay, it calls gotoAndPlayOld, which is really just a reference back to itself, hence the infinite...
-
The import statement does not actually include the class into the frame - it just means you can reference the class without typing the full classpath everytime...ie, both of the following are...
-
You could do something like this:
var num=4.2;
var min=Math.floor(num);
var max=Math.ceil(num);
if(num>min && num<max){
trace("decimal");
}
-
function hexToRGB(hex){
var r= hex>>16;
var gb= hex-(red<<16);
var g= grnBlu>>8;
var b= grnBlu-(grn<<8);
return({red:r, green:g, blue:b});
}
var...
-
You could do:
var testing:Array=[];
for(var a=0;a<10;a++){
var arr:Array=[];
testing[a]=arr;
}
-
Note that Zinc (and other similar 3rd party tools) only works for standalone projector files, not for a SWF served from the web...
K.
-
use clearInterval in the function to stop it executing more than once...
myFunction=function(){
trace("myfunction called");
clearInterval(myInterval);
}
...
-
Red5:
http://osflash.org/red5
K.
-
There are also free XML socket servers available...here's one example:
http://palabre.gavroche.net/content/view/18/37/
K.
-
setInterval:
http://www.adobe.com/livedocs/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001662.html#wp4023423
K.
-
For video you would be much better off to use an FLV file and stream it in externally...
K.
-
You will need to use either the Flash Media Server or an XML socket server such as Unity to relay real time data between connected clients...
...
-
All actionscript is compiled into the SWF when it is published - you can't simply update an .as file on a server, you need to actually recompile the SWf itself...
K.
|
Click Here to Expand Forum to Full Width
|