Can HTML affect embeded FLASH

I am trying to find out if there is any way to have the HTML
send informaion to the embedded FLASH file. I need to change 2
peices of information on the FLASH file when it loads on the page
(based on the page it comes up on.) Is there a way to have the HTML
send a message to FLASH that says use "pic_2.jpg" or a way for
Flash to look into the HTML to find its directive. Better yet, is
there a way to let flash know what file it is within, and search
the XML file based on the parameter of location? Please
help.

Hi adjourney,
External images should work in the same way (via flashvars).
You can do
this in a two step process as you suggested, or directly via
the
embedding variables. I'll assume you want the simpler of the
two so you
would do something like this:
The HTML embedding code would look like this:
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="354" height="63" id="myFlashThing" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="flashvars" value="imageFile=myImage.jpg"
/>
<param name="movie" value="flashFile.swf" /><param
name="quality"
value="high" /><param name="bgcolor" value="#cccccc"
/> <embed
src="flashFile.swf" quality="high" bgcolor="#cccccc"
width="354"
height="63" name="forumLogo" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false"
flashvars="imageFile=myImage.jpg"
type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
Notice that you need to include the file name two...once as a
"param"
and then again in the "embed" tag. This is done to compensate
for
differences between FireFox/Mozilla browsers and
InternetExplorer-style
browsers.
In Flash, getting the image file name couldn't be easier. In
ActionScript 2.0, this is simply available as:
_level0.imageFile
In ActionScript 3.0, this is available as:
this.loaderInfo.parameters.imageFile from the class that's
associated
with the main movie clip (the Document class).
Now you simply take this value and use a loadMovie or Loader
instance to
get your image.
If you wanted to specify an XML file and then some identified
within it,
the flashvar would look something like this:
xmlFile=data.xml&offset=5
And this would be received as two separate values in Flash:
_level0.xmlFile and _level0.offset (and the associated ones
for AS 3).
Of course this is a bit of overkill...if you're specifying a
file and
then hardcoding a link within that file...you might as well
specify the
file right off the top. But I guess that's up to you.
Good luck,
Patrick
adjourney wrote:
> It seems that through this I can change the text
contents, but what if I wish
> to point to an external image, and want to load that jpg
into an empty movie
> clip within Flash. How do I do that? I suppose I could
assign a value to a
> variable (say "image" = 5) and then look up the XML to
pull the variable (grabs
> image definition 5, and pulls the referenced image). Am
I on the right track,
> or am I shooting beyond capability (of my own I am sure
- but what of Flash)?
>
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to
new heights.
Download the BNMAPI today. You'll wonder how you ever did
without it!
Available for ActionScript 2.0/3.0.

