[Flashcoders] Help! Webcam + lineTo on mousemove = webcam freeze

2008-06-29 Thread Johnny Zen
Hi all I am writing an application where I have a whiteboard and webcam. When I freehand draw a lot using lineTo (sprite), the webcam freezes. (Drawing.graphics.lineTo(sourcePt.xPos, sourcePt.yPos);) - on mousemove Any idea why this would happen ? When I am drawing like crazy, I can see my

Re: [Flashcoders] Document viewer

2008-06-29 Thread Jiri Heitlager
I don't think that Adobe is especially interested in promoting FlashPaper, which is essentially a competitor or substitute for PDF. What a same, because it has some nice features. Come to think of it, now with the PDF isnt possible to embed flash content and doesnt that open up a way to do

[Flashcoders] Re: [SOLVED] Help! Webcam + lineTo on mousemove = webcam freeze

2008-06-29 Thread Johnny Zen
The problem seems to be only in CS3 flash Test Movie - when published in flash player in browser, there is no problem. I guess the flash player within flash professional is not so optimised. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Calling super.apply

2008-06-29 Thread Fumio Nonaka
Is the following what you would like to do? http://www.fumiononaka.com/TechNotes/Flash/FN0703001.html *Sorry, the article is in Japanese. package { dynamic public class MyArray extends Array {; public function MyArray(...args) { if (args.length ==

[Flashcoders] random drawing

2008-06-29 Thread Bassam M
Hi I'm trying to make game in this game I have 50 movie clip in the library I want when I click on one button call draw i want to show 7 of this movie clips on the stage but i want to select randomly 7 of 50 or more or once i click draw i want to draw one card by one random can anyone help me

Re: [Flashcoders] random drawing

2008-06-29 Thread Ashim D'Silva
If you're using AS3, everything in your library that's set to export for Actionscript will have a unique Class which you need to call to instantiate it. Use getDefinitionByName to turn a randomly selected string into a class definitiion and then call it. Example: If your library has 50 objects