Re: [Flashcoders] video seek ability

2008-12-10 Thread Muzak
If I'm not mistaken, there's a flaw in the logic, as the progress is based on bytesLoaded and bytesTotal, while the shuttle/scrubber is time based. Only the beginning and end of both will match up (0% loaded = 0 time -- 100% loaded = total time). Make sense? Most video players out there do it

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks
Keyword: Old. Hans Wichman wrote: ps we're probably not the first ones discussing this old subject, has n1 found some good sources/references? Most of the old CS textbooks sentence you to hell for using public variables so let's not refer to those ;)

Re: [Flashcoders] video seek ability

2008-12-10 Thread Steven Sacks
Make sense? bytesTotal = 100% * width; duration = 100% * width; bytesLoaded / bytesTotal = 0%-100% * width time / duration = 0%-100% * width The relationship between bytesLoaded and time is 1 to 1, which is why my scrubber logic is flawless. That's where you went off the track. Eek, a pun!

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks
And just to clarify: Stand on the shoulders of giants, don't follow in their footsteps. Steven Sacks wrote: Keyword: Old. Hans Wichman wrote: ps we're probably not the first ones discussing this old subject, has n1 found some good sources/references? Most of the old CS textbooks sentence

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
On Wed, Dec 10, 2008 at 4:01 AM, Steven Sacks [EMAIL PROTECTED] wrote: That being said, I don't abide by the retarded rule that you shouldn't have public vars in a class. People who do this private var _foo:Boolean; public function get foo():Boolean { return _foo; } public function set

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
In the programming languages used in the old CS textbooks, you didn't have the option to switch from a public property to a getter/setter pair without breaking the interface. Ian On Wed, Dec 10, 2008 at 8:23 AM, Steven Sacks [EMAIL PROTECTED] wrote: Keyword: Old. Hans Wichman wrote: ps

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks
Thankfully, AS3 allows you to put implicit getters and setters into an interface. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] colour and transform matrices

2008-12-10 Thread allandt bik-elliott (thefieldcomic.com)
Hi guys After a brief discussion with some of the devs where i'm working at the mo, i was wondering if anyone could point me at a decent tutorial for using and manipulating objects and colours using matrices. It seems to be one of those things that people only learn a teeny bit of but could be

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
For some vars, the bounds don't matter - so why not use a public? If they do matter, use getters/setters. The beauty of Actionscript is - to the designer - it doesn't matter or change anything. :-) And from your PoV, you can flip between either when you need to add (or drop) bounds checks. (Or

Re: [Flashcoders] colour and transform matrices

2008-12-10 Thread Hans Wichman
Hi, have you seen this one: http://www.quasimondo.com/archives/000565.php Or are you looking behind the math of it? greetz JC On Wed, Dec 10, 2008 at 12:25 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: Hi guys After a brief discussion with some of the devs where i'm

Re: [Flashcoders] colour and transform matrices

2008-12-10 Thread Vayu Robins
Dont know if this is what your looking for, but this guy does some nice work: http://blog.soulwire.co.uk/flash/actionscript-3/colourutils-bitmapdata-extra ct-colour-palette/ Cordially Vayu flashkompagniet.dk On 12/10/08 12:25 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote:

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread allandt bik-elliott (thefieldcomic.com)
any code amending outside the class can be avoided if you take the (self-imposed) rule that internal/private class vars start with a leading underscore but public ones don't - that way if you need to create getters and setters, you just create the class var with the _ and the get/set without On

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks
It is incredibly rare that I agree with Steven. I resemble that remark! ;) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Eric E. Dolecki
I usually take the private with getters and setters approach - I can check the bounds of the setting of the var. I am thinking more of designers here taking the code and using it than I am other developers. Although I have many times set up public vars that I tweak from outside the class(es) too.

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
I think we're saying the same thing there. :-) Such code amending is needed in languages like Java, because you can't go from a property to a getter/setter _without_ changing the interface. Which is why the Java getters and setters are used almost everywhere - like I said, it's programming in

[Flashcoders] flash player detection

2008-12-10 Thread Paul Andrews
I have a client with a flash site - targets FP 8, and works fine. I have FP10 installed. If I make a copy of the html wrapper and then try and access the site using the copy, the detection of the player fails. The html uses swfobject for player detection. Paul

