Re: [Flashcoders] E4X question

2008-07-03 Thread Steven Sacks
Just because you CAN do it (as this document is just that, 
documentation), it doesn't mean you SHOULD.


I mean, you CAN put underscores in class names.  You CAN start class 
names with lower case characters.  You can make all your variable names 
ALL CAPS even if they're not constants.  You can put 10 underscores and 
dollar signs alternating _$_$_$_$_$ before every variable name if you 
want to.  You can cast every variable as an Object, or as *.  The 
language supports it, and the documentation says you're able to do it.


So just because XML supports it, and the documentation says it's 
allowed, doesn't mean it's in any way a good practice, or smart, or even 
acceptable.  In fact, it is not.  I'll give you the number one reason why.


Because XML is MEANT to be read by programming languages while still 
being human readable.


Programming languages generally don't like hyphens in the middle of 
attribute names or variable names.  You have to do hacky stuff like 
bracket access to use them.


Hence, you should never use hyphens in XML attributes or node names.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 events framework ...

2008-07-03 Thread [EMAIL PROTECTED]
Considering that all events commence with the capture phase (stage to
target), is there anyway to have just one stage listener for all events (of
any type) that kills off event propagation, then routes said event to
perhaps an event manager or function that determines the event type and what
operation is required?

If possible, would this be ideal when you know your application only has
10-15 events (either user or system generated) to account for?

I still don't completely understand the AS3 event framework and it doesn't
seem to make sense to me to have 10 or 15 listeners located throughout an
application. Not to mention the fact that, as far as I'm aware, within any
class from which you want to listen for an event, you need to have a
instance of the dispatching object, then add the listener to the same
object?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] drag and rotate, where do I begin?

2008-07-03 Thread jonathan howe
I see a link into the place where they got the physics right in the
project description:

http://www.ffiles.com/flash/physics_and_motion/drag_and_rotation_with_easing_1649.html

Have you tried registering and downloading - maybe it contains source?

--jonathan

On Thu, Jul 3, 2008 at 6:32 AM, Leandro Ferreira [EMAIL PROTECTED] wrote:

 Sure, drag and throw is not a problem, nor is rotation based on an
 arbitrary
 point, but deciding how an object should rotate based on where the user
 pressed and how he dragged it. But thanks anyway.

 About ready-made classes: with APE or box2D I could manage to recreate
 this,
 but that's not the point: what I want is to understand how it's done.
 Anyone?


  Leandro Ferreira

 On Thu, Jul 3, 2008 at 1:19 AM, Ashim D'Silva [EMAIL PROTECTED]
 wrote:

  Basically it's using velocity well. The dragging and throwing is
  pretty easy to figure out with basic physics (velocity and
  decay/friction). The rotation is a little trickier I imagine using
  some sort of Matrix transformations to dynamically decide a point to
  rotate around. Look for rotations around an arbitratrary point. I
  don't have enough knowledge to actually help you out directly but
  hopefully this will lead you in some direction.
 
  Maybe there are some ready made classes...
 
  Ashim
 
  --
  Random Lines 3D
  My online portfolio
  www.therandomlines.com
 
  2008/7/3 Leandro Ferreira [EMAIL PROTECTED]:
   Hi there,
  
   I was trying to understand how this(
  
 http://www.ffiles.com/flash/templates/drag_and_rotate_website_1670.html)
   kind of movement works, but I have no idea on what to search for.
   At first I got an physics book about classical mechanics, but didn't
 find
  it
   useful, and can't find the exact theories involved in order to look for
  and
   applied use.
   Then I began working 'intuitively' in it, with some trigonometics and
 so,
   but things got ugly and now I'm kind of stuck.
  
   Does anyone here know where can I find some
 information/article/readable
   source about this?
  
  
  
   Thanks,
Leandro Ferreira
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  Random Lines 3D
  My online portfolio
  www.therandomlines.com
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Bitmap vs beginBitmapFill

2008-07-03 Thread Ashim D'Silva
From what I can gather, if you have bitmapData, there's 2 ways to
display it. By embedding it in a Bitmap; or by using beingBitmapFill
on a Shape (or anything that supports it).
Now I presume using a Bitmap is the recommended way, but is there
anything wrong or resource intensive with the other way. In context, I
want to use the Shape to mask a part of the bitmapData as opposed to
using a mask over a bitmap. Then moving the bitmapData inside using a
matrix.

So, any thoughts? Am I doing something incredibly wrong?

-- 
Random Lines 3D
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash CMS

2008-07-03 Thread Sunil Jolly
I've used Drupal with the AMFPHP module very successfully.

S

-Original Message-
From: Paul Andrews [mailto:[EMAIL PROTECTED] 
Sent: 02 July 2008 11:05
To: Flash Coders List
Subject: Re: [Flashcoders] Flash  CMS

Interesting - thank you.
- Original Message - 
From: SJM [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, July 02, 2008 10:36 AM
Subject: Re: [Flashcoders] Flash  CMS


there are a few I like this one...
http://www.flashden.net/item/strongflashstrong-xml-editor/7588

Some others...
http://www.flashloaded.com/flashcomponents/fcms/

http://fcmspro.com/

http://flashblocks.com/

http://www.flashden.net/item/simple-website-strongcmsstrong/1074
  - Original Message - 
  From: Paul Andrews
  To: Flash Coders List
  Sent: Wednesday, July 02, 2008 9:50 AM
  Subject: [Flashcoders] Flash  CMS


  I just wondered if there was a favourite CMS that was popular for use
with
  Flash applications, or (as I suspect) do most developers just roll
their 
own
  with MySQL?

  Paul

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



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


Re: [Flashcoders] E4X question

2008-07-03 Thread Alias Cummins
Unfortunately, telling other people to change their entire XML
structure and config doesn't usually win you a lot of friends...
especially on a tight deadline.

Thanks,
Alias

2008/7/2 Steven Sacks [EMAIL PROTECTED]:
 You might want to try following XML standards and best practices by not
 using hyphens in XML node or attribute names.

 The only time I've seen hyphens in XML is when salespeople and other laymen
 end up writing XML schemas.  Why they're ever given authority to do such
 things is beyond me.

 If it was me, I would fight tooth and nail to get those hyphens removed and
 replaced with camel case.  Best practices or die!  ;)
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] E4X question

2008-07-03 Thread Alias Cummins
Hi guys,

First, thanks for your help. The problem is now fixed, without having
to change the XML.

Whenever the term best practices comes up in a debate, it usually
becomes a big long complicated discussion. I try to avoid the term, as
it implies one way of doing something is inherently better than
another, which is very rarely true. Instead, I would ask the question
whose best practices are we talking about here? because anyone can
stand up and claim that such and such is best practice, and as it's
subject to opinion, there's never a resolution to the debate.

2008/7/2 Rich Shupe [EMAIL PROTECTED]:
 I don't understand the subtleties here. Just because XHTML was following
 it's own rules doesn't mean it was within best practices to use AS E4X to
 parse it. I'm quite sure it is not considered best practice to work with
 HTML in XML child nodes, without either CDATA or encoded entities, and your
 experience reflected that.

I have to say that it's certainly common practice - whether it's best
is subject to debate. However, it does get projects done on time.


 And, although my opinion is insignificant, I would have done exactly what
 you did. Best practices are just that, guidelines for which we should
 strive. But, since there's no XHTML parser at the ready, you work with what
 you have.



 All of this is beside the point, however. I did not cite your example as a
 criticism. I prefer not to do that. I mentioned it because I was suggesting
 that maybe this recent question was posed because the author couldn't change
 the source, just as you couldn't. And, therefore (best practices or not) the
 author had to work with a hyphenated attribute name.

You are correct - changing the XML was not an option. Hence the post
to flashcoders.

 I think it would be difficult to find a defense for hyphenated attributes,
 but there still may be times when you must work with them.

They are deeply annoying, all right. It was surprisingly hard to find
the answer online, too. Bad Google!

Thanks for all your help,
Alias
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3 events framework ...

2008-07-03 Thread Romuald Quantin
If I understood well your need, you might want to have a look to
model-view-controller framework, to Cairngorm or pureMVC.

It will centralize your events and actions (commands) through only one
interface, making things easier to debug and develop.

Hope it helps.

Romu
www.soundstep.com



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 03 July 2008 08:24
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AS3 events framework ...

Considering that all events commence with the capture phase (stage to
target), is there anyway to have just one stage listener for all events (of
any type) that kills off event propagation, then routes said event to
perhaps an event manager or function that determines the event type and what
operation is required?

If possible, would this be ideal when you know your application only has
10-15 events (either user or system generated) to account for?

I still don't completely understand the AS3 event framework and it doesn't
seem to make sense to me to have 10 or 15 listeners located throughout an
application. Not to mention the fact that, as far as I'm aware, within any
class from which you want to listen for an event, you need to have a
instance of the dispatching object, then add the listener to the same
object?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Video CuePoints

2008-07-03 Thread Doug Coning
Greetings everyone,

When adding CuePoints through ActionScript to a Video, do you have to use 
FLVPlayback component, or can CuePoints be added to a Video Symbol that you 
added to a stage?

Thanks,

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


[Flashcoders] Two problems with BitmapData.draw() w/r/t registration point and transparency

2008-07-03 Thread jonathan howe
Hi, gang,

I have a long list of MovieClips. For each one, I want to create a bitmap
icon that shows the first frame.

The problems I'm having:
1. The MovieClips often have content above and before (-y and -x) the
registration point, and simply performing BitmapData.draw() I don't seem to
get the negative data
2. I'd like transparency on the resultant bitmaps.

Problem #1 I solved in a seemingly complicated way: by creating another
movieclip, nesting the one I want inside it, and repositioning it based on
the bounding box.
Problem #2 I can't seem to decipher the documentation on proper use of
BlendModes and could really use some guidance.


var sample_mc:MovieClip = AssetManager.getMovieClipAsset(classnames[i]);
// assume this returns a MovieClip instance
var sampleParent_spr:Sprite = new Sprite(); // Note I never add it as a
child to anything
sampleParent_spr.addChild(sample_mc);
var boundingBox:Rectangle = sample_mc.getBounds(sampleParent_spr);
if (boundingBox.x  0) {
   sample_mc.x = -boundingBox.x;
}
if (boundingBox.y  0) {
   sample_mc.y = -boundingBox.y;
}
var bitmapDataCopy:BitmapData = new BitmapData(boundingBox.width,
boundingBox.height,true); // here I have set transparent to true (although
it is default!)
bitmapDataCopy.draw(sampleParent_spr,null,null,BlendMode.LAYER);  //
have I selected the correct blendMode? Do I need to change blendMode of
sampleParent_spr ?
// Resultant Bitmap objects made from bitmapDataCopy do not have
transparent channel.


