Ok, so can we verify that the variable value is available in js?
<%
dim video
video = request("video")
%>
<script language=javascript>
var jVideo = "<%= video%>";
alert(jVideo);
</script>
Once we know everything is happy in js land, then we can remove asp as part
of the issue.
Just to confirm, your passing.swf IS setup to handle the video varialbe and
will do what it needs to with the string to laod and display the video file,
yes?
BTW - if you are just passing the video variable in the querystring, the
swfobject already has a util function to grab the variable etc:
flashvars.foo = swfobject.getQueryParamValue("foo");
http://code.google.com/p/swfobject/wiki/api
Aran
On Tue, Aug 10, 2010 at 3:37 PM, Harry Hooper <[email protected]>wrote:
> This is the code above the <object> code
>
> <%
> dim video
> video = request("video")
> response.write(video)
> %>
>
> The response.write indicates that the correct parm is being read.
>
> I'm a newbie at this flash code but it seems that there might be a way
> to somehow declare a variable in the flash code. I have no way of
> doing that. I create a flash move from a MP4 movie with a free
> converter I found.
>
> I'm at my wit's end trying to figure this out. It seems like it
> should be so simple but I can't get it to work. I think I'm
> overlooking some simple thing.
>
> Thanx
> Harry
>
>
>
> On Aug 10, 8:19 am, Aran Rhee <[email protected]> wrote:
> > Well, that is not a client-side error, so there must be something in your
> > asp code....
> >
> > have you declared <%=video%> with a value somewhere?
> >
> > Aran
> >
> > On Sat, Aug 7, 2010 at 2:35 PM, Harry Hooper <[email protected]
> >wrote:
> >
> > > Tried that - got this error:
> >
> > > Server Error in '/' Application.
> > > Compilation Error
> > > Description: An error occurred during the compilation of a resource
> > > required to service this request. Please review the following specific
> > > error details and modify your source code appropriately.
> >
> > > Compiler Error Message: BC30451: Name 'video' is not declared.
> >
> > > Source Error:
> >
> > > Line 13: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> > > width="800" height="450" id="player1">
> > > Line 14: <param name="movie" value="passing.swf" />
> > > Line 15: <param name="flashvars" value="video=<%=video%>" />
> > > Line 16: <!--[if !IE]>--
> > > Line 17: <object type="application/x-shockwave-flash"
> > > data="passing.swf" width="800" height="450">
> >
> > > On Aug 7, 1:55 pm, Aran Rhee <[email protected]> wrote:
> > > > First of all, you are not using SWFObject on your page / code
> example. I
> > > > will assume you do actually want to use
> >
> > > > Have a brief (re)read of the documentation.
> >
> > > > If you want to pass data to the swf, then generally you want to use
> the
> > > > flashvars param. Below is a full code example (assuming that
> <%=video%>
> > > does
> > > > actually contain the string you are expecting)
> >
> > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> > >http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > > > <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
> > > > <head>
> > > > <title></title>
> > > > <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1"
> > > />
> > > > <script type="text/javascript" src="
> > >http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js
> "></script>
> > > > <script type="text/javascript">
> > > > swfobject.registerObject("player1", "7.0.0");
> > > > </script>
> > > > </head>
> > > > <body>
> > > > <div>
> > > > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> width="800"
> > > > height="450" id="player1">
> > > > <param name="movie" value="passing.swf" />
> > > > <param name="flashvars" value="video=<%=video%>" />
> > > > <!--[if !IE]>-->
> > > > <object type="application/x-shockwave-flash" data="passing.swf"
> > > width="800"
> > > > height="450">
> > > > <param name="flashvars" value="video=<%=video%>" />
> > > > <!--<![endif]-->
> > > > alt content here
> > > > <!--[if !IE]>-->
> > > > </object>
> > > > <!--<![endif]-->
> > > > </object>
> > > > </div>
> > > > </body>
> > > > </html>
> >
> > > > I suggest in future, you check out the swfobject generator. It helps
> you
> > > > make sure your code is all correct and ready to go:
> > >http://code.google.com/p/swfobject/wiki/generator
> >
> > > > Aran
> > > > <http://code.google.com/p/swfobject/wiki/generator>
> >
> > > > On Wed, Aug 4, 2010 at 12:31 PM, Harry Hooper <
> [email protected]
> > > >wrote:
> >
> > > > > I am able to post flash videos to my website as long as I can hard
> > > > > code the video filename into the <object> code. Like this:
> >
> > > > > <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="800" height="450" id="player1"
> > > > > align="middle">
> > > > > <param name="movie" value="passing.swf"/>
> > > > > <param name="menu" value="false"/>
> > > > > <param name="quality" value="high"/>
> > > > > <param name="bgcolor" value="#FFFFFF"/>
> > > > > <noscript><a href="http://www.dvdvideosoft.com/products/dvd/Free-
> > > > > YouTube-Download.htm">youtube video</a></noscript>
> > > > > <embed src="passing.swf" menu="false" quality="high"
> bgcolor="#FFFFFF"
> > > > > width="800" height="450" name="player" align="middle"
> > > > > allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
> > > > > pluginspage="http://www.macromedia.com/go/getflashplayer"/>
> > > > > </object>
> >
> > > > > I have a page that allows the video to be selected from a list that
> is
> > > > > populated from an Access database. I want the page to then call a
> > > > > generic flash page with an HTML parm of filename and have the
> single
> > > > > page display all the videos from my site. The parm is being passed
> and
> > > > > received but I can't get the flash player pick it up and play it.
> The
> > > > > value passed is being received in a variable named "video". I have
> > > > > tried:
> >
> > > > > <param name="movie" value="passing.swf?video"/>
> > > > > <param name="movie" value=<%=video %>/>
> > > > > <param name="movie" value=Request.QueryString("video")/>
> >
> > > > > etc. All with no success. I do understand that I need to put it in
> > > > > both the param line and also the embed line so that's not the
> problem.
> > > > > I have googled this subject and found several references to the
> <param
> > > > > name="movie" value="passing.swf?video"/> method but they were all
> very
> > > > > vague as to the method of reading the command line parm and
> > > > > transfering it to the param line.
> >
> > > > > Thanx in advance for any help.
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "SWFObject" group.
> > > > > To post to this group, send email to [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<swfobject%[email protected]>
> <swfobject%[email protected]<swfobject%[email protected]>
> >
> > > <swfobject%[email protected]<swfobject%[email protected]>
> <swfobject%[email protected]<swfobject%[email protected]>
> >
> >
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/swfobject?hl=en.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "SWFObject" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<swfobject%[email protected]>
> <swfobject%[email protected]<swfobject%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/swfobject?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en.