As reference local Installation

Source: Internet
Author: User
The as help documentation is no longer embedded in the IDE, and can only be viewed online, but the online reading speed is very slow. One solution is to download the document content to the Local web server: adobe also provides a zip package for downloading the document: After decompression, you will get a langref file... syntaxHighlighter. all ();

The as help documentation is no longer embedded in the IDE, and can only be viewed online, but the online reading speed is very slow.


One solution is to download the document content to a local web server: adobe also provides a zip package for downloading the document:


After decompression, you will get a langref folder containing all the documents.


However, you may find that if you change langref to another name, such as the document version number, the link on the page may be faulty.


This problem is caused by a file named asdoc. js under the same directory.


Solution: Find the getBaseRef () function definition in the asdoc. js file.

[Javascript]
Function getBaseRef ()
{
Var B = unescape (location. href );
Var d = "actionscript/3 /";
Var a = B. indexOf (d );
If (a =-1)
{
D = "langref /";
A = B. indexOf (d)
}
If (B. match (/#! /))
{
B = B. substring (a + d. length, B. indexOf ("#! "))
}
Else
{
B = B. substring (a + d. length)
}
Var e = "";
Var c;
While (c = B. indexOf ("/"))! =-1)
{
B = B. substring (c + 1 );
// Alert (B );
E + = "../"
} Www.2cto.com
Return e
}

The Code also contains a "langref" string.

If you need to change langref to another name, assign the d variable in this code to the same string accordingly.


Author: jomoonrain2
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.