|
|
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.
|
|
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,
|
|
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>
|
|
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?
|
|
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
|
|
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
|
|
|
Guest |