Dynamic rich media component for ASP.Net Flash, Video and Audio controls for C# and VB.Net
Welcome Guest Search | Active Topics | Members | Log In | Register

Use simple html play button to play mp3 songs using Java script API Options · View
Guest
Posted: Thursday, May 29, 2008 3:44:24 PM
Rank: Guest
Groups: Guest

Joined: 7/20/2007
Posts: 53,654
Points: 100,812
I am getting following error : ASPNetFlash.FindFlashMovie(....) is null or not an object. please help me ASAP.
Guest
Posted: Friday, May 30, 2008 5:37:40 AM
Rank: Guest
Groups: Guest

Joined: 7/20/2007
Posts: 53,654
Points: 100,812
Can you please check you have the latest version of the software?
And if so - can you please post more info or code.


We need more information to be able ot help,
Guest
Posted: Friday, May 30, 2008 7:42:22 AM
Rank: Guest
Groups: Guest

Joined: 7/20/2007
Posts: 53,654
Points: 100,812
I want to play track on simple html button click. but on button click i get following error message : ASPNetFlash.FindFlashMovie(....) is null or not an object. Please suggest solution

Following is code file:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Test" %>
<%@ Register Assembly="ASPNetAudio.NET2.AJAX" Namespace="ASPNetAudio" TagPrefix="ASPNetAudio" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<script>
function playTone(url,filename) {
var fName = filename
soundObject = ASPNetMedia.Audio("Audio1");
soundObject.StopMedia();
soundObject.LoadMedia(fName);
soundObject.onReady = function(object) {object.PlayMedia(); }
}
</script>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
<ASPNetAudio:Audio ID="Audio1" runat="server" AutoPlay="false">
</ASPNetAudio:Audio>
<input id="Button2" type="button" value="button" onclick="playTone('~/mp3s/3 Mourya Re- Don.mp3')"
/></div>
</form>
</body>
</html>
bdavis95765
Posted: Saturday, January 09, 2010 12:46:55 AM
Rank: Newbie
Groups: Member

Joined: 1/8/2010
Posts: 2
Points: 6
Location: Rocklin, Ca.
I'm having the same issue. Was this ever resolved?
GrandCruWine
Posted: Sunday, April 04, 2010 2:08:31 AM
Rank: Newbie
Groups: Member

Joined: 4/1/2010
Posts: 1
Points: 3
I'm having the same problem. Here is what I have discovered: the error "Line: 806
Error: 'ASPNetFlash.FindFlashMovie(...)' is null or not an object" only occurs when I click the PlayButton control *before* I have clicked anything in the playlist with the mouse.

I have tried the following, all to no avail:

1) Setting SelectedTrack in the <ASPNetMediaGUI:PlayList> control

2) Setting the "Track" property of the <ASPNetMediaGUI:PlayButton> control to "0" in both the .aspx file and in Page_Load() of the code behind

3) Setting SelectedTrack in the PlayList to 0 Page_Load()

I'm running out of ideas. I have a feeling this is just a bug in the code and there's no workaround.

Yes, I have the latest code, I downloaded all this stuff two days ago.

Thanks,

-Rob
Jake
Posted: Wednesday, April 07, 2010 4:45:24 AM
Rank: Administration
Groups: Administration

Joined: 7/26/2007
Posts: 676
Points: 1,728
Location: USA
Bug acknowledged.

in the mean time all i can suggest is:


Code:
MyPlaylist1.SelectedTrack = 0;
MyPlaylist1.AutoPlay = false;



Code:

<script>
function stopErrors() {
return true ;
}
window.onerror = stopErrors;
</script>





http://www.aspnetmedia.com
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.