diff --git a/bigbluebutton-client/.gitignore b/bigbluebutton-client/.gitignore
index 5fa314c5bc321b9bbbc0e3427536f2d224766aae..331d2ccc0d8034039b7e698e32fbb43e90c58d68 100755
--- a/bigbluebutton-client/.gitignore
+++ b/bigbluebutton-client/.gitignore
@@ -5,3 +5,4 @@ linker-report.xml
 bin
 client
 bbbResources.properties.*
+asdoc/
diff --git a/bigbluebutton-client/build.xml b/bigbluebutton-client/build.xml
index 855d5f9420bc5034f561d9ebf647e21461480fb4..61a0082a43997b879f5d4a8e86605df605ff0fe3 100755
--- a/bigbluebutton-client/build.xml
+++ b/bigbluebutton-client/build.xml
@@ -321,6 +321,28 @@
 		/>
 	</target>
 
+	<target name="asdoc">
+		<echo message="Generating ASDocs"/>
+		<delete dir="${BASE_DIR}/asdoc" />
+                <mkdir dir="${BASE_DIR}/asdoc" />
+		<!-- asdoc task not natively supported for ant flexTasks.jar for flex3. It is supported for flex 4, so it should be enabled here
+		when bbb-client is moved to Flex 4 -->
+		<!--<asdoc output="${BASE_DIR}/asdoc" 
+			external-library-path="{BASE_DIR}/libs" 
+			lenient="true" 
+			failonerror="true"
+			source-path="${SRC_DIR}"
+			doc-sources="${SRC_DIR}"
+		/> -->
+		<exec executable="${FLEX_HOME}/bin/asdoc" failonerror="true">
+			<arg line="-source-path ${SRC_DIR}/ "/>
+			<arg line="-doc-sources ${SRC_DIR}/ "/>
+			<arg line="-external-library-path '${BASE_DIR}/libs/' "/>
+			<arg line="-output '${BASE_DIR}/asdoc' "/>
+		</exec>
+		<echo message="Done Generating ASDocs" />
+	</target>
+
 	<target name="clean">
 		<delete dir="${OUTPUT_DIR}" />
 		<mkdir dir="${OUTPUT_DIR}"/>