Solved

Flashvars and FLV

Posted on 2009-04-11
3
385 Views
Last Modified: 2013-11-11
I'm using Flash 8 and trying to pass a video path to a FLVPlayback component.  I've set the instance name to vendorVid and the actionscript looks like this:
vendorVid.contentPath = theFile

In my html code i have:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="480" height="307" id="heritage" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="michigan/vendorvids/heritage.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#333333" />
<param name="theFile" value="http://myserver/video/thevideo.flv/smil" />
<embed src="vendorvids/heritage.swf" quality="high" bgcolor="#333333" width="480" height="307" name="heritage" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="theFile=http://myserver/video/thevideo.flv/smil" />
</object>

It doesn't load.  If i copy the file path and put it right in the swf, the video plays fine, so it's something with the way i'm passing or retreiving the flahsvars...  but i don't know what it is.

Any ideas?  Thanks!
0
Comment
Question by:steverguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

by:john_hollings
ID: 24127013
Hi, couple of things.

Firstly, are missing the semi-colon at the end? (e.g.)

vendorVid.contentPath = theFile;

Second - I assume you are using AS2 and as far as I can tell this looks fine.  Can I suggest you make use of the trace() method to ensure that the flash variable is coming through.  Or add a dynamic text fields to your stage and send the variable to this text field, this way you will be able to clearly see if the path is coming though.  If there is any error it will be undefined.

0
 
LVL 8

Accepted Solution

by:
wal_toor earned 500 total points
ID: 24137366
Hello Steve,

Your param flashvars code is wrong. Use these instead:

<PARAM NAME=FlashVars VALUE="theFile=http://myserver/video/thevideo.flv/smil">

Hope this works for you.

greetz,
walter
0
 
LVL 1

Author Closing Comment

by:steverguy
ID: 31569164
Thanks, that was it. :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question