Put HTML link in flash movie - I'm missing something

Hey forum - if someone could help me out here that would be
awesome.
I've created a movie in Flash version 8 and am tryhing to get
it to link to a page on the website when clicked on. Using this
code:
thermostatbutton.addEventListener(MouseEvent.CLICK, goWhere)
function goWhere (evt) {
var url = "
http://www.hvactechsupport.com/controls-main.asp"
navigateToURL(new URLRequest(url))
The flash file exports fine, and it recognizes the image as a
button, but nothing happens with a click.
Please help! Thanks. =)

The code you are using there is AS3, not AS2. For AS2 you
want something that looks like this:
thermostatbutton.onRelease = function() {
getURL("
http://www.hvactechsupport.com/controls-main.asp");
}

Similar Messages

  • Adding link to Flash movie to HTML Help

    I have to output the same help in both CHM and WebHelp, and I
    have to include a Flash movie (SWF) in both versions. The only way
    I've found to get a link to the Flash movie to work in the compiled
    CHM is to add all the Flash files to the project as "baggage" and
    then insert the link. Compiled CHM then includes the Flash files.
    Is this the recommended approach? Is there an easier way?
    Thanks,
    mel

    Hi mel and welcome to our community
    Indeed, adding to baggage will not hurt a thing and is
    recommended. I recently published a second article dealing with
    Flash content and RoboHelp that you may find useful. You may view
    it by
    clicking
    here
    Cheers... Rick

  • 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?

  • Urgent! HTML table cell - Flash movie display browser dependent

    Hi all,
    I wonder if anyone has experienced the same problem i have
    (note, Windows XP, Dreamweaver 4).
    Consider the (rough) HTML code attached: A simple HTML table
    of one column and two rows is constructed to hold an image banner
    link and a Flash movie banner link in each cell consecutively.
    The Flash movie works normally when the HTML page is viewed
    in IE and Opera, until that is, it is placed inside a table cell.
    Inside the cell the flash movie seems to disappear, though i
    suspect it collapses to an image 1 pixel in height, as this can
    just about be seen using Opera.
    Is there something that I am missing? The code of course
    seems correct to me - perhaps there is a browser setting i am
    missing?
    Any help apprceiated - as i need to implement this code ..
    Daz

    Hi Alan,
    Dont think that was the problem (percentages used to scale to
    users browser?) ... though you did set me thinking!
    Was tired before, so only just remembered that when i was
    experimenting with setting the Table Properties the image was
    actually occasionally visible!!
    Short version: When formatting a cell containing a Flash
    animation dont leave the H field blank or use % (even though you're
    suppose to be able to!), use pixels instead - otherwise the Flash
    image collapses/disappears. Blank and % are fine everywhere else
    (I did type a long answer before, but it got eaten by the
    forum monster
    Someone/i will probably figure out
    why this is so or maybe i've just rediscovered the wheel
    here - but thats not really important now - because my Flash
    animation now renders similarly across IE, Opera and FireFox !!
    So thanks for your help!
    Daren

  • Getting html into a flash movie

    A client is concerned with getting some html text picked up
    by the search engines. I've already created a flash site they are
    happy with. Now they are asking if I can actually make part of
    their flash site include some html text layed over the flash movie
    or something like that.
    All I could think of was some way (perhaps with javaScript)
    of making the buttons in the swf movie load html text.
    Does anyone know if this is possible?
    Thanks.
    A
    P.S. Someone mentioned the "SWFObject method" but I was
    curious if there was another way to do this. Remember the main
    concern here is that search engines can pick up the text.

    >> P.S. Someone mentioned the "SWFObject method" but I
    was curious if there
    >> was
    another way to do this. Remember the main concern here is
    that search
    engines
    can pick up the text.
    That's the way to go if you want search engines to spider a
    Flash site.
    SWFObject writes the Flash content to a <DIV> on your
    page. Inside that div
    element, you place your HTML page... you can do dynamic stuff
    with PHP,
    whatever. If your user doesn't have Flash, or if a spider
    hits the page,
    they will see the HTML content within the div. If they do
    have Flash, then
    SWFObject overwrites the div with the Flash, and your user
    sees the Flash.
    Works a treat...
    If you want an example: www.arandell.com
    Turn off JavaScript and refresh, and you'll see the HTML
    version. Google
    spiders this site perfectly.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Linking several Flash movies together

    I created 5 "movies" in Captivate and published as .swf files
    with accompanying .htm files. The Captivate file, .swf, and .htm
    files are all in a folder on our website and therefore should be
    accessible to the Internet. I've linked the first movie from
    Contribute and published but the other links "were not found on
    website or in a directory listing".
    What next? Our webmaster isn't sure and neither am I. I don't
    want to combine all 5 movies into one because we are in a rural
    area with 56K users.

    "Bizmarck27" <[email protected]> wrote in
    message news:e4ij6q$i34$[email protected]..
    >I created 5 "movies" in Captivate and published as .swf
    files with accompanying
    > .htm files. The Captivate file, .swf, and .htm files are
    all in a folder on our
    > website and therefore should be accessible to the
    Internet. I've linked the
    > first movie from Contribute and published but the other
    links "were not found
    > on website or in a directory listing".
    >
    > What next? Our webmaster isn't sure and neither am I. I
    don't want to combine
    > all 5 movies into one because we are in a rural area
    with 56K users.
    If you can't see the files in a directory listing, why do you
    think they are on the website?
    Your upload of the files must have failed for some reason. If
    the files are there you can access them with a direct link to the
    file to test..
    http://mywebsite.com/myswf.swf
    If you get a 404 file not found, then it ain't there!
    tralfaz

  • Showing HTML behind a flash movie

    Hi,
    I have a div layer containing a flash file which sits on top of some HTML. When the flash file is clicked, an animation is played. After this animation i want the flash file to disapear and the HTML behind the flash file to become clickable.
    The flash is an animation of a door opening, to reveal the HTML below it.
    I can make a flash file with a transparent background but the HTML below the flash layer is unclickable.
    Any ideas how i can make this clickable without refreshing the page? I have attached an example of my situation.
    Thanks,
    Tony

    >> P.S. Someone mentioned the "SWFObject method" but I
    was curious if there
    >> was
    another way to do this. Remember the main concern here is
    that search
    engines
    can pick up the text.
    That's the way to go if you want search engines to spider a
    Flash site.
    SWFObject writes the Flash content to a <DIV> on your
    page. Inside that div
    element, you place your HTML page... you can do dynamic stuff
    with PHP,
    whatever. If your user doesn't have Flash, or if a spider
    hits the page,
    they will see the HTML content within the div. If they do
    have Flash, then
    SWFObject overwrites the div with the Flash, and your user
    sees the Flash.
    Works a treat...
    If you want an example: www.arandell.com
    Turn off JavaScript and refresh, and you'll see the HTML
    version. Google
    spiders this site perfectly.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • HTML link to idisk/movie - movie doesnt open but downloads only

    i have set up a html button on my iweb site to link it directly to a movie i have uploaded to idisk/Movies. when i click the button it opens a blank page, asks for a password to access idisk.mac.com and then downloads the movie but doesnt open it - i want the movie to directly open when the button has been clicked without downloading and having to enter a password -any ideas anyone..Old toad are you there???

    To get a movie to play in the browser you need to decide on which plugin(s) that it will employ. A movie file (.mov, .mp4, .swf etc) can be played using various codes that call up the QuickTime or Flash Player plugin - or both.
    First, you need to decide on who your intended audience is as, for example, a movie uploaded to play using QT will not be able to be viewed by a lot of PC users and a movie programmed to use the Flash Player plugin cannot be viewed on iOS devices like the iPad/iPhone.
    If you are aiming your movie at Mac users and the minority of PC users who have installed QuickTime player, Old Toad shows a couple of ways here.
    http://web.me.com/toad.hall/Demo_2/Widget-Window.html
    http://web.me.com/toad.hall/Demo_2/Widget-MMeQT.html#widget6
    If you want to reach a wider audience you need to employ something like this....
    http://www.iwebformusicians.com/Website-Music-Movies/JW-Video-Player.html
    or this....
    www.iwebformusicians.com/Website-Music-Movies/Vimeo-YouTube.html
    For these to work they need to have their own web page that will be set to open in a new window when the button is clicked. This is done in the usual fashion using the Link inspector.

  • HTML banner [into] flash movie

    Greetings all!
    To put it simply, and after much research but little find, I have this question for you all.
    How do I take this:
    [The code: (url=http://www.gametracker.com/server_info/74.201.57.185:27017/][img]http://cache.www.gametracker.com/server_info/74.201.57.185:27017/b_350_20_0B4D8E_2ED0E0_FF FFFF_000000.png[/img][/url)]   - for a forum setting..... OR    -    <a href="http://www.gametracker.com/server_info/74.201.57.185:27017/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/74.201.57.185:27017/b_350_20_0B4D8E_2ED0E0_FF FFFF_000000.png" border="0" width="350" height="20" alt=""/></a>  for a website setting.
    and insert it in one of the frames of my movie to show once the movie reaches that frame?

    var myLoader : Loader = new Loader ( ) ;
    myLoader . contentLoaderInfo . addEventListener ( ProgressEvent . PROGRESS , onProgressStatus ) ;
    myLoader . contentLoaderInfo . addEventListener ( Event . COMPLETE , onLoaderReady ) ;
    var fileRequest : URLRequest = new URLRequest ( "http://www.gametracker.com/server_info/74.201.57.185:27017" ) ;
    myLoader. load ( fileRequest ) ;
    public function onProgressStatus ( e : ProgressEvent ) {
    // this is where progress will be monitored
    trace ( e . bytesLoaded , e . bytesTotal ) ;
    public function onLoaderReady ( e : Event ) {
    // the image is now loaded, so let's add it to the display tree!
    addChild ( myLoader ) ;

  • Text links in Flash CS5 - Am I doing something wrong?

    Hi all, I tried searching for an answer but did'nt have much luck. I decided to finally learn how to do a web page in Flash and everything is progressing except for text links. I'm importing a .psd file and I keep the text as editable, the page has 5 text links plus a text logo, the logo text link works when tested (returning to the home page) but the links to the other pages do nothing. I have tried each one seperately, pointing to both the intended page as well as the home page with no luck, the only one that I can get to work is the logo text. I have also tried grouping the text for links seperate from static text in Photoshop. I'm sure it's something simple and I'm probably over thinking things but whatever the case I can't get it to work.
    Thanks
    Pat

    It figures 5 minutes after posting this question I was able to get the links working in the test window. What I did was I imported the .psd to the stage and after defining a url for the text link I DID NOT assign a target, wha la it worked.

  • Get current HTML URL into flash with LoadVars and ColdFusion

    I need to get the current page url and pass it into flash.
    I'm also using ColdFusion. Is there an easy solution?

    I gave up on bringing in the URL and parse it into a string,
    there is too much I don't understand. I put in two commands in the
    HTML where the Flash movie is sitting:
    1. <param name="FlashVars" value="airport=sbn"/>
    2. and in <embed src I put in, Flashvars="airport=sbn"
    "airport" is the variable in Flash (it is called as
    "_level0.airport" in the Flash file) and "sbn" is the variable
    definition for 12 of the files. I will just find "sbn" and replace
    it with the new airport name in the next set. It's not very slick,
    but it's better than having to create a new navigation for every
    airport. Thanks for the help.

  • Can we open Web pages inside Flash Movie!!!!!

    Is there a way to open HTML Webpages inside Flash Movies
    Please Help...............

    you can display certain html tags in an html-enabled
    textfield or a textarea component. but you can't display a webpage,
    per se.

  • Embed external HTML page in Flash

    Does anybody know how to embed an external HTML page into Flash? I am envisioning something like an iFrame, but can't really figure how this would work. I've attempted using a scrollpane, but it didn't work at all.
    Any suggestions?

    you can display it in a popup window or in the same window or in an iframe in the same html page that displays your swf.
    When you say this, do you mean I can create an iFrame on the same html page that displays my swf, and have it be dynamically populated by what the user clicks on the swf?
    yes, exactly.
    use getULR() (as2) or navigateToURL() (as3) with the 1st parameter being the html page you want to display and the 2nd parameter being the iframe "name" property.

  • Playing a Macromedia Flash movie in Java?

    Is there a way to make an applet play a Flash movie (.swf) inside it?
    I want a Java program to open a ServerSocket and play a Flash movie that will be something like a chat.
    I know how to build a chat, you don't have to tell me about it...
    I'm just asking, is there a way to have a Flash Movie inside the programs Frame ???
    Thanks...

    And I don't get how to control the flash file: Are methods like TPlay and SetVariable availble to Java?
    It would be great if they are - using them through JavaScript is glitchy.

  • Flash hijacking HTML links while images are loading

    I've designed a slide show player using Flash and Actionscript 3.0 which loads several external images. While the images are loading, the HTML links on my page (outside of the Flash movie) don't work. As soon as all the images are loaded, the links start working again. It seems like the Flash player is hijacking the browser while the images are loading which can take the better part of a minute depending on my connection speed. I can click an HTML link once during the loading time and as soon as the images have loaded, the browser loads the new page (the one the HTML links to). Once all the images are in my Temporary Internet Files folder, this problem ceases to exist (since the images no longer need to be downloaded). It's only first-time viewers that will have this problem, but it's a pretty major problem.
    To see what I'm talking about, go to:
    http://www.ericlindberg.com/indexTemp.html
    Click the Images button after the "Loading..." animation disappears but before all the images are loaded. As the images load the thumbnails at the bottom of the Flash player go from 50% to 100% opaque. If  you click the "Images" button before all the thumbnails are 100% opaque, nothing happens. However, once they are all loaded and the thumbnails are all 100% opaque, the "Images" page loads. You can do the same thing with any of the subpages in the Images section of the site and get the same results.
    Any advice would be greatly appreciated.
    Joe    

    I have something similar on my site.
    http://alt-web.com/gallery.shtml
    You might try using CSS rollovers instead of MM (javascript) rollovers.  Straight HTML links load fast and work immediately.
    http://alt-web.com/DEMOS/CSS-Sprites-II.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

Maybe you are looking for

  • Unable to assemble book - help!!!

    I painstakingly put together a collection of photo's for my first wedding anniversary and attempted place my order when iPhoto '08 crashed on me. The error I repeatedly keep getting is "Unable to Assemble book [NSPlaceholderMutableString initWithStri

  • Iphone 2g wont start

    Hello, the battery of my iphone 2g went off while it was in recovery mode i tryed everything now .. the only thing i could remember is that is was really hot at the backside. please help me thanks in advance

  • Flashing folder icon after Mac mini has been sitting for a few hours

    I leave my Mac mini running at time when I leave the office to let it install an update or just cause I forget to close it all down. When I come in the next morning, I have a flashing folder icon waiting for me. Every single post on the forums talk a

  • HT202037 Apple iPad Camera Connection Kit: Videos showing up green.

    I bought the Apple iPad Camera Connection Kit, the SD card one, and I can import pictures and videos to my Ipad and the pictures turn out just fine but some of the videos show up green and they won't play. I have the iPad mini and its on iOS 8.1.2 an

  • Kind off topic, but i have some TERMINAL questions

    I really want to get into terminal, really learn how to use it is there any official guides or any good guides taht can get me started and teach me everything or just enough?? pleae help