View unanswered posts | View active topics



Reply to topic  [ 156 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11  Next
[FD3][FD4]OpenTheDoc 3.0 & TocGen 1.0 
Author Message
Member

Joined: Fri Nov 30, 2007 3:01 pm
Posts: 68
Location: Guangdong, China
Reply with quote
I am not sure what the problem is. Could you show me some example?


Sat Oct 08, 2011 10:29 am
Profile
Member

Joined: Thu Oct 23, 2008 7:53 am
Posts: 24
Location: Poland
Reply with quote
Hi ordinaryj. Sorry for my long absence.

Reproduction: add some refs and after "some time" I dont have code generation for spark components in mxml documents. I don't know exactly when it happens I know that when I clear OTD from refs and restart FD I have spark code generation.

FP


Tue Oct 25, 2011 11:07 am
Profile
Member

Joined: Wed Jan 04, 2012 3:04 pm
Posts: 8
Reply with quote
When I am trying yo scroll content with mouse wheel it only scrolls when mouse cursor is over some part of content (text, hr's, table heading, etc.) or over scrollbars. And it is not scrolling when cursor is over "empty" areas (which are white in Flash docs). Can this be fixed somehow?


Wed Jan 04, 2012 3:07 pm
Profile WWW
Member

Joined: Fri Nov 30, 2007 3:01 pm
Posts: 68
Location: Guangdong, China
Reply with quote
If you are using the Flex 4 Reference, check out the work around in the first post.
Other wise, can you give me more details, like what documentation you are using...


Wed Jan 04, 2012 3:34 pm
Profile
Member

Joined: Tue Jan 10, 2012 4:25 pm
Posts: 33
Reply with quote
Hello,

Great plugin, but I'm having a couple of issues with it.

I keep getting a warning exception:Access is denied.
Image

The other issue would be that it takes a lot of time to display certain pages, for example, Index pages. Whenever I access an index page (Like Symbols, A, B, C, whatever) Flash Develop hangs for 30-60 seconds. If I access an index page in my browser (Firefox), I get instant access.

Thank you!


Tue Jan 10, 2012 10:26 pm
Profile
Member

Joined: Fri Nov 30, 2007 3:01 pm
Posts: 68
Location: Guangdong, China
Reply with quote
It may be the issue mentioned in the first post, see the section "The ActionScript® 3.0 Reference for the Adobe® Flash® Platform".
Or you could try other documentions, but they may also have some problems i.e. the Flex 4 Reference has scrolling problem,
so check out the first post first.

Or try this http://help.adobe.com/support/documenta ... angRef.zip
but it does not contain Flex reference.

Otherwise, tell me more details, like what documentation you are using...


Thu Jan 12, 2012 1:03 pm
Profile
Member

Joined: Tue Jan 10, 2012 4:25 pm
Posts: 33
Reply with quote
Hello. I'm using the documentation downloaded through Adobe Help.
I then generated the table of contents using your TOC Generator.


Thu Jan 12, 2012 2:19 pm
Profile
Member

Joined: Fri Nov 30, 2007 3:01 pm
Posts: 68
Location: Guangdong, China
Reply with quote
Did you try the solution mentioned in the first post?...

Quote:
To view the downloadable version in Internet Explorer, you must make sure to set your security options correctly.
In Internet Explorer, set the security options by using the following procedure:

  • Use Tools > Internet Options to open the Internet Options dialog box.
  • Select the Security tab.
  • Select the Custom Level button.
  • Scroll to the “ActiveX controls and plug-ins” option.
  • Enable the “Initialize an script ActiveX controls not marked as safe for scripting” option.


Thu Jan 12, 2012 2:42 pm
Profile
Member

Joined: Tue Jan 10, 2012 4:25 pm
Posts: 33
Reply with quote
Thank you. That fixes the warning message. But there's still issues page loading times, especially index pages. It takes 30-60 seconds to display a page, all while hanging the entire application.

Core i7-920
12 GB RAM


Thu Jan 12, 2012 3:24 pm
Profile
Member

Joined: Fri Nov 30, 2007 3:01 pm
Posts: 68
Location: Guangdong, China
Reply with quote
I tried the newest documentation, and it takes only a few seconds (mostly 2 or 3) to load an index page.
Because this plugin use the kernel of IE to display pages, so IE may be the problem.
Try IE9 if you are not using it.

Enviroment:
Windows 7
IE 9


Fri Jan 20, 2012 4:53 pm
Profile
Member

Joined: Fri Jul 23, 2010 10:26 am
Posts: 146
Reply with quote
Anybody knows how to make it work with recent Flex docs (i.e. I want to be able to use docs from Flex 4.6)?


Wed Mar 27, 2013 8:47 am
Profile
Member

Joined: Fri Nov 30, 2007 3:01 pm
Posts: 68
Location: Guangdong, China
Reply with quote
heilong wrote:
Anybody knows how to make it work with recent Flex docs (i.e. I want to be able to use docs from Flex 4.6)?

What't the problem? More details? :roll:
Did you read the section about Flex 4 Reference in page 1? Does it help?


Wed Mar 27, 2013 9:14 am
Profile
Member

Joined: Fri Jul 23, 2010 10:26 am
Posts: 146
Reply with quote
I did some research on which docs are quite recent, and downloaded the current version of "ActionScript 3.0 Reference for the Adobe Flash Platform" from here: http://help.adobe.com/en_US/FlashPlatfo ... _en-us.zip
This matches Adobe Flash Builder 4.6
I indexed the docs using TocGen, and when displaying these docs in OpenTheDoc, there's a lot of unnecessary extra stuff (Packages, Classes in the current Package, the header etc.) taking up a lot of screen space, and a "access denied" error dialog pops up on every page (apparently this is about some cross-scripting code between frames in this HTML). I just wonder if maybe somebody wrote a tool already that strips superfluous parts from these docs, or did it by hand and can share the properly formatted docs?
Image


Wed Apr 03, 2013 8:09 am
Profile
Member

Joined: Fri Jul 23, 2010 10:26 am
Posts: 146
Reply with quote
Ok, I did it myself.

This is about latest Actionscript 3 API Reference, including Flex, AIR and everything else that I've never used.
The result of my fannying about can be downloaded here: as3.7z

What I did:

Got the API from here: http://help.adobe.com/en_US/FlashPlatfo ... _en-us.zip
Extracted to a folder. Wrote a little bash script that strips away the extra stuff from all the html files. Run it from the folder where the API was extracted. To use the script you need CygWin or a UNIX machine, with standard tools like awk and sed.

fix_html.sh
Code:
#!/bin/sh
rm -f nplist.txt
find . -name "*.html"| while read file; do
   awk '
      /titleTable/ { if (NR==53) match1=1 }
      /id="maincontainer"/ { if (NR==169) match2=1 }
      {   if (match1 && match2)   exit 69 }
      ' $file
   if test $? -eq 69; then
      echo $file
      sed -i '53,121d; 166,168d' $file
   else
      echo $file >>nplist.txt
   fi
done

Basically, awk just checks if the HTML files are all the same structure as the file I worked on (they should be unless an updated API is released). Later you can check the list of files which didn't match (nplist.txt). Sed just cuts lines 53-121 and 166-168 of the matching files. Exit code of 69 in awk - just because I like the 69...

After the script is done, do a couple of modifications with a text editor:

filter-style.css:
Find div.maincontainer - line 1 - and change top to 53px (top:53px).

asdoc.js
Find function showHideTOC(showTOC) - line 861 - and add this as it's first line:
showTOC=false;

And the final result looks good and doesn't produce the "Access is denied" exception.

After I generate the otd_toc.xml using TocGen I run another script which deletes the API reference for the packages I'm not interested in, and cleans them out of the TOC file.

clean.sh
Code:
#!/bin/sh
PKG_REMOVE="adobe coldfusion com fl ga lc org xd"
TOC_FILE="otd_toc.xml"

echo "Removing packages:"
for pkg in $PKG_REMOVE; do
   echo $pkg
   rm -rf $pkg 2>/dev/null
   test "$grep_list" && grep_list+="|$pkg" || grep_list="$pkg"
done
echo
grep_list="href=\"($grep_list)/"
echo -n "Cleaning TOC: "
grep -E -v "$grep_list" "$TOC_FILE" >"$TOC_FILE".new && mv -f "$TOC_FILE".new "$TOC_FILE"
echo done


Last edited by heilong on Sun Aug 02, 2015 6:38 pm, edited 1 time in total.



Wed Apr 03, 2013 4:04 pm
Profile
Member

Joined: Fri Jul 23, 2010 10:26 am
Posts: 146
Reply with quote
Clean install of FD5.0.1, after installing OpenTheDoc plug-in first run of FlashDevelop generates this exception:
************** Exception Text **************
System.InvalidOperationException: SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize.
at System.Windows.Forms.SplitContainer.set_SplitterDistance(Int32 value)
at OpenTheDoc.PluginUI.RestoreState()
at OpenTheDoc.PluginUI.PluginUI_Load(Object sender, EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

And the panel on the left is really narrow. After resizing it and quitting FlashDevelop, subsequent runs don't generate the exception anymore.


Sun Aug 02, 2015 4:55 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 156 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.