Control Flash from HTML (k)

I have a button in HTML that I want to use to control the
flash on the
page it sits on.
When the button is rolled over, I want to pass a variable to
the Flash
movie so that something happens.
How can I do this in Dreamweaver?
-Kirk

It's a stupid way of doing it, but I got it to work using the
FSCommand.
I send the user to a frame in the Flash movie. That frame has
the
variable set to the "On" state. I then have them go to
another frame for
the "Off" state.
-Kirk
W. Kirk Lutz wrote:
> I know that it would be easier. But I have a very tall
flash file of a
> floorplan. I have a legend for the floorplan that I want
to float in a
> layer so that when someone scrolls down the page, the
legend follows. I
> Can make a scroller in flash, but would prefer to try
and control Flash
> via HTML.
>
> I know you can pass a variable in HTML to flash, but if
it has to reload
> the page each time the user will be throwing their
machine out the window.
>
> Any way to control Flash?
>
> I've tried to send the user to a frame in Flash via the
FSCommand, but
> it doesn't seem to work. I have two scenes in my flash
file. A loading
> scene and the main scene. The FSCommand jumps me to the
frame in the
> loading Scene.
>
> -Kirk
>
>
> -->dan mode wrote:
>> It would be much easier to do the rollover button in
Flash.
>> Otherwise, you need a server side language that
would populate a
>> variable in the embedded swf code.
>>
>>

