Re: [Flashcoders] High CPU usage problems

2007-03-22 Thread Andy Makely

If you are doing a lot of createEmptyMovieClip() and attachMovie(), then
make sure that those movieclips are getting removed when you are done with
them.  If you are fading those clips away, but never removing them from the
stage with removeMovieClip() (*not* delete), CPU performance will surely
suffer as the number of invisible movieclips increases.

Also double-check to see if your intervals are actually getting cleared.  If
you are using intervals to do multiple tweens, make sure that they ALL get
cleared.  Also beware of intervals declared in loops because if you are not
careful, you can overwrite an interval with a new one.  This leaves the
previous one uncleared and unaccessible as well.

--
andy makely

On 3/22/07, Carl Welch  [EMAIL PROTECTED] wrote:



I programmed the Portfolio Section. Bring up the task manager and watch
the performance graph. You can watch it start to bogg down after a while
of
clicking around the portfolio section. Its loading xmls (one for the Side
Menu) and the other for the thumbnails and theire respective data. There
are
quite a few createMovieClips and AttachMovieClips and some setIntervals -
which I do clear when I'm done. When I create a tween object I try to kill

it when I'm done using it with delete myObject; - not sure if that even
works.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AS3 and streaming timeline sounds

2007-02-16 Thread Andy Makely

We have an AS3 project, which requires a long sound to be strictly synced to
the animation.  We build the assets SWF using Flash 8, then embed the assets
via AS3 and do the usual MXMLC compile to build.

If there is a movieclip asset that has a sound on the timeline, and that
sound is set to STREAM, the movieclip does not display.  Switch that sound
to EVENT, and everything works, though the sound gets out of sync
eventually.

Does AS3 break timeline-streamed sounds?


--
andy makely
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] checking microphone

2007-02-06 Thread Andy Makely

There are a lot of ways that the microphone input could be invalid.

You check Microphone.names.length to see if they even have a microphone
installed, and check the current microphone's muted property to see if
they are denying you access to it. If it's denied, System.showSettings(0)
will help them allow access to the mic.

If you know they have at least one mic, you could prompt the user to speak,
then check the current microphone's activityLevel to see if you get
anything.  If not, use System.showSettings(2) to open the microphone
settings panel so they can choose the right mic and adjust the input level.

Microphone 
docshttp://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?href=2409.html

--
andy makely

On 2/6/07, learner [EMAIL PROTECTED] wrote:


Hi All,
I am working on some voice recording  application in flash.
Before recording a audio, I want to give user a chance to check if his
microphone is working or not.
Please guid me in proper direction.
Regards,
Mayur

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 embedded assets and preloading?

2007-01-25 Thread Andy Makely

Keith Peters has posted the solution in his blog, and it works perfectly.
http://www.bit-101.com/blog/?p=946

Basically it involves using the [Frame] metatag to tell MXMLC to use your
preloader class as the factoryClass, moving your Main class (and it's
assets) to frame 2.  Once everything is  loaded, have the preloader init
your main class via an indirect reference (getDefinitionByName).  The
indirect reference prevents the Main class (and all its assets) from being
required by the preloader, otherwise everything would get dumped onto the
preloader's frame and break the whole process.

--
andy makely


On 1/18/07, Sascha [EMAIL PROTECTED] wrote:


Can somebody enlighten me?
How do you use AS3 embedded assets with a preloader (without the Flash
IDE)?
In AS2/Flash8 and below we could put a preloader on frame1 of the main
timeline and put all the heavy assets from the library on frame2 or
beyond.

In AS3 I wrote a custom Preloader class that extends MovieClip so if it's
done loading it can proceed to frame2 but how do I get the embedded assets
into frame2? I guess it doesn't work like that in AS3 anymore?!

But in Flex the preloader works and it seems it does it without using
frames
(the Preloader class extends Sprite).

Are there any tricks to get this done in an AS3 project and without using
Flash IDE?

Thanks in advance,
Sascha


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Play Sound Backwards or in Slow Motion during RunTime

2006-08-16 Thread Andy Makely

On 8/11/06, Helmut Granda [EMAIL PROTECTED] wrote:


Does anyone knows of a technique to play a sound backwards or in Slow
Motion
with AS?

So far this task seems imposible, bt I was wondering if some one would
have
some pointers.

Thanks!
...helmut




