<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "new method required"]]></title>
		<link>http://forum.jswiff.com/posts/20.page</link>
		<description><![CDATA[Latest messages posted in the topic "new method required"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>new method required</title>
				<description><![CDATA[  :arrow: ActionBlock has a method named addAction, I think removeAction is also necessary. <br>  :arrow: And SWFDocument has a removeTag method is prefect.<br> ]]></description>
				<guid isPermaLink="true">http://forum.jswiff.com/posts/21#59.page</guid>
				<link>http://forum.jswiff.com/posts/21#59.page</link>
				<pubDate><![CDATA[Mon, 29 Aug 2005 06:54:57]]></pubDate>
				<author><![CDATA[ Jim]]></author>
			</item>
			<item>
				<title>Re:new method required</title>
				<description><![CDATA[ addAction is just a one-line convenience method, a wrapper for the add method of the List interface:<br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>
 public void addAction&#40;Action action&#41; {
   // add action to list
   actions.add&#40;action&#41;;
 }</pre></td>
		</tr>
		</table><br> The problem with removeAction is: how do you identify the action you want to remove? That is, what argument do you want to pass to removeAction? A possibility would be to pass the index of the action (e.g. removeAction(0) would remove the first action within the block).<br> A simple solution is to use the getActions() method, which returns a list containing all actions of the block. If you want to remove e.g. the first action, just use getActions().remove(0). The same applies to SWFDocument (getTags().remove(0)).<br> I think removeAction(Action action) wouldn't make sense.<br> As the getActions() workaround is so easy, and adding an action is used much more often than removing one, I won't add a removeAction (and no removeTag) method for now - I hope you don't mind.]]></description>
				<guid isPermaLink="true">http://forum.jswiff.com/posts/21#60.page</guid>
				<link>http://forum.jswiff.com/posts/21#60.page</link>
				<pubDate><![CDATA[Thu, 1 Sep 2005 22:23:31]]></pubDate>
				<author><![CDATA[ Ralf]]></author>
			</item>
			<item>
				<title>??: new method required</title>
				<description><![CDATA[ yes, I have read the source<br> <br> maybe you can add a removeAction like this:<br> <br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>public void removeAction&#40;Action action&#41; {
    // remove action to list
    actions.remove&#40;action&#41;;
  }</pre></td>
		</tr>
		</table><br> <br> otherwise, the user should use anywhere like:<br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>getActions&#40;&#41;.remove&#40;action&#41;; </pre></td>
		</tr>
		</table><br> <br> just my view :wink: ]]></description>
				<guid isPermaLink="true">http://forum.jswiff.com/posts/21#61.page</guid>
				<link>http://forum.jswiff.com/posts/21#61.page</link>
				<pubDate><![CDATA[Fri, 2 Sep 2005 03:04:22]]></pubDate>
				<author><![CDATA[ Jim]]></author>
			</item>
			<item>
				<title>Re:new method required</title>
				<description><![CDATA[ Ok, this really seems to be more important to you than I thought ;) so I added two removeAction and two removeTag methods (wrappers for the remove methods of the list interface). Check the repository or the nightly build.]]></description>
				<guid isPermaLink="true">http://forum.jswiff.com/posts/21#62.page</guid>
				<link>http://forum.jswiff.com/posts/21#62.page</link>
				<pubDate><![CDATA[Mon, 5 Sep 2005 10:22:53]]></pubDate>
				<author><![CDATA[ Ralf]]></author>
			</item>
			<item>
				<title>Re:new method required</title>
				<description><![CDATA[ What does all this mean?]]></description>
				<guid isPermaLink="true">http://forum.jswiff.com/posts/21#346.page</guid>
				<link>http://forum.jswiff.com/posts/21#346.page</link>
				<pubDate><![CDATA[Wed, 21 May 2008 22:46:19]]></pubDate>
				<author><![CDATA[ JobMatchNow1]]></author>
			</item>
	</channel>
</rss>