Flash Hyperlink Button

I am a new user of Flash and have run into a problem I can't
seem to solve after hours of trying. What I thought would be quite
simple...creating a button that when published and then opened in
IE7 would, when clicked, cause IE7 to link to another web page. My
tutorial book mentions just applying a "Go to web page" Behaviour
to it, but while that works fine in "Test Movie", nothing happens
in IE7. I have also read some previous posts here on the subject,
done what was recommended and still no luck. What the heck am I
doing wrong and where? Here's a simple run through of what one
might do.
1. Open a new Flash file and call it Button_Test, create a
new Button symbol called btn_test, create the Up, Over and Down
states, and return to the Stage.
2. Move the button to Frame 1 of the first layer on the
stage, click the button, and name the "instance" in Properties
my_btn
3. Click on frame 1 of the button layer, open Actions (F9),
then as recommended here to others, I tried the following action
scripts:
my_btn.onRelease=function(){
getURL("
http://www.adobe.com");
and later I tried:
my_btn.onPress=function()
getURL("
http://www.adobe.com","_self");
Both of these worked fine in Control>Test Movie. IE7
opened and a link was established to Adobe. So the next step was to
publish the button in .html as one would do with a completed Flash
project one wanted to use as a web page. Here's maybe where
something is going wrong?? For that I clicked on File>Publish
Settings, used all the defaults except for the HTML tab where I
selected "Active Content Update-HTTP" beside the template title,
and unchecked "Loop". Clicked "Publish", and published
"Button_Test.html". Then I clicked on Commands>Apply Active
Content Update, and added that file to the directory containing
Button_Test.html.
Finally I closed Flash, and in Windows Explorer, I went to
the Button Test directory and double clicked on Button_Test.html.
IE7 opened, and there was my button......the Up, Over and Down
states working perfectly, but no mouse clicking on it in any manner
did a thing. The button just sits there, no link is established,
and no Adobe web site opens. So what is wrong here? If I can get
one simple button to work, I can then return to a very large
project I'm working on and get several buttons there working.
What's really strange is that the main project contains buttons
that open Outlook Express from IE7 (after publication etc) and
place an address in it, and they work fine. In fact everything in
the main project including embedded movies etc. is working
beautifully in IE7 after publishing except for the darn web link
buttons. Any help or clues anyone could offer would be greatly
appreciated. If my IE7 is the problem, exactly what settings should
be changed there?...................frank

Okay, here's an update....A fresh install of IE7 with default
settings, Flash buttons with links to a URL that work in Test
Movie, but won't link in IE7 after button is published with mostly
default settings (see first post) to .html. Looked at .html code
for button (see below) and tried changing all "AllowScriptAccess"
places to "always" , but still no change in IE7. I've tried every
single thing I know to solve this and still no luck. I am now at
the complete mercy of this community :) and am hoping someone,
somewhere can see what is wrong. Thanks to all...........frank
Button's html code:
<html xmlns="
http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Button Test</title>
<script language="javascript">AC_FL_RunContent =
0;</script>
<script src="AC_RunActiveContent.js"
language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash,
run \"Apply Active Content Update\" in the Commands menu to copy
AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', '
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '550',
'height', '400',
'src', 'Button Test',
'quality', 'high',
'pluginspage', '
http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'false',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Button Test',
'bgcolor', '#ffffff',
'name', 'Button Test',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'Button Test',
'salign', ''
); //end AC code
</script>
<noscript>
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="550" height="400" id="Button Test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Button Test.swf"
/><param name="loop" value="false" /><param
name="quality" value="high" /><param name="bgcolor"
value="#ffffff" /> <embed src="Button Test.swf" loop="false"
quality="high" bgcolor="#ffffff" width="550" height="400"
name="Button Test" align="middle" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>
</noscript>
</body>
</html>

Similar Messages

  • Creating hyperlink button

        It seems that even as a newbie this should be a simple thing to do.
    ( I am using  CS3 on the Mac)
    I create a button and add this action
    on(release) { getURL("http://www.yourwebsite.com"); }
    but get several errors when I go to publish it.
    So searching on google I find this code
    myButton.addEventListener(MouseEvent.CLICK, myButtonFunction); function myButtonFunction(event: MouseEvent) { var request:URLRequest = new URLRequest("http://www.yourwebsite.com"); navigateToURL(request); } 
    which seems rather complicated but works.
    except that I can't see where to change the code so the URL opens in the same browser window as the Flash file. Is there an edit I can make to edit this?
    (Also am I missing something? There is nothing in Flash help (searching under "hyperlink button") that I can find for what seems like a common task. Is there a simple way to create a hyperlink button?)

    The page I linked has the _self in the code in step 3 (maybe you clicked to a different page?)
    Pasting from the link --
    my_btn.addEventListener(MouseEvent.MOUSE_DOWN, myHandler);
    function myHandler(event:MouseEvent):void {
        navigateToURL(new URLRequest("http://www.adobe.com/devnet/flash/"), "_self");

  • After upgrading to Mountain lion the hyperlink button is not seen in Preview.  Anyone knows ho to get it back?

    After upgrading to Mountain lion the hyperlink button is not seen in Preview.  Anyone knows ho to get it back?

    Augend wrote:
    After upgrading to Mountain lion the hyperlink button is not seen in Preview.  Anyone knows ho to get it back?
    There have been a few threads about this.  The feature seems to have gone missing in Mountain Lion even though the Help for Preview still mentions it.
    I've filed a bug report on it.
    Matt

  • Are Flash Professional Buttons broken in Flash Builder 4.7/AIR 3.4?

    Moved my ActionScript Mobile Project game from Flash Builder 4.6 / AIR 3.2 yesterday to the new release of 4.7 / AIR 3.4. I immediately ran into a problem with Flash Professional Button's working incorrectly. The buttons have linkages in a SWC exported from Flash Professional CS6, which the project has linked. The content of the buttons doesn't seem to matter. It seems to break in different ways visually depending on it's composition (sometimes it loads unreleated bitmap data or displays with a strange transformation). Has anyone else seen this behaviour so far?

    I don't have the time to create a unique project for adobe bug database. So many are having the same issue, I'm shocked that Adobe doesn't know about this already. This discussion that I'm writing in right now was started in december, almost 7 months ago.
    Joseph Labrecque says in his blog that adobe does know of this issue and is working on it, he said that 6 months ago. Is he incorrect?
    Joseph LabrecqueJanuary 4, 2013 at 6:21 pmGood news that Adobe is actively working on a fix for this issue.
    http://inflagrantedelicto.memoryspiral.com/2012/12/flash-builder-4-7-useflashsdk/

  • Issue: Flash radio buttons & Php form

    I have a flash form which all of the fields are sending
    correctly
    through the php code. The flash radio buttons I added with
    the
    groupname == topic, doesnt send with the rest of the
    information that is being sent to the email. My question is
    how do I get
    the flash radio button info to submit with the rest of the
    form.
    The code for the send button on my flash file:
    on (release) {
    // send variables in form movieclip (the textfields)
    // to email PHP page which will send the mail
    form.loadVariables("form.php", "POST");
    ===============================================
    ===============================================
    Form.php:
    <?php
    $to = "[email protected]";
    $subject = "Contact Page Information for Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>
    Text

    Do you mean like this:
    <?php
    var topic;
    var listenerObject:Object = new Object();
    listenerObject.click = function(eventObj:Object) {
    topic = eventObj.target.data;
    trace(topic)
    groupTopic1_rb.addEventListener("click", listenerObject);
    groupTopic2_rb.addEventListener("click", listenerObject);
    groupTopic3_rb.addEventListener("click", listenerObject);
    groupTopic4_rb.addEventListener("click", listenerObject);
    groupTopic5_rb.addEventListener("click", listenerObject);
    groupTopic6_rb.addEventListener("click", listenerObject);
    groupTopic7_rb.addEventListener("click", listenerObject);
    groupTopic8_rb.addEventListener("click", listenerObject);
    groupTopic9_rb.addEventListener("click", listenerObject);
    groupTopic10_rb.addEventListener("click", listenerObject);
    groupTopic11_rb.addEventListener("click", listenerObject);
    groupTopic12_rb.addEventListener("click", listenerObject);
    groupTopic13_rb.addEventListener("click", listenerObject);
    groupTopic14_rb.addEventListener("click", listenerObject);
    $to = "[email protected]";
    $subject = "Contact Page Information for Hope Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>

  • How do I put a hyperlink button on the Canvas in Applet

    I am tried to put a hyperlink button on the Canvas in Applet.
    But Canvas is a componet that can't contain any component.
    I hope best way that is like hyperlink of HTML , I just clicked this hyperlink in Canvas,it's automation link to directed homepage.
    Can I have any way to do that?

    You can setup Restrictions...
    Tap Settings > General > Restrictions
    AFAIK, it's not possible to attach a password for access to the Settings.

  • Form from hell (Flash Radio Buttons)

    Does anyone have a bead out there on a behavior that you can
    use with the native Flash radio button groups in Director MX 2004.
    I am going freakin' bonkers trying to write a behavior for
    these things.

    The Flash Components are not documented in Director, though
    they are
    documented in Flash. If you can parse the dense and difficult
    to
    understand Flash Help file (and yes, you would need to have
    Flash to get
    it), then you can see all the docs for those components.
    Before I go much further, I should say that in my experience,
    using
    #flashComponents is a painful and tedious business. I do not
    recommend
    it. It will probably be MUCH easier on you in the long run if
    you write
    your own script from scratch.
    But, for the sake or archival completeness, this is a script
    that will
    do what you want with the checkbox/radio button
    #flashComponents:
    1) Go into the Property Inspector and on the FlashComponent
    tab for each
    member, make sure that the eventPassMode is set to
    #passAlways
    2) Put this code onto the buttons:
    on mouseUp me
    if sprite(me.spriteNum).selected then
    sendAllSprites(#deselect,me.spriteNum)
    end if
    end
    on deselect me, vExcept
    if me.spriteNum<>vExcept then
    sprite(me.spriteNum).selected=0
    end if
    end

  • Hyperlink button doesnot work in IE

    I created a hyperlink button to take to a HTML page on an existing silverlight application. The button and the webpage works fine with Google chrome and firefox however, it doesnot with Internet explorer 9 and 11. I made sure the manage add ons the silverlight
    was enabled and reset the IE settings. Also added the following code to the mainpage. but still doesnt work. 
    Any help would be greatly appreciated!
    Thank you
    <param name="enableNavigation" value="true" />

    Hi,
    Below code works on my IE, you could try it:
    <HyperlinkButton Width="200" Height="30"
    Content="C# Corner Link"
    Background="Black" Foreground="Orange"
    FontWeight="Bold">
    </HyperlinkButton>
    Besdies, link below talks about hyperlinkbutton, please have a see:
    http://www.c-sharpcorner.com/UploadFile/mahesh/hyperlink-in-silverlight/
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Need help with Flash CS4 buttons/can't get buttons to control anything

    Hello,
    I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.

    Thank you.
    Regards,
    Michael J. Sheehan  allelois
    Date: Mon, 17 Aug 2009 18:48:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
    Hi there
    I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
    Cheers... Rick
    >

  • How to access the flash player button controls from FLEX?

    Hi,
    I'm creating one application in that i hav created a presentation in Adobe Presenter and i played in flex, now i want to control the flash player buttons from flex 3.
    Can anyone tell how to solve this, i need the solution for this very urgent, please help.
    Thanks in Advance.

    Hi,
    I'm creating one application in that i hav created a presentation in Adobe Presenter and i played in flex, now i want to control the flash player buttons from flex 3.
    Can anyone tell how to solve this, i need the solution for this very urgent, please help.
    Thanks in Advance.

  • Saving flash play button to use in dreamweaver

    let me start off first by saying i am creating a music web
    page and this is my first time using flash or dreamweaver so stick
    with me please...i have downloaded a flash play button and have got
    the actions the way i want them...what i need to know is how to
    save this to where i can open it in adobe dreamweaver and also how
    do i go about opening it in dreamweaver
    thanks alot

    anyone have any suggestions as to what i should do

  • How do I make hyperlink buttons hide until I want them?

    I have a map with stops on it. I have made each stop a (on relase or Tap) button so that a box shows up on the side with info about that stop.
    Reasonable easy...except i want to put a close button and hyperlinks on this text box. So i have created multiple actions for a button to hide buttons show other buttons etc
    This is where it gets tricky. It seems that if i create a hyperlink button and tell it to be "Hidden until Triggered" it doesnt stay hidden. it is invisible but if i move the mouse over that area the hand curser comes up. i cant have them being acidentally clicked. Is there anything i am doing wrong? There is going to be ALOT of these so i have to get it right now.
    any help will be greatly appreciated.

    Encore does not provide scripting which is what I think may help.
    But it may not, since "hover" implies you are playing back on computer. That won't work even for the workaround used for this by using autoactivate to move from a still to motion menu.

  • How to open an swf in its own window outside flash using button

    how do I open an swf in its own window outside the flash using button?

    Hi,
    Try this code:
    import mx.containers.Window;
    var my_button:mx.controls.Button;
    var buttonListener:Object = new Object();
    buttonListener.click = function(evt_obj:Object) {
    var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Sample Image", contentPath:"uganda_animation_Scene 1.swf"});
    my_win.setSize(320, 240);
    my_button.addEventListener("click", buttonListener);
    You must drag the window default component and place in to the library.
    Saransoft

  • Change or remove hyperlinked button mouseover text

    I am trying to find a way to remove or change the mouseover text for button hyperlinks. The form is located at http://www.etsu.edu/finaid/Forms/staffordlenderselection0708.pdf . The hyperlink buttons are located at the end of each bullet point. They have been configured to appear as ordinary hyperlinked text. I would greatly appreciate any advice regarding this issue. Thanks.

    Joel, I have used a workaround method in Designer 7.1.2 to remove the mouseover text. In your case, complete your sentence by adding the word Online to your sentence. Underline and change the color as needed. On the button, remove the caption, and place the button overtop your word. Under the Accessibility tab, change the Screen Reader Preference to None. I don't know if this will work in 8+.

  • Flashing startup button

    So, I was out mowing the lawn. When I came back in, my Mac had shut itself down. Strange, it hasn't done that before except after a power cut. Which, as far as I am aware, there wasn't today.
    When I booted it up again, there was a strangely different monotone straight away and then the power button flashed quickly a number of times... then it seemed to start up ok.
    It's working now, but do I have a problem? I've searched the discussion site for flashing power buttons but with no success. Any help would be much appreciated.
    G4 500DP   Mac OS X (10.4.7)  

    Hi, John -
    Welcome to Apple's Discussions.
    Your G4/500DP machine is a Gigabit Ethernet model. This Apple KBase article addresses that condition for that model -
    Article #58442 - Power On Self-Test Pt. 2
    You will need to note the number of flashes to determine which item is being reported.

Maybe you are looking for

  • How to populate automatically in a when-new-record-instance trigger?

    I have a form which displays around ten rows with about 5 columns. Whenever i will create a new record, i would like to place an initial value on the first column of every record. How do I do this? If I place the value in the properties of the item,

  • Text name in ps

    I need the text name(RSTXT-TDNAME) of a component in ps, i can see for example: 30000000013760001, the three first characters are the mandant and the 4 in the end are the position, and in the middle i think that it is the network, but it doesn´t suit

  • HELP with sharing ical in icloud

    I desperately need to share the same calendar to two kinds of people. I hace a person who has a .mac account that has to able to edit my calendar. And I have others who don't have a .mac account and need only to see the calendar. When I go to that pa

  • My computer is not recognizing my ipod even being plugged in what do i do?

    my computer is not even recognizing my ipod is plugged in what do i do?

  • Getting 502 errors in isapi_redirect.log (ColdFusion 11)

    Hello, We have browsed many threads on the subject of tuning CF11 (& CF10) IIS connectors (in particular ColdFusion 10 instance/Tomcat dying at predictable intervals (white screen of death) ) and we have applied the suggested changes to tune the conn