RE: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Merrill, Jason
I tend to send this link on whenever this debate comes up, good article on public vars vs. getters and setters from a well respected Actionscript coder. http://www.darronschall.com/weblog/2005/03/no-brain-getter-and-setters.cfm And I also agree with Steve, Ian, the others, I used to be against

[Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi list, I was wondering how you handle your assets in version control. I usually follow a standard project setup something like: trunk branches tags The trunk contains for example sources, deploy, deploy/assets Now especially the assets folder tends to get very large. Each time I tag the

Re: [Flashcoders] flash player detection

2008-12-10 Thread Sidney de Koning
Is this a question or an announcement? Sid On Dec 10, 2008, at 3:31 PM, Paul Andrews wrote: I have a client with a flash site - targets FP 8, and works fine. I have FP10 installed. If I make a copy of the html wrapper and then try and access the site using the copy, the detection of the

Re: [Flashcoders] flash player detection

2008-12-10 Thread Paul Andrews
- Original Message - From: Sidney de Koning [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 10, 2008 2:47 PM Subject: Re: [Flashcoders] flash player detection Is this a question or an announcement? LOL, both. I'm wondering why the

Re: [Flashcoders] flash player detection

2008-12-10 Thread Sidney de Koning
Oke :) If you need documentation make FP 10 work with detection by swfobject, then this is good read: http://onflash.org/ted/2008/10/flash-player-10-update-your-detection.php Good luck paul, Greets, Sid On Dec 10, 2008, at 3:59 PM, Paul Andrews wrote: - Original Message - From:

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Hans Wichman
Hi, yep that was the article, but the original poster asked a subtly different question (unless I'm mistaken). allandt asked about implicit vs explicit getters setters. Darron talks about using public variables vs implicit no brain getters setters. First time I read that article I thought he

Re: [Flashcoders] flash player detection

2008-12-10 Thread John R. Sweeney Jr
I wondered the same thing :) John on 12/10/08 8:47 AM, Sidney de Koning at [EMAIL PROTECTED] wrote: Is this a question or an announcement? Sid === John R. Sweeney Jr.([EMAIL PROTECTED]) Interactive Multimedia Developer/ Digital

RE: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Merrill, Jason
yep that was the article, but the original poster asked a subtly different question (unless I'm mistaken). allandt asked about implicit vs explicit getters setters. Rereading it and seeing its about public variables vs implicit, it's a nice read ;). But another discussion:). Uh, I guess you

Re: [Flashcoders] flash player detection

2008-12-10 Thread Paul Andrews
- Original Message - From: Sidney de Koning [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 10, 2008 3:06 PM Subject: Re: [Flashcoders] flash player detection Oke :) If you need documentation make FP 10 work with detection by

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Hans Wichman
hmmm no guess I didn't, been pixelstaring too long already today;) On Wed, Dec 10, 2008 at 4:18 PM, Merrill, Jason [EMAIL PROTECTED] wrote: yep that was the article, but the original poster asked a subtly different question (unless I'm mistaken). allandt asked about implicit vs explicit

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
I apologise for being deviant. Oh, hang on... :-P Ian On Wed, Dec 10, 2008 at 3:40 PM, Hans Wichman [EMAIL PROTECTED] wrote: hmmm no guess I didn't, been pixelstaring too long already today;) On Wed, Dec 10, 2008 at 4:18 PM, Merrill, Jason [EMAIL PROTECTED] wrote: yep that was the

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Weyert de Boer
Oh, I just use GIT works really nice. Also see: http://gitcasts.com/ Hi list, I was wondering how you handle your assets in version control. I usually follow a standard project setup something like: trunk branches tags The trunk contains for example sources, deploy, deploy/assets Now

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Ian Thomas
Don't know how you've got your server setup, or which version control system you are using... We are using SVN. If you create a tag, it just creates an alias to the files, not a true copy; so the size in the repository doesn't go up by a huge amount. Are you keeping a local copy of all your

[Flashcoders] Web cam recognition

