HTML document

Sorry, I am extremely new to actionscript. I have a little
background in 2.0 but I am totally clueless about 3.0. All I want
to do is make a button open a html document in the same window the
.swf is in. I know that in 2.0 this would be: (or something like
it)
on (press) { geturl("blah.html")}
I cannot figure it out in 3.0 though. First off, CS3 won't
even let me put an action script in a button by selecting the
symbol. That is how I used to do it in 8. Whenever I select the
button it tells me action script can't be applied to that object.
It will only let me put actionscript on the frame itself.
Can anyone tell me what to do to get it to open an html
document in the same window? I found the "navigateToURL ()" but I
cannot figure out how to use the event dispatcher.
Sorry for being so ignorant.

First, you cannot place code on an object in AS3. Knowing
where to place your code is the very first place you need to start
when learning ActionScript. The next is variables, operators,
conditionals, and events. Assuming you have a bit of grounding in
AS2, all you'll need to brush up on is events, and how getURL is
not done the same way anymore.
Info on getURL in AS3 is here:
http://kirupa.com/forum/showthread.php?p=1908351&highlight=geturl#post1908351
Info on Events in AS3 is here:
http://www.senocular.com/flash/tutorials/as3withflashcs3/?page=3#events
I would also suggest you give yourself a good AS3 tutorial in
the basics, to properly advance your knowledge of the fundamentals.
There is a great tutorial on Senocular.com which is a good starting
point:
http://www.senocular.com/flash/tutorials/as3withflashcs3/