Can anyone help me improve #1 or solve #2?

-jonathan


-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] filmmering FLV playback - why and how to fix that

2008-07-03 Thread Martin Klasson
I got a quicktime which I have encoded to on2vp6-file with Flash Video
Encoder,
but the flv that is being played is having some flimmering results, as can
be seen here:
http://www.bjorkelangenpark.no/innredning.html


The quicktime is not having this issue, I dont know how to solve this. Do
you?

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


Re: [Flashcoders] filmmering FLV playback - why and how to fix that

2008-07-03 Thread Paul Andrews
What settings did you give the encoder - maybe your bitrate is too high. It 
certainly stutters on my machine. Maybe you have too many keyframes.


Paul
- Original Message - 
From: Martin Klasson [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 03, 2008 1:03 PM
Subject: [Flashcoders] filmmering FLV playback - why and how to fix that



I got a quicktime which I have encoded to on2vp6-file with Flash Video
Encoder,
but the flv that is being played is having some flimmering results, as can
be seen here:
http://www.bjorkelangenpark.no/innredning.html


The quicktime is not having this issue, I dont know how to solve this. Do
you?

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



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


Re: [Flashcoders] Two problems with BitmapData.draw() w/r/t registration point and transparency

2008-07-03 Thread Ashim D'Silva
I've found you have to set up the bitmapdata to have 4 channels
instead of 3 to get transparency.
So for a transparent image...

new BitmapData(width, height, true, 0x);

That should make it truly transparent.

And for the first part, I haven't tried it, but have you looked into
using a Matrix?

2008/7/3 jonathan howe [EMAIL PROTECTED]:
 Hi, gang,

 I have a long list of MovieClips. For each one, I want to create a bitmap
 icon that shows the first frame.

 The problems I'm having:
 1. The MovieClips often have content above and before (-y and -x) the
 registration point, and simply performing BitmapData.draw() I don't seem to
 get the negative data
 2. I'd like transparency on the resultant bitmaps.

 Problem #1 I solved in a seemingly complicated way: by creating another
 movieclip, nesting the one I want inside it, and repositioning it based on
 the bounding box.
 Problem #2 I can't seem to decipher the documentation on proper use of
 BlendModes and could really use some guidance.

 
var sample_mc:MovieClip = AssetManager.getMovieClipAsset(classnames[i]);
 // assume this returns a MovieClip instance
var sampleParent_spr:Sprite = new Sprite(); // Note I never add it as a
 child to anything
sampleParent_spr.addChild(sample_mc);
var boundingBox:Rectangle = sample_mc.getBounds(sampleParent_spr);
if (boundingBox.x  0) {
   sample_mc.x = -boundingBox.x;
}
if (boundingBox.y  0) {
   sample_mc.y = -boundingBox.y;
}
var bitmapDataCopy:BitmapData = new BitmapData(boundingBox.width,
 boundingBox.height,true); // here I have set transparent to true (although
 it is default!)