2008-12-10 Thread Juan Anzaldo
Hi! , do you know some good tutoriasl about webcam recognition? tnx! Ing. Juan Anzaldo Chihuahua, Chihuahua Tel Cel.614 427-6523 Nextel. 72*8*29809 Blog : http://janzaldo.wordpress.com ___ Flashcoders mailing list

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread allandt bik-elliott (thefieldcomic.com)
good roundup - thanks ^^ On Wed, Dec 10, 2008 at 5:31 PM, Joel Stransky [EMAIL PROTECTED]wrote: So lets see if I can sum up the consensus here. There are four techniques for accessors and mutators listed (imho) in order of suggested use. 1. *public vars * - probably the best

[Flashcoders] effects theory? keeping processes low...

2008-12-10 Thread Corban Baxter
Hey guys I am working on a fullscreen flash site. I am hoping to bring down the CPU cycles. Right now on the PC I'm using to test it on it runs high like 90%. I was hoping there might be a way to bring down the processor. But I have tried about everything. I'm not sure what I could do to get it

[Flashcoders] Problem with Forward and Rewind Buttons in FLVPlayback component

2008-12-10 Thread Andrew Murphy
Hello. I'm building a simple video player in Flash CS3 using the FLVPlayback component and the SkinUnderAllNoFullNoCaption skin. I can't seem to get the Forward and Rewind buttons to work. I've created an .flv, using the Flash Video Encoder, which includes a cue point every 10 seconds, but

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi, yep using subversion. I usually create the tag in my workingcopy, but on the server would be fine as well. We have one system though with some 500 small projects, all in a single repository, which are tagged before they are released. But the structure for that repository is like:

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread David Benman
Smaller projects we've done what you have. My understanding of SVN theory would indicate that making a tag shouldn't increase the size of your repository because a tag is just pointers to a version of a file, the file is not duplicated. Adding or changing assets does of course increase the

RE: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Patrick Matte | BLITZ
I missed the first part of this thread but I'd like to add that when you create an interface for a class, all your public properties should be getters and setters. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of allandt bik-elliott (thefieldcomic.com)

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Glen Pike
Hi, Is it your checked out repository which increases in size when you tag stuff, or is it your actual repo' on the server? Like the guy said before, a tag is just a snapshot of a revision - it should not exist in full unless you get it out of the repository - but I may be wrong...

[Flashcoders] AS2 cross-domain parent-child swf scripting

2008-12-10 Thread Ricky Blaha
*Background:* SWF #1 is published for Flash 8 / AS2 on domain name #1 and loads in SWF #2 (same publish settings) from domain #2. Both SWFs are created using Flash CS4 (I need to stick with these publish settings for this project) and I have tested this using Flash Player 9 and 10. SWF #1 needs

RE: [Flashcoders] Problem with Forward and Rewind Buttons inFLVPlayback component

2008-12-10 Thread Andrew Murphy
I figured it out: Need to use Navigation cue points rather than Event ones. 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

[Flashcoders] Simple ActionScript Project OOP Question

2008-12-10 Thread e319
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a package that I know works. It displays an Audio Player on the stage. I moved it from src/ to a folder for packages. The project builds no sweat. However, I do not see the AudioPlayer on the stage. The package is AudioBuilder. Here is my AS

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Ian Thomas
Hi Hans, Sounds like your problem is really that you're pulling all your tags from the repository to your local machines (in the repository, they're just links - on your local machine, they are actual copies). Maybe you need to reorganise a bit, or make sure your developers only pull out trunk?

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi, no only the checkout. At least thats how it should be, or its time to kill the sysadmin (for a variety of reasons;)). Maybe I'll wait a bit more for the filter option. Thanks to all who responded! Hans On Wed, Dec 10, 2008 at 8:40 PM, Glen Pike [EMAIL PROTECTED]wrote: Hi, Is it your

Re: [Flashcoders] Simple ActionScript Project OOP Question

2008-12-10 Thread Jordan L. Chilcott
Add the child to your Website sprite, rather than the stage. jord [EMAIL PROTECTED] wrote: I have a package that I know works. It displays an Audio Player on the stage. I moved it from src/ to a folder for packages. The project builds no sweat. However, I do not see the AudioPlayer on the

[Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Carl Welch
Hi again, I am trying to call a function to a parent of a movieclip. I've tried these two items that I found but to no avail: (this.parent.parent as MovieClip).callMedia(String(audio)); AND: MovieClip(parent.parent).callMedia(String(audio)); Am I missing something? I'm finding that

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi Ian, yes thanks thats helpful, but unfortunately especially in the way that there is no secret cool option (like ctrl-shift-1:)), I'm overlooking. I'm aware that SVN stores only links and that the size only becomes a problem in the local checkout, fact is the original layout was like you

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread strk
On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote: Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Matt S.
A decent explanation of Parent and how to use it (if you must) in AS3: http://joshblog.net/2007/07/12/disabling-actionscript-3-strict-mode-in-flash-cs3/ I'm not sure what Strk means about no free flash player supports AS3, since the last time I checked the ADOBE Flash Player was free... .m On

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Ian Thomas
On Wed, Dec 10, 2008 at 9:22 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi Ian, Doesn't tagging take an awful lot of time this way? No, not really. We only tag on release of a new version (not every build or anything), and the time taken is worth it. Ian

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Dave Watts
I'm not sure what Strk means about no free flash player supports AS3, since the last time I checked the ADOBE Flash Player was free... I would assume he means free software in the software libre sense: http://en.wikipedia.org/wiki/Free_software That said, I wouldn't take that as serious

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Glen Pike
Strk: Are you trolling or something, because you are seriously ill advised if you think that no-one is using a Flash Player that supports AS3. Carl: I don't think that you can easily walk up and down the display list in AS3 like you could in AS2 - as I don't think MovieClip has a

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Carl Welch
No free flash player supports AS3? Really? I'm not so sure about that. plus this project calls for some flash 9 specific imtems such as computeSpectrum and mp4 playback... There has to be a way to make a call to a MC's parent... isn't there? On Dec 10, 2008, at 2:00 PM, strk wrote: On

RE: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Barry Hannah
...no free flash player... I don't recall ever having to pay for the Flash player. I can't believe I'm asking this, but what _are_ you on about? *opens can of worms, stands back* Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Muzak
Latest and greatest? AS3 has been around since 2006. Whatever planet you've been on, welcome back to earth.. :-) - Original Message - From: strk [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 10, 2008 11:00 PM Subject: Re:

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Muzak
First you should probably ask yourself why you're using parent, let alone parent.parent. Try tracing both parent and parent.parent, see if what comes up is what you're after. regards, Muzak - Original Message - From: Carl Welch [EMAIL PROTECTED] To: Flash Coders List

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Carl Welch
thanks... I just tried this before seeing your reply... and it worked... YES! MovieClip(parent).callMedia(String(audio)); On Dec 10, 2008, at 2:14 PM, Matt S. wrote: A decent explanation of Parent and how to use it (if you must) in AS3:

RE: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Barry Hannah
Seriously, consider dispatching an event from the child, listened to by the parent. There has to be a way to make a call to a MC's parent... isn't there? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Ashim D'Silva
I'd say, if the freedom is troubling you in general, disable strict mode.Not a good solution if you want to do some real heavy stuff, but doesn't seem the case. 2008/12/11 Dave Watts [EMAIL PROTECTED] I'm not sure what Strk means about no free flash player supports AS3, since the last time I

[Flashcoders] Embedding bitmap/pixel fonts with pure AS3

2008-12-10 Thread e319
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using: http://pastebin.com/ded811b0 to embed my pixel font, but no errors and not working, displays as an ugly little default font. Any ideas? Purely AS3 please, no asset linking in flash please? :p - -e -BEGIN PGP SIGNATURE- Charset:

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Ian Thomas
Carl, .callMedia isn't a method of MovieClip. You need to cast it (using the 'as' operator) to whatever class you are defining callMedia in. Possibly your document class? (Don't know your setup.) (I'd also suggest you take a look at dispatching events rather than directly referencing the

Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Latcho
If your class extends MovieClip, it has to be added to that parent by means of addChild and (child.)stage should be true otherwise there isn't a parent-child relation. Latcho Carl Welch wrote: Hi again, I am trying to call a function to a parent of a movieclip. I've tried these two items