Similar Messages

  • Controlling flash in html.

    Here is my problem hopefully someone can help me.
    I need my swf to load a new level on a specific webpage url.
    There are a few ways I can think of doing this. (I am not a
    coder at all so bare with me)
    (a) inside flash a code that says this. If on www.webpage.com
    load swf on level 1000.
    (b) in html, I have no idea how to control flash, could move
    it to another frame. that would work. :)
    and I'm sure there is something I don't know. Please guys I
    am really stuck and need to figure this out.
    Any help is much appreciated. Thanks !

    Sounds to me like you need this:
    [quote]LOL, Adobe is definately paranoid... I can't write
    l-o-c-a-t-i-o-n in a post... so just remove the "-" in
    l-o-c-a-t-i-o-n below
    uh... maybe I'm completely wrong, but how about using
    ExternalInterface.call to access a Javascript function
    In HTML:
    <script type="text/javascript">
    function getLocation(){
    return(document.l-o-c-a-t-i-o-n.href);
    </script>
    From what I read you need to allow script access explicitly
    for this to work.
    <param name="allowScriptAccess" value="always" />
    In AS:
    import flash.external.*;
    String(ExternalInterface.call("getLocation"));[/quote]

  • Affecting Flash from HTML

    Hello, I'm trying to affect my flash movie from HTML. For
    example, if I have a google adsense module, and I want to trigger
    something in flash each time that link is hit, how would I go about
    doing that?
    Any help would be much appreciated!

    You would have to use a frame.

  • Pass image name and path to flash from html

    Hello Flash Forum,
    I would like to use Flash to display a larger image in an
    HTML page that opens on top of a window with
    thumbnail images. The thumbnail page will be a php page. If
    the user clicks the thumbnail, I would like to open a swf that
    diplays the larger image. I would like to pass the path and name of
    the image to display to my swf. It would open a browser page (or
    just a swf file) over the thumbnail page. The use could then close
    the larger image display, and click another thumbnail, etc.
    How could I do this? I have a swf file that will display the
    image, but I would like to pass the image name from outside the swf
    file.
    Thanks for any tips,
    eholz1

    Hello jpsoul,
    Thanks for the suggestion. I did see some info on the query
    string aspect. I will take a look at the JavaScript
    external.ExternalInterface class as well.
    Thanks again,
    eholz1

  • Separate Flash from HTML

    Hi there,
    I've gotten a question actually and I haven't found any
    answer yet.
    How can I put a Flash element (swf) like a "loop" for example
    and make it separate from the rest of HTML pages, so this "loop"
    can be played continuously while the visitor and browsing the pages
    and the Loop don't stop or change and doesn't effect by moving from
    one page to another?!
    I've tried many scripts and tried to make a layer above the
    tables but nothing changed, the loop started every time by clicking
    a new page!
    Please help me.
    thanks for your time.
    Mo!

    You would have to use a frame.

  • Control .swf from html

    Is there a way to control or communicate with a swf from
    outside of that swf. On my page Im loading an .swf and a separate
    layer with html. Can I create a link to tell the swf to load a
    movie?

    Funks Da Burn wrote:
    > Is there a way to control or communicate with a swf from
    outside of that swf. On my page Im loading an .swf and a separate
    layer with html. Can I create a link to tell the swf to load a
    movie?
    you are looking for LocalConnection
    google for "LocalConnection samples" or check the help files
    for details.
    Tho with all honesty, checking out samples is way more
    understandable than
    the attached help files.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Send variable to Flash from HTML link

    Does anyone know if it's possible to include a variable in an
    html link <a> tag that can set a variable in Flash. I have
    used JavaScript to do this in the past but would prefer not to on
    this site. I also would prefer not have to use a server side script
    or xml, as all I want to do is set multiple links on one html page
    to open the same Flash movie on another html page, but make it go
    to a particular frame or load a particular external swf based on
    the link that was clicked. Thanks, JD

    You need to use them in the object and embed tags.
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "JDRives" <[email protected]> wrote in
    message
    news:efcb61$rkb$[email protected]..
    > Do I need to use Flash Vars in the object and embed code
    to load them in
    > or will they automatically be passed to the variable on
    the _root level of
    > the SWF file? Thanks for your quick reply, JD

  • Target Flash from HTML

    I want to be able to click and HTML Link such as:
    <a href="gotoFrame" target="flashID">TEXT</a>
    And have the Flash read that you clicked the link and then go to the specified place depnending on the HREF.
    Basically, I just need to know how to get Flash to read that you clicked the HTML Link.

    Your HTML link can call a JavaScript function that calls a function in Flash. Read up ExternalInterface class.

  • Passing parameters to Flash from HTML or JavaScript

    Hi. How do I pass paramaters to a Flash movie without using
    the "../name.swf?param=value" syntax. I have a Flash menu that
    jumps to a certain keyframe depending on the value specified inline
    with the .swf address, which corresponds to the page being viewed.
    The only problem is that, when another page is loaded, the menu
    flickers and reloads because it's not cached: the browser thinks
    it's another file when in fact it's just a different address
    telling it where to go in the movie to update the menu for the
    current page.
    Any ideas how to do this with either HTML or JavaScript? Help
    and suggestions are truly appreciated!

    The other method for doing this is using the Flashvars param.
    You can read about it in the LiveDocs here:
    http://livedocs.macromedia.com/flash/8/main/00001206.html
    Don't know if it will solve your problem, but it is the other
    of the two main ways of passing in variables.
    Good luck!

  • Controll Flash from outside

    hi,
    i have a looped sound in one frame and changing pages in the
    other frame. some of these pages have videos or other soundcontent.
    how can i stop or fade the looped sound in a .swf file in
    frame 2 by the startscript of flashmovies in mainframe, or with JS?
    i'm using flash8 prof.
    thanks in advance for any advice
    rainer

    in addition: i forget to make clear - frames are html-frames,
    not flash-frames!
    rainer

  • How to pass text from flash to html?

    how to pass text from flash to html?

    This is a wonderful sample i found online.
    pls run using a server so that it can display properly
    http://active.tutsplus.com/tutorials/actionscript/flash-html-javascript-externalinterface/

  • Best way to pass vars from html into flash?

    I've read a variety of pages that describe how to pass a variable into a flash movie (AS3, player = v9) from the html in which it is embedded.  This page describes AS3 but neglects to mention what to do with the object and embed tags in the noscript section. Furthermore, I'm not sure the javascript I see generated in my page looks like the example there (the js in my page doesn't check AC_FL_RunContenta against zero).  This page is quite long and appears to deal mostly with AS1 and AS2 approaches which I have used before and neglects entirely the newish javascript approach which appears to be used to embed flash these days (i.e., the javascript function AC_FL_RunContent).
    I was wondering if someone could spell out the proper way to pass in a variable from HTML so that flash can see it in such a way that works even if javascript is disabled, in all browsers, etc., etc.
    I've attached the HTML generated by the Flash IDE to this topic.  Any help would be much appreciated.

    You'll have to search for that concise and thorough list of steps or figure it out using the information you now have, which is sufficient to get it done.  It's not that hard--add the FlashVars in the embedding code in the three places and use the various examples you have links to to add the code in the Flash file to access and use the FlashVars.
    Your Flash will be embedded in a web page depending on the visitors settings... if they allow javascript then the javascript portion will be used.  If they don't, then either the object or embed sections will be used depending on their browser.
    As far as javascript changes go, don't sweat 'em until you have a problem... use whatever code your Flash-created html page creates to embed the file in the page.

  • Send data from html to flash action script

    Hi,
    I would like my flash to act differently depending on what
    html page it is on. Can I send information from html code to action
    script?

    Hi,
    Yes you can, by using FLASHVARS. Refer the attached code for
    example. Also you can use Javascript setVariable method of Flash
    object to set values in between i.e. after the page has loaded, as
    in case of FLASHVARS these are sent to flash just at the begining
    i.e. once SWF loads. In the attached exmple i've sent 2 variables
    to Flash one is 'username' and other is 'userId', thse will be
    fetched inside flash movie as _root.username and _root.userId.
    Note: I've added flashvars as PARAM and also as an attribute
    for EMBED tag (used by Mozilla, NS etc)
    Hope this helps.
    Thanks,
    Sumeet

  • How to control Flash Player playback using JavaScript?

    I have a local file-based web page (HTML file) containing an embedded YouTube video.
    Now I want to write some JavaScript to control the Player's playback parameters, like volume, mute, play, stop etc., using JavaScript in the file. However, I don't seem to be able to access any of these function.
    Can someone please enlighten me on what I need to do to be able to control Flash Player from JavaScript?

    I'm not acquainted with Flash too much, I'm afraid... Both paged didn't give any example I could leverage.
    I'm searching for something equivalent to something like this:
    document.getElementById("MyMoviePlayer").mute();

  • How to control Flash Player 10 with Javascript?

    Are there any turotials or examples of controlling Flash Player 10 from a web page with javascript?  I want the player to pop up when I mouseover a thumbnail image and play a short relevant flv file.  When the mouse moves away from the thumbnail the player should disappear.   I imagine I'm going to have something like
    <img src="thumbnail.jpg" onmouseover="javascript:  [call flv player with .flv name and parameters to autoplay with no controls )">
    but I don't know what the javascript code should be and I don't know how to embed the flv player in my HTML so the javascript code can call it. 
    Thanks for any help.
    Steve

    it would be nice if someone can suggest a solution.because i ve the same problem.
    Jon

Maybe you are looking for