Similar Messages

  • How can HTML call a Flash movie?

    Greetings Everyone!
    I'm sincerely hoping that someone has the answer for me. I'm
    a newbie, but trying so very hard to understand... :) I've read
    books, pages & pages of this forum, 'net searches - I haven't
    found a complete answer to my challenge so far - thanks in advance
    for any help you can give...
    Here's where things are:
    1) I've created a series of swf Flash movies that loop (at a
    particular size so they can play inside of an html table cell)
    2) I've created html buttons in another cell
    What I'm trying to do:
    1) Like a swap file in HTML (where you click a button and an
    image changes elsewhere on the page, click another button, and that
    image swaps to a different image file)
    I want to have a flash movie play on a click of a button, click
    another button, and a different flash movie plays in the same
    spot.
    The challenge is the interaction between Dreamweaver and
    Flash and getting HTML to talk to Flash.
    Here's the code direction I've been heading ...
    ...IN MY HTML code...
    I have a onMouseClick event for each button link. In this
    code I set some variable names inside it.
    onMouseClick="setFlashVariables('sendmovie','myMovie=activeMovie1')"
    ---- this would be for button 1.
    onMouseClick=
    "setFlashVariables('sendmovie','myMovie=activeMovie2')" ---- this
    would be for button 2
    onMouseClick
    ="setFlashVariables('sendmovie','myMovie=activeMovie3')" ---- this
    would be for button 3
    Basically, I'm setting a 'myMovie' variable to 'activeMovie1'
    or 'activeMovie2' or 'activeMovie3' when one of the buttons is
    clicked.
    If 'myMovie' variable is equal to 'activeMovie1' by clicking
    a link, this will tell a flash movie: (" Hey flash! Variable
    'myMovie' is equal to 'activeMovie1'. Act accordingly."). When the
    2nd button is clicked, 'myMovie' will be equal to 'activeMovie2'
    and so on.
    I need to declare the 'myMovie' variable in my flash movie -
    how do I do that?
    ...IN FLASH...
    1. I need to create one variable which will act as a variable
    receiver from HTML. (What I called "myMovie")
    2. I gather I need to create an IF statement so that
    "myMovie" is set to which "activeMovie" ( it could be
    activeMovie1/activeMovie2/activeMovie3 etc ) ,
    ----->Question:
    Where should the IF statement be and
    How should it be written?
    Admittedly I don't know Action Script 3 very well.
    if myMovie is equal to "activeMovie1"
    then load a movie. (This movie will be a movie related to my
    1 Button.)
    else if myMovie is equal to "activeMovie2"
    then load a movie. ((This movie will be a movie related to
    your 2 Button.)
    else if myMovie is equal to "activeMovie3"
    then load a movie. ((This movie will be a movie related to
    your 3 Button.)
    Here's where I'm stuck....
    1) If I've already made my movies into swf files where does
    an IF statement go?
    2) I'm missing the mechanics of how to connect the dots here
    - how do I get button 1 to load movie 1 and start playing
    automatically? When I click button 2, movie 1 is replaced by movie
    2 and starts playing automatically.
    It's a detailed explanation (I know) - I'm hoping someone has
    an answer for me that's equally explicit. Thanks so much much for
    taking the time to read it!!

    Anybody?

  • My embedded Flash video disappears when I relaunch MS Word

    I embedded a Flash video with a youtube URL into MS Word 2010 using the "more controls" button on the "developer" tab.  It worked perfect, exactly how I wanted it to, UNTIL . . . I saved and closed the document.  When I reopened the document, the embedded video was still there, but only as an invisible object.  I couldn't see it, let alone play it.
    I have replicated this in various editions of MS Word, on several computers, each time varying things like the location of the video (my hard disk instead of a URL), etc.  I also tried saving the document as "macro-enabled."  In every single case, the video works great when initially embedded, but once the file has been closed and then reopened, the video is still there but no longer visible, and therefore useless.
    Any ideas how I can make my embedded Flash video remain visible in my Word document, even after closing and reopening the document?
    Thank you!

    I suspect the best place for the question is over on the Microsoft Word forums, as you'll most like find a wider audience there that uses Word as HTML generation tool.

  • Embedding Flash in HTML using Dreamweaver - stopped working

    Hi all, not really sure what's going on, but I've done this many times before and it's worked fine.
    I've previously embedding Flash videos I've created in Premiere and/or converted using other software.  I simply drag and drop the Flash file where I want it and then adjust layout using code/design etc and that's it, job done.  It's always played back fine.
    Now for some reason I've tried doing it again this morning and can't figure it out.  When I preview the file it doesn't even show the video, but instead displays all the icons for the controls at once in a grid where the video is meant to be.  I've tried in IE, Firefox and Chrome, updated drivers, windows, Adobe, Flash etc all to no avail.
    I've even tried doing it in a blank HTML page in case some of the template I might have been using was interfering for some strange reason; still no luck.  What's even stranger is that a site I created last year is also now not displaying Flash (FLV) content locally, but is working fine on the server.
    Does anyone have any ideas?
    (CS5 Dw:V11 build 4993, Win7 64bit SP1)
    I've pasted the code from the blank HTML page.  It's probably something really simple that I've not noticed:
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="360" id="FLVPlayer">
      <param name="movie" value="FLVPlayer_Progressive.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="scale" value="noscale" />
      <param name="salign" value="lt" />
      <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;streamName=biblical_small _flash/Welcome&amp;autoPlay=false&amp;autoRewind=false" />
      <param name="swfversion" value="8,0,0,0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="640" height="360">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="scale" value="noscale" />
        <param name="salign" value="lt" />
        <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;streamName=biblical_small _flash/Welcome&amp;autoPlay=false&amp;autoRewind=false" />
        <param name="swfversion" value="8,0,0,0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    <script type="text/javascript">
    swfobject.registerObject("FLVPlayer");
    </script>
    </body>
    </html>

    Im' having a VERY similar problem with a few estra 'happy' moments. I have a blog (WP). On this simple and VERY basic blog (with almost NO plug ins) I have attempted to embed FLV videos with CS$ Dreamweaver code.
    (This code is different in CS$ than it was in earlier versions as it now calls to the FLVPlayer_Progressive.swf as the player and uses Flashvars to pass the value of the FLV. PReviously, it was four simple lines of code that pointed directly to the SWF)
    Here was my process - I encoded the files with AE and Media Encoder to end up with Transparent FLV's. These, I then setup in Dreamweaver so I could copy the embed code. On my first attempt, it worked PERFECTLY. I was testing one particular flv, got the code and inserted it into the blog page with some special CSS to position it.
    The movie played perfectly.
    Then things got weird.
    I was excited I had a solution, so I went to put another video on another page. No luck. The second page was playing the video from the first page. As if I had copied the same code, but I hadn't. I copied code that was 'pointing' to the new file, but for whatever reason, the new file would not play.
    I did EVERYTHING. I deleted all the pages and strted fresh. I deleted the FLV's and reuploaded them. I created different folders and put each flv in it and created index.html files for each (assuming possibly there was a hardcoded element in the FLVPlayer_Progressive.swf). I copied and pasted back and forth for nearly 6 hours.
    Nothing. Each time I would copy and paste code into a blog page, it would simply pull the original video.
    THEN....things got worse.
    I pulled one video off of the server, and now NONE work. I can't get ANY videos to play. Worse, I still have the 'express install' link showing.
    Ok, so here is what I am trying to figure out;
    Does the NEW DW CS4 code somehow have control over the file that is called? Further, HOW can I get more than one FLV to play across a whole blog site.
    Here is a link to one of the pages that HAS code but is calling NOTHING. And please know that I have left copies of the necessary files ALL over the server. So they are in the root, in the 'files' folder, in the talent folder and everywhere.
    Is there a conflict flash hits when there are multiple FLV's being called? Is there a way to do this? Please help....
    Thank you

  • HTML and how Flash can handle this???

    Hello everyone,
    A while ago now I  can across a component that you could place in flash and it would let you view html web pages from within flash. Now the  frustrating this is that i cannot remember where I saw it and what the name of the component was. Has anyone any ideas?
    Im working on an  embedded systems project using flash and there is a requirement to view html web pages from within Flash. I know there are a number of  third party apps that let you create a stand alone app, using flash, where you  can create virtual browsers. One application in particular that lets you do  this is SWFStudio. I have already been in touch with these guys and they do not  support embedded systems so does anyone else know of any third party application  that is supported on embedded systems, that will let you view HTML pages  using Flash?
    This is frustrating  the hell out of me so any help to ease my pain would be very much appreciated.
    Thanks in advance.

    Hi,
    Thanks for the link and as it would appear there is no solution to my problem. A real shame though as you would have thought adobe, in all thier wisdom, would have built this functionality into Flash. Maybe something to put onto the wish list for the future.
    Thanks again for your help.

  • Why can't I view embedded flash videos on my MacBook Pro?

    I can view videos on Youtube and embedded videos on some  sites, but when I try to view embedded Flash videos on sites like CNN.com and NBA.com, I just get a black rectangle and nothing loads. I've tried this on all browsers. BTW, I also cannot open up tinted ads that come up in Google searches. I have the latest version of Flash, and I've deleted browsing data and settings and have checked "Allow sites to save info." I've disabled pop-up window blocker. I have no ad blocking software. I've installed the latest Flip4Mac plugin. I have even set up a new user account and tried these sites with that account to see if the problem goes away (it didn't).
    I have a 12 inch 2.4 GHz Intel Core 2 Duo Macbook Pro with OS 10.8.3 installed (though the problem started when I still had Snow Leopard). I have all the latest browsers and , as I've said above, the latest Flash. I've tried both Java 7 and Java 6. I should also point out that I can access these sites without problem with my office Macbook Pro, which is a 15 inch Core 5, loaded with the same software I have on my problem 12 inch notebook.
    Any suggestions?

    You have JavaScript enabled in all the browsers, yes? Have you tried launch the browsers in Safe Mode?
    serviceberry wrote:
    I have a 12 inch 2.4 GHz Intel Core 2 Duo Macbook Pro with OS 10.8.3 installed (though the problem started when I still had Snow Leopard).
    Not aware of a 12-inch Intel MBP. Anyway, could you possibly have an old version of flash player on your computer too. Look in the In the Internet Plug-ins folder to be sure you have only one flash player plugin. Path is HD/Library/Internet Plug-Ins/Flash Player.plugin
    Also try searching your hard disk for flash.
    Some other things to try are in this thread.

  • Embedding HTML in a Flash site

    I'm trying to add the HTML code for a PayPal button to my
    website, but for the life of me, I can't seem to figure out how. Is
    there a way to add HTML to a Flash file, or even to a Flash
    generated button? Am I even making sense? I'm a complete
    programming newb, this website is my first project. Any help anyone
    can offer is greatly appreciated.

    You can set dynamic text fields to render HTML (though only a
    small subset of HTML tags are supported). You could also import the
    button graphics and make te button itself in Flash using a getURL()
    function to call the appropriate page when clicked.
    Hope that helps!

  • Can I display html pages in flash player

    Hi all,
    Can I display html pages in flash player, i mean swf. Plz
    help me if it can be done. Can I call html pages in flash (i mean
    in flash player no new window)
    Thanks

    hi,
    Actullay i want the site to be opened with in the flash
    player, just like iframe in dreamweaver calling the external site
    in the mail html page. Plz Help me accessing external site page
    with in flash player
    Thanks

  • Database that can automatically update ebooks w/embedded flash

    Hi I have a client who thinks it's possible to set up a database that will automatically update ebooks/pdf files with embedded flash so that manual translation between languages (e.g. english/norwegian/german/russian) can be avoided.  I'm trying to explain that translation is still a manual job, but perhaps there is a way?  Any thoughts?  Don't have a programming background, so any advice appreciated.  Tried to explain that setting up advanced databases on the web is in anycase an expensive proposition, they've only got around 100k to play with...any ballpark figures for mysql or similar with translation?  For a webcourse, with around 200 webpages...haven't actually seen or heard of it done myself, and have let them know it will be some 6-8 zeroes bet left to e.g. Cisco et al.
    Regards...would be helpful if you could come with some $/£ figures to let them know they're completely in left field...never heard of a database that could optimize pdf/ebooks on the fly between languages.

    Computer-aided translation isn't up to the task your client envisions.

  • How can I resize my Flash site to fit any screen resolution?

    I built a 100% flash site with tiled framing but I have a
    problem. My flash was built 766 x 750 pixiels. When viewed at
    resolutions greater than 1024x768 the webpage looks great but
    anything less than that it looks like @#$@. I know most people
    probably view at 1024 x 768. Is there anyway to auto resize based
    up on screen resolution or something to detect the screen size and
    adjust the webpage accordingly.
    www.platlimosvc.com
    Below is my html (index.html) for my flash movie:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Untitled</title>
    <meta http-equiv="content-type" content="text/html;
    charset=UTF-8">
    <link href="style.css" rel="stylesheet"
    type="text/css">
    </head>
    <body>
    <table cellpadding="0" cellspacing="0" border="0"
    style="width:100%; height:100%">
    <tr>
    <td valign="top" style="width:100%" height="750">
    <table cellpadding="0" cellspacing="0" border="0"
    width="766" style="height:100% " align="center">
    <tr>
    <td valign="top" width="234" style="height:750px ">
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swfl
    ash.cab#version=6,0,29,0" width="766" height="750">
    <param name="movie" value="flash/xxxx_main.swf">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <!--[if !IE]> <-->
    <object data="flash/xxxx_main.swf"
    width="766" height="750"
    type="application/x-shockwave-flash">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="pluginurl" value="
    http://www.macromedia.com/go/getflashplayer">
    FAIL (the browser should render some flash content, not
    this).
    </object>
    <!--> <![endif]-->
    </object>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign="top" style="width:100%; height:1px;
    background-color:#6C6C6C">
    <table cellpadding="0" cellspacing="0" border="0"
    style="width:100%; height:1px">
    <tr>
    <td valign="top" style="width:50%;
    height:1px"></td>
    <td valign="top" style="width:766; height:1px">
    <table cellpadding="0" cellspacing="0" border="0"
    width="766" style="height:1px ">
    <tr>
    <td valign="top" width="766" style="height:1px
    "></td>
    </tr>
    </table>
    </td>
    <td valign="top" style="width:50%;
    height:1px"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign="top" style="width:100%; height:100%">
    <table cellpadding="0" cellspacing="0" border="0"
    style="width:100%; height:100%">
    <tr>
    <td valign="top" style="width:50%;
    background:url(images/bottom-3.gif) top right;
    height:100%"></td>
    <td valign="top" style="width:766;
    background-image:url(images/bottom-5.gif); height:100%">
    <table cellpadding="0" cellspacing="0" border="0"
    width="766" style="height:100% ">
    <tr>
    <td valign="top" width="766" style="height:100%
    "></td>
    </tr>
    </table>
    </td>
    <td valign="top" style="width:50%;
    background:url(images/bottom-4.gif) top left;
    height:100%"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </html>

    tlcarl,
    > I know most people probably view at 1024 x 768.
    You think so? Even if they have their resolution that high
    (which is
    fairly standard, nowadays), do you think most people maximize
    their browsers
    to fill that whole area?
    > Is there anyway to auto resize based up on screen
    > resolution or something to detect the screen size and
    > adjust the webpage accordingly.
    There is, indeed. :) Check out the Stage.onResize event in
    the
    ActionScript 2.0 Language Reference. That event is dispatched
    when the
    browser (or whatever container) is resized -- in cases where
    the SWF is
    embedded with percentages. If that's your aim, you'll need to
    code against
    that event, which can be done like this ...
    http://www.quip.net/blog/2006/flash/how-to-position-movie-clips-browser-resizing
    It can take a bit of thought, depending on the complexity of
    your goal,
    but the result is usually worth it. The site in your URL is
    already built,
    so this wouldn't do much of anything without opening the
    hood, so to speak,
    and completely rebuilding the engine. A Flash movie has to be
    designed and
    programmed to respond to the Stage.onResize event.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Embeded Flash and Internet Explorer

    When try and access a page I have created with internet
    explorer composed of html with an embed .swf there is a white box
    that one has to click to then access the normal functions of the
    .swf. Is there any code to make it so this extra click to access
    the embeded flash does not have to happen? It does not happen in
    firefox or safari.

    Oh god .. here we go again .. Obviously someone has been
    living under a rock
    or on a deserted island for a few months :)
    This is due to Microsoft IE changes required to avoid
    infringing the
    (stupid) EOLAS patent. It applies to all Active-X control
    that can interact
    with the user.
    If you are viewing a web site, you cannot really do anything
    to fix it,
    except complain to the web master
    Here is a link to find information on how to fix your website
    to cope with
    the Active-X active content changes:
    http://www.justfuckinggoogleit.com?q=activecontent+IE+ActiveX+Change
    Jeckyl
    (If that does not redirect, just go to
    http://activecontent.blogspot.com)

  • Embedded Flash from Justin.tv on my website

    I am streaming a couple of ip camera's via Xsplit to Justin.TV. To show  the footage on my Joomla website I use the embedded flash code. My goal  is to show the video stream without any black bars above, under or at  the sides.
    I have two examples that work reasonable well:
    camera 1: resolution 640 x 480 => Xsplit setting 640 x 480 (4:3). On  my website I use the embedded flash code from justin.tv. and use  following settings : 600 x 480 (5:4) .
    camera 2: resolution 704 x 576 => Xsplit setting 704 x 576 (11:9). On  my website I use the embedded flash code and use following settings :  600 x 520 (15:13).
    Links for the footage:
    http://www.plett.tv/monkeyland-live.html (640 x 480) => jtv channel = monkeylandplett
    http://www.plett.tv/albergo-now-live.html ( 600 x 520) => jtv channel = albergolm
    My question is following:
    What happens on the way from Justin.TV to an embedded Flash video on my website.
    How does 4:3 become 5:4 and how does 11:9 become 15:13. What is the formula behind it? How does this work?
    I would also appreciate a pointer to a website that can explain this in layman's terms.
    Leslie

    Hi Chris,
    I expected an answer but my question has been on justin.tv and xsplit forum
    for two days. No reactions at all.
    Kind regards,
    Leslie

  • Embedded Flash in PHP - Need help!

    Hello everyone!
    We're having problems embedding Flash-files into our .php-files, so I thought the best place to ask for help would be the official Flash-forums :-) First of all, I'll let you know what exactly we're doing....
    We have a few flash-files which you should only be allowed to view once you're logged in and authenticated to our "portal". You can only view those files over some sort of JavaScript-Popup-Flashplayer thing (personally not too much into JS). The JS-Player requires the flash-files to be available over an exisiting URL (such as http://page.domain/flash/file.swf) - And this is where the whole problem begins...
    After hours of research and conversing with my collegues and the project-management, we decided to use the following technique to still keep those URLs for the JS-Player while preventing the user from simply accessing our "top secret flash movies" by typing in the URL in their browser...
    We move the Flash-folder to a location outside of our document root -> Flash-files can't be randomly accessed or downloaded via the URL.
    We use an Apache-plugin called "mod_rewrite" to rewrite/redirect URLs that look similar to http://page.domain/flash/*.swf to a PHP-file -> We can work with REQUEST_URI to see which flash-file the user wanted to view. Now, inside that PHP file we check wether the user is authenticated or not and either embed the flash-file into the PHP-file or redirect him to an error-page. In theory, the user could still view the flash-file over the URL (without even noticing PHP, since the URL stays http://page.domain/flash/file.swf, hence a perfect fake, no? ;-) ) and everything actually works exactly the way we wanted..........IN FIREFOX!
    Now we went live with our application and we had to realise that one of the only things we haven't tested in other browsers (this being one of them) don't work the way we want and instead of viewing/playing the film, we get to see a white window in the JS-Player, while it's trying to download a file called "filename_swf" (underscore instead of dot?) when you access the movie over the URL (http://page.domain/flash/file.swf).
    How we embed Flash into PHP:
    Headers + outputting the flash-files content....
    header('Content-Type: application/x-shockwave-flash');
    header('Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1');
    header('Cache-Control: no-cache, no-store, must-revalidate');
    header('Pragma: no-cache');
    echo file_get_contents($request);
    As I said, this works just fine in Firefox, however we're sure most of our users will be using IE, in which it doesn't work at all. I personally believe we're missing some sort of header or we have to set a different header depending on the browser...so I thought the best place to ask about Flash Headers would be the actual flash forums. Maybe I'm even totally wrong and missing out something crucial and someone can point me in the right direction...
    Thanks!

    Thank you for your help.
    I have uploaded the skin to the same directory as the video.
    It's now showing. Do I have to reference it on the code?
    http://www.custommlmleads.com/test.html
    skin :
    http://www.custommlmleads.com/VIDEO/SkinUnderPlaySeekStop.swf
    Thank you

  • Embedded Flash

    Hello,
    Looking for some insight here.
    I have embedded a Flash video on a web page (
    http://www.cirilloworld.com/gallery_test.html)
    and it works great . One thing i was wondering is that the palyer
    controls are visible ( with a nice amount of opacity) on page load.
    After the first time the mouse floats over, the controls disappear
    until athe mouse floats over again.
    Any one know what I can do to keep the controls visible at
    all times.
    Appreciate any help,
    DEL

    Harmeet S. Vohra wrote:
    > Hi,
    > If anyone know about embedded Flash. Plz. send me
    details asap. it's urgent.
    > Thanks
    Help - or F1 key, search "publish" and read away...
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Dailymotion embedded flash movie not working anymore

    I cannot seem to get Dailymotion embedded flash movies working. The movie is just a black screen. The same embedded movie on the same webpage works in windows. (Non-embedded) movies on the official Dailymotion site still works though.
    This happened only recently. I thought maybe it was a flash 10 issue, but after rolling back to flashplugin 9, the problem still remains.
    Does anyone has the same problem?

    Usually when a browser has an issue playing a Flash file it is due to the embedding code that is used in the html page.  Can you compare your code to another page's code to see what differences there are?  You should let Flash generate the embedding code rather than using some other software to do it if that is what you did.  Just have Flash publkish and html page, test that page in your various browsers, and if it works, copy/paste that code in place of what you have now.

Maybe you are looking for