Flash button - linking to HTML page - weird problem

There could be a really easy solution for this, but I can't
figure it out. I have a simple button that links to an anchor
within an HTML page. Here the actionscript for the button:
on (release) {
getURL ("test.html#two");
when the button is pressed, the HTML page comes up but only
to the top of test.html. The '#two' is not passed to the URL .
Seems like everything after '#' is ignored. How can I get around

getURL("path of html page");

Similar Messages

  • Linking a flash button to a html page

    Hi, I was wondering if anyone knew the best way to link a
    flash button to a page in DW?

    Place this actionscript into the hit area of your flash
    button, then export the flash as a .swf and place onto the
    dreamweaver page...
    This will open the new html page in the same window. Hope
    that helps.
    You can get a cheap but awesome tutorial on Flash buttons
    No, I don't know the guy and I don't get a commission. The
    tutorials really helped me, that's all.

  • Link button to local html page using AS3

    I am using AS3 and having trouble linking a button to a local html page

    Okay, I tried both of the codes and it is still now working.
    navigateToURL(new URLRequest("file:///fishcom/Home.html"));
    I get a Windows dialog box that states that the path can not be found.
    navigateToURL(new URLRequest("./fishcom/Home.html"));
    This goes to http://./fishcom/Home.html  but not my page.
    The Flash file and the HTML page are in the fishcom folder on my desktop. Very frustrating because this was so easy in AS2. 

  • How link from html page to a specific frame in flash cs5 as3

    I'm kinda new around here. I am interested in knowing how to link from a specific html page to a specific frame in flash cs5 as3.
    I have a website that I originally began to design in flash but later started developing new pages for it in html. The flash part of it has several pages on different frames and I have created links from the flash part to the other html pages, but, I can only link the html pages back to the main flash home page, and not the other pages in the flash part of the website.
    I have read that in cs3 it was possible using the flashvars skip variable, but I don't know how to do it. I have not yet seen any working examples and I could not find any instructions / tutorials online for cs5.
    Can someone help here?

    add a query string, to the swf's embedding html, with variable/value indicating the frame you want to display in your swf.  add a javascript function to return the query string (or entire url), call the javascript function from flash using the externalinterface class.  and finally add code to your swf to parse the returned url or query string, parse it and then direct your timeline to the appropriate frame.

  • Trying to link a html page in AS3

    I made a flash site with a button I want to link to a html page I made. But I don't know what I'm doing. I tried this:
    where cele1 is the button name, but that don't work.  I know what I need to do to navigateToURL but I want to link a HTML page I created.
    Any help would be great. Thanks.

    THis is likely a literal case of helping yourself... See your other posting and leave out the part where you try to size the window...
    I'm trying to make the window size smaller in flash actionscript 3.0

  • Flash button link AS 3.0

    I have a flash button link using actionscript 3.0. The animation is a fade in of a logo. The problem is that the button is only a link during the animation, ie. when the logo has fully faded in it stops becoming a link. Here is the actionscript code i am using, does anyone know where i am wrong? Thank you so much.
    import flash.events.MouseEvent;
    MouseEvent.CLICK, myButtonFunction);
    function myButtonFunction(event:MouseEvent):void {
    var request:URLRequest = new URLRequest("http://flightswitch.com/home.html");
    navigateToURL(request, "_self");

    If the logo animation is completely fade then the link is not enabled?
    Is it?
    Disable the logo button after it fade.

  • Flash button link will not work in CS4

    Can anyone walk me through step by step to get a flash button link to work in CS4?  I tries action scripts 2 and 3... I cut and pasted a bunch of code on line, watched tutorials, and no matter what i do, the link won't work in CS4.  The button looks and works fine, but won't go to the web site ot web page after clicking on it.
    At this point, I am so confused, i think it would be better if someone walked me through step by step.  My email is [email protected]  I can email the button is that would help.  Thanks.

    This issue is fixed in Encore CS5.
    Pankaj Gauba

  • Can a menu link to .html pages?

    I want to make a DVD that will start with a video introduction, and upon finishing the brief minute or so intro, it will display a menu screen.
    1.) I would like the menu buttons to link to .html pages saved on the DVD. So after clicking on a link from the menu, it will open up a full-screen .html page.
    2.) Each .html page will link to other .html pages and have embedded images, and short quitcktime video clip links that will open up in small windows when links are clicked.
    3.) I need to have a link on each .html page that links back to the main dvd menu.
    Can this be done? Any issues with doing something like this?
    Thanks in advance for any advice!!!!

    Mark - you need to read up on [email protected] if you intend doing this through DVDSP. Yes, it is all possible, but you haven't quite got the way it works correct.
    What happens is you embed a URL into a menu. When the menu is accessed (typically by a button from a previous menu) the link is activated and the resource is launched. This opens in a window in front of the DVD playback window. The DVD player continues to run in the background - so you need to allow for that when returning. The viewer will simply close the web browser window and be back at the DVD window - by then you should have made the @ccess menu 'time-out' and return to the previous menu.
    You set up the HTML file (or whatever file you are using) in a folder on your Mac, and place it all within a parent folder. From within DVDSP you then use the property Inspector for the disc itself (click not he disc icon in the outline view) to specify a ROM folder. You browse for the parent folder you just created. Everything inside that will get added to the root level of the DVD, which is why you place your HTML inside a folder within that parent folder (unless of course, you don't mind your HTML file/s being scattered all over the root of the DVD).
    You set the URL for the @ccess link by using the following path format:
    So if your html file is called 'index' and it is in a folder called 'ROM' on your DVD called 'Project' then the URL you set in the menu would be:
    This should then get activated (as long as you have enabled [email protected] links in your DVD Player software).
    However, there are some caveats.
    Whilst this will work quite well on a Mac, a PC user will have a wildly varied experience - for some the links will work. For some the links won't work, and for some, all links will launch the moment the first link is encountered... ALL PC users will need to install the [email protected] software (which will be on the built DVD by default (DVDSP includes it there for you), unless they have already done so previously (unlikely).
    In order to maximise the experience for PC users and Mac users you should consider using Sonic's 'eDVD' to add the hyperlinks. This makes use of the Interactual player which has a far higher installed base in PCs, but will need installing in Macs. Again, this gets included on the disc when you use eDVD.
    eDVD is a PC only app - you'll need to build your project and transfer the VIDEO_TS folder to a PC, add the links and then burn it to disc or use software such as Gear Pro to create a DLT. Hopefully Jim (WTS) will see this and give more advice on how to use eDVD.
    Getting [email protected] working on a PC is a tricky thing to do - a lot depends on the PC software spec, and since you can't govern the user's choice in this, you are walking a tightrope of compatibility.
    Of course, you could simply set some text into your menu to say that there is additional content on the disc, and let the user browse to it at their leisure instead of relying on embedded links...

  • Adding link to html page

    How do I add a link to html page through java code?
    If I want to see some text in the code as a link to some web page,then please let me know the changes I'll have to make in ordre to get the desired result.

    According to http://help.sap.com/javadocs/NW73EHP1/SPS14/CE/wdr/com.sap.wdr/index.html there are only two types of scopes APPLICATION_SCOPE  and TASK_SCOPE.
    My guess is that they both rely on browser cache somehow.

  • Flash Button Links

    I hope someone can help me with this weird problem. I've been
    using Flash for button links for a while but for some reason
    lately, I've been having this strange problem. When you type in the
    url for the site, the Flash buttons will work as far as the roll
    overs and such, but the links do not work. Yet, if you click on an
    html link, it will take you to that page and from then on, the
    Flash buttons will work just fine. I can't understand why this
    would be happening. Basically, the Flash links work fine unless you
    type in the url. What's happening? Here is the link to what I'm
    talking about. Try typing in the url first. You will see that the
    Flash buttons don't take you to the linked webpage. Then try
    clicking on an html link, and then a Flash link from there. Thanks
    for the help!

    Okay, I've discovered that this only seems to happen if you
    type surecarehomehealth.com without the "
    http://www.". But why wouldn't it work with
    just typing "surecarehomehealth.com"?

  • Multiple Buttons linking to Multiple pages from one movie

    Hi All,
    I have a flash movie with 3 buttons I am trying to link relativley to pages within my site, I have one working fine but can't get the others to link and when I try it makes the one that is working, work no more..
    Below's the code I am using for the one that is working;
    import flash.events.MouseEvent;
    var getIndex:URLRequest = new URLRequest("../index.html");
    //---Enter Button---\\
    E_btn.addEventListener(MouseEvent.CLICK, bClick);
    function bClick(event:MouseEvent):void{
    Still a bit of a newbie in flash so any help really appreciated.
    Many Thanks

    I only see code for one button there, so I can only guess you repeat the same function multiple times.  You cannot use the same name for different functions, and you cannot have the same function duplicated.  Similarly, you cannot declare the same variable more than once.  You can have buttons share the same function though, and you can assign new values to variables.
    For now, start by creating a unique function definition for each button.
    For further consideration, if your buttons happen to be movieclips you can assign the url's to them as variables, or if you name your buttons using the page names they link to, then the same function could be shared with a little generic finagling.

  • Apple Script/Program start through link on HTML page

    Dear Apple Gurus
    Probably I'm asking something silly, but I don't know any other way to solve my problem.
    I have to do some training videos about the finder and system tools. To have it easy, I would like to ad some buttons to the project where you can start an apple script which does execute some commands just explained in the video. Untill know I'm intend to do the hole thing inside QT but maybe a HTML page does the job too.
    My problem is now, how can I start a AppleScript out of a Movie or HTML page.
    Is this possible at all or are there any other solutions to to the job?
    Best regards
    Thomas Thaler

    Hi Thomas,
    Yes, you play movies in a smil presentation.
    You can define as many regions as you want. You difine regions in the layout:
    <root-layout background-color="blue" width="320" height="290"/>
    <region id="videoregion" top="0" left="0" width="320" height="240" fit="meet"/>
    <region id="textregion" top="240" left="0" width="320" height="30"/>
    <region id="linkregion" top="270" left="0" width="320" height="20"/>
    I got part of this from the internet, but here's a quick explanation. The root-layout part defines the whole area. Within this area you have regions. The first region defines the video region and you can give it any id. The origin of the screen is upper-left. fit="meet" means the the movie will be proportional to fit the whole movie. You can change it to other parameters (read the link from the last post). So here, three regions are defined. The first is for the movie (I used a slideshow from iPhoto), the second is for captions in the middle, and the third region is for the link region at the bottom of the screen. You can use any region as a link. Within these regions you place your movies, text, etc. (see the link for more types).
    You next place your types in the body:
    <!-- VIDEO -->
    <video src="slideshow.mov" region="videoregion" id="mov"/>
    <!-- CAPTIONS -->
    <textstream src="caption.txt" region="textregion" system-language="en" system-captions="on" title="english captions" alt="english captions"/>
    (a href="file://localhost/Users/kel/Desktop/linkapp" show="new")
    <text src="text.txt" region="linkregion" end="id(mov)(end)"/>
    video src says what type of object, slideshow.mov is the name of my movie. If you place the movie in the same folder as the smil file, you can use just its name like I did. Then you enter what region you want the movie in. The id="mov" part is to give this video a reference for later use. I used it to keep the text in the link area running until the movie ended. You don't need captions if you don't want, but if you do here's an example of my captions.txt file:
    {QTtext} {font: Arial} {justify: center} {size: 12} {backcolor:0, 0, 0} {timescale: 30} {width: 320} {height: 60}
    Kelvin: Here is my movie.
    {justify:left} {italic} Here is more text. {plain}
    After 4 15/30 seconds the text changes.
    So altogether, I had five files in the same folder: the smil file (slidshow.smil - plain text), the movie (slideshow.mov), the caption text (caption.txt - plain text), and the text file for the link region's text (text.txt - plain text). The script application was on my desktop:
    It's easy to get a local file url through applescript:
    set f to choose file -- the script app
    tell application "Finder"
    set the_url to url of f
    end tell
    and the the local file url is returned in the result.
    The movie needs work. I was playing around with the colors. blue is not a good background color.
    One thing I forgot to say is that you need to read more about the timing (duration). There are a lot of examples and tutorials on the Internet also. It's not that hard though. One thing you might have trouble with is getting repeats to work. I don't think they do.

  • Flash button to show html layer

    I have embedded a Flash menu into an html doc with a hidden
    layer called player. I want a button in the Flash menu to show that
    layer. I used the instructions on this website:
    But it doesn't work. I made a link on the html page that
    shows the layer, so the Dreamweaver MM_showHideLayers function is
    there in the html head. I tried this in the button actionscript:
    on(press) {
    I also tried writing a custom function in the html which does
    work from a button in the html:
    function showPlayer() {
    and then putting this in the Flash button:
    on(press) {
    Which does not work. (following are the Dreamweaver
    Please help!!!!!

    I use externalInterface (instead of getURL). Its a great way
    to call javascript functions from flash and vice-versa.
    http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00002200.html
    There are some links to examples in the comments below the

  • How do I add a "return to top of page" button/link for long pages?

    I've created several long pages within a web site. Is there a button or link that can be used, created, and placed in the middle and/or at the bottom of the pages that will return you to the "top of page" without having to scroll all the way back up? If there is one in iWeb, or if this has been discussed before, I can't find it. Thanks.

    Hi there,
    easiest way would be to have link "Link to: one of my pages" and link to the page itself.
    To me doing this the page doesn't have to completely reload (thus there is no transition displaying a an empty page).
    Another way would be using Anchors which is a bit more complicated... Usually they are used to go down to a certain point of a page but it works the other way around too...

  • Flash button link help

    i have a flash website template where i have done all the editing for my website but now on profile page i create a button and i want when i click on that button that button will take me on another page which is already in that template, but i can't create that. Please assit me asap.
    I have create that button on "symbol 25 copy 2" and i want that button take me on "symbol 25 copy 4"

    What will people who do not have Flash installed do when they
    come to your
    page? How about the search engines?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    - Template Triage!
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    - Macromedia (MM) Technotes
    "Andy" <[email protected]> wrote in message
    news:e50thk$hjd$[email protected]..
    > In DW if I hit the "Play" button in Properties and then
    click the Flash
    > button, the link works but will not work in IE6!!!???
    > "Andy" <[email protected]> wrote in message
    > news:e50rde$fde$[email protected]..
    >> Thanks for your reply, Alan.
    >> That is what I did put in the link box but for some
    reason the link will
    >> not work.
    >> I put
    http://www.netspace.net.au in
    the link box, then saved my work and
    >> viewed it in IE6, but it will not connect me to the
    site when I click on
    >> the button. If I create a hyperlink using a word, eg
    Netspace, it works
    >> OK.
    >> I'm using Dreamweaver 8.
    >> Andy
    >> "Alan" <[email protected]>
    wrote in message
    news:C0995965.28F809%[email protected]..
    >>> In the Flash Button dialog box, in the url or
    link box, type the full
    >>> url
    >>> address including the
    >>> instead of
    >>> www.example.com
    >>> You have to do this for all external links,
    whether using flash buttons
    >>> or
    >>> regular links.

Maybe you are looking for

  • Error time interval Bex analyzer

    Hello I have a report where I need to show the number of transactions for users and machines, ranges of hours, I created a structure with field time intervals, for the amount of transactions that fall into each range of hours, but I observe that repe

  • File/FTP adapter, outbound channel, content conversion, UTF-8 (Unicode)?

    We would like to send "delimited" files to another application (tab-delimited, CSV, ... - the other application does not support XML-based interfaces). Obviously we will have an outbound channel that uses the file/FTP adapter and the data will be sub

  • Best Practice - Securing Schema from User Access

    Scenario: User A requires access to schema called BLAH. User A is a developer that built an application using this schema in a separate development environment, although has the same privileges mirrored to production (same roles etc - required for op

  • Itunes without wifi access

    I'd like to use itunes with my ipad2 in locations where there is no WiFi access; however, I cannot access itunes without connecting to the itunes store. There must be something in a setup somewhere that will allow me to do this but I can't find it. P

  • What to consider when migrating from to

    Hi! I need to migrate a few applications from JDev to Among those applications, I've got Uix, BC4J and Struts frameworks. I've been researching a lot about this migration, and as far as I can understand it sounds like a big hassle,