dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: deadbeat

Page 1 of 20 1 2 3 4

Search: Search took 2.96 seconds.

  1. Replies
    7
    Views
    2,634

    Flash can't dynamically load those image types at...

    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...
  2. Yeah...pretty easily...something along these...

    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"){...
  3. Replies
    4
    Views
    386

    Add the fillColor parameter when you create the...

    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);
    ...
  4. Replies
    1
    Views
    389

    If you're using a standalojne projector, you can...

    If you're using a standalojne projector, you can use fscommand to go fullscreen, and quit...see:
    ...
  5. Replies
    1
    Views
    369

    Multiply by 100 (for 2 decimal places) to move...

    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...
  6. Yeah, if you can only ever buy 1 item at a time,...

    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...
  7. Replies
    2
    Views
    349

    You could also use a switch statement: ...

    You could also use a switch statement:

    myVar=4;

    switch(myVar){
    case 1:
    case 2:
    case 3:
    trace("Test 1");
    break
  8. does not mean cannot, it is a (deprecated)...

    <> does not mean cannot, it is a (deprecated) operator to test if two values do not equal each other...see:
    ...
  9. Replies
    5
    Views
    779

    Check out the sample FMS apps here: ...

    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.
  10. Use SWFObject: ...

    Use SWFObject:

    http://blog.deconcept.com/swfobject/

    K.
  11. Replies
    5
    Views
    779

    You would need to have Flash Media Server...

    You would need to have Flash Media Server installed on the server in order to record a webcam stream...

    K.
  12. Replies
    1
    Views
    348

    You can't - you would just store the path to the...

    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......
  13. Replies
    3
    Views
    325

    Well, your problem is that you are setting...

    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...
  14. The import statement does not actually include...

    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...
  15. Replies
    3
    Views
    512

    You could do something like this: var num=4.2;...

    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");
    }
  16. Thread: Hex to RGB

    by deadbeat
    Replies
    4
    Views
    519

    function hexToRGB(hex){ var r= hex>>16;...

    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...
  17. Replies
    1
    Views
    368

    You could do: var testing:Array=[]; for(var...

    You could do:

    var testing:Array=[];

    for(var a=0;a<10;a++){
    var arr:Array=[];
    testing[a]=arr;
    }
  18. Replies
    3
    Views
    472

    Note that Zinc (and other similar 3rd party...

    Note that Zinc (and other similar 3rd party tools) only works for standalone projector files, not for a SWF served from the web...

    K.
  19. Replies
    8
    Views
    415

    use clearInterval in the function to stop it...

    use clearInterval in the function to stop it executing more than once...

    myFunction=function(){
    trace("myfunction called");
    clearInterval(myInterval);
    }
    ...
  20. Replies
    1
    Views
    673

    Red5: http://osflash.org/red5 K.

    Red5:

    http://osflash.org/red5

    K.
  21. Replies
    6
    Views
    535

    There are also free XML socket servers...

    There are also free XML socket servers available...here's one example:

    http://palabre.gavroche.net/content/view/18/37/

    K.
  22. Replies
    8
    Views
    415

    setInterval: ...

    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.
  23. Replies
    1
    Views
    574

    For video you would be much better off to use an...

    For video you would be much better off to use an FLV file and stream it in externally...

    K.
  24. Replies
    6
    Views
    535

    You will need to use either the Flash Media...

    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...
    ...
  25. Replies
    2
    Views
    314

    All actionscript is compiled into the SWF when it...

    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.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center