AS3 button to link to AS2 page

I'm trying to figure out how to get the home button on an Action Script 3 page to the homepage, which is in Action Script 2. There is no AS3 on the homepage, and all of the content is different. Sooo, how do you do this? The .swf file is called homepage.swf and it seems simple, but I can't for the life of me figure it out since I'm so new to AS3. Can anyone help?
thanks!
Sg

Thanks for your help thus far. I have a button on the bottom of architecture.swf that I would like to go to homepage.swf. That's all, just trying to get back to the homepage.swf content. The content is completely different, so I would like it to load the homepage.swf on the same layer. In action script 2 I used what is below, but this is the only actionscript3 page on the site (it's a portfolio my client liked):
on (release) {
//load Movie Behavior
if(this == Number(this)){
loadMovieNum("architecture.swf",this);
} else {
this.loadMovie("architecture.swf");
//End Behavior
thanks so much!
Steve

Similar Messages

  • How to add buttons with links to different pages in my flash document?

    Hi I created a template for my flash animation which is a simple content box and a scroll bar beside it.. Anyway at the top I also have 3 pages (they are currently just part of the png background image so they are not buttons of any sort).. My question is how can I make links to these different pages so when clicked in the flash animation they will just open normally like they would in like a website..
    I am a flash beginner so I'm not too technical with it... I don't know if I would have to create 3 seperate documents for my 3 pages or something else?
    Thanks!

    Do you expect the loaded SWF to load "into" the SWF that contains the buttons or are you expecting it to overwrite the existing SWF you're already in (similar to a web page)?
    Loading a SWF inside is pretty straight forward, as long as the SWF is on the same domain or the domain you're loading from has a crossdomain.xml policy allowing it and the SWF is set to publish with the networking sandbox:
    import flash.display.Loader;
    import flash.net.URLRequest; 
    import flash.events.Event;
    var myLoader:Loader = new Loader();
    // listen for completion
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleCompleteF);
    // usually add some IOErrorEvent or SecurityErrorEvent handlers here
    // button hook here
    myButtonInstanceName.addEventListener(MouseEvent.CLICK, loadPageF);
    function loadPageF(e:MouseEvent):void
         // try to load
         try
              myLoader.load(new URLRequest('another.swf'));
         catch (e:*)
              // catch any error, trace it to flash IDE for debugging
              trace("Error loading SWF: " + e);
    function handleCompleteF(e:Event):void
         // success, add to display list
         addChild(myLoader);
    Season to taste, like moving the position of the Loader object. The Loader will contain the SWF in the .content property (e.g. myLoader.content) and is a display object so you can just add it directly to the display list.
    If you add a second button you can re-use the myLoader to .load() a different SWF, just point it to a new function. You could re-use the same function but you'd need to detect the different buttons (possibly via the .name property). I presume you might want to do "different things" when different pages are loaded so I'm assuming you'd probably use a different function rather than make a huge reused branching function.
    More info on Loader with sample code here:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml#includeExamplesSummary

  • Create a button to link to dreamweaver page.

    I'm making a website in dreamweaver with flash in it, but to be honest I'm really new at web creations. I was wondering if anyone can help me with an issue I came across. I want to link an image that I have in flash to another page (.html) that I have in dreamweaver. When I first used flash and dreamweaver I had done it, but honestly now I completely forgot and can't figure it out. I know I didn't use any action scripts. I just put the page name (???.html) somewhere and it worked. I know you guys are a lot more knowledgeable than I am, so if someone can help I'd be really greatful.

    with as3, use:
    img1.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event){
    navigateToURL(new URLRequest("yourotherpage.html"));
    please mark this thread as answered, if you are able.

  • 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 DVD@ccess 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 DVD@ccess 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 DVD@ccess 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 DVD@ccess 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...

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

  • How to open a new IE page when user clicks on a button or link

    Hi Experts,
    I have created WD program which fetches data from R/3.
    I have to create a link or button on the WD program. When the user will click on the link, another IE page should open. Some processing will be carried out by WD. The result of WD processing should be displayed in this new IE page.
    Regards,
    Gary

    Hi Gary,
    You need to create a seperate window and embed a new view in it. and yeah for accessing that window you need to create one apllication also which is connected to this window.
    Then in the event handler of the button's click action write the follwing code:-
    String deployableObjectName =
                   wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    try {
                   // Get deployable object part of target application.
                   // Precondition: assume, that other application belongs to the same
                   // Web Dynpro Project (Deployable Object)
                   WDDeployableObjectPart deployableObjectPart =
                        WDDeployableObject.getDeployableObjectPart(
                             deployableObjectName,
                             <window name>,
                             WDDeployableObjectPartType.APPLICATION);
                   urlToTargetApp =
                        WDURLGenerator.getWorkloadBalancedApplicationURL(
                             deployableObjectPart,
                             UrlParam);
              } catch (WDURLException e) {
              } catch (WDDeploymentException e) {
                              IWDWindow win1 =  wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp,"Ouput");
    win1.show();
    This will open a new window and then in the wddoinit of the new window's view you can execute the bapi and display the content accordingly.
    Regards,
    sarbjeet Singh

  • After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    Type '''about:config''' in the Location (address) bar and press the "Enter" key. When you see a warning, click '''I'll be careful, I promise!''' button.
    * Preferences that have been modified are shown as '''bold (user set)'''.
    * Preferences can be '''Reset to the default''' or changed via the right-click context menu.
    -> In the '''Filter bar''', type '''browser.sessionhistory.max_entries'''
    * Right click the preference '''browser.sessionhistory.max_entries''' and click '''Modify'''
    * Change value from 0 to whatever you want over 0 (Default value is 50)
    * click OK
    -> Close the '''about:config''' tab and then Restart Firefox.
    See this post:
    * https://support.mozilla.com/en-US/questions/860894#answer-229574
    Check and tell if its working.

  • 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...
    http://alyeska.altervista.org/en/iWeb_Anchors.html
    Regards,
    Cédric

  • 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

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

  • Is it possible to use two buttons on a master page to link to consecutive pages i.e. previous or next

    The easiest way to explain what I am attempting to achieve is to create a navigation template on the master page, with two identical arrows, one pinned to the left side, and one to the right, along with a basic 3 button navigation for; home - table of contents - end for example.
    The idea behind the arrows is that if on my "Plan" tab in Muse, I have all pages within the site in consecutive order from left to right and everytime I change the image that represents the previous or next, I have to go through every page, delete the source image, add the source image to every page (50+ pages) and then link each page individually to the next page in the order.
    Any help would be greatly appreciated.
    Jeff

    I produce a 300-page magazine twice a year that uses next/previous links. Unfortunately master items can't be edited on individual pages. My solution is to edit the HTML after the export. Too bad overrides don't work as they do in InDesign.
    In Muse you could create the arrows on an editable page, then copy/paste-in-place on the rest of the pages and edit the links on each page. Isolate them on a separate locked layer above the regular page content so they don't get moved accidentally.
    Julie

  • Forward button not working on last page of module with links

    CP4 - When I have links on a page, I select the Pause until User clicks option on the click box for the link. This pauses the module until the user has an opportunity to look at the material when they click a link. The Forward button works fine when they come back to the module. However, it does not work on the last page of a module, Forward will not go to the next module -- the Play button must be pushed to Forward to the next module. I have the Preferences Start/End to open another project when they reach the end.
    Can anyone tell me why the Forward button isn't working on the last page when there are links on that page?
    Thank you so much.
    Laraine

    I did a work around which is time consuming and inefficient.  I duplicated the slide, removed the link click box and made the animations static. I also set the slide time length to 0.1, now the forward button on the previous slide works.

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

  • Firefox is my default browser, however i am not thinking of switching because it is having problems with button links on web pages, when i click a button it brings me to a white page on mozilla

    an example of a page gone wrong...
    http://ops.theladders.com/job/alert?et_id=1884492595&cr=2546606&alert=4675965?sign=y&thumbingJobList=2546229,2546638,2545219,2546565,2545967,2546784,2546606,2546513,2549099,2550891&link_id=176
    this is a link to a job site however it is impossible to get to it because when you hit apply in foxfire it brings up a blank screen (i can't give you the address because it just brings up a box without an address screen)
    it should bring up this link http://ops.theladders.com/viewExternalJob?jobId=2546606

    Have you submitted the hint button issue to the site for comment?
    It is hard to debug script problems without access to the page... If you want to research it yourself, start by opening the Error Console (Tools menu) and clicking the Clear button. Then reload the page and check the Console for any errors (red icon). These can indicate when scripts are not loading correctly. Then try to click the hint button and see whether that triggers any additional errors.
    The error messages generally are most useful to the page's programmer, but sometimes can reveal enough information to create a user solution (e.g., running a script through the GreaseMonkey extension that repairs the problem).

  • When I try to access a web page or link from a web page I receive an error message like "Server not found" or "Unable to connect." After repeated "try again" attempts the page will load, but when I click on a button or link, the same thing repeats. Why?

    When I try to access any web page or any link from a web page, I receive an error message such as "Server not found" or "Unable to connect." After repeated "try again" attempts that the page will load, but as soon as I click on a button or link, the same thing repeats. Any suggestions?

    When I try to access any web page or any link from a web page, I receive an error message such as "Server not found" or "Unable to connect." After repeated "try again" attempts that the page will load, but as soon as I click on a button or link, the same thing repeats. Any suggestions?

Maybe you are looking for