Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Henrik Andersson
Off the display list does not mean not playing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
Ah - I remember reading about that - thanks, I'll give that a try. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
Ugggh - except that I can't publish to FP 10 yet - we're on CS3 (but moving to CS5 in a few weeks) Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
Off the display list does not mean not playing. Right, yeah, I understand that - sorry, I should have clarified that I am also stopping the video as well. My code does the following when a video is supposed to be removed before a new one is created and played: 1. The Flvplayback component

[Flashcoders] root.loaderInfo doesn't exist

2010-09-30 Thread Todd Dominey
Hi all - Have a weird situation in Flash CS5 and I'm not sure what the problem is, if it's a bug, or a corrupted FLA. Here's the scenario. I have two FLAs -- one brand new created by me, a second given to me by a client. In the first keyframe I have this in both: var keyStr:String; var

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) {

[Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread David Hunter
Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers.

Re: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread Eric E. Dolecki
Keep one spot someplace where you keep all your packages (yours and 3rd party). Then link to them there. If you want to use SVN, use that same spot. Keeps things uncluttered. For project work where you have lesser-importance or lesser-reusable code, slap those in your project directory to keep

Re: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread Henrik Andersson
That's the answer to the wrong question. The truth is that the option is exactly where you are looking, just look again. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread Merrill, Jason
Wherever you want. You need to specify class paths for projects in the Flash IDE. Eric gave some good advice. Probably wasn't a good thing you had those classes in an Adobe folder anyway. When you pass projects around, all the associated code should travel with it, so create a project

Re: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread Nathan Mynarcik
This should work in CS5 as well: http://screenr.com/EK4 Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 30, 2010 at 2:09 PM, David Hunter davehunte...@hotmail.comwrote: Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like

RE: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread David Hunter
thanks for all your prompt advice. i'm ok with keeping my own classes and packages local to the project. but i don't want to clog up my drive unnecessarily with the same tween engine over and over. i have tried putting a folder Flash_Packages in my Documents folder and linking to it in the

RE: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread David Hunter
got it working. forgot to package my test class properly! idiot. thanks for all the speedy and responses. From: davehunte...@hotmail.com To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] CS5 where to put tween engines etc? Date: Thu, 30 Sep 2010 18:39:11 + thanks for

Re: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread Zeh Fernando
It's much better if you keep all classes and libraries local to the project, even if it means 'clogging' up drive space with copies of the same thing. This ensures that A) projects are portable, as you can pack/move them all from the same source without having to care about dependencies; and B)

Re: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread Nathan Mynarcik
is the class you are trying to import inside the Flash_Packages/org folder? Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 30, 2010 at 2:39 PM, David Hunter davehunte...@hotmail.comwrote: thanks for all your prompt advice. i'm ok with keeping my own classes and

Re: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread Dave Watts
It's much better if you keep all classes and libraries local to the project, even if it means 'clogging' up drive space with copies of the same thing. This ensures that A) projects are portable, as you can pack/move them all from the same source without having to care about dependencies; and

Re: [Flashcoders] root.loaderInfo doesn't exist

2010-09-30 Thread Todd Dominey
Well, I'm going to answer my own question here for I found the problem. It's related to the new text field types in Flash CS5. Using the old 'classic' style of text field makes them behave the same way. It seems as though those newfangled text fields like to mess with all kinds of things. On

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Deepanjan Das
Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net.

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Deepanjan Das
Hi Jason, Try to close the stream after stopping the playpack. Cheers Deepanjan Das On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote: Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
Thanks, tried that too. Seems the problem occurs if the user goes to look at a new video before the previous video in the previous sprite starts playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From:

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Karl DeSaulniers
Hi Jason, Could you set the code that starts the new video to check for a boolean before playing a new video? I am thinking you may already have this. var isPlaying:Boolean = true; and set this when a video actually starts playing? Best, Karl On Sep 30, 2010, at 9:51 PM, Merrill, Jason

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
Could you set the code that starts the new video to check for a boolean before playing a new video? Well, thanks, but that isn't my setup. If I did that, then the new video would have to wait for the old video (now not on the screen, the user told it to disappear, but you still hear the

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Karl DeSaulniers
You might want to try to pause the video before stopping, unloading and reloading myVideo.pause(); That would stop the audio for sure. (I think) Best, Karl On Sep 30, 2010, at 9:55 PM, Karl DeSaulniers wrote: Hi Jason, Could you set the code that starts the new video to check for a

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Karl DeSaulniers
Right here, tell it to pause then continue with your list. 1 - 8. 1. The Flvplayback component instance is told to stop. 2. Any listeners are removed from Flvplayback component instance 3. The Flvplayback component instance is removed from container sprite's display list 4. The Flvplayback

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Deepanjan Das
Json, Your logic seems to be absolutely fine, which suggests that the stream is not getting closed even after deletion. This happens sometimes when the player might be bufferring. So at this time you might have stopped the video, but the steam is open, so when the buffering in the background

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
Also try setting the playback component to null on deletion. Yep, already doing that. I has a similar experience and that got solved only by being able to close the stream directly. Thanks. Did you see my note about that? I get a null error when I run that: if (_flvPlayback != null) {

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
You might want to try to pause the video before stopping, unloading and reloading Geez Karl, I think that might have fixed it... at least, since I added the pause() before the stop() and everything else, I cannot reproduce the bug... Stupid, you would think that calling flvPlayback.stop()

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
And for the archives or anyone listening, here is what my function looks like. I'm sure a few things might be overkill, but if it works, it works: public function destroyVideo():void { if (_flvPlayback != null) {

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Karl DeSaulniers
(** Karl does the happy dance **) On Sep 30, 2010, at 10:29 PM, Merrill, Jason wrote: And for the archives or anyone listening, here is what my function looks like. I'm sure a few things might be overkill, but if it works, it works: public function destroyVideo():void

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
UGhh,.. spoke too soon. Problem is still there. Though MUCH harder to reproduce than it was before. See anything that could be better in the code below? _flvPlayback.pause(); _flvPlayback.getVideoPlayer(0).close();//close the

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Karl DeSaulniers
Try pausing, stopping then closing. _flvPlayback.pause(); _flvPlayback.stop(); _flvPlayback.getVideoPlayer(0).close(); //close the netstream // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) _flvPlayback.removeEventListener(VideoEvent.READY,

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Karl DeSaulniers
Is this line supposed to start with a _ underscore? On Sep 30, 2010, at 10:47 PM, Karl DeSaulniers wrote: flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); Karl DeSaulniers Design Drumm http://designdrumm.com

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Karl DeSaulniers
Disregard that last email. sry On Sep 30, 2010, at 10:47 PM, Karl DeSaulniers wrote: flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders

RE: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Merrill, Jason
Try pausing, stopping then closing. OK I'll give it a shot. // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) Yeah, lol, there is no _flvPlayback.close() method, but there is an _flvPlayback.closeVideoPlayer(0); method - I'll try that too.

Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Karl DeSaulniers
If it is a stream issue, maybe try loading a blank dummy stream just before the actual new stream? That should clear any data. Karl On Sep 30, 2010, at 10:57 PM, Merrill, Jason wrote: Try pausing, stopping then closing. OK I'll give it a shot. // Maybe also replace the above line with