RE: [Flashcoders] Old Flash Problem - Clips stop receiving clicks

2006-11-29 Thread Danny Kodicek
  There's an old problem with Flash that pops up every so often 
 and I've never been able to determine what causes it or how 
 to solve it.
 Sometimes certain clips/buttons stop receiving clicks unless 
 you move the mouse between clicks.  Does anyone know how or 
 why this happens and how to get around it (hopefully not 
 involving hitTest)?

Do you use Safari? I believe there's a known bug with Safari that has this
effect. IIRC it's been fixed in the latest release. (I may be making all
this up...)

Danny

___
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] weird htmlText split and join behavior

2006-11-29 Thread GregoryN
Marcelo and luchyx, thanks for replies.

A few words about my case.
This is a kind of digest page where summary blocks are followed by
click to see details links. When user clicks such a link, details
info will be displayed right below the link on this page.
Click again - hide details.
As you know, this is easy to do in html+javascript by
element.style.display = block; (or none to hide)

In flash, it's more tricky:
I have placeholder tags (tag_to_replace id=n) in my text which
will be replaced by details_texts_array[n] when user clicks a link.

So, I can't use a button.
However, rebuilding the textfield (if just redefining all params won't
be enough) IS a solution. Frankly, I wouldn't like to rewrite
well-working (in v7) code, but...


 Flash ignore the unsupported html tags.!
Well, seems it's only v8 and by random (i.e., depending on it's
mood :-). The work-around is easy - just store html text in string
variable and play with it instead of field.htmlText ...
Also, I can't use %_replaceme_% because I need it to be a tag (not
shown in html textfield).

Also, my tags_for_css are not ignored! Thus, maybe it (player v8) just
doesn't like valid XHTML tags (like my_tag /) but feels ok to
my_tag ?


The worst thing here is that I don't know a way to determine at
runtime if the movie was published for v7 or v8...
So, I'll have to make two versions of the class OR probably make

public static var publishedForPlayer:Number = 8; // or 7

to be set manually... ;-) A lot of fun, right?


If there's anyone else who wants to suggest anything on the subject,
I'd appreciate it very much.


