Basic code to divert from a flash page if no flash detected

I need to put in some html code (and i'm a novice) that will detect users with no flash (iPad, etc) and automatically direct them to another page. I'm sure it's done all the time, but I'm not a great coder... The page that HAS the flash is http://cinzophoto.com.
Thanks for any help!
Lorenzo

You really don't need to redirect to another URL... swfobject lets you place all that content directly on the current page.. that's what it's for...
But if you can't code that in, here is a manual alternative..
replace the url here:
<p><a href="http://macromedia.com/go/getflashplayer/" target="_blank">Click here to download the latest Flash Player</a>.</p>
with:
<p><a href="http://yourpage.com">Click here for non-Flash site</a></p>
Best wishes,
Adninjastrator

Similar Messages

  • Linking Flash Pages

    What code do you use to link flash pages in a flash website?
    Anything will help!!

    Nate, the first thing to do would be some basic reading on
    publishing Flash documents (i.e. "converting from FLA to SWF").
    Start with the Live Docs here:
    http://livedocs.macromedia.com/flash/8/main/00000805.html
    This will help you in producing the SWF file that you can
    then place in your HTML template using Dreamweaver.
    Good luck!

  • Embedding Flash into a Flash page

    Hey all...my first post here.
    I've recently learned Flash and have had pretty good success figuring out challenges that come up...however I am stuck on one now and am looking for help.
    I am designing a site for a music project that I manage.  The band also uses another free site, Reverbnation, for promotions and such.  The site provides a mailing list function, and you can embed an already provided "widget" onto your HTML web page that will automatically add people to your e-mail list if they choose to sign up.
    The problem I am having is that the page the widget is going to be on is now all Flash.  I can't figure out how to get the widget into the Flash page.  The Flash page itself is really nothing elaborate.
    Here is the code for the widget that they provide:
    <img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNzQyMTEwMDU3NjUmcHQ9 MTI3NDIxMTQyMTQwNiZwPTI3MDgxJmQ9ZmFuX2NvbGxlY3Rvcl9maXJzdF9nZW4mZz*x/Jm89ZDlkZTU1NWQ2YWFlN DRiMDlhMzU4MDgxZDM1OTk2ZWUmb2Y9MA==.gif" /><embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=artist_708835 &backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_708835" height="100" width="434" /><br/><a href="http://www.reverbnation.com/gigfinder" onclick="javascript:window.location.href=&quot;http://www.reverbnation.com/c./a4/11/708835/Artist/708835/Artist/link"; return false;"><img alt="Land Gigs" border="0" height="19" src="http://cache.reverbnation.com/widgets/content/11/footer.png?1" width="434" /></a><br/><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/11/artist_708835/artist_708835/t.gif"/><a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>
    Any ideas on how I would embed this into my Flash page to be a functioning widget?
    Thanks!

    your published swf will be embedded in an html file.  add your widget code to that html file.
    you can use html, styles, divs etc to position the swf and widget.
    or, if you want to incorporate that widget within your swf, you might be able to load
    http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=art%20ist_708 835&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_708835
    and manage.

  • Basic Flash Page, Script Help Please!

    So, I realize I'm an idiot, but I'm trying to teach myself flash because I need to make a basic flash page.  I am going by this tutorial:
    http://www.flash-game-design.com/flash-tutorials/basic-Website-flash-tutorial.html
    I have modified it (going step by step mind you) and now that it's over, instead of the page loading normally, it just goes from page to page without clicking on a link at all.  Just goes from home, to about, to artists, etc.
    I get no errors so... I'm a little lost.
    I've uploaded the swf for reference.

    I always say to doublecheck the instance names... you'd be surprised how often some says they're okay when they're not.  Sometimes they are using library names, not instances names, and something they simply did not assign instance names.
    Your description of how the buttons are related to a movieclip isn't clear, but if the traces I mentioned come out, then the buttons are working.
    I wish there was a way I could see the full set of messages for this posting (like the old system)... at this point I have to guess what I remember seeing...  Do you have frame labels in your section mc that match the calls in your buttons functions?
    For the home page issue... If it disappears it is likely going to another frame.  If a command says gotoAndPlay... and you're already there, it will advance in the timeline even if there is a stop in that frame (the stop is used up)
    Here's a routine that worked for another posting as far as getting the file to upload in the forum...
    1) zip the fla file
    2) rename the zip file to have a txt extenstion

  • Can you code a link between html and a particular flash page?

    Hi,
    I hope this question is not too confusing. I am designing a website in flash CS3 using Action script 2.0 not 3.0 and Flash Player 8. The architecture I used is as follows:  I have a menu/main page which loads the swf files of other flash pages.  I have a particular flash chatroom page which is loaded by the main page that I would like to be able to link an web address (example ... www.chatroom.com) directly too that particular sub flash page ... rather than going to the main.swf which is what the original web address uses.  (I hope your following me).
    Technically I know I could link a web address to the chatroom.swf file, but then it would estetically look incomplete since the theme/design of the website is in the main.swf which calls the chatroom.swf.  
    Thus my question is: is there a way to assign the web address to  the chatroom.swf inside the main.swf. I would like to go directly to the chatroom without clicking chatroom on the main.swf menu.  I do not know enough Actionscript 2.0 to know if this is possible. I did try to search for the answer but could not find it.  If it is possible what script would I need?  If it is not possible, any other ideas to get the same effect?
    As always, thank you for your help.

    I just wanted to clarify how the main page links to the subsequest pages when I said it loads the swf file.  The links in the actual menu code are fla files.
    (on release) {
    _root.toLoad = 'chatroom'
    _root.con.play(_currentframe+1);
    Then I must publish the files to make swf files for each page which will be loaded into the main menu.
    I hope that gives insight to my thinking and helps you answer my question.

  • Pass the data back from the jsp page to the java code

    Hi,
    I have written an iView that receives an event using EPCF and extracts data from the client data bag.
    I need this iView to pass the data back from the jsp page to the java code.
    I am trying to do this using a hidden input field, but I cannot get the code to work.
    Here is the code on the jsp page.
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId">
    <hbj:inputField id="myInputField" type="string" maxlength="100" value="" jsObjectNeeded="true">
    <% myInputField.setVisible(false);%>
    </hbj:inputField>      
       </hbj:form>
      </hbj:page>
    </hbj:content>
    <script language=JavaScript>
    EPCM.subscribeEvent("urn:com.peter", "namedata", window, "eventReceiver");
    function eventReceiver(eventObj) {
         var url = eventObj.dataObject;
         var funcName = htmlb_formid+"_getHtmlbElementId";
         func = window[funcName];
         var ipField = eval(func("myInputField"));
         ipField.setValue(url);
         var form = document.all(htmlb_formid);
         form.submit();
    </script> 
    Here is my java code
    package com.sap.training.portal;
    import com.sapportals.htmlb.InputField;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    public class ListSalesOrder extends PageProcessorComponent {
      public DynPage getPage(){
        return new ListSalesOrderDynPage();
      public static class ListSalesOrderDynPage extends JSPDynPage{
         private String merong;
        public void doInitialization(){
        public void doProcessAfterInput() throws PageException {
              InputField reportfld = (InputField) getComponentByName("myInputField");
              if (reportfld != null)      merong = reportfld.getValueAsDataType().toString();
        public void doProcessBeforeOutput() throws PageException {
              if ( merong != null ) setJspName("merong.jsp");
              else setJspName("ListSalesOrder.jsp");
    Here is DD
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="SearchSalesOrder">
          <component-config>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="/pagelet/SearchSalesOrder.jsp"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ListSalesOrder">
          <component-config>
            <property name="ClassName" value="com.sap.training.portal.ListSalesOrder"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    After receive event, then call java script function "eventReceiver" and call "form.submit()".
    But .. PAI Logic in Java code doesn't called ...
    Where is my problme ?
    Help me ...
    Regards, Arnold.

    Hi Arnold,
    you should not do a form.submit yourself. Instead you can put a component called ExternalSubmit to your page:
    ExternalSubmit exSubmit = new ExternalSubmit("EX_SUBMIT"));
    exSubmit.setServerEventName("MyEvent");
    This results in a java script funtion on the page which is called "_htmlb_external_submit_". If you call this function the the form gets submitted and your event handler is called.
    regards,
    Martin

  • How can I save my document from pages to a flash drive?

    How can I save my document from pages to a flash drive?

    Locate the file on your Mac, plug in the USB stick (the mac should prompt you to open it, or do this automatically), click and drag the file from the computer (wherever it's saved to) to the USB folder. That's just putting an already saved file there.
    To save it TO your USB stick, find it in the Save To diolog on the sidebar. Click it, then save it there.

  • Create a PDF from a Flash page

    I need some help with a request from a client. I have created a form that a user fills out and the answers they give are added to a email as text. This works great but now the client wants the text answers in a PDF not just as text in an email. My question is, is there a way to create a PDF from the answers on a form from within the Flash program. The answers are saved in variables then added as text to the email.

    Here's an again super rudimental example - click on the stage will invoke the "save file as..." dialogue.
    package {
        import flash.display.Sprite;
        import flash.events.MouseEvent;
        import flash.net.FileReference;
        import flash.utils.ByteArray;
        import org.alivepdf.fonts.CoreFont;
        import org.alivepdf.fonts.FontFamily;
        import org.alivepdf.fonts.IFont;
        import org.alivepdf.layout.Orientation;
        import org.alivepdf.layout.Size;
        import org.alivepdf.layout.Unit;
        import org.alivepdf.pdf.PDF;
        import org.alivepdf.saving.Download;
        import org.alivepdf.saving.Method;
        public class PDFDemo extends Sprite {
            private var _pdfByteArray:ByteArray;
            public function PDFDemo():void {
                var pdf:PDF = new PDF(Orientation.PORTRAIT, Unit.MM, Size.A4);
                var helvetica:IFont = new CoreFont(FontFamily.HELVETICA);
                pdf.addPage();
                pdf.setFont(helvetica, 24);
                pdf.writeText(24, "Hello World!");
                _pdfByteArray = pdf.save(Method.LOCAL, null, Download.ATTACHMENT);
                stage.addEventListener(MouseEvent.CLICK, click);
            private function click(e:MouseEvent):void {
                new FileReference().save(_pdfByteArray, "hello-world!.pdf");

  • Issue in redirecting to portal page from SSO login page

    HI facing issue while redirecting to portal application from SSO login page.please find below basic details
    the application comprises of TAM / Apache / Weblogic, and all the request goes in the same order.
    When the application is deployed as portlet, the jsp page some how hard codes the apache host name, that in turn blocks any form submit or Ajax action.
    so on successful login the redirection is not happening to required portal page as it includes apache host name in the url consrtucted.
    Please suggest me what are the configurations that I need to verify .
    Thanks in Advance
    Jetti.

    If you upgrade to v7.1 you will have all those features and more - PLUS a lot of defective pieces have been fixed in 7.1

  • How to read text from a web page

    I want to read text from a web page. Can any body tell me how to do it.

    Ok i tell you detail. visit the site " http://seriouswheels.com/" you will a index from A to Z which are basically car name index i want to read each page get car name and its model and store it in data base. I you can provide me the code i will be very thankful.

  • Re:DW8 flash on template page not shows flash

    Hi Murray,
    When I changed it to relative nothing changed, the .dwt works
    fine but not
    my other pages based on the template. Maybe there is
    something wrong with
    the editable regions?
    Thanks for your help
    Sam
    Make the link to your Flash file be a root relative one.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    Hi all,
    I have a template based page with one flash animation.
    When I preview my template page the flash is working fine,
    but in my pages
    bases on the template I don't see my flash animation.
    Do I miss something?
    You can find my pages (text) on the following links:
    http://www.waterloocity.be/doc/go2waterloo_FR-dwt-asp.txt
    http://www.waterloocity.be/doc/index-asp.txt
    I searched in the archives but fund nothing that helps me
    I appreciate all help
    Thanks in advanced, Sam

    Then there is something wrong with the SWF file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "SamDesign.be" <[email protected]> wrote in
    message
    news:[email protected]...
    > Now, I see noting. In dreamweaver I see the swe but when
    I do the "play"
    > it's white
    >
    > "Murray *ACE*" <[email protected]> a
    écrit dans le message
    > de news: [email protected]...
    >> Do you see the Flash element locally?
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "SamDesign.be" <[email protected]>
    wrote in message
    >> news:[email protected]...
    >>> Yes, I work localy for the moment.
    >>>
    >>> "Murray *ACE*"
    <[email protected]> a écrit dans le
    message
    >>> de news: [email protected]...
    >>>> Did you upload the Scripts folder?
    >>>>
    >>>> <script
    src="../Scripts/AC_RunActiveContent.js"
    >>>> type="text/javascript"></script>
    >>>>
    >>>> --
    >>>> Murray --- ICQ 71997575
    >>>> Adobe Community Expert
    >>>> (If you *MUST* email me, don't LAUGH when
    you do so!)
    >>>> ==================
    >>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>> ==================
    >>>>
    >>>>
    >>>> "SamDesign.be"
    <[email protected]> wrote in message
    >>>> news:[email protected]...
    >>>>> Hello Murray,
    >>>>>
    >>>>>
    >>>>>
    >>>>> I tray it again but still don't working.
    I made a new page, without
    >>>>> linking to a template, and there my
    flash is also not showing up.
    >>>>>
    >>>>> Here is my code from a test page.
    >>>>>
    >>>>> Thanks for your time!
    >>>>>
    >>>>>
    >>>>>
    >>>>> <%@LANGUAGE="VBSCRIPT"
    CODEPAGE="1252"%>
    >>>>>
    >>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD
    XHTML 1.0 Transitional//EN"
    >>>>> "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >>>>>
    >>>>> <html xmlns="
    http://www.w3.org/1999/xhtml">
    >>>>>
    >>>>> <head>
    >>>>>
    >>>>> <meta http-equiv="Content-Type"
    content="text/html;
    >>>>> charset=iso-8859-1" />
    >>>>>
    >>>>> <title>Untitled
    Document</title>
    >>>>>
    >>>>> <script
    src="../Scripts/AC_RunActiveContent.js"
    >>>>>
    type="text/javascript"></script>
    >>>>>
    >>>>> </head>
    >>>>>
    >>>>> <body>
    >>>>>
    >>>>> <script type="text/javascript">
    >>>>>
    >>>>> AC_FL_RunContent(
    >>>>> 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','100','height','60','title','test','src','/flash/newpub','quality','high','pluginspage ','http://www.macromedia.com/go/getflashplayer','movie','/flash/newpub'
    >>>>> ); //end AC code
    >>>>>
    >>>>>
    </script><noscript><object
    >>>>>
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    >>>>> codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    >>>>> width="100" height="60" title="test">
    >>>>>
    >>>>> <param name="movie"
    value="/flash/newpub.swf" />
    >>>>>
    >>>>> <param name="quality" value="high"
    />
    >>>>>
    >>>>> <embed src="/flash/newpub.swf"
    quality="high"
    >>>>> pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    >>>>> type="application/x-shockwave-flash"
    width="100" height="60"></embed>
    >>>>>
    >>>>> </object></noscript>
    >>>>>
    >>>>> </body>
    >>>>>
    >>>>> </html>
    >>>>>
    >>>>>
    >>>>>
    >>>>> "Murray *ACE*"
    <[email protected]> a écrit dans le
    >>>>> message de news:
    [email protected]...
    >>>>>> If you changed it to ROOT relative,
    e.g.,
    >>>>>>
    >>>>>> /Flash/whatever.swf
    >>>>>>
    >>>>>> Then it would work. Please show us
    your code....
    >>>>>>
    >>>>>> --
    >>>>>> Murray --- ICQ 71997575
    >>>>>> Adobe Community Expert
    >>>>>> (If you *MUST* email me, don't LAUGH
    when you do so!)
    >>>>>> ==================
    >>>>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>>>> ==================
    >>>>>>
    >>>>>>
    >>>>>> "SamDesign.be"
    <[email protected]> wrote in message
    >>>>>>
    news:[email protected]...
    >>>>>>> Hi Murray,
    >>>>>>>
    >>>>>>> When I changed it to relative
    nothing changed, the .dwt works fine
    >>>>>>> but not my other pages based on
    the template. Maybe there is
    >>>>>>> something wrong with the
    editable regions?
    >>>>>>>
    >>>>>>> Thanks for your help
    >>>>>>>
    >>>>>>> Sam
    >>>>>>>
    >>>>>>>
    >>>>>>> Make the link to your Flash file
    be a root relative one.
    >>>>>>> --
    >>>>>>> Murray --- ICQ 71997575
    >>>>>>> Adobe Community Expert
    >>>>>>> (If you *MUST* email me, don't
    LAUGH when you do so!)
    >>>>>>> ==================
    >>>>>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM)
    >>>>>>> Technotes
    >>>>>>> ==================
    >>>>>>> Hi all,
    >>>>>>>
    >>>>>>> I have a template based page
    with one flash animation.
    >>>>>>>
    >>>>>>> When I preview my template page
    the flash is working fine, but in my
    >>>>>>> pages
    >>>>>>> bases on the template I don't
    see my flash animation.
    >>>>>>>
    >>>>>>> Do I miss something?
    >>>>>>>
    >>>>>>> You can find my pages (text) on
    the following links:
    >>>>>>>
    >>>>>>>
    http://www.waterloocity.be/doc/go2waterloo_FR-dwt-asp.txt
    >>>>>>>
    >>>>>>>
    http://www.waterloocity.be/doc/index-asp.txt
    >>>>>>>
    >>>>>>> I searched in the archives but
    fund nothing that helps me
    >>>>>>>
    >>>>>>> I appreciate all help
    >>>>>>>
    >>>>>>> Thanks in advanced, Sam
    >>>>>>>
    >>>>>>>
    >>>>>>
    >>>>>>
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • I want to allow user to open a page only from the home page and not directl

    Dear friends,
    Can you help me in this.
    My home page is using frames. In one of the frame i am calling one html page which is calling one applet. Is it possible to hide the source code of the bottom frame .
    As the user types in the absolute path of the request on the address bar , he any how manages to see my source code of the html (view source) thereby the applet tag .
    Can't figure it out, how to hide the source code of the bottom frame .
    I read that its possible with redirecting it to some other page , but how will i know that user is not calling from the home page
    Any body , who can help in this regards.
    Bye
    Thank's

    You can set up a javascript to prevent someone viewing the page source, but anyone web-savvy will be able to switch off javascript and see it anyways.
    You could also add a request value to the second page so that you have "<a href="page.jsp?parameter=00a">" and if the parameter is not set the page will not show. That is a bit of a hack but would probably work.
    Basically, don't put anything too security dependent on the client site, because once it is run on someone's computer they have access to it.

  • What is the code at the top of new pages?

    DW inserts this code at the top of new pages:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    Any reason to have it?
    Most of my inner pages of my site do not have it actually.

    these page are not that critical -- my more important sites are now on flash.
    Goodness - that's pretty risky.  You know all the reasons one wouldn't want to do that, right?
    Is it worth time to insert this in several hundred pages?
    It's up to you.  I wouldn't leave a page without a doctype on a commercial site, but that's me.  This is entirely your decision....
    some of my pages have this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    The new pages insert this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    The doctype should be consistent with the code used on the page.  If you use an XHTML doctype, you would want to use XHTML tag syntax, not HTML tag syntax.  You can easily change from one (or none) to the other using DW's menu option - FILE | Convert > YOUR DOCTYPE "FLAVOR" HERE.

  • 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

  • Forward from an included page

    When we try to <jsp:forward> from an included (<jsp:include>) page, the
    rest of the page that includes gets rendered after the forwarded page.
    Let's say "main.jsp" includes "subpage.jsp". If there is an error in
    "subpage.jsp", we want to forward in to an eror page called "error.jsp"
    However, after the "error.jsp" is rendered, the remaining section of the
    main.jsp (after where the include is made) is rendered as well. So we
    see the contents of "error.jsp" and remaining-sections of "main.jsp" in
    a single page.
    Is there a way to stop this?
    Thanks

    It is very odd to fw: from an included page. Very odd. Forward basically
    means "go somewhere else to render the page" and include basically means
    "while rendering this page, include something from somewhere else". It is
    handy to code a servlet, for example, without any presentation logic, and so
    at the end of its processing, it just forwards to a JSP or HTML page or XSL
    processor. It is handy from within a JSP to include a standard page heading
    and a standard left navigation pane and a standard right navigation pane and
    a standard footing so your JSP has includes to suck those things in.
    Cameron Purdy
    "Muhtar Akbulut" <[email protected]> wrote in message
    news:[email protected]..
    When we try to <jsp:forward> from an included (<jsp:include>) page, the
    rest of the page that includes gets rendered after the forwarded page.
    Let's say "main.jsp" includes "subpage.jsp". If there is an error in
    "subpage.jsp", we want to forward in to an eror page called "error.jsp"
    However, after the "error.jsp" is rendered, the remaining section of the
    main.jsp (after where the include is made) is rendered as well. So we
    see the contents of "error.jsp" and remaining-sections of "main.jsp" in
    a single page.
    Is there a way to stop this?
    Thanks

Maybe you are looking for

  • File Adapter not working

    OK..... I've PM server on linux machine...I've deployed FileAdapter connector and restarted server... I've deployed ComplexStructure tutorial but in BPEL Console I've this error for ComplexStructure Process: Exception Name: Error while creating activ

  • PDF- Filename automated from labelscript (after data merge)

    Hello, first of all I'm quite new in javascripting... but some simular scripts I have found on the internet could provide a solution for my problem. What I've done is the following:  I've used Data Merge and created a 200-paged file with 1 label on e

  • BSP Usage,  is it recommeded for newer developements?

    Hi All, in case of new developments (new projects), is bsp recommended to use. if yes, for what purposes? i heard that web-dynpro abap is newer web based UI development tool and BSP is has become older. are there any use cases, in which we still reco

  • Tune sql query

    Hello all. I need some help with my in line query. Its taking very long. Any ideas would be helpful. Just a little info: Version: Oracle 10g Access: Grant select (can only read). I have read Rob's forum but still stuck. Also I have read some question

  • Cannot edit Table with TableModel

    Hallo ! If I add a table, I can edit the cells with a doubleclick, but if I bind the table to a TableModel it is not possible to edit the cells. Why ? Please help me. Thx. Wolfgang