[Flashcoders] Flash Hardware Video Encoders
We are doing a live webcast event and I am wondering if you guys have any experience/insight with hardware encoders that support Flash VP6 encoding. The ones I am looking at in particular are the XStream series from kulabyte http://kulabyte.com/index.php/main/product_xstream/ and the StreamZ Live encoders series: http://www.digital-rapids.com/Products/IndividualProducts/StreamZ%20Live.aspx Any insight on using Flash Media Encoder for a live webcast would be appreciated as well, Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Can you embed .mp4 files in timeline?
Hey, Just trying one more time Using Flash CS3 and publishing to flash player 9, can you import and embed .mp4 files in the flash timeline? I can't. I can link to it via an flvplayback component. Thanks, Matt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Pause/Play a swf
I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to start and stop scripted movie clips from any frame in the swf? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Pause/Play a swf
This is AS3. On Sep 24, 2008, at 8:58 AM, Jim Elmore wrote: I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to start and stop scripted movie clips from any frame in the swf? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Zipping in AS3
Hey Claus, one of the reasons I can't use it is because of its inability to work with a .zip file created on Mac OSX. The other reason, is that I've attempted to use it to write out a .zip file, and I can't get it to produce a valid .zip file. I've even tried loading in a .zip, and then saving it out directly, and that doesn't seem to work. I have only tested this with AIR, so I assume I don't need to be testing this with a .zip file that contains the Adler32 checksum. Do you have a working example of this working with FZip? If so, I'd love to take a look at it. Thanks! It is true that FZip can't read ZIPs created with the MAC OS X Archive utility, or any ZIP that makes us of data descriptors. For your other problem, i created a very simple Flex AIR app that tests roundtripping (creates a ZIP and loads it back in): http://codeazur.com.br/lab/fzip/examples/RoundTrip.mxml Works here.. And yes, in AIR the Adler32 limitation doesn't apply, so you should be able to load any ZIP (minus those that make use of data descriptors). You only need the injection hack if you use FZip in the plugin (and if i recall right Flash Player 10 is going to fix that but i didn't find the time to check). Cheers, Claus. http://codeazur.com.br/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Zipping in AS3
On Sep 24, 2008, at 9:57 AM, Claus Wahlers wrote: Hey Claus, one of the reasons I can't use it is because of its inability to work with a .zip file created on Mac OSX. AS3 Zip from nochump avoids the alder32 issue by implementing the deflate() mechanism in software. http://nochump.com/blog/?p=15 It's not as fast as the native bytearray methods though (which only works in AIR anyway). The only thing you might have to deal with is re-writing the parsing routines so that you don't get a script timeout error on large zip archives. I had to do this recently for a project. - jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can you embed .mp4 files in timeline?
No. Matt Ganz wrote: Hey, Just trying one more time Using Flash CS3 and publishing to flash player 9, can you import and embed .mp4 files in the flash timeline? I can't. I can link to it via an flvplayback component. Thanks, Matt ___ 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] Can you embed .mp4 files in timeline?
Thanks for your response, Steven. Any idea why you can't do it or is it just from personal experience? - Original Message - From: Steven Sacks [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, September 24, 2008 12:06 PM Subject: Re: [Flashcoders] Can you embed .mp4 files in timeline? No. Matt Ganz wrote: Hey, Just trying one more time Using Flash CS3 and publishing to flash player 9, can you import and embed .mp4 files in the flash timeline? I can't. I can link to it via an flvplayback component. Thanks, Matt ___ 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] Re: Flashcoders Digest, Vol 12, Issue 16
Jim, Do you want something like this? (movie_clip is the instance name) movie_clip.play(); movie_clip.stop(); movie_clip.gotoAndStop(x); // for scrubber --Dave Date: Wed, 24 Sep 2008 08:58:14 -0400 From: Jim Elmore [EMAIL PROTECTED] Subject: [Flashcoders] Pause/Play a swf To: Flash Coders List flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to start and stop scripted movie clips from any frame in the swf? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can you embed .mp4 files in timeline?
I posted the same question a while back after not being able to do it either. I just tried emailing Adobe to see if it is a CS3 limitation and will post any response I get from them. On Wed, Sep 24, 2008 at 12:53 PM, Matthew Ganz [EMAIL PROTECTED] wrote: Thanks for your response, Steven. Any idea why you can't do it or is it just from personal experience? - Original Message - From: Steven Sacks [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, September 24, 2008 12:06 PM Subject: Re: [Flashcoders] Can you embed .mp4 files in timeline? No. Matt Ganz wrote: Hey, Just trying one more time Using Flash CS3 and publishing to flash player 9, can you import and embed .mp4 files in the flash timeline? I can't. I can link to it via an flvplayback component. Thanks, Matt ___ 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
Re: [Flashcoders] Can you embed .mp4 files in timeline?
You just can't, Flash CS3 doesn't support the format. There's nothing else to be said. H264 support was added later, when the IDE had already shipped. Flash 9.x.115 supports it because it was added later, but the player is not the editor. Zeh On Wed, Sep 24, 2008 at 1:53 PM, Matthew Ganz [EMAIL PROTECTED] wrote: Thanks for your response, Steven. Any idea why you can't do it or is it just from personal experience? - Original Message - From: Steven Sacks [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, September 24, 2008 12:06 PM Subject: Re: [Flashcoders] Can you embed .mp4 files in timeline? No. Matt Ganz wrote: Hey, Just trying one more time Using Flash CS3 and publishing to flash player 9, can you import and embed .mp4 files in the flash timeline? I can't. I can link to it via an flvplayback component. Thanks, Matt ___ 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
RE: [Flashcoders] AS3 additions/changes in CS4?
OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. Jason Merrill Bank of America Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Tuesday, September 23, 2008 9:14 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 additions/changes in CS4? The language *was* changed, but very little. Check out the new and awesome vector type: http://probertson.com/articles/2008/03/28/vector-as3-strongly-typed-arrays-redux/ (Also read Francis Cheng's links on the article above) The rest (that concerns developers) are just API changes and additions - pixel bender shader support, simple 3d, new sound, new wmodes, new video formats... The language itself is unchanged, it's just the available classes that have changed. You can read about most of that here: http://www.kaourantin.net/ And heck, editors and compilers are already available. Zeh On Tue, Sep 23, 2008 at 6:12 PM, Juan Delgado [EMAIL PROTECTED] wrote: There's no AS3.1. What has happened is that Adobe has added new libraries or capabilities to the API, no change in the language itself. Cheers! Juan On Tue, Sep 23, 2008 at 9:52 PM, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Yes, because what I'm concerned about is having to jump from AS2 to AS3 to some sort of AS3.1. My migration to AS3 is taking much longer than expected, given my workload. I can't imagine the AS3 will be radically different, right? - MM -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, September 23, 2008 4:23 PM To: Flash Coders List Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Sorry - you said AS changes - my mistake. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Juan Delgado - Zárate http://zarate.tv http://dandolachapa.com http://loqueyosede.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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Problems creating a drag and drop
Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging(event:MouseEvent):void { trace(mouse up) // There is more function code I just didn't want to paste it all in. } Triggered by: for (i= 0; i aButtons.length; i++) { aButtons[i].mouseChildren = false; aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problems creating a drag and drop
Hi, It could be because your mouse up is outside the stage - I have had problems with that - search for MOUSE_LEAVE or something similar - it maybe on the stage object. Glen Lord, Susan, CTR, DSS wrote: Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging(event:MouseEvent):void { trace(mouse up) // There is more function code I just didn't want to paste it all in. } Triggered by: for (i= 0; i aButtons.length; i++) { aButtons[i].mouseChildren = false; aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problems creating a drag and drop
Hey Glen when you say your mouse up is outside the stage do you mean that the mouse up is occurring outside of the dragged object in which case the object catching the up event is the stage object. (Rest of your sentence seems to imply that.) Susan, if you imagine your cursor moving faster than the drag object can keep up then what happens is the mouse up occurs outside of the object but since there is no built in mouseUpOutside event you are going to have to build your own. If you google senocular as3 mouseupoutside you should get some good hits on tutorials explaining how to use the stage object to catch these mouse up events. hth, Rob On 24-Sep-08, at 2:55 PM, Glen Pike wrote: Hi, It could be because your mouse up is outside the stage - I have had problems with that - search for MOUSE_LEAVE or something similar - it maybe on the stage object. Glen Lord, Susan, CTR, DSS wrote: Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging(event:MouseEvent):void { trace(mouse up) // There is more function code I just didn't want to paste it all in. } Triggered by: for (i= 0; i aButtons.length; i++) { aButtons[i].mouseChildren = false; aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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] Problems creating a drag and drop
You might need to add the releaseOutside hack for AS3, since there is no releaseOutside anymore: http://www.kirupa.com/forum/showthread.php?p=1948182#post1948182 On Wed, Sep 24, 2008 at 2:43 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging(event:MouseEvent):void { trace(mouse up) // There is more function code I just didn't want to paste it all in. } Triggered by: for (i= 0; i aButtons.length; i++) { aButtons[i].mouseChildren = false; aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } Any ideas? ___ 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] Handling unsupported NetStream media files
Is there a way to be notified about unsupported media files loaded trough NetStream ? I mean, if you do something like trying to play an OGG file, is there any method of your NetStream object that would be called to signal can't do that ? --strk; () ASCII Ribbon Campaign /\ Keep it simple! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3 additions/changes in CS4?
Not sure what strongly typed arrays are. What are the advantages? OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Zipping in AS3
It is true that FZip can't read ZIPs created with the MAC OS X Archive utility, or any ZIP that makes us of data descriptors. For your other problem, i created a very simple Flex AIR app that tests roundtripping (creates a ZIP and loads it back in): http://codeazur.com.br/lab/fzip/examples/RoundTrip.mxml Works here.. And yes, in AIR the Adler32 limitation doesn't apply, so you should be able to load any ZIP (minus those that make use of data descriptors). You only need the injection hack if you use FZip in the plugin (and if i recall right Flash Player 10 is going to fix that but i didn't find the time to check). Cheers, Claus. http://codeazur.com.br/ Thanks Claus! Your example helps quite a bit. -Mac ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] parsing newlines in textdocuments
I think I would go for this: Replace the \r\n with \n and then split on \n. Greetz Erik On 9/8/08, Martin Klasson [EMAIL PROTECTED] wrote: Hi Coders, I am gonna to make a parser for the MicroDVD subtitle format, but I am not being able to find the documentation, yet a simple example for how it looks. but the problem I know I will have is how to parse a text-file that are having linebreaks, since they appearantly are different if the textfile has been on a mac/unix/windows I hope anyone here can point out for me how to deal with this. Why I am using the MicroDVD is that the time-codes is being in frames and not seconds, which will make it easier for the one producing the swf's which will be loaded as our movies, to be able to synch that together with the animations and so on. but any input is welcome of course! -- 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] addChild multiple instances of a loader
If img.jpg is on the same server as your swf, you wont have a problem. Otherwise you would need a crossdomain.xml. From the top of my head you could do something like this: function onLoadComplete(e:Event):void { var bitmap:Bitmap = Bitmap(_loader.content); var clone1:Bitmap = new Bitmap(bitmap.bitmapData); target1.addChild(clone1); var clone2:Bitmap = new Bitmap(bitmap.bitmapData); target2.addChild(clone2); } I am not sure if 2 Bitmap instances allow you to use the same bitmap data. If that is not the case you could just copy the bitmap data. This would however use more memory, so I would try the above thing first. Greetz Erik On 9/17/08, Fabio Pinatti [EMAIL PROTECTED] wrote: Hi all! I'm preloading some swf's and images, and I want use some same loaded instances for some movieclips. For example, I load a file img.jpg. and on complete of it, I want add the loaded bitmap to 10 movieclips. When I addChild, all movieclips are overrided and just the last one has the loaded content. With images I can use bitmap data for copying data, but and if I load swfs or whatever? I've googled but didn't find any clear, at least for me. Can you help me pls, gurus? , Thanks so much -- Fábio Pinatti :: web.developer www.pinatti.com.br :: 19. 9184.3745 / 3342.1130 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Problems creating a drag and drop
Thanks for the information. I think that may be part of my problem. I tried out the code on that site and Flash does not like the following circle.contains(event.target) If I take that out the code runs, but of course doesn't work. Does anyone know where I can find a good example on how to do a drag and drop in as3? I never had issues with this in 2. Thanks! Susan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt S. Sent: Wednesday, September 24, 2008 3:25 PM To: Flash Coders List Subject: Re: [Flashcoders] Problems creating a drag and drop You might need to add the releaseOutside hack for AS3, since there is no releaseOutside anymore: http://www.kirupa.com/forum/showthread.php?p=1948182#post1948182 On Wed, Sep 24, 2008 at 2:43 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging(event:MouseEvent):void { trace(mouse up) // There is more function code I just didn't want to paste it all in. } Triggered by: for (i= 0; i aButtons.length; i++) { aButtons[i].mouseChildren = false; aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } Any ideas? ___ 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] AS3 additions/changes in CS4?
- Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, September 24, 2008 8:44 PM Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Not sure what strongly typed arrays are. What are the advantages? Being able to type the array means not having to cast array members and detecting problems at compile time rather run time. OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. ___ 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] Pause/Play a swf
Yes it is, but, erm, it's really hard to answer your question because there is no one way to implement it and, I have no idea how your scripted movie clips are running themselves... If each of your sub movies has a function that starts/pauses the playback, then you can simply have the parent MC call the currently loaded scripted MC's pause/play function. Something like: Main clip: this.loadedClip.pausePlay() And inside of the sub movie (container): public function pausePlay ():Boolean { this.stop(); //do something to pause playback, in this case just 'stop()' but depending on how you wrote this code, it might be something else like resetTimer(); or ... return true; //if successful or if paused [depending on what you wan to //check when debugging] } Hope this helps a little. :) Seb. Jim Elmore wrote: I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to start and stop scripted movie clips from any frame in the swf? ___ 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] AS3 additions/changes in CS4?
The idea of strongly typed arrays is to catch errors at compile time that otherwise might crop up at runtime. Untyped: var arr:Array=[]; arr.push(new Button()); arr.push(123); for (var i:int=0;iarr.length;i++) { var b:Button=arr[i]; // Works fine when i=0. Runtime error when i=1; } Typed var arr:Array.Button=[]; arr.push(new Button()); arr.push(123); // Won't compile, as the compiler knows that things in arr must be Button var b:Button=arr[0]; var c:Number=arr[1]; // Won't compile, as the compiler knows that things in arr must be Button - See? In short, typing the array means that (as far as it is possible to do so) the compiler will ensure that the items you put into the array are of the correct type, and because it knows the type of objects stored in the array it will do strict type checking when retrieving values from the array. This is the same as generics in Java, C# or haXe and as templates in C++. (Why on earth the ECMA team decided on the odd Collection.type syntax rather than the standard Collectiontype syntax, I have no idea. The extra dot feels completely superfluous.) Hope that makes sense, Ian On Wed, Sep 24, 2008 at 8:44 PM, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Not sure what strongly typed arrays are. What are the advantages? OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. ___ 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] Problems creating a drag and drop
Hi, Have a look at this tutorial: http://www.monkeyflash.com/flash/drag-and-drop-in-as3/ You may want to be looking at / checking if event.target.dropTarget for the MOUSE_UP handler. This post gives you a better idea about MOUSE_LEAVE: http://www.ericd.net/2007/09/mouseleave-annoyance.html Basically, if your mouse leaves the stage area I would suggest dropping what you are dragging - look at the currentTarget of the MOUSE_LEAVE event for the draggee rather than target, which will be the stage. HTH Glen Lord, Susan, CTR, DSS wrote: Thanks for the information. I think that may be part of my problem. I tried out the code on that site and Flash does not like the following circle.contains(event.target) If I take that out the code runs, but of course doesn't work. Does anyone know where I can find a good example on how to do a drag and drop in as3? I never had issues with this in 2. Thanks! Susan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt S. Sent: Wednesday, September 24, 2008 3:25 PM To: Flash Coders List Subject: Re: [Flashcoders] Problems creating a drag and drop You might need to add the releaseOutside hack for AS3, since there is no releaseOutside anymore: http://www.kirupa.com/forum/showthread.php?p=1948182#post1948182 On Wed, Sep 24, 2008 at 2:43 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging(event:MouseEvent):void { trace(mouse up) // There is more function code I just didn't want to paste it all in. } Triggered by: for (i= 0; i aButtons.length; i++) { aButtons[i].mouseChildren = false; aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } Any ideas? ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 additions/changes in CS4?
Also autocompletion and member verification and such for IDEs like FDT and FlashDevelop since it already knows the type of each list item. It's a god-given once you get used to it. I've been using Vectors like there's no tomorrow on a particular project of mine and it's really awesome. Going back to arrays is just weird, feels like I'm going back to AS2. Zeh On Wed, Sep 24, 2008 at 5:58 PM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, September 24, 2008 8:44 PM Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Not sure what strongly typed arrays are. What are the advantages? Being able to type the array means not having to cast array members and detecting problems at compile time rather run time. OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. ___ 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] Re: Flashcoders Digest, Vol 12, Issue 16
Well, no. That stops the movie clip, but not a timer inside the movie clip. On Sep 24, 2008, at 1:16 PM, David Cohn wrote: Jim, Do you want something like this? (movie_clip is the instance name) movie_clip.play(); movie_clip.stop(); movie_clip.gotoAndStop(x); // for scrubber --Dave Date: Wed, 24 Sep 2008 08:58:14 -0400 From: Jim Elmore [EMAIL PROTECTED] Subject: [Flashcoders] Pause/Play a swf To: Flash Coders List flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to start and stop scripted movie clips from any frame in the swf? ___ 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] Pause/Play a swf
This is getting very deep for me. The movie clips have timers that would have to stop, and I don't know I would tell a timer to stop and resume that is running in another movie clip. Perhaps I've built this wrong. On Sep 24, 2008, at 5:03 PM, sebastian wrote: Yes it is, but, erm, it's really hard to answer your question because there is no one way to implement it and, I have no idea how your scripted movie clips are running themselves... If each of your sub movies has a function that starts/pauses the playback, then you can simply have the parent MC call the currently loaded scripted MC's pause/play function. Something like: Main clip: this.loadedClip.pausePlay() And inside of the sub movie (container): public function pausePlay ():Boolean { this.stop(); //do something to pause playback, in this case just 'stop()' but depending on how you wrote this code, it might be something else like resetTimer(); or ... return true; //if successful or if paused [depending on what you wan to //check when debugging] } Hope this helps a little. :) Seb. Jim Elmore wrote: I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to start and stop scripted movie clips from any frame in the swf? ___ 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] AS3 additions/changes in CS4?
Yeah, I get tired of doing this just to get code completion: var thisCustomObject:CustomObject = myObjects[i] as CustomObject; thisCustomObject.alpha = .5 Besides the obvious type checking benefits, with Vectors, I won't have to do it that way anymore to get good code completion from what I have read about them since the array knows the types it contains. From what I understand about them anyway, haven't had a chance to use them yet. Jason Merrill Bank of America GCIB Staff Support LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Wednesday, September 24, 2008 10:21 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 additions/changes in CS4? Also autocompletion and member verification and such for IDEs like FDT and FlashDevelop since it already knows the type of each list item. It's a god-given once you get used to it. I've been using Vectors like there's no tomorrow on a particular project of mine and it's really awesome. Going back to arrays is just weird, feels like I'm going back to AS2. Zeh On Wed, Sep 24, 2008 at 5:58 PM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, September 24, 2008 8:44 PM Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Not sure what strongly typed arrays are. What are the advantages? Being able to type the array means not having to cast array members and detecting problems at compile time rather run time. OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. ___ 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
Re: [Flashcoders] Pause/Play a swf
It's not that complicated once you get your head around it. If you can write a function that stops and starts your movie from INSIDE the movie, then you can call that same function from OUTSIDE of it, just by referencing the name of the MC and then the function you want to call. So break it into steps, to make it simple and thus achievable: 1. figure out how to start and stop timers 2. put that in a function 3. test the function w/i the MC by having it call its own function 4. put that movie in the holding MC and then do another test to call that function, see same results 5. skin your function in the holding MC as a button, interface etc. Good luck! Seb. Jim Elmore wrote: This is getting very deep for me. The movie clips have timers that would have to stop, and I don't know I would tell a timer to stop and resume that is running in another movie clip. Perhaps I've built this wrong. On Sep 24, 2008, at 5:03 PM, sebastian wrote: Yes it is, but, erm, it's really hard to answer your question because there is no one way to implement it and, I have no idea how your scripted movie clips are running themselves... If each of your sub movies has a function that starts/pauses the playback, then you can simply have the parent MC call the currently loaded scripted MC's pause/play function. Something like: Main clip: this.loadedClip.pausePlay() And inside of the sub movie (container): public function pausePlay ():Boolean { this.stop(); //do something to pause playback, in this case just 'stop()' but depending on how you wrote this code, it might be something else like resetTimer(); or ... return true; //if successful or if paused [depending on what you wan to //check when debugging] } Hope this helps a little. :) Seb. Jim Elmore wrote: I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to start and stop scripted movie clips from any frame in the swf? ___ 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