Attempting to link to html page

I have made an fla for an intro but I want to create a link
to click on that will take the viewer to the next page of the
website, which is a regular html page. I have used the help example
to apply the following actionscript to a button with a named
instance of "enterBtn".
// Attach to frame
enterBtn.onRelease = function () {
However, with the above code I get the following syntax
**Error** Scene=Scene 4, layer=Glow Behind FrameBTN,
frame=309:Line 2: Statement must appear within on handler
enterBtn.onRelease = function () {
Total ActionScript Errors: 1 Reported Errors: 1
>>Am I on the right path? Or do I need to use the:
var listenerObject:Object = new Object();
listenerObject.onLoadInit = function(target_mc:MovieClip) {
target_mc.onRelease = function() {
Can anyone help me please?

The error probably is because you wrote the code on a
"button" type clip.
If you selected the enterBtn in stage then typed your actions
then try to change
enterBtn.onRelease = function()

Similar Messages

  • 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

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

  • 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 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 - 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");

  • Add Podcast link to HTML page

    I want to put a link to my podcast on a regular HTML page. I want my users to be able to click it and have the link redirect to iTunes on their computer and have it download there. How do I do that?

    I figured it out. I neglected to say that the podcast was from iWeb.

  • 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="" 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, 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 (, 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.

  • Ramdomly attempts to save normal HTML page as template

    DW CS4.
    If I have a plain HTML file, such as one called index.html for instance, and I make changes and go to Save it, "sometimes" DW saves it just fine. But sometimes it attempts to save it as a template -- and won't let me save it in standard file format.
    I have to do Save As to create an alternate file, and do Save As to write that alternate file as the orignal filename (ie: index.html) that I wanted in the first place.
    And the behavior is intermittent. Sometimes is keeps doing it, and sometimes it won't do it at all. Even within the same site files.
    Any suggestions?

    This is what's at the top of the page.
    Can you please show me what to delete?
    I don't think Dreamweaver will let me edit or delete what's grayed out, but I suppose I could do that in Notepad with no problems, correct?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns=""><!-- InstanceBegin template="/Templates/WidgetCoTemplate.dwt" codeOutsideHTMLIsLocked="false" -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <link href="../custom2.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    a:hover {
    color: #999;
    <script type="text/javascript" src="swfobject.js"></script>
    <table width="900" height="97" border="0" align="center" cellpadding="0" cellspacing="0">

  • Problem with return link from html page back to css page

    Here is the site..almost ready for publication
    1) Go to properties for sale
    2)Choose a suberb
    3)click on a property with a video
    4) watch the crazy video if you like
    5) Click go back to properties
    ^) Yes the page is there but the property page is now
    8)The whole thing works fine on Firefox but we do have this
    Glitch on IE
    PLEAASSE Can someone help
    Regards Matthew [email protected]
    Everything works well but for the problem return link to the
    properties page after you have gone to the video.The property page
    becomes inactive

    Your page is a monster -
    Empty Cache
    10.6K 1 HTML/Text
    1.5K 1 Stylesheet File
    985.4K 25 Images
    997.7K Total size
    27 HTTP requests
    25 images with aggregate weight of ~1MB is much too large,
    you know?
    Anyhow, I cannot reproduce your problem in IE7. Are you
    referring to IE6,
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    - DW FAQs, Tutorials & Resources - DW FAQs,
    Tutorials & Resources
    "fredbillmatt" <[email protected]> wrote in
    news:fv0m9k$a7a$[email protected]..
    > Here is the site..almost ready for publication
    > 1) Go to properties for sale
    > 2)Choose a suberb
    > 3)click on a property with a video
    > 4) watch the crazy video if you like
    > 5) Click go back to properties
    > ^) Yes the page is there but the property page is now
    > 8)The whole thing works fine on Firefox but we do have
    this Glitch on IE
    > PLEAASSE Can someone help
    > Regards Matthew [email protected]
    > Everything works well but for the problem return link to
    the properties
    > page
    > after you have gone to the video.The property page
    becomes inactive

  • Help with getting links from HTML page

    Hello all. I found the sun tutorial for getting HREF values from a tags in an HTML document at <>. My question now is how would a person add the ability to get the text of the link to this code?
    For example:
    Provided the HTML code:<a href="link.html">example</a>Returned is: href=link.html text=example

    I think the TechTip you've linked too is quite old (1999). I would write a simple SAXParser that uses TagSoup ( as its input source. In your handler, simply set a flag and reset a StringBuffer to collect the contents of any <a>...</a> element. Simplified:
        public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
            if ("a".equals(localName)) {
                currentHref = attributes.getValue("href");
                if (currentHref != null && currentHref.length() > 0) {
                    inLink = true;
                    //reset the string buffer
        public void characters(char[] ch, int start, int length) throws SAXException {
            if (inLink) buf.append(ch, start, length);
        public void endElement(String uri, String localName, String qName) throws SAXException {
            if ("a".equals(localName) && inLink) {
                inLink = false;
                //add link to the stack
                links.add(new Link(currentHref, buffer.toString()));
        }Completely untested, of course... .Good luck...

  • Downloading HTML page blocked by site

    I am attempting to download the html page at the following url.
    However, when I do so with my java code.
    URLConnection urlConn = theURL.openConnection(); //get the connection
    BufferedReader myStream = new BufferedReader(new InputStreamReader(urlConn.getInputStream())); //get the stream connection
    String oneLine = "";
    try{ while ( (oneLine = myStream.readLine()) != null) { theHTML.append(oneLine + "\n"); } }
    catch(IOException e) { throw e; }  //throw the exception to the invocation
    myStream.close();I actually get a response with a page saying my "browser" isn't compatable.
    Is there any way around this? Is there anyway I can download the information from the page like I would in a browser?

    Any idea of the value I would set it to?No, but if you go here you'll see some websites that will show you what your browser is sending. You should be good if you mimic the relevant headers from a browser that works.
    This would be done in a fashion similar to the
    example at right?
    I didn't see them setting any request headers there.

  • Linking .swf to html page using a href ......

    I have attempted to get an anwser to this on the Flash forum, but it is a jungle over there.... I have attempted to link a swf to a web page on my site using the a href property; the page opens in Safari and Firefox; however, in IE7 the page shows at the bottom of the browser, but nothing happens on mousedown. I fear it may have to do with the way IE handles the wmode=transparent property...  I have tried using an invisible button in Flash, but it covers up the animation every time...
    This is the code for the two button graphics (movie clips):
    <table style="width: 100%;" border="0">
    <td align="left"><a href="/index.php/design-samples.html">
    <object width="220" height="120" data="/Flash/designs_ad.swf" type="application/x-shockwave-flash">
    <param name="quality" value="best" />
    <param name="wmode" value="transparent" />
    <param name="src" value="/Flash/designs_ad.swf" />
    <td align="right"><a href="/index.php/recent-work.html">
    <object style="width: 220px; height: 120px;" width="220" height="120" data="/Flash/recentwork_ad.swf" type="application/x-shockwave-flash">
    <param name="quality" value="best" />
    <param name="wmode" value="transparent" />
    <param name="src" value="/Flash/recentwork_ad.swf" />

    The reason it will not work in IE is because IE uses a different form of code to play swf's/flv's, (application vs's plug-in).
    Firefox and Safari use - type="application/x-shockwave-flash", but IE uses - classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000".
    If you do a standard insert - media - swf from the main menu bar in dreamweaver this will insert the correct code for you.

  • FIREFOX 26 changed the 'post crash' page with the list of windows and pages. It was a real HTML page with links for each page. Now it isn't (and blows)

    * You changed the page that comes up after a crash - the one which shows the windows and pages that were up before the
    This used to be a real HTML page and it isn't any more. THis choice was pure isiocy consider how peopel used that page every day (try taking to your users for a change).
    The pages listed on that 'post crash page' used to be actual LINKS (you could right click them &
    manually open them in another tab - and most peope DID that every day). You could also (and I did this a lot) drag a second
    copy of the page, into a new tab (to keep track of all the pages I had not wanted to open)
    Now the pages are no longer links. You cannot right-click them.
    The thing in the probser is no longer a page that I can drag into a new tab.
    Roll the version back and throw this one in the bin...and have a good long talk with your developers about the definition of
    Then I try to type anything in the addres bar it is suppose to repoond with the history of old things I have types in the past, or
    search for what I type (and in some cases I think it tyes to convert it intoa URL). However it no longer does any of these
    things. When I type in the ADDRESS BAR ONLY, I do not get all of my letters to appear. I have to type into a notepad or
    into the search and to copy and paste to go to a URL. Nothing that is typed into the address bad responds normally at all
    anymore, and I am fairly certain there are no new addons on this machine at all. It does not matter which things I disable. It
    still does this. W of course points the finger back at a change to FIREFOX. I wich I could just sitct with one stable release
    forever but the MOZILLA folk thing it is best to force peopel awy from a working broswer release to a horrible one (due to it
    being out of date).
    FIREFOX 26.0 has 'issues' (ie new *features*/bugs)
    1) History is no longer accurate. My Proof? This machine is the primary one for the entire family (the only PC working). It is
    logged in with same user every time and never has its history cleared. It now January 7 so I ought to have a list of all of last
    months browing available to me.
    However, according to FIREFOX history, in all of December 2013, the entire family only went to 51 primary URL's. None of
    the official TV sites I use to get episodes are listed. None of the official movie sites I use are listed. The primary URL for
    ebay is not listed. Only 1 out of our 4 weather sites that I use (at least once a week) are listed. Only 1 of our 3 FINANCE
    sites is listed. There ought to be several; hundred root URLs listed.
    Please fix history as this change seriously "blows greasy chunks"
    PROBLEM (a stupid change in the new FIREFOX version)
    FOr a long time, after a crash you got a useful page (a real HTML page) which gave you a list of all of your last sessions
    'winwos and tabs' that were open when the browser crashed. there were certain ways of using this page that are no longer
    able to be done.
    The old method was wonderful as it had this behavior :
    *** The old method for displaying your 'Recovered Tabs' allowed you to :
    a) right click an individual item and open it in a tab without getting rid of that lovely window of your previous session of
    'recovered windows and tabs '.
    2) drag the URL for the entire window of 'recovered windows and tabs ' to a new tab (to make a second copy) so that you
    could select just a few of them to open as a group, and stil have the old list handy.
    You can no longer do either of these things. The 'recovered windows and tabs ' page no longer has links in it and can no longer be dragged, so you cant select a few of them to use, and keep the rest around for later. NOW - once you choose which pages to open the window is gone forever (can can't get a second copy).
    People used to make a copy of the page for later use (with a drag)
    we also used to open pages with a right click (which no longer functions
    This new method seriously blows big greasy chunks. A parge loss in function has occurred.
    Put things back as they were. 26 is full of terrible changes that NOBODY likes. It also has a lot of bugs (history is not reliable at all)

    (1) Firefox's built-in post-crash page has not been a real HTML page for a long time (for example, from the time of Firefox 22, see: [ Want to save LOTS of versions of "Restore Session.xht" from the "oops ..." page for later use]). If you had this working differently with Firefox 25, that might have been created by an extension.
    You can check to see whether extensions are disabled or need an update on the Add-ons page. Either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Extensions. The disabled extensions cluster toward the bottom of the list. To poll for updates, use the "gear" button above the list and choose Check for Updates.
    If you used the Reset feature (or Firefox automatically did a reset due to some problem during upgrading), you will need to reinstall missing extensions. The reset feature creates a folder on the desktop named Old Firefox Data. Do you have that folder? There may be data you can recover from it.
    (2) There are many ways for history to get cleared, both internal to Firefox and external. Could you double-check your Privacy settings?
    orange Firefox button (or Tools menu) > Options > Privacy
    * The "Firefox will" drop-down says Remember History: Firefox shouldn't be clearing history, but an add-on or external software could do it
    * The "Firefox will" drop-down says Use custom settings for history: inspect the "Clear history when Firefox closes" setting to make Firefox isn't set to clear history. Also check your add-ons and consider external software.
    Firefox normally accumulates months of history. However, some of Firefox's database sizes are based on disk space available. If your hard drive is very full, Firefox might reduce the amount of history stored.

  • TREX Search : static HTML pages in KM with links to other intranet websites

    Hi there,
    we have some static HTML pages stored in KM. Besides text, these pages contain links ot other intranet websites, pdf or word documents.
    I have defined an index, according to <a href="">creating an index</a>
    Following parameters have been added :
    IndexInternalLinks = true
    indexContentOfExternalLink = true
    showWithoutDatasource = true
    Already had a look at <a href="">Crawlers and Crawler Parameters</a>, tried by creating a new crawler profile and setting
    Maximum Depth = 3 (we want to search three levels deep)
    There is also <a href="">Resource Filters</a>
    The html pages itself are included in the index, but the content of the external links is not included.
    Would this be possible? We don't want to define an <a href="">HTTP System</a> in the system landscape, as we don't need to index the whole external website and some parts of it are obsolete - we only want following the links and included the external content in the index.
    Portal version is NW2004S SP10.
    Thanks & best regards,

    Hello Kevin,
    If you don't want to create a HTTP system then you can create a simple web repository.
    For details you can follow help guide:
    Also you can create a Web Repository:
    Do refer to "Dynamic and Static Web Repositories" section in the document. This will answer your query.

Maybe you are looking for

  • CS5.5 Production Premium Dynamic Link error

    I have trial CS5.5 Production Premium. I'm trying to dynamic link premiere pro to after effects but error "Using Adobe Dynamic Link with Adobe After Effects requires Adobe Production Premium". I already instal Production Premium.I reinstall but still

  • External Hard Drive Fail After Waking from Sleep

    Hi, I've been having this issue for over a year (since upgrading to Lion, and now still persists after upgrading to Mountain Lion), and I haven't been able to find the exact answer I need after searching through the posts here, and on the internet. I

  • NetMsmqActivator and NetPipeActivator Services

    Hi fellow Server Managers I have searched for endless hours about this, and all i find is developer related articles. The two services mentioned in the subject has stopped, and when i try to start them manually, Visual Studio wants to debug them. I a

  • 400 dpi tifs printing with dots /  resolution issue

    I'm being supplied with 600 dpi RGB .tif files from a client. I convert them to Grayscale, the lower resolution to 400 dpi, without changing the size of the graphic, and save as a .tif.  This tif then gets inserted into a microsoft word file within t

  • Browser Virus Malware Adware etc.  HELP!

    I have been trying for 3 days to kick this absurd problem off of my Macbook Pro.  It feels like I have a virus/malware/adware situation that is making me feel like I'm back on a PC (UGHHHHH). BEFORE THE PROBLEM: I kept getting "scratchdisk" or "start