-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.



 === Marcelo Volmaro wrote:
 V8 of the player (i donA?t know 9) seems to have a BIG problem with  
 textfields. Anytime you modify the contents of an html text field from  
 WITHING the text field (ie: you are modifying the textfield using a link  
 on the textfield) the player start doing weird things with the content.
 
 I have the same problem in an html editor i made, where you can click on  
 the images. The player starts duplicating the image and you will end with  
 two, three or more images stacked. In your case, the player is duplicating  
 the link all over the textfield.
 
 Try doing the same but using a button... No problem and all works as  
 expected.
 My solution (because i canA?t use a button to edit the image) was to  
 rebuild the area. Yes... each time you edit an image, i rebuild the entire  
 textarea...
 
 
 === l u c h y x wrote:
 First do a Trace of (my_text1.htmlText) and see what happens with the HTML
 content.
 Usually you can do this
 my_text1.htmlText = my_text1.htmlText.split( tag2replace ).join( my_replace
 );
 
 But the string tag to replace string2replace:String =
 brbr*tag_to_replace /*brbr;
 After you put on the htmlText area become in brbr**brbr;
 Flash ignore the unsupported html tags.!
 So I suggest you do something like  var string2replate = %_replaceme_%;
 And then use
 my_text1.htmlText = my_text1.htmlText.split(string2replate).join( my_replace
 );


___
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] Old Flash Problem - Clips stop receiving clicks

2006-11-29 Thread Jake Prime

On 29/11/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


Looks like general Flash wonkiness and who knows why.  Still interested
if somebody knows.


I've seen this happen before when using the MM Combo Box component and
changing it's state in code. We fixed the issue by setting focus on
any other button or movieclip on the next line after the Combo Box
action.

Jake
___
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] Old Flash Problem - Clips stop receiving clicks

2006-11-29 Thread chris daubney
I remember reading these articles a few years ago by Phil Chung/ Grant 
Skinner that may help...


http://www.philterdesign.com/blog/archives/31.html
http://www.gskinner.com/blog/archives/54.html

Chris

Steven Sacks | BLITZ:

Hey everyone,

There's an old problem with Flash that pops up every so often and I've
never been able to determine what causes it or how to solve it.
Sometimes certain clips/buttons stop receiving clicks unless you move
the mouse between clicks.  Does anyone know how or why this happens and
how to get around it (hopefully not involving hitTest)?

Thanks,
Steven
___
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] Firefox 1.5 stranger hitarea behavior

2006-11-29 Thread Vibol Hou

Firstpixel wrote:

Does anyone ever had problems with firefox 1.5 and hitarea buttons?

seems the initial hitareas are fixed on the browser when I scroll the page, and I can't 
reach the initial off page button's hitarea.


Gil Beyruth
Criação e Desenv. Flash
{FP}Firstpixel.com
--
[EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
skype: gil_sk8
+55 11 30133773
___
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
  

check your wmode setting. it shouldn't be transparent.
___
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] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Micky Hulse

Hello,

Here is the scoop: I have 36 movie clips in my library that get placed 
on stage via actionscript...


Long story short, I would like to load each clip one at a time, for 
example: movie_clip-01 fully loads and animates into position, then 
movie_clip-02 loads and animates into position, (...), and finally 
movie_clip-36 loads and animates into position. Basically, I want to 
break-up the load across time, vs. doing it all at the beginning.


Just wondering if the above idea makes sense? Is it standard to do that 
type of loading from the library at runtime, or should I be working with 
 36 external swf files?


Anyone seen any tutorials and/or example files on the web that cover 
this type of loading?


Any tips/suggestions/links/rtfm's (with page #) ya'll can send my way 
would be kick-butt! :)


Sorry if noob question... I am just now getting back into Flash after a 
2-year hiatus.


Many thanks in advance.
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
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] Symantec prohibition?

2006-11-29 Thread Dave Watts
 I keep trying to send an email to flashcoders, and I can't 
 seem to figure out what's wrong.  I just keep getting an 
 email back saying there's prohibited content in my email 
 message... I'll be sending emails out with keywords to 
 hopefully pinpoint what it's talking about..

It looks like your messages are getting through, but just to let you know,
there's no Symantec message filtering on this end, so it's likely a problem
with your personal machine or with your network mail system.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Leo Burd

Dear John,

Thanks so much for your message!

As you said, ffmpeg is a command line solution. Is there any way to generate 
a .flv file programmatically with an embedded Sound object in it?


Thanks once again,

Leo

- Original Message - 
From: Jon Bradley [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 28, 2006 8:31 AM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?




On Nov 28, 2006, at 5:29 AM, Leo Burd wrote:


Hello there,

I am new to Flash and I am wondering what is the best way to send  Audio 
objects via XML-RPC.  More specifically, I wonder if anyone  could send 
me suggestions on:


a) How to convert a Sound object to MP3 programatically?


You need an MP3 encoding library. If you want a command line solution 
that you may be able to hack to work in a server environment, I'd  look 
into ffmpeg.



b) How to convert the resulting MP3 into a base64 string


PHP has a base64 library. Look there for starters. I believe you can  pass 
it an argument to encode a file (which would be the mp3 file on  your 
server).


To encode the MP3 into a base64 string dynamically is going to kill  your 
server CPU. You're better off running a chron job on your server  to 
execute PHP code to encode the file when placed in a certain  directory. 
If the base64 version is already encoded, don't do  anything, just send 
the stored encoded version.



c) How to send the base64 string to my server via XML-RPC


I don't know if XML-RPC is not going to handle that amount of data  very 
effectively. The base64 encoded version of the MP3 file will be  huge.



BTW, shall I use AS2 or AS3 for this?


I don't know if it will matter. Once you have the base64 encoded  string 
in Flash, what do you plan to do with it? I don't see how  you'll be able 
to attach it to a sound object. I never tried this  though, so the sound 
object should be able to take the raw mp3 data  and use it, but who 
know?


This whole process may be best done with a socket connection with AS3  and 
using binary data to send the result directly to a sound object.


good luck.

jon
___
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] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Leo Burd

Hello Robert,

Thanks so much for your message!

My problem is creating an MP3 file out of a Sound object, not the other way 
around... do you have any suggestions on how to do that?


Best,

Leo

- Original Message - 
From: Robert r. Sanders [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 28, 2006 9:36 PM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


My understanding is that there is no way to create a Sound object other 
than by embedding it or using a streaming server (see Red5).


However, some enterprising individuals have realized that in AS3 you can 
dynamically create objects (e.g. reflection) and thus if you really want 
to you could programmatically 'generate' sound.
Depending on your use case it is probably much easier to use a streaming 
server.
As an aside the use case I had for programmatic generation of a Sound 
object was the idea that the Speex algorithm (an open codec for human 
voice encoding) might be a possibility in AS3, alas it looks like it would 
be a major undertaking.



Leo Burd wrote:

Hello there,

I am new to Flash and I am wondering what is the best way to send Audio 
objects via XML-RPC.  More specifically, I wonder if anyone could send me 
suggestions on:


a) How to convert a Sound object to MP3 programatically?
b) How to convert the resulting MP3 into a base64 string
c) How to send the base64 string to my server via XML-RPC

BTW, shall I use AS2 or AS3 for this?

Thanks in advance,

Leo

___
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



___
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] Old Flash Problem - Clips stop receiving clicks

2006-11-29 Thread Muzak
This is a known problem with the v2 components FocusManager class 'stealing 
focus'.
There's an easy fix:

function onMouseDown() {
 this.focusManager.enabled = false;
}
function onMouseUp() {
 this.focusManager.enabled = true;
}

Note that 'focusManager' is a (hidden/invisible/unremovable) movieclip instance 
in the main timeline created as soon as you use a v2 
component.

regards,
Muzak

- Original Message - 
From: Steven Sacks | BLITZ [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 29, 2006 3:47 AM
Subject: [Flashcoders] Old Flash Problem - Clips stop receiving clicks


Hey everyone,

There's an old problem with Flash that pops up every so often and I've
never been able to determine what causes it or how to solve it.
Sometimes certain clips/buttons stop receiving clicks unless you move
the mouse between clicks.  Does anyone know how or why this happens and
how to get around it (hopefully not involving hitTest)?

Thanks,
Steven


___
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] Loading library movie clips sequentially? Best way todo this?

2006-11-29 Thread Andy Stone
I use fusekit(http://www.mosessupposes.com), it's great for animation
sequences. 

-Andy Stone

Here's an example of how I might do it...

import com.mosesSupposes.fuse.*;
ZigoEngine.register(PennerEasing, Shortcuts, FuseFMP, FuseItem);
//
var numOfClips = 3;
var currentClip = 1;
//the clips/images to load 
var clipsToLoad:Array = [img1.jpg, img2.jpg, img3.jpg];
//the final x y positions..
var clipPositions:Array = [[100, 100], [200, 200], [300, 300]];
//this is you callback, it will be called when the last animation finishes
function loadClips() {
if (currentClip=clipsToLoad.length) {
var created = createEmptyMovieClip(container_+currentClip,
currentClip);
mcLoader.loadClip(clipsToLoad[currentClip-1], created);
}
}
function moveClip() {
var del = .0;
var ease = easeOutBounce;
var pos1 = clipPositions[currentClip-1][0];
var pos2 = clipPositions[currentClip-1][1];
ZigoEngine.doShortcut(this[container_+currentClip], tween,
[_x, _y], [pos1, pos2], 1, ease, del, loadClips);
}
var mclListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(mclListener);
mclListener.onLoadComplete = function(mc:MovieClip) {
moveClip();
currentClip++;
};
loadClips();


//hope this helps





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Micky Hulse
Sent: Wednesday, November 29, 2006 7:52 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Loading library movie clips sequentially? Best way
todo this?

Hello,

Here is the scoop: I have 36 movie clips in my library that get placed 
on stage via actionscript...

Long story short, I would like to load each clip one at a time, for 
example: movie_clip-01 fully loads and animates into position, then 
movie_clip-02 loads and animates into position, (...), and finally 
movie_clip-36 loads and animates into position. Basically, I want to 
break-up the load across time, vs. doing it all at the beginning.

Just wondering if the above idea makes sense? Is it standard to do that 
type of loading from the library at runtime, or should I be working with 
  36 external swf files?

Anyone seen any tutorials and/or example files on the web that cover 
this type of loading?

Any tips/suggestions/links/rtfm's (with page #) ya'll can send my way 
would be kick-butt! :)

Sorry if noob question... I am just now getting back into Flash after a 
2-year hiatus.

Many thanks in advance.
Cheers,
Micky

-- 
  Wishlist: http://snipurl.com/vrs9
Switch: http://browsehappy.com/
  BCC?: http://snipurl.com/w6f8
My: http://del.icio.us/mhulse
___
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] Symantec prohibition?

2006-11-29 Thread Odie Bracy

I'm receiving the same messages!

Odie


On Nov 29, 2006, at 8:42 AM, Dave Watts wrote:


I keep trying to send an email to flashcoders, and I can't
seem to figure out what's wrong.  I just keep getting an
email back saying there's prohibited content in my email
message... I'll be sending emails out with keywords to
hopefully pinpoint what it's talking about..


It looks like your messages are getting through, but just to let  
you know,
there's no Symantec message filtering on this end, so it's likely a  
problem

with your personal machine or with your network mail system.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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] weird htmlText split and join behavior

2006-11-29 Thread l u c h y x

HI gregory.
Yes the htmlText is a pain.! The problems never end.
And macromedia now adobe never fix those behaviors in the text field.

I think that you can check for flash 8 movie if you have filters available
or other flash 8 functions like setTimeOut.  if(_global.setTimeout() !=
undefined) return 8 else return 7;
This is not a reliable solution because if you write a function in F7 called
setTimeOut. It faill.
I can't remenber if you have a object that tell this inside SWF but try a
loop in the _root object.
var ro = _root;
for (var t in ro){ trace(t+  +ro[t])}

Flash player 9 can tell that.;)

Best's



On 11/29/06, GregoryN [EMAIL PROTECTED] wrote:


Marcelo and luchyx, thanks for replies.

A few words about my case.
This is a kind of digest page where summary blocks are followed by
click to see details links. When user clicks such a link, details
info will be displayed right below the link on this page.
Click again - hide details.
As you know, this is easy to do in html+javascript by
element.style.display = block; (or none to hide)

In flash, it's more tricky:
I have placeholder tags (tag_to_replace id=n) in my text which
will be replaced by details_texts_array[n] when user clicks a link.

So, I can't use a button.
However, rebuilding the textfield (if just redefining all params won't
be enough) IS a solution. Frankly, I wouldn't like to rewrite
well-working (in v7) code, but...


 Flash ignore the unsupported html tags.!
Well, seems it's only v8 and by random (i.e., depending on it's
mood :-). The work-around is easy - just store html text in string
variable and play with it instead of field.htmlText ...
Also, I can't use %_replaceme_% because I need it to be a tag (not
shown in html textfield).

Also, my tags_for_css are not ignored! Thus, maybe it (player v8) just
doesn't like valid XHTML tags (like my_tag /) but feels ok to
my_tag ?


The worst thing here is that I don't know a way to determine at
runtime if the movie was published for v7 or v8...
So, I'll have to make two versions of the class OR probably make

public static var publishedForPlayer:Number = 8; // or 7

to be set manually... ;-) A lot of fun, right?


If there's anyone else who wants to suggest anything on the subject,
I'd appreciate it very much.


--
Best regards,
GregoryN

http://GOusable.com
Flash components development.
Usability services.



 === Marcelo Volmaro wrote:
 V8 of the player (i donA?t know 9) seems to have a BIG problem with
 textfields. Anytime you modify the contents of an html text field from
 WITHING the text field (ie: you are modifying the textfield using a link
 on the textfield) the player start doing weird things with the content.

 I have the same problem in an html editor i made, where you can click
on
 the images. The player starts duplicating the image and you will end
with
 two, three or more images stacked. In your case, the player is
duplicating
 the link all over the textfield.

 Try doing the same but using a button... No problem and all works as
 expected.
 My solution (because i canA?t use a button to edit the image) was to
 rebuild the area. Yes... each time you edit an image, i rebuild the
entire
 textarea...


 === l u c h y x wrote:
 First do a Trace of (my_text1.htmlText) and see what happens with the
HTML
 content.
 Usually you can do this
 my_text1.htmlText = my_text1.htmlText.split( tag2replace ).join(
my_replace
 );

 But the string tag to replace string2replace:String =
 brbr*tag_to_replace /*brbr;
 After you put on the htmlText area become in brbr**brbr;
 Flash ignore the unsupported html tags.!
 So I suggest you do something like  var string2replate =
%_replaceme_%;
 And then use
 my_text1.htmlText = my_text1.htmlText.split(string2replate).join(
my_replace
 );


___
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





--
l   u   c   h   y   x
r i a e v o l u t i o n (r)
[EMAIL PROTECTED]
http://www.riaevolution.com
Phone: +54 (11) 4931-7006
___
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] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Alain Rousseau
Hi Micky,

if you want to spread the load across time, the best approach is to have 36
.swf files that you load one at a time.
To perform the loading you should use the MovieClipLoader (look it up on
HYPERLINK
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.h
tm?href=2538.htmllivedocs or just HYPERLINK
http://www.google.ca/search?hl=enq=MovieClipLoadermeta=google)
And of course there are many preloaders out there that can speed up the
process as well.

With that you'll be on your way in no time !

HTH !

Alain



-Original Message-
From: [EMAIL PROTECTED] [HYPERLINK
mailto:[EMAIL PROTECTED]mailto:flashcoders-bounces
@chattyfig.figleaf.com] On Behalf Of Micky Hulse
Sent: 29 novembre 2006 07:52
To: Flashcoders mailing list
Subject: [Flashcoders] Loading library movie clips sequentially? Best way to
do this?

Hello,

Here is the scoop: I have 36 movie clips in my library that get placed on
stage via actionscript...

Long story short, I would like to load each clip one at a time, for
example: movie_clip-01 fully loads and animates into position, then
movie_clip-02 loads and animates into position, (...), and finally
movie_clip-36 loads and animates into position. Basically, I want to
break-up the load across time, vs. doing it all at the beginning.

Just wondering if the above idea makes sense? Is it standard to do that type
of loading from the library at runtime, or should I be working with
  36 external swf files?

Anyone seen any tutorials and/or example files on the web that cover this
type of loading?

Any tips/suggestions/links/rtfm's (with page #) ya'll can send my way would
be kick-butt! :)

Sorry if noob question... I am just now getting back into Flash after a
2-year hiatus.

Many thanks in advance.
Cheers,
Micky

--
  Wishlist: HYPERLINK http://snipurl.com/vrs9http://snipurl.com/vrs9
Switch: HYPERLINK http://browsehappy.com/http://browsehappy.com/
  BCC?: HYPERLINK http://snipurl.com/w6f8http://snipurl.com/w6f8
My: HYPERLINK http://del.icio.us/mhulsehttp://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
HYPERLINK
http://chattyfig.figleaf.com/mailman/listinfo/flashcodershttp://chattyfig.
figleaf.com/mailman/listinfo/flashcoders

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.19/555 - Release Date: 2006-11-27




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.19/556 - Release Date: 2006-11-28
 
___
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] Symantec prohibition?

2006-11-29 Thread Dave Watts
 I'm receiving the same messages!

OK. Whoever's receiving mail through the ngstl.com domain, could you please
contact your mail server administrator and turn this off? There's no one
subscribed to the list with an ngstl.com address. Thanks!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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] Old Flash Problem - Clips stop receiving clicks

2006-11-29 Thread Merrill, Jason
I see it in IE all the time.  If you ever look at MSNBC.com's image
galleries, the Flash buttons do this quite often, even with Flash 9.  I
have never found a workaround.  It's an extremely annoying bug.  I've
tried some of Grant Skinner's suggestions from his blog with limited
success.  

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Danny Kodicek
Sent: Wednesday, November 29, 2006 3:29 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Old Flash Problem - Clips stop receiving
clicks

  There's an old problem with Flash that pops up every so often
 and I've never been able to determine what causes it or how
 to solve it.
 Sometimes certain clips/buttons stop receiving clicks unless
 you move the mouse between clicks.  Does anyone know how or
 why this happens and how to get around it (hopefully not
 involving hitTest)?

Do you use Safari? I believe there's a known bug with Safari that has
this
effect. IIRC it's been fixed in the latest release. (I may be making
all
this up...)

Danny

___
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] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Janis Radins

Where are you getting your sound object from?

2006/11/29, Leo Burd [EMAIL PROTECTED]:


Hello Robert,

Thanks so much for your message!

My problem is creating an MP3 file out of a Sound object, not the other
way
around... do you have any suggestions on how to do that?

Best,

Leo

- Original Message -
From: Robert r. Sanders [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 28, 2006 9:36 PM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


 My understanding is that there is no way to create a Sound object
other
 than by embedding it or using a streaming server (see Red5).

 However, some enterprising individuals have realized that in AS3 you can
 dynamically create objects (e.g. reflection) and thus if you really want
 to you could programmatically 'generate' sound.
 Depending on your use case it is probably much easier to use a streaming
 server.
 As an aside the use case I had for programmatic generation of a Sound
 object was the idea that the Speex algorithm (an open codec for human
 voice encoding) might be a possibility in AS3, alas it looks like it
would
 be a major undertaking.


 Leo Burd wrote:
 Hello there,

 I am new to Flash and I am wondering what is the best way to send Audio
 objects via XML-RPC.  More specifically, I wonder if anyone could send
me
 suggestions on:

 a) How to convert a Sound object to MP3 programatically?
 b) How to convert the resulting MP3 into a base64 string
 c) How to send the base64 string to my server via XML-RPC

 BTW, shall I use AS2 or AS3 for this?

 Thanks in advance,

 Leo

 ___
 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


___
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] Symantec prohibition?

2006-11-29 Thread Ramon Miguel M. Tayag

They are getting through?  That's strange... in either case, I'm just
using gmail?

On 11/29/06, Dave Watts [EMAIL PROTECTED] wrote:

 I'm receiving the same messages!

OK. Whoever's receiving mail through the ngstl.com domain, could you please
contact your mail server administrator and turn this off? There's no one
subscribed to the list with an ngstl.com address. Thanks!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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




--
Ramon Miguel M. Tayag
___
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] Old Flash Problem - Clips stop receiving clicks

2006-11-29 Thread Joey Rivera

We had that same issue with our system and I can't remember exactly what we
did to fix it but it doesn't happen to us anymore.  If I remember correctly
it had something to do with focus issues.  Try one or both of the below and
see if that works:

// think this might have been the problem
_root.focusManager.enabled = false;

// or maybe this, we handle our own tabbing functionality
MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;
TextField.prototype.tabEnabled = false;

Joey Rivera
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Wednesday, November 29, 2006 9:16 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Old Flash Problem - Clips stop receiving clicks

I see it in IE all the time.  If you ever look at MSNBC.com's image
galleries, the Flash buttons do this quite often, even with Flash 9.  I
have never found a workaround.  It's an extremely annoying bug.  I've
tried some of Grant Skinner's suggestions from his blog with limited
success.  

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Danny Kodicek
Sent: Wednesday, November 29, 2006 3:29 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Old Flash Problem - Clips stop receiving
clicks

  There's an old problem with Flash that pops up every so often
 and I've never been able to determine what causes it or how
 to solve it.
 Sometimes certain clips/buttons stop receiving clicks unless
 you move the mouse between clicks.  Does anyone know how or
 why this happens and how to get around it (hopefully not
 involving hitTest)?

Do you use Safari? I believe there's a known bug with Safari that has
this
effect. IIRC it's been fixed in the latest release. (I may be making
all
this up...)

Danny

___
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

___
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] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Leo Burd

- From a microphone input...

.L.

- Original Message - 
From: Janis Radins [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 29, 2006 10:34 AM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?



Where are you getting your sound object from?

2006/11/29, Leo Burd [EMAIL PROTECTED]:


Hello Robert,

Thanks so much for your message!

My problem is creating an MP3 file out of a Sound object, not the other
way
around... do you have any suggestions on how to do that?

Best,

Leo

- Original Message -
From: Robert r. Sanders [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 28, 2006 9:36 PM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


 My understanding is that there is no way to create a Sound object
other
 than by embedding it or using a streaming server (see Red5).

 However, some enterprising individuals have realized that in AS3 you 
 can
 dynamically create objects (e.g. reflection) and thus if you really 
 want

 to you could programmatically 'generate' sound.
 Depending on your use case it is probably much easier to use a 
 streaming

 server.
 As an aside the use case I had for programmatic generation of a Sound
 object was the idea that the Speex algorithm (an open codec for human
 voice encoding) might be a possibility in AS3, alas it looks like it
would
 be a major undertaking.


 Leo Burd wrote:
 Hello there,

 I am new to Flash and I am wondering what is the best way to send 
 Audio

 objects via XML-RPC.  More specifically, I wonder if anyone could send
me
 suggestions on:

 a) How to convert a Sound object to MP3 programatically?
 b) How to convert the resulting MP3 into a base64 string
 c) How to send the base64 string to my server via XML-RPC

 BTW, shall I use AS2 or AS3 for this?

 Thanks in advance,

 Leo

 ___
 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


___
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



___
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] Math: Triangle rotations around an origin

2006-11-29 Thread Andreas R
This is based on Danny Codicek's Mathematics  Physics for programmers, 
and i'm feeling very stupid right now.


From what i can tell, the book describes the function as such:
rotatedX = 
Math.sqrt(originalx*originalx+originaly*originaly)*Math.sin(angle-Math.atan2(originaly,originalx))

and the same for rotatedY

My implementation is this:

import flash.geom.Point;
function Triangle(p1:Point,p2:Point,p3:Point){
   this.p1 = p1;
   this.p2 = p2;
   this.p3 = p3;
   this.update = function(){
   this.clip = _root.container.createEmptyMovieClip(triangle,1);
   with(this.clip){
   beginFill(0xFF);
   moveTo(p1.x,p1.y);
   lineTo(p2.x,p2.y);
   lineTo(p3.x,p3.y);
   lineTo(p1.x,p1.y);
   endFill();
   }
   }
   this.update();
}

function rotateTriangle(triangle:Object,angle:Number){
   var rad:Number = angle*(Math.PI/180);
   for(var i = 3;i--;){
   var p = triangle[p+(i+1)];
   var py:Number = Math.sqrt(p.x*p.x+p.y*p.y);
   var np:Point = new Point();
   np.x = dist*Math.cos(rad-Math.atan2(p.y,p.x));
   np.y = dist*Math.sin(rad-Math.atan2(p.y,p.x));
   triangle[p+(i+1)].x = np.x;
   triangle[p+(i+1)].y = np.y;
   }
   triangle.update();
}

var t1:Object = new Triangle(new Point(10,10),new Point(40,40),new 
Point(10,40));

rotateTriangle(t1,45);

This isn't working very well: I'm not sure wether angle should be 
angles or radians, since either gives off-kilter results and radians 
gives the least freakishness, but what happens is on every other update 
the triangle gets mirrored rather than rotated.


Could someone with stronger cerebral capacity than me have a look at my 
function, figure it out and explain where i went wrong? The more i look 
at it the less i understand why it flips every other update.


- A
___
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] Math: Triangle rotations around an origin

2006-11-29 Thread Mark Winterhalder

Hi Andreas,

you need the initial angle, which is Math.atan2( mouseY, mouseX ).
Then the angle while rotating, which is the same minus the initial
angle. That's your current angle -- like all angles, in radians.

to rotate points by this angle, just do this:
var newX = Math.cos( angle ) * originalX - Math.sin( angle ) * originalY;
var newY = Math.sin( angle ) * originalX + Math.cos( angle ) * originalY;

HTH,
Mark


On 11/29/06, Andreas R [EMAIL PROTECTED] wrote:

This is based on Danny Codicek's Mathematics  Physics for programmers,
and i'm feeling very stupid right now.

 From what i can tell, the book describes the function as such:
rotatedX =
Math.sqrt(originalx*originalx+originaly*originaly)*Math.sin(angle-Math.atan2(originaly,originalx))
and the same for rotatedY

My implementation is this:

import flash.geom.Point;
function Triangle(p1:Point,p2:Point,p3:Point){
this.p1 = p1;
this.p2 = p2;
this.p3 = p3;
this.update = function(){
this.clip = _root.container.createEmptyMovieClip(triangle,1);
with(this.clip){
beginFill(0xFF);
moveTo(p1.x,p1.y);
lineTo(p2.x,p2.y);
lineTo(p3.x,p3.y);
lineTo(p1.x,p1.y);
endFill();
}
}
this.update();
}

function rotateTriangle(triangle:Object,angle:Number){
var rad:Number = angle*(Math.PI/180);
for(var i = 3;i--;){
var p = triangle[p+(i+1)];
var py:Number = Math.sqrt(p.x*p.x+p.y*p.y);
var np:Point = new Point();
np.x = dist*Math.cos(rad-Math.atan2(p.y,p.x));
np.y = dist*Math.sin(rad-Math.atan2(p.y,p.x));
triangle[p+(i+1)].x = np.x;
triangle[p+(i+1)].y = np.y;
}
triangle.update();
}

var t1:Object = new Triangle(new Point(10,10),new Point(40,40),new
Point(10,40));
rotateTriangle(t1,45);

This isn't working very well: I'm not sure wether angle should be
angles or radians, since either gives off-kilter results and radians
gives the least freakishness, but what happens is on every other update
the triangle gets mirrored rather than rotated.

Could someone with stronger cerebral capacity than me have a look at my
function, figure it out and explain where i went wrong? The more i look
at it the less i understand why it flips every other update.

- A
___
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] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Rasmus Snabb
I've found that LoadQueueManager is excellent for loading multiple  
external files in sequence.. It also gives you the possibility to  
pause loading, rearrange loading order etc. etc.


http://blog.bittube.com/2006/10/27/loadqueuemanager-update/

Hope to see an AS 3 version of this soon!

Rasmus


Puh. 040 715 40 93 / www.rasmussnabb.com / www.byrasmus.com



On 29.11.2006, at 14.51, Micky Hulse wrote:


Hello,

Here is the scoop: I have 36 movie clips in my library that get  
placed on stage via actionscript...


Long story short, I would like to load each clip one at a time, for  
example: movie_clip-01 fully loads and animates into position, then  
movie_clip-02 loads and animates into position, (...), and finally  
movie_clip-36 loads and animates into position. Basically, I want  
to break-up the load across time, vs. doing it all at the beginning.


Just wondering if the above idea makes sense? Is it standard to do  
that type of loading from the library at runtime, or should I be  
working with  36 external swf files?


Anyone seen any tutorials and/or example files on the web that  
cover this type of loading?


Any tips/suggestions/links/rtfm's (with page #) ya'll can send my  
way would be kick-butt! :)


Sorry if noob question... I am just now getting back into Flash  
after a 2-year hiatus.


Many thanks in advance.
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
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


[Flashcoders] Bitmapdata theshold question

2006-11-29 Thread Lori
I am trying to build a drawing application and i'm having issues getting the 
eraser to work. My first thought was to use Bitmapdata to delete the pixels 
in the image that user has drawn, but i'm not overly experienced with bitmap 
data nor threshold. Can anyone give me some hints or point me towards a 
blog/lesson which might have more info on how to accomplish this.

Thanks,
Lori-

___
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] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Janis Radins

in that case you got everything wrong, microphone attached to sound object
provides only playback of current sound.
no recording or anything like that.
only way imo is to use FMS or Red5 to send stream serverside and only then
encode it as you need.
thats the only alternative as far as i know.
though i'm not sure about AS3 maybe there are some new features that might
help to do this.
but still sending sound stream sounds a lot more efficient to me than
encoding sound into stream client side, then send string to serverside and
encode it back to sound there.

2006/11/29, Leo Burd [EMAIL PROTECTED]:


- From a microphone input...

.L.

- Original Message -
From: Janis Radins [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 29, 2006 10:34 AM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


 Where are you getting your sound object from?

 2006/11/29, Leo Burd [EMAIL PROTECTED]:

 Hello Robert,

 Thanks so much for your message!

 My problem is creating an MP3 file out of a Sound object, not the other
 way
 around... do you have any suggestions on how to do that?

 Best,

 Leo

 - Original Message -
 From: Robert r. Sanders [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, November 28, 2006 9:36 PM
 Subject: Re: [Flashcoders] How to send Audio objects as MP3 via
XML-RPC?


  My understanding is that there is no way to create a Sound object
 other
  than by embedding it or using a streaming server (see Red5).
 
  However, some enterprising individuals have realized that in AS3 you
  can
  dynamically create objects (e.g. reflection) and thus if you really
  want
  to you could programmatically 'generate' sound.
  Depending on your use case it is probably much easier to use a
  streaming
  server.
  As an aside the use case I had for programmatic generation of a Sound
  object was the idea that the Speex algorithm (an open codec for human
  voice encoding) might be a possibility in AS3, alas it looks like it
 would
  be a major undertaking.
 
 
  Leo Burd wrote:
  Hello there,
 
  I am new to Flash and I am wondering what is the best way to send
  Audio
  objects via XML-RPC.  More specifically, I wonder if anyone could
send
 me
  suggestions on:
 
  a) How to convert a Sound object to MP3 programatically?
  b) How to convert the resulting MP3 into a base64 string
  c) How to send the base64 string to my server via XML-RPC
 
  BTW, shall I use AS2 or AS3 for this?
 
  Thanks in advance,
 
  Leo
 
  ___
  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
 

 ___
 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


___
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] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Robert r. Sanders

Ah, ok, that makes things clearer.

First, look at RED5 - http://osflash.org/red5  You'd have to record to 
FLV and then run a second program to parse out the audio, but it could 
be done.


Second, the blog entry I was thinking of is 
http://www.flashcodersbrighton.org/wordpress/?p=9  it might contain 
useful code if you wanted to try and convert the audio inside of flash.



Leo Burd wrote:

Hello Robert,

Thanks so much for your message!

My problem is creating an MP3 file out of a Sound object, not the 
other way around... do you have any suggestions on how to do that?


Best,

Leo

- Original Message - From: Robert r. Sanders 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 28, 2006 9:36 PM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


My understanding is that there is no way to create a Sound object 
other than by embedding it or using a streaming server (see Red5).


However, some enterprising individuals have realized that in AS3 you 
can dynamically create objects (e.g. reflection) and thus if you 
really want to you could programmatically 'generate' sound.
Depending on your use case it is probably much easier to use a 
streaming server.
As an aside the use case I had for programmatic generation of a Sound 
object was the idea that the Speex algorithm (an open codec for human 
voice encoding) might be a possibility in AS3, alas it looks like it 
would be a major undertaking.



Leo Burd wrote:

Hello there,

I am new to Flash and I am wondering what is the best way to send 
Audio objects via XML-RPC.  More specifically, I wonder if anyone 
could send me suggestions on:


a) How to convert a Sound object to MP3 programatically?
b) How to convert the resulting MP3 into a base64 string
c) How to send the base64 string to my server via XML-RPC

BTW, shall I use AS2 or AS3 for this?

Thanks in advance,

Leo

___
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 


--
   Robert r. Sanders
   Chief Technologist
   iPOV
   (334) 821-5412
   www.ipov.net

___
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] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Janis Radins

btw, not long time ago i heard some person on efnet #actionscript complaning
that FMS and red5 are saving FLV's encoded with sorensen which he claimed is
unconvertable to any alternative format.

2006/11/29, Robert r. Sanders [EMAIL PROTECTED]:


Ah, ok, that makes things clearer.

First, look at RED5 - http://osflash.org/red5  You'd have to record to
FLV and then run a second program to parse out the audio, but it could
be done.

Second, the blog entry I was thinking of is
http://www.flashcodersbrighton.org/wordpress/?p=9  it might contain
useful code if you wanted to try and convert the audio inside of flash.


Leo Burd wrote:
 Hello Robert,

 Thanks so much for your message!

 My problem is creating an MP3 file out of a Sound object, not the
 other way around... do you have any suggestions on how to do that?

 Best,

 Leo

 - Original Message - From: Robert r. Sanders
 [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, November 28, 2006 9:36 PM
 Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


 My understanding is that there is no way to create a Sound object
 other than by embedding it or using a streaming server (see Red5).

 However, some enterprising individuals have realized that in AS3 you
 can dynamically create objects (e.g. reflection) and thus if you
 really want to you could programmatically 'generate' sound.
 Depending on your use case it is probably much easier to use a
 streaming server.
 As an aside the use case I had for programmatic generation of a Sound
 object was the idea that the Speex algorithm (an open codec for human
 voice encoding) might be a possibility in AS3, alas it looks like it
 would be a major undertaking.


 Leo Burd wrote:
 Hello there,

 I am new to Flash and I am wondering what is the best way to send
 Audio objects via XML-RPC.  More specifically, I wonder if anyone
 could send me suggestions on:

 a) How to convert a Sound object to MP3 programatically?
 b) How to convert the resulting MP3 into a base64 string
 c) How to send the base64 string to my server via XML-RPC

 BTW, shall I use AS2 or AS3 for this?

 Thanks in advance,

 Leo

 ___
 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

--
Robert r. Sanders
Chief Technologist
iPOV
(334) 821-5412
www.ipov.net

___
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] [OT] SCM/Project management tool

2006-11-29 Thread Marcelo de Moraes Serpa

Hey guys, thank you all for the replies, it really helped me on deciding
which one to choose.

After some research, I've found trac to be the one with most advantages.

Before closing the thread, I would like to ask a few question about trac
and flash projects:
* How do you handle projects that consists of a client (flash) and a server
written in another language? A trac enviroment for both of them?
* About the syntax highliting, is there support for AS2/AS3?

Marcelo.

On 11/28/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:


Hi Steven,

Mantis seems to be a good alternative to Trac. It seems to have all the
features trac has plus a bunch more and still is simple and effective. I'm
having problems installing mod_pythin on my cpanel enabled server so I'm
considering other tool to use, and Mantis is certainly attractive :)

Marcelo.

On 11/28/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:

 If you're looking for bug/feature tracking for your clients, check out
 Mantis.  It's easy to set up, customize (if you know php), and best of
 all, it's free.

 HTH,
 Steven
 ___
 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] [OT] SCM/Project management tool

2006-11-29 Thread Ian Thomas

On 11/29/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:


 * How do you handle projects that consists of a client (flash) and a server
written in another language? A trac enviroment for both of them?


No - we use the same environment for both, and Ant build scripts to
install the appropriately built code to the server/client. Or
sometimes directly SVN update into the appropriate working directory
on the server, depending on the complexity of the project.

Personally I think it'd be crazy to seperate the front-end and
back-end code into different repositories - it's the same project, you
want to be able to version track/bugfix the same project (is that bug
in the front end or back end?) and, importantly, you want to be able
to branch and tag the same project.


* About the syntax highliting, is there support for AS2/AS3?

Don't know, I'm afraid.

HTH,
 Ian
___
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] Issue with differnet fps in same swf

2006-11-29 Thread Michael K

This is a simple question but it still confuses me.

I am fixing up a project for a friend and have and swf at 14 fps being 
called into an swf set to play at 12 fps. I have to sync this imported swf 
with some other stuff and what I want to do is calculate how many % into my 
movie the playhead is.


my imported movie is of 1900 frames. But thats played at 14 fps. In the 
imported enviorment. Does it still have the 1900 frames but skips some so 
that the 1900 frames can be played at 12 fps over the same time period?


I just wanted to do a simple _currentfram/_totalframe to get % but am 
confused as how these numbers work in such an enviorment.


can some maybe help me understand?

/M

_
Få de bedste søgeresultater med MSN Search:  http://search.msn.dk

___
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] Re: [Flickr] Your Photo Upload Failed

2006-11-29 Thread Andy Herrman

I don't think the bounce is being sent to the list itself, but to the
person who posted the message.  So adding the list to their blacklist
probably wouldn't fix anything.

That said, I haven't received any of these messages, but it's possible
gmail is just throwing them in the spam folder and I'm missing them.

  -Andy

On 11/28/06, Merrill, Jason [EMAIL PROTECTED] wrote:

I did as well.

Jason Merrill
Bank of America
Learning  Organizational Effectiveness




-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marc Hoffman
Sent: Tuesday, November 28, 2006 12:26 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Re: [Flickr] Your Photo Upload Failed

I just got another bounce, after reading the previous message on this
thread. So it may not be fixed yet.

- Marc Hoffman

At 09:01 AM 11/28/2006, you wrote:

  I've already contacted Flickr about it, and got this
  response, so we shouldn't get any more bounces ...

Thanks!

Dave Watts, CTO, Fig Leaf Software
___
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] Issue with differnet fps in same swf

2006-11-29 Thread R�kos Attila

There is only one frame rate in a movie and its sub movies - if a
movie is loaded into an other one, then it will always be played with
the frame rate of the loader (so its own frame rate setting is
discarded).

  Attila

___
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] actionscript in FLV?

2006-11-29 Thread Lyndon Headley

I don't believe there is a way to have actionscript execute indepent of the
flv player. Using cuepoints to execute code inside the player is your best
and probably only option.

On 11/28/06, Merrill, Jason [EMAIL PROTECTED] wrote:


How would it execute - it would be playing inside the Flash player
called from a .swf anyway right?  So I would say no to having AS inside
the .flv - as flv is not a .swf. But read up on .flv and cuepoints in
the help docs.   Curious why?  Isn't the .flv going to be played in a
.swf anyway?  You can then use .flv cuepoints to trigger events.

Jason Merrill
Bank of America
Learning  Organizational Effectiveness






-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of aaron smith
Sent: Tuesday, November 28, 2006 2:58 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] actionscript in FLV?

Is it possible to somehow have an FLV execute some actionscript code?
say
somehow embedding code in an FLV. I'm thinking no, I know it would be
possible if it was a swf playing the flv, but i'm' wondering if it is
possible in just a straight FLV.

thanks
___
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





--
Lyndon

If you woke up breathing, congratulations! You get another chance.
___
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] timecode and live audio streams with FMS

2006-11-29 Thread August Gresens

Hello

A client wants to synchronize visual data (specified from an XML stream)
with a separate live audio stream.

Can this be done with Flash Media Server and Flash? I'm wondering in
particular how you would synchronize the display to the audio.

Would this be done via timecode - if so, what kind of timecode is returned
during playback of a live stream?

Much Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Firefox 1.5 stranger hitarea behavior

2006-11-29 Thread Lyndon Headley

If you have wmode value of transparent or sometimes opaque will cause the
hitareas to be offset, potentially outside of the clickable flash area. Only
time I've had a problem anyway.

On 11/28/06, Firstpixel [EMAIL PROTECTED] wrote:


Does anyone ever had problems with firefox 1.5 and hitarea buttons?

seems the initial hitareas are fixed on the browser when I scroll the
page, and I can't reach the initial off page button's hitarea.


Gil Beyruth
Criação e Desenv. Flash
{FP}Firstpixel.com
--
[EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
skype: gil_sk8
+55 11 30133773
___
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





--
Lyndon

If you woke up breathing, congratulations! You get another chance.
___
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] LoadMovie adds style to UIComponents?

2006-11-29 Thread Glen Pike

Hi,

   Brilliant!
  
   I managed to get a result using the Loader component too.  Thanks 
for your reply, I will try to post this somewhere online with a useful 
demo, but have a stack of work and homework to do first...


   Glen

Wade Arnold wrote:
Another post on this list directed me to the answer. 


http://ariaware.com/products/optimizer/downloads/docs/hints___tips/the_c
orrect_way_to_load_in_external_swfs_that_contain_v2_components.htm

I did change my loader out to be a loader component because I was still
having focus problems. However just using the following code fixed my green
area problems. 


holder._lockroot = true;
holder.loadMovie(test.swf);
  

___
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] Issue with differnet fps in same swf

2006-11-29 Thread Steven Sacks | BLITZ
Here's a hack to fix that.  Have the movie you are loading with the
different frame rate have a silence audio file on the timeline set to
stream.  It will force the flash player to play at the new framerate of
the loaded swf.

On projects with multiple developers, you should decide and communicate
the frame rate before the first line of code is written.
___
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] Breaking appart a class

2006-11-29 Thread Helmut Granda

I like how you broke things down to single objects and this is a nice way to
view the design code before writing anything down.

Thanks again.

On 11/28/06, Jason King [EMAIL PROTECTED] wrote:


Ah a general OOP question that even a flash-noob like me can answer.
Don't just separate functions, decompose the game and the objects should
fall out.
Let's use an online chess game as an example.
Chess has players, moves, pieces and a board.
I'd probably build a Player.as, Move.as, Piece.as and Board.as
I might create descendants of Piece (e.g. King, Queen, Rook etc).
As you look at each function in the game put that in the class file that
it has the most to do with.
Drawing the board goes in Board.as.  The board probably knows where the
pieces are and calls Piece to draw each piece on an occupied square.
Testing for check belongs in Move.as since its not legal to put your own
king in check by your move.  The checktest should be public as you'll
want to re-use it.
Testing for checkmate probably belongs in Player as at the start of each
player's turn you should test to see if s/he has lost the game.  That
will probably involve multiple calls to checktest to see if their king
can move to a square where he's not in check.

The game starts by creating 2 players and a board.
while neither player is checkmated it processes one player's turn then
the other's.

Helmut Granda wrote:
 I have a game class that is about 215 lines of code. Is not really big
 but i
 would like to divide this class in smaller packages so I can re-use
 bits of
 pieces of code for new versions of the game.

 The question is what are the best practices to break this code into
 smaller
 bits and pieces? As always we dont like to help without seeing what the
 person is doing already.

 So here it is my idea

 MainClass
 -com
 --utils
 ---func1
 ---func2
 ---func3

 But some of the functions talk directly to the main class so what is the
 best approach to use those extra functions? Should I pass all the
 strings or
 arrays that in need and let the functions spit back the information I
 need?

 Help welcome... maybe a book or 2 :)



___
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





--
...helmut
helmutgranda.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] Breaking appart a class

2006-11-29 Thread Helmut Granda

Thanks for the suggestion. Defenatelly a book i will look into.

On 11/28/06, T. Michael Keesey [EMAIL PROTECTED] wrote:


Read Refactoring: Improving the Design of Existing Code by Martin
Fowler.

On 11/28/06, Helmut Granda [EMAIL PROTECTED] wrote:
 I have a game class that is about 215 lines of code. Is not really big
but i
 would like to divide this class in smaller packages so I can re-use bits
of
 pieces of code for new versions of the game.

 The question is what are the best practices to break this code into
smaller
 bits and pieces? As always we dont like to help without seeing what the
 person is doing already.

 So here it is my idea

 MainClass
 -com
 --utils
 ---func1
 ---func2
 ---func3

 But some of the functions talk directly to the main class so what is the
 best approach to use those extra functions? Should I pass all the
strings or
 arrays that in need and let the functions spit back the information I
need?

 Help welcome... maybe a book or 2 :)


 --
 ...helmut
 ___
 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



--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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





--
...helmut
helmutgranda.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] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Micky Hulse

Hi,

Great info all! Many thanks Andy, Alain, and Rasmus. I really appreciate
your time.

So, it sounds like the consensus is to externally load the clips...
Hehe, that makes a lot more sense. :)

@Andy: Thanks for example code. That actually looks like what I would
like to do... A few month back I found a site that has some great vid
tutes on using fuse:

http://www.gotoandlearn.com/

I have been reading Foundation Actionscript Animation, so I am not sure
if I want to try and do this myself (for learning purposes), or maybe
use something like Fusekit to get some of the more complicated
actionscript out of the way. Well, either way, thanks for the example
code, I really appreciate the pointers. :)

@Alain: Right on, thanks for the links. I was not sure where exactly to
look and/or what would be best for my situation.

Currently, I have imported all frames into my library -- due to the
complexity of the 3D object, I had to do this in order to optimize and
figure-out the positioning. Looks like I will export all my clips from
my lib as swf's... and externally load.

@Rasmus: That looks like a great option too, thanks for sharing the link. :)

This is where I am not sure if I should use the code of others, or try
to do this all myself... I am opting for the latter, but I have yet to
really tackle the scripting. Fortunately, this is just a personal
project, so there is no deadline to meet. :D

Again, thanks all!
Have a great winter.
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse

___
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] Breaking appart a class

2006-11-29 Thread T. Michael Keesey

One thing to remember is that classes and objects are designed for
YOU, not for the computer. OOP is meant to make programming easier for
humans and our quirky ways of thinking. Often you just have to think
about what would make intuitive sense as an object, and that's the
answer. Sometimes it's harder than just that, but that's a good
starting point.
--
T. Michael Keesey
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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] Open PDF in Acrobat

2006-11-29 Thread Holth, Daniel C.

We are developing an application that opens a series of PDF files that are to 
be used for presentations.  When the PDFs are opened in Acrobat there is 
functionality to display as full screen, but when opened in a browser this is 
disabled.

We cannot seem to get an URL to the files to work since it opens it in the 
browser, and fscommand exe can only be used to open an application (not 
specific files).  Does anyone have thoughts on how we might insure the file 
opens in Acrobat Reader?

Thanks
-Dan

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
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] Open PDF in Acrobat

2006-11-29 Thread Steven Sacks | BLITZ
It is opening in Acrobat Reader.  However, it is opening in the Acrobat
Reader plug-in for browsers as expected.  There is no way to access the
user's hard drive from Flash in a browser for security purposes, nor can
Flash launch executables from the browser.  This behavior is
long-standing and won't likely change.

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Holth, Daniel C.
 Sent: Wednesday, November 29, 2006 1:44 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Open PDF in Acrobat
 
 
 We are developing an application that opens a series of PDF 
 files that are to be used for presentations.  When the PDFs 
 are opened in Acrobat there is functionality to display as 
 full screen, but when opened in a browser this is disabled.
 
 We cannot seem to get an URL to the files to work since it 
 opens it in the browser, and fscommand exe can only be used 
 to open an application (not specific files).  Does anyone 
 have thoughts on how we might insure the file opens in Acrobat Reader?
 
 Thanks
 -Dan
 
 This e-mail and its attachments are intended only for the use 
 of the addressee(s) and may contain privileged, confidential 
 or proprietary information. If you are not the intended 
 recipient, or the employee or agent responsible for 
 delivering the message to the intended recipient, you are 
 hereby notified that any dissemination, distribution, 
 displaying, copying, or use of this information is strictly 
 prohibited. If you have received this communication in error, 
 please inform the sender immediately and delete and destroy 
 any record of this message. Thank you.
 ___
 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] Loading library movie clips sequentially? Best way todo this?

2006-11-29 Thread Merrill, Jason
I have found a major issue with the Fuse kit - it's huge and has huge
overhead.  It's a great set of classes, does some neat things, don't get
me wrong, but I found that using it in code-intensive app brought it
down and made it unusable.  I switched back to the built-in Tween and
Transition classes in the same application and using the
onMotionFinished event and such things went back to normal.  I only
respond  because you were asking for the best way to do this.  - this
was just my experience.  

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Andy Stone
Sent: Wednesday, November 29, 2006 9:14 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Loading library movie clips sequentially?
Best way todo
this?

I use fusekit(http://www.mosessupposes.com), it's great for animation
sequences.

-Andy Stone

Here's an example of how I might do it...

import com.mosesSupposes.fuse.*;
ZigoEngine.register(PennerEasing, Shortcuts, FuseFMP, FuseItem);
//
var numOfClips = 3;
var currentClip = 1;
//the clips/images to load
var clipsToLoad:Array = [img1.jpg, img2.jpg, img3.jpg];
//the final x y positions..
var clipPositions:Array = [[100, 100], [200, 200], [300, 300]];
//this is you callback, it will be called when the last animation
finishes
function loadClips() {
  if (currentClip=clipsToLoad.length) {
  var created =
createEmptyMovieClip(container_+currentClip,
currentClip);
  mcLoader.loadClip(clipsToLoad[currentClip-1], created);
  }
}
function moveClip() {
  var del = .0;
  var ease = easeOutBounce;
  var pos1 = clipPositions[currentClip-1][0];
  var pos2 = clipPositions[currentClip-1][1];
  ZigoEngine.doShortcut(this[container_+currentClip], tween,
[_x, _y], [pos1, pos2], 1, ease, del, loadClips);
}
var mclListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(mclListener);
mclListener.onLoadComplete = function(mc:MovieClip) {
  moveClip();
  currentClip++;
};
loadClips();


//hope this helps





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Micky
Hulse
Sent: Wednesday, November 29, 2006 7:52 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Loading library movie clips sequentially? Best
way
todo this?

Hello,

Here is the scoop: I have 36 movie clips in my library that get placed
on stage via actionscript...

Long story short, I would like to load each clip one at a time, for
example: movie_clip-01 fully loads and animates into position, then
movie_clip-02 loads and animates into position, (...), and finally
movie_clip-36 loads and animates into position. Basically, I want to
break-up the load across time, vs. doing it all at the beginning.

Just wondering if the above idea makes sense? Is it standard to do
that
type of loading from the library at runtime, or should I be working
with
  36 external swf files?

Anyone seen any tutorials and/or example files on the web that cover
this type of loading?

Any tips/suggestions/links/rtfm's (with page #) ya'll can send my way
would be kick-butt! :)

Sorry if noob question... I am just now getting back into Flash after
a
2-year hiatus.

Many thanks in advance.
Cheers,
Micky

--
  Wishlist: http://snipurl.com/vrs9
Switch: http://browsehappy.com/
  BCC?: http://snipurl.com/w6f8
My: http://del.icio.us/mhulse
___
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
___
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] Loading library movie clips sequentially? Best way todo this?

2006-11-29 Thread Micky Hulse

Hi Jason, thanks for input, I really appreciate your time and insight.

Merrill, Jason wrote:

... snip ...
onMotionFinished event and such things went back to normal.  I only
respond  because you were asking for the best way to do this.  - this
was just my experience. 


For sure. The best way is something I strive for in my work.

Fusekit looks pretty cool, and I am sure it is time saving depending on 
proj. But, it may be a bit too much for what I am going for... Also, I 
think this would be a good situation for me to learn a few new things 
about AS.


Although, that code Andy posted looks like exactly what I need! Lol, it 
is so tempting to *not* reinvent the wheel. Haha.


Basically, I just want to load all 36 6-frame animations, one at a time, 
with a bit of easing animation (i.e. loads, then moves into position 
along the y-axis) and then load/animate the next. I guess that sounds 
pretty simple... Just need to put it all together in my head. :D


Thanks Jason!
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
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] Open PDF in Acrobat

2006-11-29 Thread R�kos Attila

Are you talking about a projector application? In this case you can
create a simple batch file for opening PDF-s, that contains a simple
start foo.pdf line. Unfortunately fscommand cannot pass parameters
to the executable, so you have to make batch files for each PDF,
unless you use a third-party projector creator that allows more access
to local files.

  Attila



___
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] [OT] SCM/Project management tool

2006-11-29 Thread l u c h y x

Yes I´m using Streber-PM here.
But the file manager is pretty simple and doesn't support SVN.
I think you need something like a mix of Streber+Track SVN. That's could be
awesome.

Luchyx


On 11/29/06, Ian Thomas [EMAIL PROTECTED] wrote:


On 11/29/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:

  * How do you handle projects that consists of a client (flash) and a
server
 written in another language? A trac enviroment for both of them?

No - we use the same environment for both, and Ant build scripts to
install the appropriately built code to the server/client. Or
sometimes directly SVN update into the appropriate working directory
on the server, depending on the complexity of the project.

Personally I think it'd be crazy to seperate the front-end and
back-end code into different repositories - it's the same project, you
want to be able to version track/bugfix the same project (is that bug
in the front end or back end?) and, importantly, you want to be able
to branch and tag the same project.

 * About the syntax highliting, is there support for AS2/AS3?
Don't know, I'm afraid.

HTH,
  Ian
___
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





--
l   u   c   h   y   x
r i a e v o l u t i o n (r)
[EMAIL PROTECTED]
http://www.riaevolution.com
Phone: +54 (11) 4931-7006
___
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] [OT] SCM/Project management tool

2006-11-29 Thread Chris Hill
I'm really curious how you install your apps to the server using ant. We 
currently use svn update for some of our staging stuff. Which tasks do 
you use to install/deploy? I'd like to see something that would 
automatically synchronize via ftp in ant but I never thought doing 
something like that would work.


Thanks
C

Ian Thomas wrote:


On 11/29/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:

 * How do you handle projects that consists of a client (flash) and a 
server

written in another language? A trac enviroment for both of them?



No - we use the same environment for both, and Ant build scripts to
install the appropriately built code to the server/client. Or
sometimes directly SVN update into the appropriate working directory
on the server, depending on the complexity of the project.

Personally I think it'd be crazy to seperate the front-end and
back-end code into different repositories - it's the same project, you
want to be able to version track/bugfix the same project (is that bug
in the front end or back end?) and, importantly, you want to be able
to branch and tag the same project.


* About the syntax highliting, is there support for AS2/AS3?


Don't know, I'm afraid.

HTH,
 Ian
___
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] [OT] SCM/Project management tool

2006-11-29 Thread Ian Thomas

Hi Chris,
 It entirely depends on the project. There's an optional FTP task
(requires some extra libs) that comes with Ant which we use for simple
file uploads. Off the top of my head, we've used combinations of:

- hand-written calls to SVN (i.e. using the exec task) to update and to tag
- writing/reading of .properties files (to maintain build numbers
etc.) using the property task
- the optional FTP task
- the Zip task for creating single-file packages (to, for example,
send a server install/distribution to a client)
- integration with NSIS (more exec tasks) to build Windows installers
(for Flash projectors)
- even, sometimes, simple copies across Windows/Samba fileshares for deployment

In the past we've written our own extensions to Ant to make some of
the tasks much simpler in Ant syntax; but over time (as Ant has
developed) we moved away from that.

At the place I worked four or five years ago we had a lot more
integration on the server side; e.g. you checked in your shared
classes and a hook (in CVS, in those days) fired off a server-side
test suite and a rebuild of the API documentation based on those
classes; but we've not had a need (yet!) for that here.

Cheers.
  Ian


On 11/29/06, Chris Hill [EMAIL PROTECTED] wrote:

I'm really curious how you install your apps to the server using ant. We
currently use svn update for some of our staging stuff. Which tasks do
you use to install/deploy? I'd like to see something that would
automatically synchronize via ftp in ant but I never thought doing
something like that would work.

Thanks
C

___
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] How variables when using setInterval ...

2006-11-29 Thread Stephen Ford
Hello,
 
Lets say you have 10 different setIntervals running within your class. Do you 
also declare 10 different variables for these intervals ? like so:
 
private var nInt:Number;
private var nInt2:Number;
private var nInt3:Number;
etc
etc
 
Or can you just declare one variable and use it multiple times (I'm guessing 
not because then when you clear the interval, all of them would stop).
 
Thanks.___
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] perspective texture mapping

2006-11-29 Thread Boon Chew

I am investigating the different ways one can implement or simulate perspective 
texture mapping both using Flash 8 API (e.g. with bitmapdata) and without using 
Flash 8 API (without bitmapdata, how?).

Anyone with experience in this or knows of any resources exploring this topic?


 
-
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get 
things done faster.
___
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] Firefox 1.5 stranger hitarea behavior

2006-11-29 Thread Firstpixel

Thks.. wmode fixed, problem solved.

- Original Message - 
From: Lyndon Headley [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 29, 2006 6:34 PM
Subject: Re: [Flashcoders] Firefox 1.5 stranger hitarea behavior


If you have wmode value of transparent or sometimes opaque will cause the
hitareas to be offset, potentially outside of the clickable flash area. Only
time I've had a problem anyway.

On 11/28/06, Firstpixel [EMAIL PROTECTED] wrote:


Does anyone ever had problems with firefox 1.5 and hitarea buttons?

seems the initial hitareas are fixed on the browser when I scroll the
page, and I can't reach the initial off page button's hitarea.


Gil Beyruth
Criação e Desenv. Flash
{FP}Firstpixel.com
--
[EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
skype: gil_sk8
+55 11 30133773
___
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





--
Lyndon

If you woke up breathing, congratulations! You get another chance.
___
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] How variables when using setInterval ...

2006-11-29 Thread Ramon Miguel M. Tayag

Yep I think you'll need different variables.

On 11/30/06, Stephen Ford [EMAIL PROTECTED] wrote:

Hello,

Lets say you have 10 different setIntervals running within your class. Do you 
also declare 10 different variables for these intervals ? like so:

private var nInt:Number;
private var nInt2:Number;
private var nInt3:Number;
etc
etc

Or can you just declare one variable and use it multiple times (I'm guessing 
not because then when you clear the interval, all of them would stop).

Thanks.___
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




--
Ramon Miguel M. Tayag
___
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] How variables when using setInterval ...

2006-11-29 Thread slangeberg

James O'Reilly has great Timer class to  wrap/replace setInterval():

http://www.jamesor.com/2006/10/18/as2-timer-class/

-Scott

On 11/29/06, Stephen Ford [EMAIL PROTECTED] wrote:


Hello,

Lets say you have 10 different setIntervals running within your class. Do
you also declare 10 different variables for these intervals ? like so:

private var nInt:Number;
private var nInt2:Number;
private var nInt3:Number;
etc
etc

Or can you just declare one variable and use it multiple times (I'm
guessing not because then when you clear the interval, all of them would
stop).

Thanks.___
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





--

: : ) Scott
___
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] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Claus Wahlers


I've found that LoadQueueManager is excellent for loading multiple 
external files in sequence.. It also gives you the possibility to pause 
loading, rearrange loading order etc. etc.


http://blog.bittube.com/2006/10/27/loadqueuemanager-update/

Hope to see an AS 3 version of this soon!


For AS3 i'd recommend to just zip your assets and load that zip directly 
into Flash. No more annoying loading queues.

http://codeazur.com.br/lab/fzip/

I've also started working on a low/midlevel AS3 HTTP library, that you 
could use to utilize persistant connections and pipelining over HTTP 1.1.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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] Open PDF in Acrobat

2006-11-29 Thread Nehal Gandhi

if its standalone application you r creating, have a look at local content
updater on adobe site. it worked for me...

-Nehal

On 11/30/06, Rákos Attila [EMAIL PROTECTED] wrote:



Are you talking about a projector application? In this case you can
create a simple batch file for opening PDF-s, that contains a simple
start foo.pdf line. Unfortunately fscommand cannot pass parameters
to the executable, so you have to make batch files for each PDF,
unless you use a third-party projector creator that allows more access
to local files.

  Attila



___
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


[Flashcoders] LoadVars.send vs. LoadVars.sendAndLoad

2006-11-29 Thread Glenn Grant
I use .sendAndLoad to load a shopping cart so it will not pop a new browser
window each time the user adds an item. this works fine locally, but online
the items are not being added to the cart. if i use .send instead of
.sendAndLoad everything works fine except for the aforementioned launching
of browser every time. i read in flash's documentation that .sendAndLoad has
a different security protocol than .send, so i have tried
System.security.allowDomain(thedomain.com); in the first line, which
doesn't seem to be making a difference. any suggestions?

___
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] How variables when using setInterval ...

2006-11-29 Thread Steven Sacks | BLITZ
Kenny Bunch wrote an interval manager way back when.
 
http://www.kennybunch.com/index.php?p=16 
 
To answer your question, though, setInterval returns a number, which is a 
unique id reference for that interval.  If you set another interval to the same 
var, you orphan the previous interval forever lost, forever running.  As a 
matter of good practice you should always clearInterval before you setInterval.
 
clearInterval(myInterval);
myInterval = setInterval(...);
 
 
___
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] LoadVars.send vs. LoadVars.sendAndLoad

2006-11-29 Thread Telmo Dias

Hi,

When using sendAndLoad you have to use 2 different loadVars objects.

You should first create two loadVars objects. One to store the vars you 
want to send, and the other one to load the vars you get from the process.


Ex:

var orderLVIn = new LoadVars();
var orderLVOut = new LoadVars();
(...)
orderLVOut.sendAndLoad(processorder.php, orderLVIn, POST);


Hope this helps...

Cheers
Telmo

Glenn Grant wrote:

I use .sendAndLoad to load a shopping cart so it will not pop a new browser
window each time the user adds an item. this works fine locally, but online
the items are not being added to the cart. if i use .send instead of
.sendAndLoad everything works fine except for the aforementioned launching
of browser every time. i read in flash's documentation that .sendAndLoad has
a different security protocol than .send, so i have tried
System.security.allowDomain(thedomain.com); in the first line, which
doesn't seem to be making a difference. any suggestions?

___
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


[Flashcoders] passing arguments to a projector?

2006-11-29 Thread Josh Santangelo
Is it possible to pass arguments to a projector and get at them via  
actionscript? Like projector.exe -foo=bar comes out at _root.foo?  
If so, how would you pass the args on a Mac?


Sure I could do it with Zinc or something but I'm going for super  
simple here...


-josh
___
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] timecode and live audio streams with FMS

2006-11-29 Thread Jordan Snyder

I would say that the best way to sync the two is to use the
Netstream.send() function.  Check it out; it would have saved me a lot
of headaches had I noticed it was actually in 1.5!  And it's in FMS
2.0 of course, as well.  The best thing is that all the data you need
is in the FLV, so you can get that data back later without needing the
FMS crutch.

HTH.

Cheers!

On 11/29/06, August Gresens [EMAIL PROTECTED] wrote:

Hello

A client wants to synchronize visual data (specified from an XML stream)
with a separate live audio stream.

Can this be done with Flash Media Server and Flash? I'm wondering in
particular how you would synchronize the display to the audio.

Would this be done via timecode - if so, what kind of timecode is returned
during playback of a live stream?

Much Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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




--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.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