Similar Messages

  • Preview of HTML document in KM Navigation iView

    Hi all!
    I need your help. I would like to create layout set which would be able to display tree on the left side and preview of HTML document on the right side of content area. If I click on HTML document in the tree I need to see his preview. I thought that I can resolve this by "Explorer and Preview" profile. But unfortunely it doesn't work. Has someone any experience with the profile? Or can someone advice to me how create new layout set?
    I found this links, but they didn't help me much.
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/02573d675e910fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/96/248cd68f23774fb74dfc18a2994d8f/frameset.htm
    Thank you in advance for any reply!
    Regards
    Zbynek

    Hi Saurabh,
    Using the presentation settings in Details can sometimes
    be tricky since it remembers the context of which iView
    called it. Make sure you open the details out of the iView
    in which you want the customizations to be in effect.
    Otherwise, changing it in the configuration is a
    bit more straightforward in its effects.
    Regards,
    Darin

  • Print html document

    Hi, I'm trying to print a html document with this following java code but doesn't works:
      public void onActionPrintEncuestaPDF(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionPrintEncuestaPDF(ServerEvent)
         try{
              Robot robot = new Robot();
              // Ctrl+P
              robot.keyPress(KeyEvent.VK_CONTROL );          
              robot.keyPress(KeyEvent.VK_P );          
              robot.keyRelease(KeyEvent.VK_CONTROL);
              robot.keyRelease(KeyEvent.VK_P );
              Thread.sleep(500);
              //Alt+U
              robot.keyPress(KeyEvent.VK_ALT );
              robot.keyPress(KeyEvent.VK_U );
              robot.keyRelease(KeyEvent.VK_ALT );
              robot.keyRelease(KeyEvent.VK_U );
              Thread.sleep(500);
              //entrée
              robot.keyPress(KeyEvent.VK_ENTER);
              robot.keyRelease(KeyEvent.VK_ENTER );
              Thread.sleep(500);
         catch(Exception e){  }
        //@@end
    This is not working because java.awt.Robot is a part of AWT package and intended for the client site, how I can make an action that when the
    client push the print button. Print the html document automatly.
    Regards,
    Gabriel

    I create into KM Content on portal a file called print.html and I put the following code:
    &#65279;<html>
      <head />
      <body onLoad="window.parent.focus(); window.parent.print();">
      </body>
    </html>
    Because window.paren.print(); printed the code of actual iFrame. And into Web Dynpro I created a button that call the following function.
    public void onActionPrintEncuestaPDF(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionPrintEncuestaPDF(ServerEvent)     wdContext.currentPrintElement().setAtrURL("/irj/go/km/docs/documents/print/print.html");
       //@@end

  • Safari won't open webarchives or html documents stored on computer

    I occasionally save a webpage to my computer as a .webarchive for later usage, but anytime I try to open them safari takes me to a completely different page. It brings me to my Top Sites page that shows all of my most frequently visited pages. I don't understand why safari would do this since the way the document is created is by saving the page directly in safari (command + S). I noticed the problem initially when Safari wouldn't open an html document that I had created and stored on my computer. I used the page as my homepage because it had links to all of my most frequent websites and because I liked having my own creation as my home page (that doesn’t really matter, though) and then out of nowhere when I opened safari my homepage had been changed to Yahoo (my default engine) and the html document wouldn’t open at all. I thought that maybe the problem was due to a recent update because I noticed that two new tabs were added to the toolbar (ebay and amazon), but I don’t understand why an update would make it so that .webarchive files, created by safari, wont open. I checked my safari version, it is 7.0.3, and if it helps, the html documents that won't open were made with Adobe Dreamweaver. I would really appreciate if someone could tell me what is happening because I do need to be able to open the .webarchive files I have saved in the past. Thank you.

    Carolyn, I've told you repeatedly, that site's instructions are crap. They absolutely do not fully remove the Genieo adware. In fact, the uninstaller that site refers you to will actually install components of the adware that were not already present! For the same reason, it makes no sense to rely on Genieo's instructions. I am completely mystified as to why you continue to post these suggestions.
    To properly remove Genieo, see:
    http://www.thesafemac.com/arg-genieo/
    (Fair disclosure: The Safe Mac is my site, and contains a Donate button, so I may receive compensation for providing links to The Safe Mac. Donations are not required.)

  • Print only a specific control or indicator on a front panel to HTML document

    Is there any way to print a specific control or indicator (not the whole front panel) to HTML document? I am trying to print a report that has a graph and some indicator value on it.

    There is a VI called "Append Control Image to Report.vi" which will allow you to do this. It's located in the Functions>>Report Generation pallette. Take a look at this and see if it's what you're looking for.
    J.R. Allen

  • How can I embed a HTML document onto my webpage?

    What I am trying to do: I am trying to make an image that has links to urls from different parts of the image.
    What I have done so far: I have built a photoshop image to embed on my webpage, following the instructions offered by many online forums, but cannot actually embed it as it isn't a url.
    Firstly, I sliced up an image, adding url's and alt tage etc to each slice. Then I did:
    File > Save for web > (Prest: JPEG High) > Save > (entered my file name) Format: HTML and Iamges > Save
    When I locate my file where I saved it, it has been saved as a Chrome HTML Document, but I can't then embed this on my website, using the 'embed code' tool I normally use. I presume this is because it doesn't begin with http:// ?
    Here is the HTML document I have made: file:///C:/Users/Daniel/Desktop/UK%20map%20interactive/Afternoon/UK-map-locations.html
    (If you can see this) This is the image I want and the links are working too but it's getting this onto an existing webpage.
    Other pages I have seen have talked about iamge maps, but I take it using the slice tool is better for what I am trying to acheive?
    Any suggestions/help would be greatly appreciated.

    One: Users can't see links on your local desktop. You would have to upload the files somewhere. Two: Images generally don't contain links. URLs are meta information build around the image in HTML. Three: Because of the previous point, whether you use sliced images or an image map doesn't matter, if you have no way of inserting the information into the native HTML structure of the web pages. If at all, you would open the HTML file in a suitable editor like Dreamweaver (or even a basic text editor) and copy&paste it into the web page sourcve code, but you'd still have to upload the image(s). The rest we can't know. You have not provided any link to the web site or told us which hosting provider you use. From your description it sounds like one of those "free" providers that restrict user's options to customize to the bare minimum and the rest is based on templates and plastered with advertising. In any case, the solution is not in Photoshop and you would have to read up on web design basics, HTML, CSS and al lthat on a more general level or review your hosting provider's guides on how to set all this up.
    Mylenium

  • Creation of fillable forms from existing HTML documents

    Hi All,
    I know this is doable, but I was wondering if someone could point me in the right direction or perhaps to an existing HowTo.
    I recently started working for a company in which part of my job duties includes the creation of new users and deauthinication of terminated user accounts. The company uses specific forms for accomplishing this that are filled out from templates in Outlook 2010, i.e. New Items-->More Items-->Choose Forms. This provides the users with a list of forms. By clicking on one of these forms it opens an e-mail that the requester populates.
    The issue we are having with this is that sometimes they use the form, and/or don't provide the right information. They will modify the form and delete certain row or columns etc. They also have a tendency to not provide all the mandatory information.
    I can take these forms and save them as HTML document from Outlook. What I would like to do is create them as fillable PDF forms with some fields as drop downs, other as mandatory and once they have completed the form correctly, (at least to the extent I can make it fool proof), then they can click on a button that will allow them to e-mail the completed form to the desired recipient admin group via outlook.
    The current method is the requester fills out the form then e-mails it to say their manager, who then types approved and sends it back, the requester then sends it to the next person until all the needed "approves" are received then it gets forwarded to a group who is basically the clearinghouse for all access requests who then send it to the appropriate systems admin group emails for completion. Once complete the admins do a reply all with users created or deauthinicated etc for systems xxx and xxx as requested at the top of the e-mail. 
    I want to make this process more standardized to prevent users from not completing the form correctly or modifying the Outlook form to their own interpretation of how the form should be or leaving out mandatory information.
    I would also like the form to automatically name itself with the employee number of the requestor with the date and time appended, i.e RM74651_10202014_0917 when they go to send it and place a copy of the completed form in a pre-specified network folder.
    Any information, suggestions or HowTo would be greatly appreciated.
    Thanks
    Gordon

    Hi Surabh,
    Use HTML codes in notepad. Use the notepad to upload the file and create mail form. You should follow W3C standard. Refer note 1131645.
    BR, Sathish R

  • Photosmart C6180 prints too many copies of PDFs and HTML-documents

    Hi,
    My Photosmart C6180 prints multiple copies of documents even if I haven't asked for it. This seems to only apply to PDFs and HTML-documents, I haven't seen it happen with Word/Excel. It's not consistent, it happens most of the time but now always for these documents. When I look at the console, when it has started printing I see shortly the status "Printing - Restarting". That's probably when it starts the 2nd copy. Sometimes it stops by itself, other times it seems to be looping and I have to turn the printer off and delete the document from the queue.
    HP solution center SW is updated, I run Vista with latest service packs on a Thinkpad T400s.
    Any ideas?
    Thanks!

    My C6180 printed multiple copies of any document from my Vista OS laptop ( wireless connection ), but not from my
    XP OS desktop ( USB connection), even though I selected 1 copy on the print menu. Unchecking "Enable bidirectional support" in the Properties / Ports dialog box solved the problem. Hope this helps someone too.

  • Document types show up twice when creating a new blank HTML document.

    I followed the below instructions for getting HTML 5 as a document type option  on CS4. Although I do have HTML 5 as an option now, my other stock CS4 document type options now show up twice in the menu. Any idea how to fix this?
    To add the HTML document type, however, you need to modify the file named MMDocumentTypeDeclarations.xml. Here’s how to do that:
    1. Find the configuration folder then navigate to the documenttypes folder. The Configuration folder can be found under the folder where you installed Dreamweaver.
    2. Find and make a backup copy of MMDocumentTypeDeclarations.xml (MMDocumentTypeDeclarations.xml.bak)
    3. Open MMDocumentTypeDeclarations.xml in your favorite text editor. If anything goes wrong, you can always get back to the default state by replacing your changes with the backup copy.
    4. Go to the end of the document and find the </documenttypedeclarations> tag and add the following lines just before the </documenttypedeclarations> tag:
    <documenttypedeclaration id="mm_html_5">
    <title>
    HTML5
    </title>
    <doctypedecl>
    <![CDATA[<!DOCTYPE HTML>]]>
    </doctypedecl>
    <rootelement>
    <![CDATA[<html></html>]]>
    </rootelement>
    <dtdcontext>html</dtdcontext>
    <dtdcontext>html5</dtdcontext>
    <dtdcontext>frameset_frame</dtdcontext>
    <dtdcontext>xslt</dtdcontext>
    </documenttypedeclaration>
    5. Save the document
    6. Restart Dreamweaver
    You should now have an HTML5 document type option when you create a new document.
    There was an issue with Dreamweaver CS4 that needed to be fixed in code to fully support HTML5 documents which is why upgrading to CS5 was recommended. In CS4, Dreamweaver’s definition of a well formed HTML document has a meta content type which isn’t required for HTML5 documents so, no matter what we do to CS4, any HTML document created by CS4 will have the following:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    Replace that line with this:
    <meta charset=utf-8">
    You’ll need to do this every time you create a new HTML5 document.
    Once you finish go to Preferences New Document and select HTML5 as default Doc Type...
    Thanks to:
    What I did was create a snippit of the meta and added it to my snippit's meta folder
    Jeff Booher
    Dreamweaver Engineering
    Thanks for your feedback. 

    Hi,
    I have done a test and I can reproduced your issue.
    I referred to the blog about Automatically create Word documents which include list fields:
    http://blogs.technet.com/b/brenclarke/archive/2009/04/15/automatically-create-word-documents-which-include-list-fields.aspx
    When I create a multiple line of text column in a list, I just choose Plain text, Then I solved the issue:
    Besides, here is a similar post, you can take a look at:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/a7ab3a61-6643-4a47-a464-fe46b5db1558/rich-text-field-showing-html-code
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Internal Links in HTML Document Not Working Correctly in PDF

    I have an HTML document that contains internal links (basically a Table of Contents). When the document is displayed in a browser, the internal links work correctly. However, when I use Acrobat 8 Professional to create a PDF version from the HTML source, the links don't go to the correct place when clicked. It almost appears that they are off by one, e.g., link 7 goes to anchor 8. I can send the source document for you to look at if you email me at eharris -at- synnovation.com. I am not expert in HTML and perhaps the links/anchors are not done correctly when I create the HTML document. Does anyone have any ideas on this?

    This one has the same problem. For instance, "Anchor1" as <a name="Anchor1"> appears 13 times. I am sure that your problem is that Acrobat is going to the last occurance that is just before the first one. As I scan through the file I find similar results for all of the anchors. When I used Tidy, it reduces about 1350 errors to about 474, but that is still not too good. The validator is flagging a lot of identical IDs as well as unrecognized attributes (like ONSELECTSTART). The attributes correctly accepted by body are
    Attribute Specifications
    * BACKGROUND=URI (background image for document)
    * BGCOLOR=Color (background color for document)
    * TEXT=Color (text color for document)
    * LINK=Color (link color for document)
    * VLINK=Color (visited link color for document)
    * ALINK=Color (active link color for document)
    * ONLOAD=Script (document has been loaded)
    * ONUNLOAD=Script (document has been exited)
    as listed on htmlhelp.com for HTML 4. There may be some new ones in HTML 5, but I did not check.
    I am not looking at all of your HTML in detail, but there appears to be a lot of unneeded things based on the error messages from the validator. Many browsers will let you display the stuff (even Acrobat), but there may be errors that crop in when you do not expect it or on some other browsers that the one you check. Thus again, you should use a validator. If you are only off a few tags that might be fine, but when it is in the 1000s, there is an issue. It would also be good to break your page up into parts. It is good practice on web pages for each page to be not much more than one screen. That is often exceeded, but 59 screens of info (on my screen) is a bit much. The TOC is definitely needed in that case, but just was well go to a sub page just as well and make the info easier to track. A PDF (as you are trying to get) could be made of the entire system for those that want it all in one bit. Bill

  • Controlling the load order of swfs in a HTML document

    Hi all I have a document containing multiple swfs. Is there
    anyway I can control which swf loads first etc. Obvisouly it would
    start from which ever one is higher in the HTML document.
    However I would like to control what loads first, also can
    this be done with the images in the document?
    Any help is much appreciated.

    In your web.xml, under the servlet tag, make A.jsp be loaded the first, at your web app 's startup:
    <jsp-file>A.jsp</jsp-file>
    <load-on-startup>0</load-on-startup>
    ...

  • Creating a new HTML document - removing "todos"

    When creating a new HTML document in a KM repository (i.e. Folder > New > HTML File...), I get a form where I name my HTML document and enter the content etc. I can also choose, from a dropdown box, the document type between a Normal document or a "todos". My questions are the following:
    1) What is "todos" in this case? (I don't think it means "To Do's".)
    2) As a portal admin, how can I remove "todos" from the dropdown box or disable the dropdown box completely.
    Thank you

    Hi Mick,
    sorry, quite late, but better than never
    > how can I remove "todos" from the dropdown box or
    > disable the dropdown box completely.
    System Administration - System Configuration - KM - Configuration - CM - Global Services - Resource Types - Delete "todos".
    > What is "todos" in this case?
    > (I don't think it means "To Do's".)
    I think that in fact some SAP developer wanted to mark this place that there would be more work to be done (Resource Types to be defined or so).
    Hope it helps
    Detlev

  • HTML document in portal

    Dear friends,
    I got an issue like, my client need to put their HTML document into the portal, its around 300 files. So how to put htis html document into portal. Is it possible to put the html document or not, If not how to make appear HTML document in portal.
    Kindly help me
    Regards
    Suresh

    hi
    first you need upload the html files int oKM content then you need  to create a iviews  based on this content present in KM content
    step 1: uploading the html files
    go to content administration->KMcontent->at the right hand side select the document folder->
    here u create a new folder by selecting folder menu->new->folder
    then your folder will be created under documents folder
    doble click on this (now you under documents/your folder path)
    under you folder
    select folder menu->new->upload
    give  name(ex new.html ),description, and select browse to upload the file
    follow the same procedure for all the html files
    this indicates the u have uploaded all the files properly
    now creating a ivews based on the html documents uploaded in KM content
    content administration->portal content->select your folder->right click ->new->iview->select KM document iview template->give iview name &id etc
    then open the iview for editing
    there u can find a property called " path to document" give the value as " \document\<your folder name where u uploaded the html files under KM content>\file name(ex:new.html>
    like that u can create all the iviews based on the html documents stored under km content
    rgds
    srinivas

  • Opening a html document in order to load a certain website (and login), results in opening the startpage(s) from FireFrox.

    we use a html document to automatically login out application. but when this document opens FireFox always opens the startpage. When FireFox is already running the html document works as intended.
    no problems with IE.

    Unfortunately, Java standard API can't handle PDF file as a distinct document.
    However, you could use a physical URLConnection to get any file content as
    a simple byte mass.

  • I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. How do I resolve this issue?

    I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. I did not have this issue in the older version. I use an iMAC running OS10.6.8. How do I resolve this issue?

    Starting with this, you have errors in your CSS code.
    body {
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      color: 151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: EFF5F8;
    body {
      margin:0;
      color: #151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: #EFF5F8;
      font-size: 100%;
    Related links:
    Windows Chrome, why do my fonts look so bad? - Lee Green
    css3 - Bad font rendering Chrome - Stack Overflow
    Nancy O.

Maybe you are looking for