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:
_root.cele1.on(release);{
getURL("celebrities.html");
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

Similar Messages

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

    Hi!
    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:
    file:///DVDname/ParentFolderName/filename.extension
    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:
    file:///Project/ROM/index.html
    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.

    Hi,
    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.
    Aviad

  • Trying to assemble a HTML page using 3 servlets.

    I am trying to assemble a HTML page using 3 servlets.
    1 servlet for generating a standard header for the page, 1 for generating a standard footer for the page and 1 for generating the content for the page.
    I know how to generate a page with only one servlet, but how do you do it with 3 servlets, with each generating part of the page.

    Use the include method of the RequestDispatcher to include the output of the header and footer servlets.

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

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

    hi
    on(press)
    getURL("path of html page");
    }

  • Add Podcast link to HTML page

    Hi.
    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:
    <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"/>
    </layout>
    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:
    <body>
    <par>
    <!-- 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)"/>
    (/a)
    </par>
    </body>
    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}
    [00:00:00.00]
    Kelvin: Here is my movie.
    [00:00:04.15]
    {justify:left} {italic} Here is more text. {plain}
    [00:00:07.04]
    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:
    "file://localhost/Users/kel/Desktop/linkapp"
    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.
    gl,

  • 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 () {
    getURL("
    http://www.mywebsite.net/mainframe.html",
    "_blank");
    However, with the above code I get the following syntax
    error;
    **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() {
    getURL("
    http://www.mywebsite.net/",
    "_blank");
    Can anyone help me please?
    Thanks!

    Hello.
    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()
    to
    on(Release)

  • Sending XML to an HTML page in AS3

    I'm working on an a Flex 3 application to generate XML to use in Fusion Charts Free.
    So that the user can preview the chart, I'm currently sending the XML to an HTML page with runs the chart SWF using navigateToURL with the XML appended to the query string. The HTML page captures the query string with Javascript and supplies the XML to the chart.
    <script type="text/javascript">
       var xmlstring = getParameterByName('xml');
       var chart = new FusionCharts("FCF_Column2D.swf", "ChartId", "900", "600");
       chart.setDataXML(xmlstring);   
       chart.render("chartdiv");
       function getParameterByName(name) {
            var match = RegExp('[?&]' + name + '=([^&]*)')
                         .exec(window.location.search);
            return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); 
    </script>
    This works fine in Firefox but I have problems with IE - the maxium URL length limits the amount of data, and IE9 removes the query string if in protected mode, and also requires it to be URL encoded. I try to get round this with the actionscript below.
    var pageurl:String = chartpage + ".html";
    var appName:String = ExternalInterface.call( "function getAppName(){ return navigator.appName; }" );
    var agentName:String = ExternalInterface.call( "function getAppName(){ return navigator.userAgent; }" );
    var qs:String = qxml;
    // IE cannot cope with more than 2083 chars in URL
    // IE9 requires escaping and needs to be not in protected mode
    if (appName == "Microsoft Internet Explorer")
       if (agentName.indexOf("MSIE 9") > -1)
        qs = encodeURI("?xml="+qxml);
        if (qs.length > 2000)
        Alert.show('Data is more than 2000 bytes, too much to pass to Internet Explorer on the query string. Choose less data or use a different browser.', 'Fusion Chart Generator', mx.controls.Alert.OK);
       else
        var urlRequestIE:URLRequest = new URLRequest(pageurl+qs);
        navigateToURL(urlRequestIE,"_blank");
    else
      var urlRequest:URLRequest = new URLRequest(pageurl+"?xml="+qxml);
      navigateToURL(urlRequest,"_blank");
    Is there a better way of doing this?
    Thanks
    Richard

    It appears that I am still doing something wrong. I've attached the flash, but here is the code based on my understanding of how to update it:
    import flash.net.URLRequest;
    import flash.net.navigateToURL;
    dvds.addEventListener(MouseEvent.CLICK,navigate1);
    var nav1:String="http://bikepaparazzi.com"; navigate1(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav1),"_self");
    proconvention.addEventListener(MouseEvent.CLICK,navigate2);
    var nav2:String="http://proconvention.com"; navigate2(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav2),"_self");
    advertise.addEventListener(MouseEvent.CLICK,navigate3);
    var nav3:String="http://bikepaparazzi.com"; navigate3(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav3),"_self");
    tee.addEventListener(MouseEvent.CLICK,navigate4);
    var nav4:String="http://bikepaparazzi.com"; navigate4(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav4),"_self");
    proconvention.addEventListener(MouseEvent.CLICK,navigate5);
    var nav5:String="http://bikepaparazzi.com"; navigate5(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav5),"_self");

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

    Here is the site..almost ready for publication
    http://www.matriley.com/glensite/index.html
    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
    inactive...why?
    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,
    instead?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "fredbillmatt" <[email protected]> wrote in
    message
    news:fv0m9k$a7a$[email protected]..
    > Here is the site..almost ready for publication
    >
    http://www.matriley.com/glensite/index.html
    >
    > 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
    inactive...why?
    > 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 <http://java.sun.com/developer/TechTips/1999/tt0923.html>. 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 (http://www.ccil.org/~cowan/XML/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
                    buffer.setLength(0);
        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...

  • 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{
    navigateToURL(getIndex,"_self");
    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.

  • Problem in displaying html page in JEditorPane....

    Hi All,
    i was trying to display a html page in a JEditorPane. i was able to do that when i'm displaying a html page from a local machine.. But when i try to get the page from some website, it giving me
    "exception access denied (java.net.SocketPermission www.java.sun.com resolve)"
    exception. But if i run the same code thru JBuilder, its working. But thru appletviewer or thru IE or Netscape its throwing the error.. Any suggestion or help is highly appreciated....
    Thanks
    Ragu

    Java Applets are very secure, what is good. Java applets are extremely secure
    what is bad. So Applet cannot open TCP connection to any host rather than its
    home host. So you cannot get the resources from any other server (what is common to
    HTTP).
    In JBuilder iit works cause JBuilder is used for development and security in deevelopment
    is not an issue. But it confuses then you see.
    vpanasenko_even

Maybe you are looking for

  • Bw report,urgent

    rrmx: stock details report, this is std report.k, i want to excute n get the data for last month in excel sheet, for the excecution ,i want to submit in back ground,is there any possiblity to submit in background.(i wwant to execute this report in ba

  • Edit Naming Bug

    Just tried to edit a file name after editing in PS. God it's painful to do, even after you work out how on earth to do something that is normally so trivially easy. LR imports and displays a file called say "2007-03-15 Betty 004 Provia+Lomo-ed.psd" n

  • IPod Service Request- Need Customer SAP Number?

    Uh, trying to send my iPod in for repair and couldn't due to my Customer SAP number not being found? So, anyone have any clue *** this imaginary number is and how I go about finding out what mine is? Thanks ahead of time. P.S. Thanks iTunes 7 for tur

  • Is there a way to migrate Content Area vía API?

    Hi I have to migrate an Oracle Portal 9.0.2 installation to an 11.1.1.4. Now I had some really unpleasant and even traumatic experiences with the migration. I was wondering is there an API in 11.1.1.4 where I can create a process that takes the 9.0.2

  • Errore di elaborazione foto

    Aprendo vecchie foto di un anno fà mi appare su alcune "errore elaborazione foto". Cosa devo fare ??