bitmapDataCopy.draw(sampleParent_spr,null,null,BlendMode.LAYER);  //
 have I selected the correct blendMode? Do I need to change blendMode of
 sampleParent_spr ?
// Resultant Bitmap objects made from bitmapDataCopy do not have
 transparent channel.
 

 Can anyone help me improve #1 or solve #2?

 -jonathan


 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Random Lines 3D
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] filmmering FLV playback - why and how to fix that

2008-07-03 Thread Martin Klasson
I used 400kbit on a 694x440 movie, with 96kbps audio in stereo, on2vp6.
frame rate same as source, and automatic keyframes.

How does it stutter, as it is buffering and than resumes - or does the video
has strange lines appearing like it
the video doesnt perform well.

I think it is very strange, and I cant understand that I havent heard about
this issue before!


2008/7/3 Paul Andrews [EMAIL PROTECTED]:

 What settings did you give the encoder - maybe your bitrate is too high. It
 certainly stutters on my machine. Maybe you have too many keyframes.

 Paul
 - Original Message - From: Martin Klasson [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, July 03, 2008 1:03 PM
 Subject: [Flashcoders] filmmering FLV playback - why and how to fix that


  I got a quicktime which I have encoded to on2vp6-file with Flash Video
 Encoder,
 but the flv that is being played is having some flimmering results, as can
 be seen here:
 http://www.bjorkelangenpark.no/innredning.html


 The quicktime is not having this issue, I dont know how to solve this. Do
 you?

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


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




-- 

Martin Klasson
Flash Developer
Parkgatan 9-11
S-411 24 Göteborg
Sweden
Office +46 (0) 31 711 54 50
Cell +46 (0) 730 964 561
[EMAIL PROTECTED]
www.kokokaka.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] E4X question

2008-07-03 Thread Juan Pablo Califano
I agree with most of what you've said. I just wanted to point out that using
hyphens is not sub-standard. Avoiding them is a good decision if that's up
to you and you happen to use a language like AS (which lets you reference
previously undefined identifiers and would cause the - to clash with the
substraction operator). Nevertheless, there are many cases out there of
perfectly legal and standard xml files that do use hyphens (crossdomain,xml,
for example).

Cheers
Juan Pablo Califano


2008/7/3, Steven Sacks [EMAIL PROTECTED]:

 Just because you CAN do it (as this document is just that, documentation),
 it doesn't mean you SHOULD.

 I mean, you CAN put underscores in class names.  You CAN start class names
 with lower case characters.  You can make all your variable names ALL CAPS
 even if they're not constants.  You can put 10 underscores and dollar signs
 alternating _$_$_$_$_$ before every variable name if you want to.  You can
 cast every variable as an Object, or as *.  The language supports it, and
 the documentation says you're able to do it.

 So just because XML supports it, and the documentation says it's allowed,
 doesn't mean it's in any way a good practice, or smart, or even acceptable.
  In fact, it is not.  I'll give you the number one reason why.

 Because XML is MEANT to be read by programming languages while still being
 human readable.

 Programming languages generally don't like hyphens in the middle of
 attribute names or variable names.  You have to do hacky stuff like bracket
 access to use them.

 Hence, you should never use hyphens in XML attributes or node names.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] filmmering FLV playback - why and how to fix that

2008-07-03 Thread Paul Andrews
It's not that bad. I think the fact that there are a lot of hard edes and 
contiuous movement that any faults are more obvious.


The stuttering was occuring as the video was playing and the file had not 
yet fully loaded (though was not halted to fill the buffer).


The strange lines you mention appear to be the video player trying to keep 
up with the display.


Despite all this, I think the quality isn't too bad.

I'd try out a few variations on the encoding to see if that helps.

I don't think I've ever tried to play such a large video on my laptop 
before. My last video project was 200x150.


Paul



- Original Message - 
From: Martin Klasson [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 03, 2008 2:00 PM
Subject: Re: [Flashcoders] filmmering FLV playback - why and how to fix that


I used 400kbit on a 694x440 movie, with 96kbps audio in stereo, on2vp6.
frame rate same as source, and automatic keyframes.

How does it stutter, as it is buffering and than resumes - or does the video
has strange lines appearing like it
the video doesnt perform well.

I think it is very strange, and I cant understand that I havent heard about
this issue before!


2008/7/3 Paul Andrews [EMAIL PROTECTED]:

What settings did you give the encoder - maybe your bitrate is too high. 
It

certainly stutters on my machine. Maybe you have too many keyframes.

Paul
- Original Message - From: Martin Klasson [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 03, 2008 1:03 PM
Subject: [Flashcoders] filmmering FLV playback - why and how to fix that


 I got a quicktime which I have encoded to on2vp6-file with Flash Video

Encoder,
but the flv that is being played is having some flimmering results, as 
can

be seen here:
http://www.bjorkelangenpark.no/innredning.html


The quicktime is not having this issue, I dont know how to solve this. Do
you?

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



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





--

Martin Klasson
Flash Developer
Parkgatan 9-11
S-411 24 Göteborg
Sweden
Office +46 (0) 31 711 54 50
Cell +46 (0) 730 964 561
[EMAIL PROTECTED]
www.kokokaka.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] filmmering FLV playback - why and how to fix that

2008-07-03 Thread Jordan L. Chilcott
What is the source frame rate? I have seen Flash encounter some 
stuttering on drop frame rates. For that size video, you are probably 
best to drop the frame rate down to about 15fps. It will probably still 
look good for the net and will most likely play a lot better.


jord

*Jordan L. Chilcott, President*
Interactivity Unlimited
Guelph, Ontario
-
Tel:   (519) 837-1879
Fax: (519) 837-8610

mailto:[EMAIL PROTECTED]
http://www.interactivityunlimited.com
iChat/AIM: j1chilcott
Skype: bear-faced-cow
SightSpeed: [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]



Author: Building Web Sites with Macromedia Studio MX
Author: Building Dynamic Web Sites with Macromedia Studio MX
Author: Flash Professional 8: Training From the Source
Author: Foundation Flash 8 Video


Martin Klasson wrote:

I used 400kbit on a 694x440 movie, with 96kbps audio in stereo, on2vp6.
frame rate same as source, and automatic keyframes.

How does it stutter, as it is buffering and than resumes - or does the video
has strange lines appearing like it
the video doesnt perform well.

I think it is very strange, and I cant understand that I havent heard about
this issue before!



  

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


RE: [Flashcoders] filmmering FLV playback - why and how to fix that

2008-07-03 Thread Andrew Murphy
I can't see all of the details of how the video is encoded (FLV MetaData
Viewer has a bug that keeps it from displaying some .flv file's data) but
this is what I can see in FLV Player:



Dimensions:  694 x 440
Framerate: 25fps

Audio codec ID: 2 (which means it's an MP3)
Audio datarate:  96 kbits/s
(also the audio sounds stereo to me...)

Video codec ID: 4 (which means it's On2 VP6)
Video datarate:  400 kbits/s



The main issue that's likely causing the stuttering is the constant motion
throught the frame area.  In my own video work I've been able to reduce that
by bumping up the keyframe rate, but that of course will increase the file
size and probably the workload on someone's CPU when it's played.

I'd experiment with reducing the frame rate to something like 15 fps, give
it a keyframe rate of one every 5 frames, convert the audio to mono and try
tweaking the datarates of the video and the audio to get a good balance of
visual quality and CPU bandwidth use.  If your encoder software lets you set
how many passes it makes during video encoding you can set it to use two
passes, which can improve visual quality at lower video datarates.

I hope that helps... ^_^




(ps:  That's a delightful looking home. :D)
 



Andrew Murphy
Interactive Media Specialist
[EMAIL PROTECTED]

Delvinia
214 King Street West, Suite 214 
Toronto Canada M5H 3S6

P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com

CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential information. If
you are not the intended recipient or received this communication by error,
please notify the sender and delete the message without copying or
disclosing it.

AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
détruire le contenu sans le communiquer a d'autres ou le reproduire.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews
Sent: Thursday, July 03, 2008 9:38 AM
To: Flash Coders List
Subject: Re: [Flashcoders] filmmering FLV playback - why and how to fix that

It's not that bad. I think the fact that there are a lot of hard edes and
contiuous movement that any faults are more obvious.

The stuttering was occuring as the video was playing and the file had not
yet fully loaded (though was not halted to fill the buffer).

The strange lines you mention appear to be the video player trying to keep
up with the display.

Despite all this, I think the quality isn't too bad.

I'd try out a few variations on the encoding to see if that helps.

I don't think I've ever tried to play such a large video on my laptop
before. My last video project was 200x150.

Paul



- Original Message -
From: Martin Klasson [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 03, 2008 2:00 PM
Subject: Re: [Flashcoders] filmmering FLV playback - why and how to fix that


I used 400kbit on a 694x440 movie, with 96kbps audio in stereo, on2vp6.
frame rate same as source, and automatic keyframes.

How does it stutter, as it is buffering and than resumes - or does the video
has strange lines appearing like it
the video doesnt perform well.

I think it is very strange, and I cant understand that I havent heard about
this issue before!


2008/7/3 Paul Andrews [EMAIL PROTECTED]:

 What settings did you give the encoder - maybe your bitrate is too high. 
 It
 certainly stutters on my machine. Maybe you have too many keyframes.

 Paul
 - Original Message - From: Martin Klasson [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, July 03, 2008 1:03 PM
 Subject: [Flashcoders] filmmering FLV playback - why and how to fix that


  I got a quicktime which I have encoded to on2vp6-file with Flash Video
 Encoder,
 but the flv that is being played is having some flimmering results, as 
 can
 be seen here:
 http://www.bjorkelangenpark.no/innredning.html


 The quicktime is not having this issue, I dont know how to solve this. Do
 you?

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


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




-- 

Martin Klasson
Flash Developer
Parkgatan 9-11
S-411 24 Göteborg
Sweden
Office +46 (0) 31 711 54 50
Cell +46 (0) 730 964 561
[EMAIL PROTECTED]
www.kokokaka.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list

[Flashcoders] customizable HTML/javascript editor for Flash

2008-07-03 Thread ntasky

Hi everyone,

I've got a text editor in html/javascript and would like to have a nice way 
to get it formatted for flash.
Actually the code produced by the text editor is not good for flash. tryed 
to parsed it in flash but it's way to difficult.
I was thinking of a very simple editor in HTML very customizable (need just 
color, bold, link and style)

do you know any ?

thanks,

N.



--
From: Jordan L. Chilcott [EMAIL PROTECTED]
Sent: Thursday, July 03, 2008 10:01 AM
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] filmmering FLV playback - why and how to fix that

What is the source frame rate? I have seen Flash encounter some stuttering 
on drop frame rates. For that size video, you are probably best to drop 
the frame rate down to about 15fps. It will probably still look good for 
the net and will most likely play a lot better.


jord

*Jordan L. Chilcott, President*
Interactivity Unlimited
Guelph, Ontario
-
Tel:   (519) 837-1879
Fax: (519) 837-8610

mailto:[EMAIL PROTECTED]
http://www.interactivityunlimited.com
iChat/AIM: j1chilcott
Skype: bear-faced-cow
SightSpeed: [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]



Author: Building Web Sites with Macromedia Studio MX
Author: Building Dynamic Web Sites with Macromedia Studio MX
Author: Flash Professional 8: Training From the Source
Author: Foundation Flash 8 Video


Martin Klasson wrote:

I used 400kbit on a 694x440 movie, with 96kbps audio in stereo, on2vp6.
frame rate same as source, and automatic keyframes.

How does it stutter, as it is buffering and than resumes - or does the 
video

has strange lines appearing like it
the video doesnt perform well.

I think it is very strange, and I cant understand that I havent heard 
about

this issue before!





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


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


Re: [Flashcoders] Two problems with BitmapData.draw() w/r/t registration point and transparency

2008-07-03 Thread Rob Romanek

As suggested Matrix will get you there. Here is some sample code:

var box1 = new Sprite();
box1.graphics.beginFill(0xff);
box1.graphics.drawRect(-10,-10,10,10);
box1.graphics.endFill();
box1.graphics.beginFill(0x00ff00);
box1.graphics.drawRect(0,0,20,20);
box1.graphics.endFill();
addChild(box1);
box1.x = 10;
box1.y = 10;


var bounds = box1.getBounds(box1);
var bmd = new BitmapData(bounds.width, bounds.height, true, 0x00);
bmd.draw(box1, new Matrix(1,0,0,1, -bounds.x, -bounds.y),null,  
null,null, true);

var bm = new Bitmap(bmd);
addChild(bm);
bm.x = 100;
bm.y = 0;


note that what used to be the -10, -10 point in the original sprite  
has be translated to the 0,0 point in the bitmap so if you wanted to  
line the two up you need to compensate for this difference in  
registration point.


hth,

Rob


On 3-Jul-08, at 8:52 AM, Ashim D'Silva wrote:


I've found you have to set up the bitmapdata to have 4 channels
instead of 3 to get transparency.
So for a transparent image...

new BitmapData(width, height, true, 0x);

That should make it truly transparent.

And for the first part, I haven't tried it, but have you looked into
using a Matrix?

2008/7/3 jonathan howe [EMAIL PROTECTED]:

Hi, gang,

I have a long list of MovieClips. For each one, I want to create a  
bitmap

icon that shows the first frame.

The problems I'm having:
1. The MovieClips often have content above and before (-y and -x) the
registration point, and simply performing BitmapData.draw() I don't  
seem to

get the negative data
2. I'd like transparency on the resultant bitmaps.


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


Re: [Flashcoders] AS3 events framework ...

2008-07-03 Thread Rich Shupe
You can probably create your own class that will automatically add every
event and route them accordingly, but it might end up being more work than
it's worth, or less efficient than you'd like.

There's no all-event approach to stopping propagation because only a single
event is stopped. That is, if you have a mouse down, followed by a mouse up,
stopping propagation after mouse down will not prevent the mouse up from
executing.

Regarding your dispatching question, you can dispatch from any class that
ultimately extends EventDispatcher. So, you can dispatch from a document
class, for example. I'm not sure what you mean by having an instance of the
dispatching object and adding a listener to the same object. You can
dispatch from one instance and listen from another.


On 7/3/08 3:23 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Considering that all events commence with the capture phase (stage to
 target), is there anyway to have just one stage listener for all events (of
 any type) that kills off event propagation, then routes said event to
 perhaps an event manager or function that determines the event type and what
 operation is required?
 
 If possible, would this be ideal when you know your application only has
 10-15 events (either user or system generated) to account for?
 
 I still don't completely understand the AS3 event framework and it doesn't
 seem to make sense to me to have 10 or 15 listeners located throughout an
 application. Not to mention the fact that, as far as I'm aware, within any
 class from which you want to listen for an event, you need to have a
 instance of the dispatching object, then add the listener to the same
 object?

Rich
http://www.LearningActionScript3.com


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


[Flashcoders] Augmenting code in SWF (not replacing)

2008-07-03 Thread Adrian Park
Hi all,

I have an AS2 SWF (let's call it child.swf) I need to use in a project for
which I don't have source code and neither can I get it. This child.swf
provides an API to customise the display of its content. I have a wrapper
AS2 SWF (let's call it wrapper.swf) that loads child.swf and utilises this
API.

I've tried decompiling the child.swf in order to try and recompile it with
these customisations so I can avoid using wrapper.swf (there are reasons we
need to lose the wrapper which I won't go into).

I've also looked into using MTASC to compile the wrapper.swf's code into
child.swf but it seems MTASC replaces all code in the existing SWF rather
than augmenting it.

Anyone have any suggestions for how I might compile a few lines of extra
code into and existing SWF whilst maintaining all existing code?

Many thanks in advance for any help.

Regards,
Adrian Park
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Saffron Modeler - what happened to it

2008-07-03 Thread Jiri Heitlager
That seems very promising. I really hope that the saffron will be 
released, becuase it looked promising when I saw a presentation about it 
at FITC.



Ali Drongo wrote:
I believe there's an open source collaboration that has been started to 
create something like Saffron. There's different rumours as to what is 
happening with Saffron so this group is building it's own:
http://flair-flash-flex-air.blogspot.com/2008/04/open-source-saffron-like-uml-tool.html 


Ali



On 30 Jun 2008, at 17:11, Sidney de Koning wrote:

there is loads of activity on sam's twitter account 
http://twitter.com/SamuelAgesilas


S.

On Jun 30, 2008, at 6:05 PM, Jiri Heitlager wrote:

Does somebody know what happend to the saffron UML modelling tool. 
The site http://www.levelofindustry.com/

is not showing any update anymore.

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



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


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


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


[Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread peter ginsberg
Hoping to get some help with a bizarre bug that has been haunting
development of the current game we're working on.

The situation is this:
We have character animations where we swap in dynamic clothing.  We
developed a system where we add patterns dynamically to the clothing by
doing the following with code:
1. Dupe the movieclip/sprite which is going to get a pattern
2. Use the dupe as a mask on a big square sprite that has the graphic
pattern in it.
3. Put the resulting masked element as a MULTIPLY overlay on the underlying
original clip.

It works great in most cases EXCEPT for this bizarre issue we keep running
into where in some clips the mask is partially broken -- seemingly random
parts of the movieclip are not masked, or in other parts weird extra lines
appear, or even big blocks.

*Sometimes* you can fix this by going into the movieclip and grouping
ungrouped graphical elements.  It gets really messed up if there are more
complicated graphical elements in there (like a gradient).  In these cases,
even attempts to group elements, or make them movieclips, or whatever,
doesn't seem to help much.

I was able to create a super simple demonstration of this bug, and posted
here:
http://www.thup.com/maskbug.zip

Surprisingly, I was able to replicate the error without any code, just
using  CS3.   The movieclips on the left and right are both the same, but
the one on the right has the lines and fills inside the movieclip groups
*separately*.  You'll note both of these look just fine in preview, but when
you build the swf, the one on the left has a big block of the masked object
showing for no reason.

Someone is probably going to tell me to just group items as I've done in
this example, but like I said above that doesn't always work.  For some
elements nothing works at all.

This is sort of a bug in flash, but I can't have been the first person to
notice it.  Does anyone have any idea how we caused it?  Is it just that
flash can only support masks that are simple flat color fills?

If it's the latter, I have a follow up question, can anyone think of a
clever way to take the movieclips we are using and convert them into
monotone fills of the same exact dimensions (some kind of bitmapdata
conversion maybe?).

Thanks in advance for any advice!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] customizable HTML/javascript editor for Flash

2008-07-03 Thread ntasky
I thought about it, but someone told me that the length of the variables we 
can pass through ExternalInterface is limited.

have no idea about that...

--
From: Piers Cowburn [EMAIL PROTECTED]
Sent: Thursday, July 03, 2008 11:09 AM
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] customizable HTML/javascript editor for Flash

I've had this problem before - the HTML from javascript rich text  editors 
doesn't seem to reliably display in the same way in Flash.


The way I got around it was to make a rich text editor in Flash (very 
simple, just bold, italic and link options) and pass the text to be 
edited into it via FlashVars.


If you're sitting your rich text editor on a HTML page (for example  as 
part of a non-Flash CMS) then you can use ExternalInterface to  retrieve 
the htmlText value of the text field when your form gets  submitted, and 
save that to the database.


This way you ensure your text displays the same way as it will in  Flash 
in the end.


Piers


On 3 Jul 2008, at 15:49, ntasky wrote:


Hi everyone,

I've got a text editor in html/javascript and would like to have a  nice 
way to get it formatted for flash.
Actually the code produced by the text editor is not good for  flash. 
tryed to parsed it in flash but it's way to difficult.
I was thinking of a very simple editor in HTML very customizable  (need 
just color, bold, link and style)

do you know any ?

thanks,

N.



--
From: Jordan L. Chilcott [EMAIL PROTECTED]
Sent: Thursday, July 03, 2008 10:01 AM
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] filmmering FLV playback - why and how to  fix 
that


What is the source frame rate? I have seen Flash encounter some 
stuttering on drop frame rates. For that size video, you are  probably 
best to drop the frame rate down to about 15fps. It will  probably still 
look good for the net and will most likely play a  lot better.


jord

*Jordan L. Chilcott, President*
Interactivity Unlimited
Guelph, Ontario
-
Tel:   (519) 837-1879
Fax: (519) 837-8610

mailto:[EMAIL PROTECTED]
http://www.interactivityunlimited.com
iChat/AIM: j1chilcott
Skype: bear-faced-cow
SightSpeed: [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]



Author: Building Web Sites with Macromedia Studio MX
Author: Building Dynamic Web Sites with Macromedia Studio MX
Author: Flash Professional 8: Training From the Source
Author: Foundation Flash 8 Video


Martin Klasson wrote:
I used 400kbit on a 694x440 movie, with 96kbps audio in stereo, 
on2vp6.

frame rate same as source, and automatic keyframes.

How does it stutter, as it is buffering and than resumes - or  does the 
video

has strange lines appearing like it
the video doesnt perform well.

I think it is very strange, and I cant understand that I havent  heard 
about

this issue before!





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


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


[EMAIL PROTECTED]
0207 631 3278


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


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


Re: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread Allandt Bik-Elliott (Receptacle)

are the masks rendered as bitmaps?

On 3 Jul 2008, at 16:40, peter ginsberg wrote:


Hoping to get some help with a bizarre bug that has been haunting
development of the current game we're working on.

The situation is this:
We have character animations where we swap in dynamic clothing.  We
developed a system where we add patterns dynamically to the  
clothing by

doing the following with code:
1. Dupe the movieclip/sprite which is going to get a pattern
2. Use the dupe as a mask on a big square sprite that has the graphic
pattern in it.
3. Put the resulting masked element as a MULTIPLY overlay on the  
underlying

original clip.

It works great in most cases EXCEPT for this bizarre issue we keep  
running
into where in some clips the mask is partially broken -- seemingly  
random
parts of the movieclip are not masked, or in other parts weird  
extra lines

appear, or even big blocks.

*Sometimes* you can fix this by going into the movieclip and grouping
ungrouped graphical elements.  It gets really messed up if there  
are more
complicated graphical elements in there (like a gradient).  In  
these cases,

even attempts to group elements, or make them movieclips, or whatever,
doesn't seem to help much.

I was able to create a super simple demonstration of this bug, and  
posted

here:
http://www.thup.com/maskbug.zip

Surprisingly, I was able to replicate the error without any code, just
using  CS3.   The movieclips on the left and right are both the  
same, but
the one on the right has the lines and fills inside the movieclip  
groups
*separately*.  You'll note both of these look just fine in preview,  
but when
you build the swf, the one on the left has a big block of the  
masked object

showing for no reason.

Someone is probably going to tell me to just group items as I've  
done in
this example, but like I said above that doesn't always work.  For  
some

elements nothing works at all.

This is sort of a bug in flash, but I can't have been the first  
person to
notice it.  Does anyone have any idea how we caused it?  Is it just  
that

flash can only support masks that are simple flat color fills?

If it's the latter, I have a follow up question, can anyone think of a
clever way to take the movieclips we are using and convert them into
monotone fills of the same exact dimensions (some kind of bitmapdata
conversion maybe?).

Thanks in advance for any advice!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


[Flashcoders] screensaver

2008-07-03 Thread quinrou .
Hi all,

I was wondering if anyone made any screensavers lately? And what piece of
software you have used to bring their swf to a screensaver format.
I remember using screentime about 2/3 years ago. I went back to the site but
I can't find any information about whether the application take swf done
with as3.
Also I would need an app which make screensaver for both MAC and PC.

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


Re: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread Ashim D'Silva
For patterns on Shapes, look no further that the beginBitmapFill
function. It takes a bitmap and repeats it on a Shape. You call it
from the Shape's graphics functions; as follows:

var bd:BitmapData = Your bitmapData of your repeatable pattern goes here;
var sh:Shape = new Shape();
sh.graphics.beginBitmapFill(bd);
sh.graphics.drawRoundRect(0, 0, 200, 200, 8);

That will generate a square, but you can do anything with it...

Hopefully, that will help though. I'm not quite sure about how to use
the IDE very much.


Ashim

-- 
Random Lines 3D
My online portfolio
www.therandomlines.com

2008/7/4 peter ginsberg [EMAIL PROTECTED]:
 Hoping to get some help with a bizarre bug that has been haunting
 development of the current game we're working on.

 The situation is this:
 We have character animations where we swap in dynamic clothing.  We
 developed a system where we add patterns dynamically to the clothing by
 doing the following with code:
 1. Dupe the movieclip/sprite which is going to get a pattern
 2. Use the dupe as a mask on a big square sprite that has the graphic
 pattern in it.
 3. Put the resulting masked element as a MULTIPLY overlay on the underlying
 original clip.

 It works great in most cases EXCEPT for this bizarre issue we keep running
 into where in some clips the mask is partially broken -- seemingly random
 parts of the movieclip are not masked, or in other parts weird extra lines
 appear, or even big blocks.

 *Sometimes* you can fix this by going into the movieclip and grouping
 ungrouped graphical elements.  It gets really messed up if there are more
 complicated graphical elements in there (like a gradient).  In these cases,
 even attempts to group elements, or make them movieclips, or whatever,
 doesn't seem to help much.

 I was able to create a super simple demonstration of this bug, and posted
 here:
 http://www.thup.com/maskbug.zip

 Surprisingly, I was able to replicate the error without any code, just
 using  CS3.   The movieclips on the left and right are both the same, but
 the one on the right has the lines and fills inside the movieclip groups
 *separately*.  You'll note both of these look just fine in preview, but when
 you build the swf, the one on the left has a big block of the masked object
 showing for no reason.

 Someone is probably going to tell me to just group items as I've done in
 this example, but like I said above that doesn't always work.  For some
 elements nothing works at all.

 This is sort of a bug in flash, but I can't have been the first person to
 notice it.  Does anyone have any idea how we caused it?  Is it just that
 flash can only support masks that are simple flat color fills?

 If it's the latter, I have a follow up question, can anyone think of a
 clever way to take the movieclips we are using and convert them into
 monotone fills of the same exact dimensions (some kind of bitmapdata
 conversion maybe?).

 Thanks in advance for any advice!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] filmmering FLV playback - why and how to fix that

2008-07-03 Thread Jason Van Cleave
was the original quicktime h.264? this format used to trip up squeeze and
may have the same effect with the flash encoder. I would first try to export
the file as uncompressed and reencode it to see if you are having the same
issues

On Thu, Jul 3, 2008 at 10:36 AM, Andrew Murphy [EMAIL PROTECTED] wrote:

 I can't see all of the details of how the video is encoded (FLV MetaData
 Viewer has a bug that keeps it from displaying some .flv file's data) but
 this is what I can see in FLV Player:



 Dimensions:  694 x 440
 Framerate: 25fps

 Audio codec ID: 2 (which means it's an MP3)
 Audio datarate:  96 kbits/s
 (also the audio sounds stereo to me...)

 Video codec ID: 4 (which means it's On2 VP6)
 Video datarate:  400 kbits/s



 The main issue that's likely causing the stuttering is the constant
 motion
 throught the frame area.  In my own video work I've been able to reduce
 that
 by bumping up the keyframe rate, but that of course will increase the file
 size and probably the workload on someone's CPU when it's played.

 I'd experiment with reducing the frame rate to something like 15 fps, give
 it a keyframe rate of one every 5 frames, convert the audio to mono and try
 tweaking the datarates of the video and the audio to get a good balance of
 visual quality and CPU bandwidth use.  If your encoder software lets you
 set
 how many passes it makes during video encoding you can set it to use two
 passes, which can improve visual quality at lower video datarates.

 I hope that helps... ^_^




 (ps:  That's a delightful looking home. :D)



 
 Andrew Murphy
 Interactive Media Specialist
 [EMAIL PROTECTED]

 Delvinia
 214 King Street West, Suite 214
 Toronto Canada M5H 3S6

 P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com

 CONFIDENTIALITY NOTICE
 This email message may contain privileged or confidential information. If
 you are not the intended recipient or received this communication by error,
 please notify the sender and delete the message without copying or
 disclosing it.

 AVIS DE CONFIDENTIALITÉ
 Ce message peut contenir de l'information légalement privilégiée ou
 confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
 erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
 détruire le contenu sans le communiquer a d'autres ou le reproduire.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Paul
 Andrews
 Sent: Thursday, July 03, 2008 9:38 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] filmmering FLV playback - why and how to fix
 that

 It's not that bad. I think the fact that there are a lot of hard edes and
 contiuous movement that any faults are more obvious.

 The stuttering was occuring as the video was playing and the file had not
 yet fully loaded (though was not halted to fill the buffer).

 The strange lines you mention appear to be the video player trying to keep
 up with the display.

 Despite all this, I think the quality isn't too bad.

 I'd try out a few variations on the encoding to see if that helps.

 I don't think I've ever tried to play such a large video on my laptop
 before. My last video project was 200x150.

 Paul



 - Original Message -
 From: Martin Klasson [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, July 03, 2008 2:00 PM
 Subject: Re: [Flashcoders] filmmering FLV playback - why and how to fix
 that


 I used 400kbit on a 694x440 movie, with 96kbps audio in stereo, on2vp6.
 frame rate same as source, and automatic keyframes.

 How does it stutter, as it is buffering and than resumes - or does the
 video
 has strange lines appearing like it
 the video doesnt perform well.

 I think it is very strange, and I cant understand that I havent heard about
 this issue before!


 2008/7/3 Paul Andrews [EMAIL PROTECTED]:

  What settings did you give the encoder - maybe your bitrate is too high.
  It
  certainly stutters on my machine. Maybe you have too many keyframes.
 
  Paul
  - Original Message - From: Martin Klasson [EMAIL PROTECTED]
 
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Thursday, July 03, 2008 1:03 PM
  Subject: [Flashcoders] filmmering FLV playback - why and how to fix that
 
 
   I got a quicktime which I have encoded to on2vp6-file with Flash Video
  Encoder,
  but the flv that is being played is having some flimmering results, as
  can
  be seen here:
  http://www.bjorkelangenpark.no/innredning.html
 
 
  The quicktime is not having this issue, I dont know how to solve this.
 Do
  you?
 
  Thanks, Martin
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 

Re: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread peter ginsberg
On Thu, Jul 3, 2008 at 12:07 PM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:

 are the masks rendered as bitmaps?


Yay, thank you!

I'm not sure why I didn't try this before, but you're right -- if I set
cacheAsBitmap to true on the mask and the masked clip, the issue disappears.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread Keith Reinfeld
Peter, 
 
 when 
 you build the swf, the one on the left has a big block of the masked 
 object 
 showing for no reason. 
 
The glitch in the mask corresponds to certain stroke elements. In the case
of your example: the strokes that form a 'Y' (to put it delicately) and that
do not conform to the shape of the fill.  
 
 
 This is sort of a bug in flash, but I can't have been the first person to 
 notice it.  Does anyone have any idea how we caused it?  Is it just that 
 flash can only support masks that are simple flat color fills? 
 
 If it's the latter, I have a follow up question, can anyone think of a 
 clever way to take the movieclips we are using and convert them into 
 monotone fills of the same exact dimensions 
 
First: 
Create a separate set of movieclips with the strokes intact to use as the
overlays. 
 
Then for the masks: 
Change the stroke color to be the same as the fill, then do
ModifyShapeConvert Lines to Fills 

I don't really know, but there may be a way to do at least some of the above
with JSFL. That would be the clever part. 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


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


Re: [Flashcoders] Hebrew text

2008-07-03 Thread Ricky Blaha
I just completed a project involving RTL Hebrew - using Flash 8.

RTL is not supported in Flash static text fields, but if you are loading
data from external text/xml files which are encoded using UTF-8, the RTL
carries through. The only thing you have to do is set the alignment of the
text field to the right, and the text will be right-aligned and Flash will
render the characters in the dynamic text field in the right-to-left order.

To edit RTL text/xml data on Windows XP, you will first need to enable RTL
support by going to the Control Panel - Regional and Language Options -
Languages - Install files for complex script and right-to-left languages
(Including Thai)

~Ricky


On Tue, Jul 1, 2008 at 3:32 PM, Kerry Thompson [EMAIL PROTECTED]
wrote:

 natalia Vikhtinskaya wrote:

  Thank you very much for this information. Can you tell more how Hebrew
  text managed in Flash in Israel now? Maybe there is a code that
  reverse all text? I tried to do that but without a success.

 Frankly, most software used in Israel these days is in English. Understand
 that Hebrew as an everyday language is a relatively recent revival--up
 until
 a few decades ago, it was the language of the Sacred texts, and used for
 worship, much as Latin was for the Roman Catholic church. In reality, Jews
 come from all over the world, and speak dozens of languages. There are even
 Chinese Jews--they live in China, look Chinese, but wear the yarmulke and
 study the Torah, and have for dozens of generations.

 Back to the software, no, there is not a code to reverse the text. In fact,
 Hebrew is not strictly right-to-left. It's what we call bi-directional, or
 bi-di in the localization world. Hebrew, Arabic, Farsi, and probably some
 other languages fall into this category. Native text is written rtl, but
 quotes from other languages, and often foreign names, are written ltr.
 Numerals, I believe, are also written ltr, which makes for some interesting
 programming when you're trying to decide if a . is a period or a decimal
 point.

 You can jury-rig Flash to display Hebrew (or Arabic, or Farsi), but it
 takes
 some work. As I mentioned, there is an Israeli woman who has done
 this--she's on this list, in fact--so I know it can be done. But I believe
 she had to break her text up into multiple text fields, and perhaps used a
 special font. It also helps to be brilliant as she is, but hard work is
 more
 the key.

 Or, wait for F10, which will support bi-di. I think it's in beta, so it
 can't be far off.

 Cordially,

 Kerry Thompson

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

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


Re: [Flashcoders] screensaver

2008-07-03 Thread John R. Sweeney Jr
AS2 or AS3 doesn't make a difference, since you are creating the .exe or
.app. ScreenTime Mdedia just talks to the registry, puts the .scr file that
will call your executable or if you choose to use the .swf, the user has to
have the player on their computer.

John


on 7/3/08 11:19 AM, quinrou . at [EMAIL PROTECTED] wrote:

 Hi all,
 
 I was wondering if anyone made any screensavers lately? And what piece of
 software you have used to bring their swf to a screensaver format.
 I remember using screentime about 2/3 years ago. I went back to the site but
 I can't find any information about whether the application take swf done
 with as3.
 Also I would need an app which make screensaver for both MAC and PC.


===
John R. Sweeney Jr.([EMAIL PROTECTED])
Interactive Multimedia Developer/
Digital Media Specialist

OnDemand - Interactive, Inc.
847.651.4469 (cell)  847.310.5959 (office/fax)
=== 

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


Re: [Flashcoders] screensaver

2008-07-03 Thread quinrou .
cool thanks for that. do you you know if you do mac's screensaver with it or
do you know any other ap that can?

thanks

On Thu, Jul 3, 2008 at 8:44 PM, John R. Sweeney Jr [EMAIL PROTECTED]
wrote:

 AS2 or AS3 doesn't make a difference, since you are creating the .exe or
 .app. ScreenTime Mdedia just talks to the registry, puts the .scr file that
 will call your executable or if you choose to use the .swf, the user has to
 have the player on their computer.

 John


 on 7/3/08 11:19 AM, quinrou . at [EMAIL PROTECTED] wrote:

  Hi all,
 
  I was wondering if anyone made any screensavers lately? And what piece of
  software you have used to bring their swf to a screensaver format.
  I remember using screentime about 2/3 years ago. I went back to the site
 but
  I can't find any information about whether the application take swf done
  with as3.
  Also I would need an app which make screensaver for both MAC and PC.


 ===
 John R. Sweeney Jr.([EMAIL PROTECTED])
 Interactive Multimedia Developer/
 Digital Media Specialist

 OnDemand - Interactive, Inc.
 847.651.4469 (cell)  847.310.5959 (office/fax)
 ===

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

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


Re: [Flashcoders] screensaver

2008-07-03 Thread Rich Shupe
Yes, Screentime is cross-platform, and is my preferred tool for the job.


On 7/3/08 4:02 PM, quinrou . [EMAIL PROTECTED] wrote:

 cool thanks for that. do you you know if you do mac's screensaver with it or
 do you know any other ap that can?

Rich
http://www.LearningActionScript3.com


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


Re: [Flashcoders] screensaver

2008-07-03 Thread John R. Sweeney Jr
Yes it does both platforms.

John


on 7/3/08 3:02 PM, quinrou . at [EMAIL PROTECTED] wrote:

 cool thanks for that. do you you know if you do mac's screensaver with it or
 do you know any other ap that can?
 
 thanks


===
John R. Sweeney Jr.([EMAIL PROTECTED])
Interactive Multimedia Developer/
Digital Media Specialist

OnDemand - Interactive, Inc.
847.651.4469 (cell)  847.310.5959 (office/fax)
=== 

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


RE: [Flashcoders] regexp question

2008-07-03 Thread Claudius Ceteras
Hi,

 is there a way of counting back from the end of the number and  
 inserting the comma (even without a regular expression)? if i 
 use the  
 g modifier in the regexp (so var pattern:RegExp = /000/g;), it will  
 only pick up the first 000 (and every multiple thereafter) 
 instead of  
 leaving the first 0 (which is expected behaviour but something i'd  
 like to get around)

How about positive lookaheads?

/(000)(?=(?:000)*[^0])/g

If you want this also to work for 1234567 = 1,234,567, you can replace
every 0 in the pattern with \d and call the replace function with ,\1
instead of ,000

This is untested, but should work... Let me know.

regards,

Claudius

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


[Flashcoders] Netstream fails to close

2008-07-03 Thread Barry Hannah
I'm trying to fix a bug in a video player.

Selecting a new video to play from a playlist, plays correctly but the
first clip's audio doesn't die.

I'm using NetStream.close(), it doesn't appear to work. It works if I
wait for the first clip to download fully, just not if I select a new
clip when the first is still loading.

 

HELP!

 

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