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

[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

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,

[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

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

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

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

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

[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] 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

[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?

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,

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

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,

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

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

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.

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

[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

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();

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,

[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

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

[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

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

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

[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

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();

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]

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.

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

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

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 .

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

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

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.

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

[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