RE: [Flashcoders] To Void or not to void?? That is my question..

2009-07-14 Thread Kerry Thompson
Karl DeSaulniers wrote: Using AS2. When is it best to use the :Void ? and what is the difference between that and :void ? You use void when a function doesn't return anything. In fact, there are some languages, like Pascal and, I believe, Fortran, that have that built in. In Pascal, a

Re: [Flashcoders] Playing an encrypted f4v

2009-07-14 Thread Sidney de Koning
Hi Carl, What i think i hear is that your client want their video only to be shown to certain people. If that is the case, you can check out this article by ted patrick: http://onflash.org/ted/2006/03/licensing-drm-and-flash-player.php Some other good info comes from here:

Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-14 Thread Eric E. Dolecki
void is good when you compile - if your method does not return something and you try to return something from the method, your compiler will complain which is good: private function foo():void { return true; } // 1051:Return value must be undefined. Also, if you define something being

Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-14 Thread Joel Stransky
If I remember correctly, in AS2, you need to write a complete function signature including the scope. Try including the scope on the functions that stopped working when you added :Void *public* function fName():Void { gotoAndPlay(2); } You can choose between internal, private, protected

Re: [Flashcoders] Getting hypertext to work

2009-07-14 Thread Joel Stransky
Just test it within a browser. On Tue, Jul 14, 2009 at 12:25 AM, Karl DeSaulniers k...@designdrumm.comwrote: Do you have your swf set to access local or network only in the publish settings? If you have your swf set to local only, it will generate this warning if you click a web url inside

[Flashcoders] Question on preventing this array[n] = 'whatever' on Array var

2009-07-14 Thread Jiri
Hello list, Lets say I have a class with a public getter to a private var which holds an Array. Some other class can do this then: var tArr:Array = class.myArray; I can then do this: tArr.push(int) and the content of the array has changed without the class knowing. This is in most cases I

Re: [Flashcoders] Question on preventing this array[n] = 'whatever' on Array var

2009-07-14 Thread Glen Pike
Sounds like you want to use a kind of Observer pattern: Can you wrap up your array class in something that implements the methods you want, ignores / passes on the stuff you care about and then notifiies listeners of any changes that you care about? Flex makes this quite easy with {watching}

Re: [Flashcoders] Question on preventing this array[n] = 'whatever' on Array var

2009-07-14 Thread Jiri
Thanx. Well i could extend Array and then override all the methods and have them dispatch events, like ON_CHANGE. Overwriting all the public mehtods is a pain, so I suspect i can use the flash.utils.Proxy for this. I just need to understand this utils.Proxy and flash_proxy thing. Could

[Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Paul Steven
Probably something really simple but can't for the life of me recall the syntax to change a particular character of a string. For example if I have the word Flash and want to change the letter a to an e, I was hoping there was a function like setCharAt(2, e); Btw I am coding in AS3. Thanks

[Flashcoders] Mouse Over animation not firing because my mouse is already over the object

2009-07-14 Thread zurie
I have a series of frames with navigation that covers the left 50% and right 50% of the images. When I click the navigation it fades 1 picture out and a new one in, but the mouse events are not firing the mouseover animations because my mouse is already over the button. I have to pull my mouse

Re: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Kenneth Kawamoto
trace((Flash).replace(/(.{2}).(.*)/, $1e$2)); // Flesh Perhaps not the answer, I know ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ Paul Steven wrote: Probably something really simple but can't for the life of me recall the syntax to change a particular character of a string. For

Re: [Flashcoders] Playing an encrypted f4v

2009-07-14 Thread Carl Welch
Thanks for that info. Actually we have a fully licensed version of the Flash Media Server, but to tell you the truth, We didn't care for how the video streams from the server. My client really needs to have smooth seek functions, plus want want to capture screenshots of frames using the bitmap

[Flashcoders] flash cs4 swf page combobox dropdown resize issue in flex 3 swfloader

2009-07-14 Thread Margo Powell
I apologize if this appears as a cross posting, I tried to post in flexcoders but have not seen it yet. Maybe it is still getting approved. My issue pertains to both flex and flash CS4. I have created a course player in flex that loads flash cs4 swf files using swfloader. This swfloader is

RE: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Robert Leisle
Does this not work for you? // Change the first instance only var myPattern:RegExp = /sh/; // Change all instances //var myPattern:RegExp = /sh/g; var str:String = She sells seashells by the seashore.; trace(str.replace(myPattern, sch)); // She sells seaschells by the seashore. Hth, Bob

Re: [Flashcoders] flash cs4 swf page combobox dropdown resize issue in flex 3 swfloader

2009-07-14 Thread Margo Powell
Sorry about the images not getting through. Pictures are worth a thousand words and you can view them at these links Combobox dropdown menu problem illustrated(http://nim.unc.edu/comboProblem.jpg) http://nim.unc.edu/comboProblem.jpg and here is the way I would like it to look within the

Re: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Paul Steven
Thanks Robert - yes I am able to replace patterns but just wondered If simple way to change a particular character in a string based on the character index? Thanks Paul Sent from my iPhone On 14 Jul 2009, at 18:10, Robert Leisle b...@headsprout.com wrote: Does this not work for you? //

RE: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Robert Leisle
Ah yes. I missed that part. How about this moderately less simple one using Kenneth's suggestion? function swapCharAt(s:String, index:Number, char:String ):String{ var ptrn:RegExp = new RegExp((.{+index+}).(.*)); return( (s).replace(ptrn, $1+char+$2) ); } trace( swapCharAt(Flash,

[Flashcoders] Export cuepoints from Premiere CS3 for use in Flash CS3.

2009-07-14 Thread Merrill, Jason
Have any of you ever used Premiere to create cuepoints (called markers in Premiere) and save out an flv for use in Flash? I created the cuepoints/markers with text for the captions and titles for chapters just fine, and thought it (Premiere Pro CS3) would export the XML along with the flv, but I

RE: [Flashcoders] To Void or not to void?? That is my question..

2009-07-14 Thread Merrill, Jason
Besides the compiler checking, specifying the return type is also good when you write code - enforces you to return the correct type and code correctly. Also helps apps like FlashDevelop know what the method returns, so great with code-hinting. Jason Merrill Bank of America Global

Re: [Flashcoders] Export cuepoints from Premiere CS3 for use in Flash CS3.

2009-07-14 Thread Karl DeSaulniers
I have used final cut for making my cue points, but I do not export to a flv from final cut when I do this. I first make a mov file with the cue points saved in it and then use the flash video encoder to import my mov file and create my flv. The encoder reads all my cue points and let's me

RE: [Flashcoders] Export cuepoints from Premiere CS3 for use in FlashCS3.

2009-07-14 Thread Merrill, Jason
Thanks - I'm an idiot - I had pathed to the wrong .flv file. Duh. I can read the metadata now produced in Premiere - it embeds it in the flv - doesn't support XML export like Soundbooth does. However, I seem to only be able to grab the following metadata from the MetadataEvent: private

Re: [Flashcoders] Export cuepoints from Premiere CS3 for use in FlashCS3.

2009-07-14 Thread Bob Wohl
Just throwing this out there, haven't messed with cue points in ages(thank god) ;) but have you looked at onXMPData? I believe it's only FP10+ http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WSD30FA424-950E-43ba-96C8-99B926943FE7.html#WS48F8E9DF-A81C-4838-84CF-5F04EB8541FE hth, B.

RE: [Flashcoders] Export cuepoints from Premiere CS3 for use inFlashCS3.

2009-07-14 Thread Merrill, Jason
No, thanks - but I also have to target FP9. Thanks though. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original

RE: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Merrill, Jason
Ah - after a lot more digging and testing, it seems Premiere Pro only embeds the marker's name, time, and type into the flv. It doesn't include comments or chapter data. Bummer! I wish they would put that in the docs. I guess it's over to Soundbooth and XML to do this... unless someone knows

Re: [Flashcoders] Export cuepoints from Premiere CS3 for use in FlashCS3.

2009-07-14 Thread Karl DeSaulniers
I believe what was happening with making the mov was that all that metadata was written to it and the flash video encoder was able to retrieve all the data, because, I was able to edit them, rename them, etc. Karl Sent from losPhone On Jul 14, 2009, at 4:05 PM, Merrill, Jason

Re: [Flashcoders] separating MouseEvent.MOUSE_UP from MouseEvent.CLICK

2009-07-14 Thread Karl DeSaulniers
Ahhh, spoke too soon. It worked on some, but not on others. funny thing is its almost identical code. just a difference in how long the tween goes for. Is it possible that my tween timing could nullify my callback Karl On Jul 13, 2009, at 1:51 AM, Jiri wrote: nice! Good luck. Jiri Karl

Re: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Karl DeSaulniers
I'm by no means a sales man for Final Cut, but I believe it does save that data. Not positive. Would have to test.  Karl Sent from losPhone On Jul 14, 2009, at 4:34 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Ah - after a lot more digging and testing, it seems Premiere

[Flashcoders] no more mac ppc for adobe?

2009-07-14 Thread Gustavo Duenas
Is adobe dropping the making of programs for the mac g5 ppc machines? I'm asking this because I've just downloaded the coldfusion builder beta and the flash builder beta(gumbo) and those are not going to run on g5 ppc machines , only for mac intel, is that the new direction of adobe or

Re: [Flashcoders] separating MouseEvent.MOUSE_UP from MouseEvent.CLICK

2009-07-14 Thread Karl DeSaulniers
Ok, am I missing something... ? This works, but starts playing the MC at the same time as the tween and not at the end. function formVisible():Void { this.quoteRequest_mc.gotoAndPlay(startQuote); } function showForm() {

RE: [Flashcoders] no more mac ppc for adobe?

2009-07-14 Thread Kerry Thompson
Gustavo Duenas wrote Is adobe dropping the making of programs for the mac g5 ppc machines? I don't know that Adobe have a company-wide policy. It seems to be more on a product-by-product basis, or perhaps across the CS suites. But yes, they do seem to be heading in that direction. I don't

Re: [Flashcoders] separating MouseEvent.MOUSE_UP from MouseEvent.CLICK

2009-07-14 Thread Karl DeSaulniers
Hmmm... looks like this works, wich is like a combonation of all of them. function formVisible():Void { this.quoteRequest_mc.gotoAndPlay(startQuote); } function showForm() { this.quoteRequest_mc.ySlideTo(quoteShowY,2.8,easeincirc,0,function () {formVisible();},20,.8); } Would

Re: [Flashcoders] no more mac ppc for adobe?

2009-07-14 Thread John R. Sweeney Jr
Since Apple is dropping support for the G5 PPC, I'm sure Adobe is following suit. John on 7/14/09 5:39 PM, Gustavo Duenas at gdue...@leftandrightsolutions.com wrote: Is adobe dropping the making of programs for the mac g5 ppc machines? I'm asking this because I've just downloaded the

RE: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Merrill, Jason
OK thanks, I appreciate your comments, but let me be clear, I am using Adobe Premiere Pro CS3, and I don't have a copy of Final Cut. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media

Re: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Karl DeSaulniers
Ah.. well that would make it difficult to use Final Cut to do that then.. I thought you might have that as an option. Sry for any misunderstanding.. Karl On Jul 14, 2009, at 9:19 PM, Merrill, Jason wrote: OK thanks, I appreciate your comments, but let me be clear, I am using Adobe Premiere

RE: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Merrill, Jason
Following up, I have a good solution. I figured out I can simply just put the captioning text in the Chapter field for the marker in Premiere instead and that works well. I can also insert XML with metadata to include additional information like offset positioning for the caption if I parse