Andre Michelle knows how to do it in AS3.
Look at F9:audio/scratch

http://lab.andre-michelle.com/

--
andy makely
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Debug Player issue

2006-07-12 Thread Andy Makely

My Flash 8 debug player has stopped working.  It no longer outputs to a
logfile.

I have checked and double-checked the mm.cfg file, %homepath%  %homedrive%
user env. variables, uninstalled and reinstalled the debug player, etc.

Anybody got an idea how to troubleshoot this sort of thing?  I *really* need
that logfile output back.


--
andy makely
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Vars between game levels

2006-06-19 Thread Andy Makely

On 6/19/06, Helios Pregioni Bayma [EMAIL PROTECTED] wrote:


I tried so, to use Shared Objects to keep the vars (points, level,
energy),
but it can´t be read by different swf.
So, I tried using an empty swf, and use LocalConnection to send vars to
it.
It worked in sending the vars, but didn´t when I had to load those vars
from
other swf, I just had succes sending them, not loading.




For a quick fix, you might try storing your values as _global variables,
since those values do not get reset when loading additional swfs.  For
example, if you store the var _global.currentScore, and then do a loadMovie
on the current SWF, you can have the incoming SWF check _global.currentScore
and the var should still be there.

--
andy makely
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Java's wait(timeout) and notify() in ActionScript

2006-06-16 Thread Andy Makely

On 6/15/06, Scott Hyndman [EMAIL PROTECTED] wrote:


Yeah, sure.

Use setInterval. If the user interacts before the time expires, call
clearInterval.

Scott



Be sure to also clear that interval in the function called upon timeout, or
it will keep firing repeatedly.  SetInterval not only waits the specified
time before calling the target function, it also resets the timer and calls
it over and over again until you clear it.


--
andy makely
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Palm OS Blazer Flash Plugin

2006-06-06 Thread Andy Makely

On 6/2/06, Lane Good [EMAIL PROTECTED] wrote:


Does anyone have any info on a Flash 8 player plugin for Palm OS
Blazer 4.3?



The only true Flash Player I've ever seen on a Palm was the one embedded in
the Sony Clie devices a few years back.  I don't believe that there has ever
been an official PalmOS -based Flash player released by Macromedia/Adobe
available for use by the general public.

And believe me, I've looked.  I don't see why Treo devices are not be a
target market for Adobe.  They're quite popular, and most Treo users use
them to access the 'net.


--
andy makely
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] The Amazing infinite call stack, part 2

2005-12-13 Thread Andy Makely
You might look into using a Finite State Machine.  They are a great way to
do command sequencing, and are incredibly useful in game programming for
lots of things, from updating the UI to building enemy AI behaviors.
There's some good Flash-based FSM info at http://www.flashsim.com .


--
andy makely


On 12/13/05, John Mark Hawley [EMAIL PROTECTED] wrote:

 A for loop wouldn't give we any way to pause for input, or to wait and let
 the UI animate to reflect the last command's doings, though.

 I need a way to avoid recursion, not use it. Ideally:

 1. advance to next command.
 2. execute command.
 3. Wait for command to finish.
 4. repeat 1-3

 in some way that lets step 1 pop off the call stack while waiting for step
 3.  There has to be an example floating around somewhere.

 -Mark

 --
 John Mark Hawley
 The Nilbog Group
 773.968.4980 (cell)

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] simulating narrowband connection

2005-12-08 Thread Andy Makely
Try Sloppy.  It's a Java proxy that creates a narrowband connection to
your browser.  No install, runs over the web.

http://www.dallaway.com/sloppy/index.html

--
andy makely


On 12/8/05, Robin Burrer [EMAIL PROTECTED] wrote:

 Hi there,

 Are there any tools out there that enable you to simulate a low
 bandwidth connection (e.g. modem or slow broadband connection)

 I'm currently working on a project which uses flv files that interact
 with my flash movie. In the past I always used the simulate download
 option in flash but this obviously doesn't work for flvs.

 Robin


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Best charting components?

2005-10-28 Thread Andy Makely
If you have big money, you could try PopChart.

http://www.corda.com/products/#dev


--
andy makely

On 10/25/05, Wade Arnold [EMAIL PROTECTED]  wrote:

 I am trying to figure out what charting components I should use for an
 RIA that I am working on. Anyone have any recommendation? Unfortunately
 this may be my last RIA in Flash!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders