Discover & Rate New Music Check out ChartVote. Promote the music you like.

Flash Player 9.0.115.0 Sound Position Bug

I recently upgraded to flash player 9.0.115.0 and I’ve found that when “pausing” an mp3 and storing the song’s position when it was paused and then restarting the song with the position that was stored causes the song to play about 1.5 seconds ahead of where I stopped the song at? This was working fine with the previous version of flash. Anyone else experiencing this?

This bug manifests itself everywhere the new player version(9.0.115.0) is used including the Flash CS3 IDE, Internet Explorer and Firefox. I’ve done a quick search of the flash forums, but I have not seen anyone else with this issue.

I don’t think this is a browser issue since this bug is even reproduced in the actuall flash CS3 IDE. I believe this is an issue with the flash player itself.

Waste Time and Make Money with Moola

logo_moola.gif I started using Moola almost a year ago and I just recently picked it back up out or boredom. Basically Moola allows users to play flash based games against each other to make money. Users are forced to watch an ad before the game which is how moola makes its money. Every time you win a game your money is doubled.

LINK: Moola.com

Reasons not to use the file control on forms.

Its almost 2008 and the use of generic file controls on web forms are still in major use today. Why are we still using this old ugly technology when there are much better solutions?

Reasons not to use them
- They’re ugly
- There is no way to limit the file types displayed in the “Browse” window
- You can’t make them look good very easily as they lack alot of CSS support
- They’re ugly
- You can’t see how much of the file you have uploaded.
- No way to select multiple files to upload at one time without multiple file controls
- They’re ugly

Solution
There are multiple solutions, but the one I always use and is the most widely supported is using flash to upload files from a web browser. Using flash I can tailor the upload process to the site’s UI and design needs.

SWFUpload is a great premade script that allows you to upload files with flash.

Even though I avoid using the file control as much as I can, I still find it useful sometimes…sometimes.

Flash Video Player in ActionScript 3

You can find a flash video player on almost any website these days, the market is white hot for it. The past few months I have been porting my knowledge from Actionscript 2 to 3.

There are 2 ways to play an FLV file in flash either with a FLVPlayback component or VIA a Video object streamed and controlled with NetConnect and NetStream. I prefer the later because I like to have more "control" over things, but this is a personal preference.

CODE

ACTIONSCRIPT:
  1. var nc:NetConnection = new NetConnection();
  2.  
  3. nc.connect(null);
  4.  
  5. var ns:NetStream = new NetStream(nc);
  6.  
  7. var vid:Video = new Video(320, 240);
  8. this.addChild(vid);
  9.  
  10. vid.attachNetStream(ns);
  11.  
  12. ns.play("http://www.mydomain.com/mymovie.flv");
  13.  
  14. ns.addEventListener(NetStatusEvent.NET_STATUS, netstat);
  15.  
  16. function netstat(stats:NetStatusEvent) {
  17.       trace(stats.info.code);
  18. }
  19.  
  20.  
  21. var netClient:Object = new Object();
  22. netClient.onMetaData = function(meta:Object) {
  23.  
  24.     trace(meta.duration);
  25.  
  26. };
  27.  
  28. ns.client = netClient;

MySpace Flash Workaround Hack

Last year MySpace was attacked by a flash based worm which caused MySpace to disable links from flash including getURL by appending the following properties to your object tag:

HTML:
  1. <param name="allownetworking" value="internal" />
  2. <param name="allowScriptAccess" value="never" />
  3. <param name="enableJSURL" value="false" />
  4. <param name="enableHREF" value="false" />

Yeah now that sucks. You say: "What do I do now? My cool flash widget I've spent so much time working on doesn't work properly in MySpace! Ahhh!!"

Enter the Hack
Now this isn't pretty and I don't like having to do this at all, but it works. The solution is to add a relatively positioned div that hovers on top of your flash with a transparent gif thats linked to the page you originally wanted to link to from your flash.

Example Code

HTML:
  1. <embed src="http://www.yourflashmovie.com/file.swf" width="221" height="334" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
  2. <div style="width: 90px; position: relative; top: -38px; left: 65px;">
  3. <a href="http://www.whatyouwanttolinkto.com"><img src="http://www.domain.com/blank.gif" border="0" width="100" height="20"></a>
  4. </div>

