Re: [Flashcoders] MouseMove - performance issues
Hi Glen, are you using the updateAfterEvent method in your mouse move handler? private function mouseMoveHandler(event:MouseEvent):void { trace(mouseMoveHandler); event.updateAfterEvent(); } http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEvent.html#updateAfterEvent%28%29 otherwise i'd try a timer, i had to do this recently with some 3d stuff where startDrag refuses to work when something was rendered as 3d and using a timer was a good alternative. hope this helps some, Dunc Message: 18 Date: Mon, 01 Feb 2010 13:23:40 + From: Glen Pike g...@engineeredarts.co.uk Subject: [Flashcoders] MouseMove - performance issues To: Flash Coders List flashcoders@chattyfig.figleaf.com Message-ID: 4b66d5dc.6080...@engineeredarts.co.uk Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, I am noticing a performance issue creeping into my application todo with mouse movement. We have a touchscreen with custom sliders to control stuff via a few AS3 classes then an XML socket. The sliders use a thumb which applies an MOUSE_MOVE listener to the stage when the thumb receives a MOUSE_DOWN event and removes it when the stage / thumb gets a MOUSE_UP event. If someone moves the slider quickly, over a period of time, the screen update becomes more and more delayed and when you release the slider. it bounces around for ages after you let go, the longer and faster you move it for, the longer it takes to stop. Now some of this bottleneck is due to the amount of code that gets called each mouse move, which I understand. What I could do with does anyone have any tips or techniques for reducing the bottleneck or handling the mouse movement events differently. e.g. Do I need to start looking at ENTER_FRAME or timer based events, or something else. From what I understand, FlashPlayer will handle the mouse events as the OS sends them - the problem is not apparent on Windows running dual Xeon 5150's, but deploying on an AMD Athlon Dual core 5000+ running Gentoo + FP10 (10.0.32.18?) the FlashPlayer don't like it, no sirree. TIA. Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] BUG: channel.position doesn't work with mp3s
Hi Steven, this sounds similar to the sample rate bug, this one drove me absolutely bat shit. https://bugs.adobe.com/jira/browse/FP-33 someone in the thread provides some files that may be helpful to you, i didn't check them out so i can't verify, we just resampled all the audio files for our project, but this is breaking alot of legacy apps at the moment. apparently FP10 fixes this issue. hopefully this helps some, Dunc -- Date: Thu, 07 Aug 2008 18:53:50 -0700 From: Steven Sacks [EMAIL PROTECTED] Subject: [Flashcoders] BUG: channel.position doesn't work with mp3s below 128kbps To: [EMAIL PROTECTED],Flash Coders List flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Man I just keep finding more and more bugs with Sound. This one is actually really bad because it has no workaround, unlike the others. If you have an mp3 file that is less than 128kbps and you get its channel.position at a particular point in time and try to play from that position it jumps ahead in the file. The amount it jumps ahead is based on how far away it is from 128kbps (a 56kbps file will jump more than a 64kbps one). But wait, it gets worse. Even though it has jumped ahead in the track, the channel.position returns where it's supposed to be, not where it actually is!! That's right!! channel.position says it's at 5000ms but it's actually somewhere around 8000ms, etc. and so on. I'm updating the position in a TextField in an ENTER_FRAME listener. Wow. I mean, just, wow. 128kbps and up works just fine. Anything less and you've got a bug. I've discovered so many bugs in the Sound class in the last 12 hours, it's kind of disheartening. I'm losing faith in the Flash player team and in Adobe for letting this kind of stuff get through QA. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] BUG: channel.position doesn't work with mp3s
Very Interesting, thanks for the explanation Kerry... I'll admit I know very little about the this subject, I just pump out the files in a format that sounds acceptable, for me an mp3 with a sample rate of 22khz would exhibit the behavior within the bug report, FP9 and above ( have not tested in 10 yet ), whereas creating an mp3 file with a sample rate of 44khz worked perfectly. It's strange indeed. Again knowing very little about this subject one of the comments in that bug report noted by a Mr. John McGucken is that this also happens with Microsoft Visual Studio, and as he put it, and this is only his best guess: Microsoft Visual studio shows the exact same issue! Therefore, I would guess that the Flash Player is built using components from Visual studio (I.E. The MP3 play back and syncing). More concerning this would indicate that the issue actually lies with Microsoft and the Flash Player is exhibiting this abnormal as a result of this. Thanks again for the informative post. Dunc On Fri, Aug 8, 2008 at 12:10 PM, Kerry Thompson [EMAIL PROTECTED]wrote: Duncan Reid wrote: this sounds similar to the sample rate bug, this one drove me absolutely bat shit. https://bugs.adobe.com/jira/browse/FP-33 I've seen that bug report, and never quite understood it. It talks about 22 kHz mp3's, 11 kHz, and 48 kHz (?). Talking about kHz in mp3 files doesn't make sense, so I've never quite understood the bug. Let me explain--forgive me if this gets technical, but I've been involved in mp3 since the early 90s, when it came out of MIT labs, and before it was called mp3. When you create an mp3 file, you take some source audio and compress it, squeezing out sounds that can't be heard by the human ear. The lower the bit rate, the more sounds are squeezed out, including sounds you _can_ hear, until you get telephone-quality audio at the low end. But this has nothing to do with kHz, unless you are talking about the sampling rate of the source file, typically 44.1, 22, or 11 kHz. The sampling rate of the source file has a lot to do with the quality of the audio, much as the bit rate does in an mp3. A young person's ear can hear sounds up to about 20 kHz. For technical reasons I won't go into, digital audio sampling can record sounds up to half the sampling rate. That is, a sampling rate of 44.1 kHz (CD-quality audio) can reproduce sounds up to 22.05 kHz--a little beyond the hearing of a youngster (our ability to hear the high frequencies drops off as we age). A sampling rate of 22.05 kHz can reproduce sounds up to 11.025 kHz, which is good enough for ambient music. 11.025 kHz sampling rate is good enough for most speech--some of the sibilants we produce may go higher than 5 kHz, but speech is still reasonable quality at that rate. Now, you take an aiff, wave, or Red Book file at one of those sample rates, and run it through an mp3 compressor. Even at the highest bit rates, you will lose some sounds. It might just be the breathing of the audience, the quiet turning of a page by a violinist, or some of the highest overtones of the cymbal or snare, but, even with 44.1 source at the highest bit rate, you lose some sound. Mp3 is a lossy compression, so talking about kHz in the context of mp3 audio is meaningless. So, I have never quite understood that bug. Cordially, Kerry Thompson ___ 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] Jagged tweening images
Hi Sean, If the image is internal to your library you can try setting the smoothing option on the image itself. Right click image in library and check Allow Smoothing. This might help. Dunc On 9/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for the quick reply, but I should have mentioned that I ensured the scaling was 100% and all images were at pixel perfect positions. Also, the picture shear is extreme. It is clearly like a really bad refresh rate Maybe you scaled the image non-proportional, but you say it happened even with vectors. how does your image look like. are there fine linies at the edges? then you should prepare your image in a way that there is 1 or 2 pixel space to the edges of the borders. you should also ensure that your image (MovieClip) ends on exact pixel values (300 instead of 300.4) does it help? [EMAIL PROTECTED] schrieb: Hi all, I know this seems like such a newbie question, but for the life of me I can't fix it. I have a simple tween of a bitmap image from one side of the stage to the other. During this transition, it slices as it moves, going very jaggedy (I realise that's not a real word, but it's the best description I can give). I have tried taking the whole tween out of the project, into it's own dedicated FLA and running it in isolation. It still does it. I have tried using a vector square instead of a complex bitmap image. It still does it. I have tries going from a Mac to a PC. It still does it. I have tries adding extra keyframes along the tween. It still does it. I have tried to up the framerate (24, 30, 60). It still does it I wanted to up the refresh rate of the screens but neither of them allow me to do that and to be frank I won't be able to do that to a client's monitor so it's not really a solution. I know I never see this kind of behavior on any other site, no matter what size of graphic they are tweening and how far. What am I doing wrong? I have a sneaking suspicion that it's something so basic that I've forgotten it long ago. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Skewing text
chiming in a little late on this one... i need to preface the fact that i have not tried using these classes YET but this cat: http://lab.mathieu-badimon.com/ seems to have packaged up some nice stuff here: http://five3d.mathieu-badimon.com/ along with some documentation and a getting started guide. again, i haven't tried it yet but on the surface it looks like something you might be able to toy with... good luck, Dunc On 7/2/07, Hans Wichman [EMAIL PROTECTED] wrote: whether you screw or skew the movieclip that still wont be a perspective distortion:) On 7/2/07, David Ngo [EMAIL PROTECTED] wrote: Couldn't you just stick a TextField inside of a MovieClip then use a transformation matrix to screw the MovieClip? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Monday, July 02, 2007 2:17 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Skewing text I need to skew some text to give the impression it is going off into the distance (think opening text on Star Wars, though without movement). I know this effect can be done using the triangular method as used in Papervision. However I'm not creating a 3D scene here, I just want the skewing. Can this be easily done with Papervision, or can anyone recommend any other resource (AS2 only)? I understand the principles behind the technique, I just don't want to re-invent the wheel by implementing from scratch. The effect is not just skewing. It *is* 3d, in the meaning that the perspective is distorted because the middle points are moved away depending on the angle. So yes, your faster/best bet would be to use any 3d class such as Papervision3D. It should be fairly simple as you'll just need a rotated plane with the content of a movieclip projected on it. Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Slow Audio on Mac, but not PC??
Hi Jay, Just trying to help by clearing out the obvious here as i didn't see it stated in your post, but is the audio set to 'stream' or 'event'? I could be wrong but I thought that the player would in fact skip frames in order to keep up with the audio if it was set to 'stream' Other than that i've never seen anything like you describe below when the audio was set to stream... hope this helps some, Dunc On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote: I'm still trying to work on this slow audio thing: I've created a flash file with audio that follows text on the screen. but when I put it on the web, every time the page loads on a mac, the animation lags a bit while the audio is right on. however, I viewed the page on a PC this weekend and found that the audio and the animation were both in perfect sync the way they should be. what's the deal? when I test the movie and when I play the published file from my desktop, they play correctly. but as soon as I view it in firefox or safari on my mac (or anyone's mac for that matter) it gets off. is this a known bug? I've never really had it happen to me before. any suggestions? Jay ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Slow Audio on Mac, but not PC??
Hi Jay, If it's set to 'event' it will play pretty much independant of the timeline and if your machine is beefy enough to keep up with the animations while it's playing you probably wouldn't have noticed it. if you set it to 'stream' it will play at your movies framerate and skip frames to keep up with the audio if it has to, if the animations are too much. if you have it set to event now and switch it to stream you'll probably have to move some keyframes around to sync everything back up. the 'event / stream' settings are in the properties tab. click the first keyframe where the audio is, check to see if it's set to 'stream' or 'event' under the 'sync' option. I'm not sure what it defaults to, i vaguely remember it defaulting to 'event'. if this is in fact the issue your experiencing, you'll just have a little extra work on your hands moving some stuff around to sync up. hope this helps, Dunc On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote: Dunc, hey, the audio has just been dropped into the frames where I want it to start (event?)...should I change that to be brought in dynamically? I don't know why it would work correctly on a PC and not a mac, though... On Jun 18, 2007, at 2:41 PM, Duncan Reid wrote: Hi Jay, Just trying to help by clearing out the obvious here as i didn't see it stated in your post, but is the audio set to 'stream' or 'event'? I could be wrong but I thought that the player would in fact skip frames in order to keep up with the audio if it was set to 'stream' Other than that i've never seen anything like you describe below when the audio was set to stream... hope this helps some, Dunc On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote: I'm still trying to work on this slow audio thing: I've created a flash file with audio that follows text on the screen. but when I put it on the web, every time the page loads on a mac, the animation lags a bit while the audio is right on. however, I viewed the page on a PC this weekend and found that the audio and the animation were both in perfect sync the way they should be. what's the deal? when I test the movie and when I play the published file from my desktop, they play correctly. but as soon as I view it in firefox or safari on my mac (or anyone's mac for that matter) it gets off. is this a known bug? I've never really had it happen to me before. any suggestions? Jay ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] IE7 Crashing on FileReference.download()
I guess i'd start with a full uninstall / re-install of the player if you haven't had her try already. I know it's not much but a good starting point. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14157 On 6/7/07, Joshua Buhler [EMAIL PROTECTED] wrote: For 99% of our users, they can download images just fine via FileReference.download(). However, one user in particular is using IE7, Windows XP, and without fail, anytime FileReference.download() is called, IE will crash. Doesn't matter whether it's our site, or other sites that allow downloads that we've directed her to to test. Anybody see a similar problem, or have any ideas? She's using FP 9.0.45 - Josh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] OT: Extract flv metadata using php
I found these while searching for a way to insert cuepoint data into FLV via php, never did get very far though, I have not tried them myself, but if your a php guy i'm sure you will be able to get something useful out of them. http://blog.netxus.es/projects/flv4php looks like an flv module for getID3, it might very well be included, can't be certain though... http://getid3.sourceforge.net/source/module.audio-video.flv.phps hope this helps some, Dunc On 5/30/07, Brian Weil [EMAIL PROTECTED] wrote: Does anybody know how to extract flv metadata using php(without ffmpeg or other binaries)? I can do it on the client side with flash, but I'm generating playlists via php and I would like to include the duration of the movie in the playlist xml file. Thanks, Brian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] eolas fix for IE7
I noticed that too Matt, works in FF but not IE locally, try putting it on the webserver and testing it again, should work. On 4/3/07, Matthew Ganz [EMAIL PROTECTED] wrote: hi. i've tried implementing the eolas fix using the flashobject.js method and swfobject.js method and they both work for IE6 but not for IE7. is there a different fix needed for IE7? thanks. -- matt. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Take me off your list
Hi Blaine, scroll all the way to the bottom of this page, you will see the list owners email address, you can email him directly... http://chattyfig.figleaf.com/mailman/listinfo/flashcoders regards, Dunc On 3/16/07, Blaine Fisher [EMAIL PROTECTED] wrote: Sorry to spam the list, but I've unsubscribed three times now, and am still getting mail. It's not that I don't like the list, either, it's just too many messages filling up my Pending box. Hopefully someone who runs the list will read this, and will be kind enough to take me off the list. I would just add it to my Block list, but it's coming in showing personal e-mail addresses, not just the list one. Sorry for the inconvenience. -- Click to find great rates on home insurance, save big, shop here http://tags.bluebottle.com/fc/CAaCMPJkqsiygLlZthxXwyTAsCDmi7wu/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] how to know that thae video is finished?
I think the onComplete is only available via FMS, i think. There are a bunch of threads in the archives about this scenario but they can be difficult to find. Brian Lesser has some really good information on his site: http://echo.ryerson.ca/textPublisher/index.html /** * This function is assigned to the playing stream onStatus in place * of the default onStatus handler above. * It writes all info.code messages to the text window as well * but also detects when the stream ends and * changes the button back to Play and closes the stream. * A stream has ended when two things happen in order: * 1. NetStream.Play.Stop, followed by * 2. NetStream.Buffer.Empty */ NetStreamPlay_onStatus = function(info){ writeln(NetStream.onStatus info.code: + info.code); if (info.code == NetStream.Play.Stop){ this.seenStop = true; } else if (info.code == NetStream.Buffer.Empty this.seenStop){ this.close(); play_btn.setLabel(Play); publish_btn.setEnabled(true); this.seenStop = false; } else if (info.code == NetStream.Play.Start){ this.seenStop = false; } } Hank Williams takes a different approach: http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2005-February/131759.html if you have set a buffer for the video, the first approach doesn't always seem to work. Dunc On 1/18/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: yes very close When the video is finished ns.time=228.528 and duration=228.66; So ns.time=duration-0.5 give me good result. I don't know how flv was created. So this way allow me to find what I need. Thank you very much. 2007/1/18, Helen Triolo [EMAIL PROTECTED]: Does ns.time trace something close to duration, just not exactly equal at the end? If so, just check for = duration - somesmallamount (maybe to do with the buffer size) instead of ==. Is this a progressive or streamed flv, btw? I dug up this old flashcomm post from Brandon Krakowsky in case it's any use: I noticed that as well. I've never had good luck with NetStream.Play.Stop. I think part of the problem is that some FLVs never get to the very end of the file - maybe .5 seconds before the end. The other part of the problem might be the encoder you're using. Flash 8 Encoder vs. Riva vs. Flix. I avoid the whole thing by monitoring the playhead inside of a setInterval or onEnterFrame, and comparing it to the totalTime. This way, I never have to worry about those objects not firing. Once again, I DO run into the problem where the playhead doesn't get all the way to the end, so tend to look for the playhead to be .5 seconds from the end, or more. Seems to do the trick everytime. Of course, if you can, make sure the videos have a little extra something at the end so they don't get cut off. Helen natalia Vikhtinskaya wrote: So as I understand no way to determine that video is finished with NetStream object? 2007/1/18, Karina Steffens [EMAIL PROTECTED]: Sorry, it's bee a while since I wrote that script, so I forgot to mention that movie_flv in my code is an AS2 Video Playback component that has the movie attached to it instead of a simple movie clip. It's located in the components panel. You might want to try theVideo.playheadTimeinstead, but if that doesn't work, you could try using this component instead. Or better yet, if you're using Flash 8, try the new video component that Muzak mentioned (Flv Playback) which has a complete event. PS: I just saw Helen's post - that's definitely worth a try. Karina ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] history, bookmarks, etc within flash
I have not tried SWFAddress but i've heard good things. A friend of mine, Matthew Tretter, released his StateManager not long ago which i have used however, and it's been working quite well for me in a few different projects. So to give you more choices: http://exanimo.com/as2/StateManager hope this helps some, Dunc On 1/9/07, James Dean [EMAIL PROTECTED] wrote: I've been asked to implement back button functionality and possibly bookmarking for a flash project that I've been involved in, and I'm aware of a project from unfocus (http://www.unfocus.com/projects/FlashSuite/). basically, having the back and forward buttons in the browser respond to the flash movie rather than the browser's history. My question is if anyone is familiar with a better version than the unfocus method, or if there is currently a standard method for this functionality other than what is being used in unfocus. Ultimately i can incorporate the above. I am, however, looking for what is considered the best / most recommended method. ~james ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] scrollable dynamic text field
Hi Doug, I would recommend looking up and using scrollRect especially if there is a chance you will be scrolling through large amounts of text. i recall there being a nice scrolling example on ifbin (free and open now), created by guy watson, if i'm not mistaken. It involved scrollRect and filters... http://www.ifbin.com/ hope this helps some, Dunc On 10/17/06, Doug Tangren [EMAIL PROTECTED] wrote: Can I here some opinions on what all of your experiences have been with creating scrolling dynamic text fields and what are the suggested best techniques that don't involve using the default flash ui scrollbar? Doug Tangren [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FileReference + upload + larger files
Hello all, I'm running into a peculiar problem with the FileReference class and i've seen this problem crop up spurratically in my searches but can't find any definitive information on it. I'm inconsistently getting a script is causing Flash to run slowly dialog, if i choose not to cancel the script the upload continues, the dialog will come back, rinse repeat. But it's very inconsistent, this happens maybe 8 out of 10, at different points within the upload. It's not an IO, security or http error, all server settings are proper, files have rights, php is set to well over 500MB. It's just strange as it actually does go through sometimes. I've come across the technote on adobe's site which discusses the reasons why you might get this error and that confuses me even more since this doesn't happen consistently. I'm not doing anything fancy, no intervals, enterframes, for or while loops etc, just using the onProgress event to scale a bar for the users reference. These files aren't massive and i'm well below the suggested 100MB limit, files tested range from 30-50MB. This occurs on mac pc, firefox, safari, ie. Also using the latest Flash player, haven't tried in 8 yet. Also only uploading 1 file at a time not multiples using the FileReferenceList. Small files, 1-5MB go through without a hitch. Has anyone experienced this? I'm guessing there is no way around this other than modifying the timeout time within the swf using Buraks SWF ScriptLimits Injector but I'm hesitatnt to try that. Thanks, Dunc ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars
One thing you can try is to give your image an id so it's seen as a MovieClip within the textfield, then you can run a checker to see when it's loaded then redraw the scrollbar... img id='mcID' src='stuff.jpg' hspace='10' vspace='5' align='left' so to access it you would path: textfieldname.mcID. hope this helps some, Dunc On 9/20/06, Bbt Lists [EMAIL PROTECTED] wrote: Gustavo Teider - Adobe Flash Developer wrote: use setScrollTarget scrollbar.setScrollTarget(your_textfield); is this ? But how do you tell if the data is actually done loading? I mean for example, i have a field that loads a jpg in, and since the jpg takes a little longer, the scroll bars account for the text, but not hte image. And if I call redraw right after I call the data to be loaded, it seems to still be too soon. -- dnk ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FLVPlayback and SMIL
Apparently there is a bug in the FLVPlayback component when using SMIL files. I will admit i've never used them, but Robert Reinhardt, one of the authors of the Flash 8 Bible, has re-written the component to correct the bug. I saw a working version of it when i attended his session at Flash Forward Seattle a little while back. You can read more about it here and download the updated component. http://www.flashsupport.com/forum/topic.asp?TOPIC_ID=2372 good luck, Dunc On 9/19/06, Ryan Potter [EMAIL PROTECTED] wrote: Hello List. I have been racking my brain trying to get the FLVPlayback component to work with a smil file. I really can't find any good documentation on this and the Adobe docs are conflicting on how they describe how to do this. Does anyone have an example of this working (email offlist please)? Does anyone know of a good tutorial? I have been working on this for days. Here is the smil file that I am using: smil head meta base=rtmp://flv.world.mii-streaming.net/prime/flash/1/ / layout root-layout width=320 height=240 / /layout /head body switch video src=Robin_Lizzie_WebVP6_512K system-bitrate=512000 / video src=Robin_Lizzie_WebVP6_256K system-bitrate=256000 / /switch /body /smil Here is the connection error that I am getting: 1005: Invalid xml: URL: smil.xml No root node found; if file is an flv it must have .flv extension ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] bandwidth detection...
Hi Badi, Have a look at the first example on this page. I have not used this personally, but have looked at some of their other files and they are all well done. At the very least it may get you started. http://www.betriebsraum.de/blog/downloads/ good luck, Dunc On 9/16/06, badi malik [EMAIL PROTECTED] wrote: thanks greg... no, i'm not using FMS. I searched for bandwidth detection before, but came up empty handed...not that there weren't any articles, but none of them seemed quite what i was looking for at the time...i'll look again and see what comes up this time.. regards b - Original Message From: greg h [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, September 16, 2006 2:59:56 PM Subject: Re: [Flashcoders] bandwidth detection... badi, Am I correct that you are NOT using the Flash Media Server? (fyi ... bandwidth detection is a feature of FMS http://www.adobe.com/products/flashmediaserver/productinfo/features/#f-3-1 .) Normally I would suggest your cross posting your question on the FlashCommlist, but weirdly that list has been off-line for almost a month. In case it comes back up, you can find it here: http://chattyfig.figleaf.com/mailman/listinfo/flashcomm I googled the following: bandwidth detection flash and there are 11,300 matches, 46 of which are at Adobe.com. While you wait for others to post on this thread, you might want to check what you can find with a similar google search. hth, g On 9/15/06, badi malik [EMAIL PROTECTED] wrote: I'm wondering if anyone has any suggestions regarding bandwidth detection...i'm trying to choose between high and low bandwidth versions of the same video thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Fwd: Application Framework
Hi Jeff, I'm not sure how far along you are with the development of your project, but since you are natively more of a PHP guy it might not hurt to have a look at AMFPHP. It would allow you to bypass the XML layer and deal with more complex data types like RecordSets and what not. Just throwing it out there. http://www.amfphp.org good luck, Dunc On 8/31/06, Jeff Brown [EMAIL PROTECTED] wrote: Hello List. I'm a programer with a good background in PHP, Smarty, MySql, javascript and other web technologies. I'm working on an application that needs to blend PHP and Flash components together. Since I haven't touched flash since way back in the dark ages, I'm a little put off at the current interface. (Not in a 'I-hate-you' way, but more in a 'Will-this-do-what-I'm-thinking' way). Okay, this boils down to two different questions. Esentially the app is a database driven lookup engine. The PHP/Smarty will decide based on user input and business logic to display an item. The PHP templates need to write out the HTML/XHTML for a Flash component. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash/Actionscript Coding conventions
Not sure if anyone mentioned this but Simon Wacker wrote a nice article in April 05, ActionScript 2 Coding Standards: The Method. He also offers a pdf at the top of the article. Might be of interest. http://www.simonwacker.com/blog/archives/87.php Dunc On 8/22/06, Martin Wood [EMAIL PROTECTED] wrote: that lead me down some interesting paths...I didnt know there were 2 versions... Im still not a fan of that style of Hungarian notation but I can see the benefits of the 'original' : http://www.joelonsoftware.com/articles/Wrong.html you learn something new every day :) Mark Lapasa wrote: I find Hungarian Notation to work well in ActionScript 2.0 http://en.wikipedia.org/wiki/Hungarian_notation ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] OT: Need math help
I'm not going to pretend to know what you guys are talking about, but you may be able to garner some useful info from this Distort Image class... http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html dunc On 7/13/06, Danny Kodicek [EMAIL PROTECTED] wrote: I wonder if someone would be willing to help me off-list with a math problem or can refer me to a more appropriate person/list to ask this question: I have a photograph of a rectangle where the camera was slightly off-center and not parallel to the plane of the rectangle, so in the resulting photo, the rectangle is slightly distorted. I want to distort the image by repositioning the corner points of the photograph so that the interior rectangle is precisely positioned and sized. 1) I know the size of the photo, 2) I know the coordinates of the rectangle's corners in the photo 3) I know the coordinates where I want the rectangle's corners to be after the transformation. I need to know the new coordinates of the photo's corners to achieve #3. I don't know if you got the offlist answer you asked for, but it's probably a question worth answering on-list too. Basically what you need to do is to invert a transformation matrix. So you need to start by constructing the matrix M used to transform the original rectangle R = (0,-H,W,0) to the distorted rectangle: that is (using homogeneous coordinates (the kind used in Flash's own Matrix object)), M maps (0,0,1) to (x1,y1,1), (0,-H,1) to (x2,y2,1), (W,-H,1) to (x3,y3,1) and (W,0,1) to (x4,y4,1). This matrix *ought* to be given by: ( (x1-x2)/H (x4-x1)/W x1) ( (y1-y2)/H (y4-y1)/W y1) ( 0 0 1 ) I say 'ought' because if your camera has a non-parallel distortion, this matrix may fail to correctly transform the fourth point to (x3,y3,1). If that's true, there's no matrix that will work (all matrix transformations are affine, meaning they transform parallel lines into parallel lines). Once you have this matrix M, you can invert it to get M'(If you can't do that, I can explain how) and apply M' to the corners of your image to get your un-transformed rectangle. Best Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Creating Custom Documentation MXP
Hi Steven, With such a great subject line i think it would benefit the archives to share your results... thanks, Dunc On 7/10/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Nevermind, I found it. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Monday, July 10, 2006 6:52 PM To: Flashcoders mailing list Subject: [Flashcoders] Creating Custom Documentation MXP I've spent some time on google trying to find information and no luck. I'm looking for a pointer in the right direction on how to create custom documentation that would integrate into the Flash Help window installed via an MXP file. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash 9 Alpha - Components Panel Disabled
Yea i noticed that also. Wierd thing is they are in the directory: C:\Program Files\Adobe\Flash 9 Public Alpha\en\Configuration\Components same as flash 8: C:\Program Files\Macromedia\Flash 8\en\Configuration\Components but like you said, they seem to be disabled. Dunc On 6/28/06, Arul [EMAIL PROTECTED] wrote: Hi Guys, I just now installed the Flash 9 Alpha and noticed that the component panel is disabled. I could not make it work. Just wondering is it just for me or a common problem for all? Regards, Arul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] problems with dynamic text field autosize property
seems like thickness and sharpness don't effect too much but gridFitType definetely does, i'm glad you jumped into this conversation, never knew about that! dunc On 5/26/06, erixtekila [EMAIL PROTECTED] wrote: Use question.textHeight not question._height Are textHeight / textWidth accurate when used in combinaison with FlashType's thickness, sharpness, gridFitType… It don't seems to evaluate the extra sizes correctly. --- erixtekila http://blog.v-i-a.net/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] problems with dynamic text field autosize property
Hi Scott, I think it's one of those wait a frame type deals, either that or try question.textHeight. Dunc On 5/26/06, Scott Brantley [EMAIL PROTECTED] wrote: Hi Everyone, I'm having a problem with the dynamic text field autosize property. The problem I'm having is that I'm not catching the correct height of the textfield directly after the textfield is filled with text. In other words, I create a dynamic textfield and give it a set width and then I set all the properties (selectable, multiline, wordwrap, embed fonts, autosize, html etc). Then I fill it with html text and then I get its height. If you will look at my code below you can see that I have the variables a, b, and c all set to question._height. Every single time I test this and trace it in the output window I get a =34, b=92, and c=92 (92 is the correct height of the textfield). Does anyone have an explanation? The text I'm filling the textfield with is loaded from the data base way before this code executes. It seems that the code is faster than the textfield can fill up. Is there anyway to detect when the textfield has filled and autosized? test_mc.createTextField(question_txt, 1000, 0, 0, 385, 0); question = _root.test_mc.question_txt; question.selectable = false; question.multiline = true; question.wordWrap = true; question.embedFonts = true; question.autoSize = true; question.html = true; //flash is taking too much time rendering out this text question.htmlText = p align='center'font face='myVerdana' size='25' color='#FF'b+myHTML+/b/font/p; //the following is jerry rigged and needs to be fixed a = question._height; trace(a = + a); b = question._height; trace(b = + b); c = question._height; trace(c = + c); Thanks, Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Conversion to Flash 8 renders MP3 player useless
Hi Jonathan, I plugged this into the F8 IDE and set the publish setting to 7 / as2 and it seemed to work for me. The only thing that i can see in your code that stands out is the space after the url but i don't think that really matters much as it still seems to work... radio.loadSound(http://www.live365.com/play/signonsandiego/pro ,true); not much help I am guessing... Dunc On 5/4/06, Jonathan Berry [EMAIL PROTECTED] wrote: Hello all, I posted this a few days ago and just wanted to know if you could load it, but I found a problem that I do not understand. I just saved this file, which was previously MX2004, as Flash 8 in the authoring environment. I have exported for Player 7/AS 2.0, but for some reason it will no longer play in player 7. Can you see if there is anything in my code that would cause this? Thanks in advance. System.security.allowDomain(www.live365.com); var up:Boolean = false; var reloadInt:Number; function createLoaderText(output){ _root.createEmptyMovieClip(loader_mc,1000); loader_mc.createTextField(p_txt,1100,60,6,160,20); loader_mc.p_txt.text = output; var loadingFmt:TextFormat = new TextFormat(); loadingFmt.font = My Font; loadingFmt.color = 0xFF9900; loadingFmt.bold = true; loader_mc.p_txt.embedFonts = true; loader_mc.p_txt.setTextFormat(loadingFmt); loader_mc.onEnterFrame = function(){ if(up == false){ this.p_txt._alpha -= 5; if(this.p_txt._alpha = 0){ up = true; } }else{ this.p_txt._alpha += 5; if(this.p_txt._alpha = 100){ up = false; } } } } var radio:Sound = new Sound(); var volume:Number = 50; var marker:MovieClip = volume_mc.slider_mc; var volTrackFactor = volume_mc.track_mc._width/100; var stopped:Boolean = false; var trackLoaded:Boolean; var stopped:Boolean = false; vumeter_mc.stop(); function playRadio(){ if(!loader_mc){ createLoaderText(loading); } mute_mc.gotoAndStop(1); volume_mc.slider_mc._x = volume_mc.track_mc._x + volume_mc.track_mc._width/2 - 10; if (typeof radio == object) { radio.stop(); delete radio; } stopped = false; radio = new Sound(this); radio.setVolume(volume); radio.loadSound(http://www.live365.com/play/signonsandiego/pro,true); stop1_btn.enabled = true; stop1_btn._alpha = 100; play1_btn.enabled = false; play1_btn._alpha = 30; var lastPosition = 0; vumeter_mc.onEnterFrame = function(){ if(radio.position 1 stopped==false radio.position lastPosition){ lastPosition = radio.position; clearInterval(reloadInt); loader_mc.removeMovieClip(); vumeter_mc.play(); //delete this.onEnterFrame; }else{ if(!loader_mc){ createLoaderText(buffering); } vumeter_mc.gotoAndStop(1); } } reload(); } play1_btn.onRelease = playRadio; stop1_btn.onRelease = stopPlay; function stopPlay(){ delete vumeter_mc.onEnterFrame; clearInterval(reloadInt); loader_mc.removeMovieClip(); mute_mc.gotoAndStop(1); vumeter_mc.gotoAndStop(1); stopped = true; radio.stop(); play1_btn.enabled = true; play1_btn._alpha = 100; stop1_btn.enabled = false; stop1_btn._alpha = 30; } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] server-side convert to flv
Hi Mark, I recently setup ffmpeg on a shared host, i use Dreamhost, i believe it's Debian. It took me a couple days to track down all the information and quite a few compiles, i won't tell you how many, before i got it right. I'm also not really strong in this department either though so that might attribute to the amount of times i had to compile everything. You have to compile lame first then compile ffmpeg with lame if you want to output audio with your video. I use php as that's what is on my server but i'm sure it's just as easy to use anything else. I'm having a difficult time getting everything to work properly in a windows environment using apache but i haven't really had much of a chance to really dig in. Sönke has a nice little setup / tutorial that walks you through the setup of FFMPEG, LAME and a few others on windows... http://soenkerohde.com/tutorials/ffmpeg/ i documented my setup process on dreamhost thoroughly, not sure if that will be any help to you though.. Dunc On 4/11/06, Marc Hoffman [EMAIL PROTECTED] wrote: I'm interested in using ffmpeg. Having never used any server-side engines/scripting other than a little ASP, I haven't a clue how ffmpeg gets implented, and their website seems to presume advanced user knowledge. Can anyone steer me to something that explains how to implent ffmpeg? For instance, what kind of server, where does the code sit, what are some typical application scenarios and how were they put together? thanks, Marc At 09:04 AM 4/11/2006, Arthur Debert wrote: Hi Gerry Does anyone know of a server-side application to convert uploaded video in mpg, avi, mov or wmv format to flv? Something like what youtube.com is doing? I searched the archives and couldn't find anything. I don't know what youtube is using but, ffmeg (http://ffmpeg.sourceforge.net) is pretty good. I've been using it and it's scriptable. It's LGPL licensed. arthur ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Steps of colors
Hi Juan, If i created it i'd be more than happy to try to explain it, but truth be told i can't. This article by Grant Skinner will probably get you where you want to go, unless Andre graces us with his presence :-) http://www.macromedia.com/devnet/flash/articles/bitwise_operators.html Dunc On 4/4/06, Juan Anzaldo [EMAIL PROTECTED] wrote: Hi Duncan I already make this two functions and works well but I have to convert to string de value of the color and get the r,g,b´s values with the substring function. Seein your example its better because make the operations directly, but (as you can see in my code)I dont know how to work with hexadecimal values. Could you explain the next lines of code? or tell me where could I read a tutorial about progaming hex operations in AS. tnx a lot :) var c1 = {r:(c1 0xFF) 16, g:(c1 0x00FF00) 8, b:c1 0xFF}; var c2 = {r:(c2 0xFF) 16, g:(c2 0x00FF00) 8, b:c2 0xFF}; var r = (c2.r-c1.r)/(n-1); var g = (c2.g-c1.g)/(n-1); var b = (c2.b-c1.b)/(n-1); /*My functions*/ function sacaPasos(etapas,val):Array { etapas = etapas/2 var tI:Number = 0; var tS:Number = 255; var arreI:Array = new Array(); var arreS:Array = new Array(); var factI:Number = Math.floor((val-tI)/etapas); var factS:Number = Math.floor((tS-val)/etapas); for (var pa = 1; pa= etapas-1;pa++) { arreI.push(factI*pa); arreS.push(val+(factS*pa)) } var arreRegresa = arreI.concat(arreS) return (arreRegresa); } function aplicaPasos(colBase:String):Void { var R = parseInt(0x+colBase.substring(2,4)); var G = parseInt(0x+colBase.substring(4,6)); var B = parseInt(0x+colBase.substring(6,8)); var rA:Array = sacaPasos(p,R); var gA:Array = sacaPasos(p,G); var bA:Array = sacaPasos(p,B); var cade; for (var apl= 0; apl= rA.length-1; apl++) { var aplColor:Color = new Color(step+(apl+1)+_mc); var st = 0x; cade = Number(rA[apl]); st+= (cade.toString(16).toUpperCase().length== 1) ? 0+(cade.toString(16).toUpperCase()) : (cade.toString(16).toUpperCase()); cade = Number(gA[apl]); st+= (cade.toString(16).toUpperCase().length== 1) ? 0+(cade.toString(16).toUpperCase()) : (cade.toString(16).toUpperCase()) cade = Number(bA[apl]); st+= (cade.toString(16).toUpperCase().length== 1) ? 0+(cade.toString(16).toUpperCase()) : (cade.toString(16).toUpperCase()); aplColor.setRGB(st); _contene[step+(apl+1)+_mc].col = st; } } aplicaPasos(#C0C0C0); Ing. Juan Anzaldo Tel Cel. 614 427-6523 Blog : http://janzaldo.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Steps of colors
Hi Juan, I had a similar question last year and Andreas Weber provided a perfect solution: http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2005-February/131505.html Andreas Weber motiondraw.com hope this helps, Dunc ** On 4/3/06, Juan Anzaldo [EMAIL PROTECTED] wrote: I'm doing a class that manages a colors palette I want to select a color and know 10 steps from the color to White to the color I have this code that make a gradient from white to the color that I want and from this color to black --- createEmptyMovieClip(gradiente_mc, 10); var xi:Number = 301; var yi:Number = 0; var ancho:Number = 30; var alto:Number = 150; var fillType:String = linear; var alphas:Array = [100, 100, 100]; var ratios:Array = [1, 100, 254]; var matrix:Object = {matrixType:box,x:xi,y:yi,w:ancho,h:alto,r:90/180*Math.PI}; var spreadMethod:String = pad; var interpolationMethod:String = linearRGB; var focalPointRatio:Number = 0.9; dibuja = function(sColor) { var colores:Array = [0xFF,sColor, 0x00]; with (gradiente_mc) { lineStyle(1, 0x00) beginGradientFill(fillType, colores, alphas, ratios, matrix); moveTo(xi, yi); lineTo(xi+ancho, yi); lineTo(xi+ancho, yi+alto); lineTo(xi, yi+alto); lineTo(xi, yi); endFill(); } } dibuja(0x2B0A9E); -- It functions very good but I need just 10 steps from the color to white and each color stay in a movie clip like shows the figure because I need to use the colors for apply in others _mc's figure URL : http://201.131.19.21/administracion2/colores.gif tnx for your help Ing. Juan Anzaldo Tel Cel. 614 427-6523 Blog : http://janzaldo.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Browse folders from flash
I'm not sure if anyone mentioned this but have you looked at screenweaver? http://osflash.org/screenweaver I have not tried it myself, still using Zinc, maybe someone else has? On 3/21/06, Felipe Fernandez [EMAIL PROTECTED] wrote: Well, butI need directories on local machine, not in server machine Thanks, anyway On 3/21/06, Ettwein, Josh [EMAIL PROTECTED] wrote: You could use PHP (or whatever serverside lang you've got) to do a directory listing and use is_dir to build youreslf a list of directories. Pass that into flash using remoting/loadvars/xml/whathaveyou and display a list of dirs in flash with the full paths as properties of the dir objects you display. Clicking on one would allow you to grab that path var. Something like that, maybe? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Felipe Fernandez Sent: Tuesday, March 21, 2006 11:07 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Browse folders from flash Yes, I'm agree with you, Rich. I know about FileReference but FileReference works with files, not directories. Any suggest? Thanks all. On 3/21/06, Rich Rodecker [EMAIL PROTECTED] wrote: as far as I know you cant just select a folder...flash needs to create a FileReference object for each file in a directory, and it will only do that for each individual item that the user selected. Why they couldnt just create one for every file in a directory I don't know, but I would imagine it was a security concern. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FLV Encoders
Hi, I'm using Flix Pro and have no complaints so far, the interface isn't as pretty as squeeze, it kind of reminds me of cleaner XL. I probably won't go back to Sorenson Squeeze, throughout the dot updates for Squeeze 4 there were still various bugs that were never fixed although identified and acknowledged. These may be fixed now in 4.3 although i wouldn't know. Sorenson has support forums which were helpful in finding other people who had issues. Looks like flix now has support forums also. I've only had a couple Flix support issues and those dealt with install key issues being used more than once due to the fact they had released dot updates and were keeping score of how many times you had installed it but not taking into account they were releasing updates to the program. These support issues were cleared up the same day i sent the request plus they have a feature on their website now which will allow you to reset the install quota manually. I believe both have demo versions available, you might want to install them both and see which one feels right for you, they both basically do the same thing and i think in the end Flix Pro might be cheaper... Hope this helps some... Dunc On 1/27/06, Karthik [EMAIL PROTECTED] wrote: On 27/01/06, John Giotta [EMAIL PROTECTED] wrote: I've heard mixed feelings about all the products. We've used Squeeze at my company for the past year, but now I'm hearing the Flix Pro is good too. Thanks, I'll look into it :) Anybody who can confirm this? Cheers John, -K ___ 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] xml whitespace problem
you could try setting condenseWhite = true on the textfield that should get rid of the whitespace due to the linebreaks. dunc On 1/24/06, david kraftsow [EMAIL PROTECTED] wrote: i thought that could be the case too.. but then i took the CDATA brackets completely out but left the text.. so its just a floating text node now. it still does the same thing.. =( Helen Triolo wrote: Everything within a CDATA is read exactly as is, I believe -- that's the point of using it. whitespace is the whitespace between tags, not within a CDATA text node, so ignoreWhite shouldn't affect it. I think you'll have to butt your text content up against the [ and ] to make it read right. Helen ___ 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] Documenting my code
Not sure if this has been mentioned but there is also ZenDoc written in php that has multiple output modes based on templates, i've played a little with the demo and it looks promising, plus it's free and open as far as i can tell... http://www.senocular.com/projects/?project=ZenDocpage=demo Dunc ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Job Opportunity in Madrid (Spain)
Kathleen, You might benefit from starting a new thread. There are also some very good NYC developers listed here: http://www.flashcodersny.org/ Good luck, Dunc On 1/13/06, Kathleen E. Vitelli [EMAIL PROTECTED] wrote: Unfortunately, no, they do need someone on site sorry ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Scrolling Landscape by Mouse position
Maybe a little late here as your deadline was EOD yesterday but it might help out in the archives for later... It kinda sounds like your looking for a parallax scroller, if so there is a chapter from an FOE book here: http://www.friendsofed.com/books/1590592212/2212.pdf or an old source from flashkit: http://www.flashkit.com/movies/Effects/Eye_Candy/Parallax-Ashley_W-6442/index.php I also believe Eric Dolecki had one on his old site a while back... Dunc On 12/20/05, Kevin Aebig [EMAIL PROTECTED] wrote: Hey all, I've seen a few examples of a scenic landscape that is scrolled to view more by the mouse cursor and can't seem to find any references to them a la google. Does anyone have a clue where to find these sources or have an example handy? I've just gotten pinned by my boss to have this done by the end of the day, or I'd do it from scratch. Cheers, Kevin ___ 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] Flash buttons in Firefox don't work?
Hi Sascha, I've heard of things like this happening in FF if your using wmode=transparent in your embed. Dunc On 12/12/05, Sascha Balkau [EMAIL PROTECTED] wrote: Hi list, are there any known issues with buttons inside a flash movie doesn't work in the newest Firefox and Netscape versions? I've developed a Flash RSS ticker for a client where I have a dynamic textfield (which uses CSS) and over the textfield mc I have a movieclip which acts as a mask for the textfield mc and as a button. When the user clicks, the URL from the newsfeed opens. It all works flawless in IE/Win and Safari/Mac but the button doesn't work in the latest Firefox 1.5 and Netscape 7 and up. Any ideas why this could be? Thanks, Sascha ___ 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] .flv video problems on a Mac
Hi Alison, Maybe this will help: http://www.macromedia.com/go/3121b301 Dunc On 11/29/05, Woodage, Alison [EMAIL PROTECTED] wrote: Hi, I have a file that is loading .flv files dynamically and playing them back via a mediaDisplay component. The swf is packaged for flash player 7. Everything works fine except when run on a mac from a cd drive or network drive (it is fine from a local drive, eg desktop) when flash player 7 is installed. If the player is upgraded to flash player 8 the problem is resolved. Any ideas as to why this might be happening under flash player 7 and not 8. And a fix? This is the code I'm using to load flv: var netConn:NetConnection = new NetConnection(); netConn.connect(null); var netStream:NetStream = new NetStream(netConn); netStream.onStatus = function(infoObject) { status_txt.text += Status (NetStream): + newline; status_txt.text += Level: + infoObject.level + newline; status_txt.text += Code: + infoObject.code + newline; }; main_movie.attachVideo(netStream); netStream.setBufferTime(5); videoToLoad = ../video/+videoFileArray[videoNum]; netStream.play(videoToLoad); Thanks, Alison Woodage Lead Educational Programmer Centre for Learning Innovation 51 Wentworth Ave Strathfield 2135 02 9715 8389 ** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ** ___ 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