Just set the size of the GIF to the size of the region you want to be linkable and position the div correctly over that region and voila...you have a MySpace flash workaround hack.

I've tested this in Firefox 2 and IE 7. Anyone care to test this in Safari 2?

Firefox Flash Bug UPDATE

This is an update to: http://www.findmotive.com/2006/10/02/firefox-flash-bug-update/

So far upgrading to Flash 9 and restarting Firefox has seemed to have fixed this issue. So far so good. I'll keep ya posted.

SWFUpload Beta Released

swfupload.jpg SWFUpload is a flash/javascript solution for uploading files VIA the web. I've always thought that uploading files via a form has been clunky. I was excited when I found this script that fixes this area. Not only can you limit which file types that show in the choose file dialog, it will also report on the progress of the upload. I've been using my own Flash based file uploader for Indiefy for sometime now and its great to see it packaged in an easy-to-use way for others.

Features
* Only display chosen filetypes in dialog
* Upload multiple files at once by ctrl/shift-selecting in dialog
* Trigger javascript functions on start, cancel, progress and complete
* Get file information/size before upload starts
* Style upload buttons any way you want
* Do progress-bars/information using valid XHTML and CSS
* No page reloads, display uploaded files as they are finished
* Works on all platforms/browsers that has Flash support.
* Degrades gracefully to a normal html upload form if Flash or javascript isn't available

Example

JavaScript:
  1. <script type="text/javascript">
  2.  
  3.     mmSWFUpload.init({
  4.         upload_backend : "../../upload.php",
  5.         target : "SWFUpload",
  6.     });
  7.  
  8. </script>

Check it out!

Indiefy Teaser

I have been quiet lately on here and I apologize for that, but I have good reason (well at least I think so). Indiefy is coming along nicely and I wanted to show off one of my favorite features of the site. The screenshot below is from the Arist Manager and shows the MP3 uploader in action. The uploader is built in flash and looks quiet sexy if you ask me. For those of you who don't know, flash has the capabilities to upload files to a web server. This gives you the ability to show a progress of the upload and gives the user a much more intuitive interface. That is one thing thats always bugged me about uploading files from a form, you never knew how much was left.


Screenshot
Indiefy Teaser

Flash loadSound auto-play bug in IE

I have a simple mp3 player that I have written in flash 8 that streams an MP3 file. The problem is this: When I view the player in IE and let the mp3 file completely download and reload the page, the sound does not auto-play like it should when using the loadSound() streaming option. This seems to be an issue with IE's cache. So far I have seen this issue in IE 6 and 7 on multiple machines when the cache is enabled. Firefox and flock work perfectly.

Follow these steps to recreate:
1. Go to http://www.findmotive.com/flashautostart/
2. Let the flash completely download the mp3 (You can tell by the green progress bar)
3. Refresh the page

When you refresh the page the green progress bar should show 100%, but it will not auto-play the MP3. To make it play you have to hit the pause/play button.

If I open the URL in a new window or tab then it will auto-play even when fetching the mp3 from the cache. Let me know if you have a solution to this. If I find the solution I will post it here.

IE ‘Click to Activate’ Flash Fix

Since Microsoft lost the patent battle between Eolas, IE has been required to display ActiveX plugins differently. This change now requires a user to click on the plugin for the user can interact with it. The plugin will still animate/play automatically, but user interaction is disabled until clicked.

A quick method of getting around this annoying problem is to write the flash to your HTML from an external Javascript file.

Example
- demo.htm

HTML:
  1. <title>IE Flash Fix Demo</title>
  2. <script language="javascript" src="flashfix.js">
  3. </head>
  4.  
  5. <div id="flash_container"></div>
  6.  
  7. <script language="javascript">
  8.  writeFlash('flash_container');
  9. </script>
  10.  
  11. </body>
  12. </html>

- flashfix.js

JavaScript:
  1. function writeFlash(id) {
  2.     document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='200' height='200' id='myflash' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='mymovie.swf' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='mymovie.swf' quality='high' bgcolor='#ffffff' width='200' height='200' name='mymovie' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
  3. }

You can view a working demo Here.

Another solution is to use SWFObject formely known as flashObject. SWFObject has alot of great features for embedding flash into your HTML including the ability to detect what version of flash a user's browser is running.

Check SWFObject out here

RSS Feed



Recommended Sites