<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Flash Kit Community Forums - ActionScript 2.0</title>
		<link>http://board.flashkit.com/board/</link>
		<description>ActionScript 2 and older, answers, tips and tricks. When posting your question, please specify which version of Flash you are using.</description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 19:20:25 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://board.flashkit.com/board/images/misc/rss.png</url>
			<title>Flash Kit Community Forums - ActionScript 2.0</title>
			<link>http://board.flashkit.com/board/</link>
		</image>
		<item>
			<title>AS 2 mask several images in a loop</title>
			<link>http://board.flashkit.com/board/showthread.php?830735-mask-several-images-in-a-loop&amp;goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 17:18:24 GMT</pubDate>
			<description><![CDATA[I'm completely confused here and would appreciate any help with this code where I'm trying to mask some images loaded into a container clip and distributed horizontally along the gallery but I can't manage to achieve it. I think i have tried almost everything besides looking for similar examples. I know I have the masks there from a trace, but I just can't find the way to mask the loaded images. Thanks for reading...


Code:
---------
myGalleryXML.onLoad = function():Void  {
    images = myGalleryXML.firstChild.childNodes;
    thumbs = images;
    callThumbs();
};

function callThumbs():Void {
_root.createEmptyMovieClip("container_mc", getNextHighestDepth());
container_mc._x = 50;
container_mc._y = 50;
    var clipLoader = new MovieClipLoader();
    var preloader = new Object();
    clipLoader.addListener(preloader);
    for (i=0; i<12; i++) {
        thumbURL = thumbs[i].attributes.thumb_url;
        myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());
        myThumb_mc._x = 200*i;
        myThumbMask_mc = container_mc.createEmptyMovieClip("thumbMask_mc"+i, container_mc.getNextHighestDepth());
        myThumb_mc.setMask(myThumbMask_mc);
        clipLoader.loadClip("images/"+thumbURL, myThumb_mc);
    }
}
---------
]]></description>
			<content:encoded><![CDATA[<div>I'm completely confused here and would appreciate any help with this code where I'm trying to mask some images loaded into a container clip and distributed horizontally along the gallery but I can't manage to achieve it. I think i have tried almost everything besides looking for similar examples. I know I have the masks there from a trace, but I just can't find the way to mask the loaded images. Thanks for reading...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">myGalleryXML.onLoad = function():Void&nbsp; {<br />
&nbsp; &nbsp; images = myGalleryXML.firstChild.childNodes;<br />
&nbsp; &nbsp; thumbs = images;<br />
&nbsp; &nbsp; callThumbs();<br />
};<br />
<br />
function callThumbs():Void {<br />
_root.createEmptyMovieClip(&quot;container_mc&quot;, getNextHighestDepth());<br />
container_mc._x = 50;<br />
container_mc._y = 50;<br />
&nbsp; &nbsp; var clipLoader = new MovieClipLoader();<br />
&nbsp; &nbsp; var preloader = new Object();<br />
&nbsp; &nbsp; clipLoader.addListener(preloader);<br />
&nbsp; &nbsp; for (i=0; i&lt;12; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; thumbURL = thumbs[i].attributes.thumb_url;<br />
&nbsp; &nbsp; &nbsp; &nbsp; myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());<br />
&nbsp; &nbsp; &nbsp; &nbsp; myThumb_mc._x = 200*i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; myThumbMask_mc = container_mc.createEmptyMovieClip(&quot;thumbMask_mc&quot;+i, container_mc.getNextHighestDepth());<br />
&nbsp; &nbsp; &nbsp; &nbsp; myThumb_mc.setMask(myThumbMask_mc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; clipLoader.loadClip(&quot;images/&quot;+thumbURL, myThumb_mc);<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>capdetrons</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830735-mask-several-images-in-a-loop</guid>
		</item>
		<item>
			<title>button</title>
			<link>http://board.flashkit.com/board/showthread.php?830719-button&amp;goto=newpost</link>
			<pubDate>Thu, 13 Jun 2013 11:43:55 GMT</pubDate>
			<description><![CDATA[0hi!

i need do to a button, i think it was simple.. but i need:

the button UP is red, when i clic is yellow (and this is his new color) and clic one more time is green (and this is his new color), other clic is original red. 

example:

red > [clic] > yellow > [clic] > green

it's possible?

i've tried put a MC into a button, but i can't do :\


thanks!]]></description>
			<content:encoded><![CDATA[<div>0hi!<br />
<br />
i need do to a button, i think it was simple.. but i need:<br />
<br />
the button UP is red, when i clic is yellow (and this is his new color) and clic one more time is green (and this is his new color), other clic is original red. <br />
<br />
example:<br />
<br />
red &gt; [clic] &gt; yellow &gt; [clic] &gt; green<br />
<br />
it's possible?<br />
<br />
i've tried put a MC into a button, but i can't do :\<br />
<br />
<br />
thanks!</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>Einstone</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830719-button</guid>
		</item>
		<item>
			<title>How to pass a parameter to a MovieClip</title>
			<link>http://board.flashkit.com/board/showthread.php?830703-How-to-pass-a-parameter-to-a-MovieClip&amp;goto=newpost</link>
			<pubDate>Mon, 10 Jun 2013 14:50:05 GMT</pubDate>
			<description><![CDATA[I have a flash application (the main movie) and in it a movieClip (I call it my_dialog).
When the main movie starts, I want to pass a parameter (the user's username) in to the movieClip: 
(code in main.fla: my_dialog.username("panoss")). 
(In my_dialog I have made a function called 'username'). 
But trying to trace it in the my_dialog, the output is that the username is 'undefined'.
I think the problem is that the movieClip 'my_dialog' has not yet been loaded at the time of the call. 
What can I do;]]></description>
			<content:encoded><![CDATA[<div>I have a flash application (the main movie) and in it a movieClip (I call it my_dialog).<br />
When the main movie starts, I want to pass a parameter (the user's username) in to the movieClip: <br />
(code in main.fla: my_dialog.username(&quot;panoss&quot;)). <br />
(In my_dialog I have made a function called 'username'). <br />
But trying to trace it in the my_dialog, the output is that the username is 'undefined'.<br />
I think the problem is that the movieClip 'my_dialog' has not yet been loaded at the time of the call. <br />
What can I do;</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>panoss</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830703-How-to-pass-a-parameter-to-a-MovieClip</guid>
		</item>
		<item>
			<title>A little help</title>
			<link>http://board.flashkit.com/board/showthread.php?830661-A-little-help&amp;goto=newpost</link>
			<pubDate>Tue, 04 Jun 2013 16:21:22 GMT</pubDate>
			<description><![CDATA[Hello everyone.  I'm new to AS2 but I'm in the middle of designing a game.  I've used the website to get some code; but it doensn't always work and I don't want to bump the thread.  I'm using a listener when the Enter key is hit to go to the next frame; but that applies to every frame, not just one.

Code:
---------
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUpHandler);

private function onKeyUpHandler(event : KeyboardEvent) : void
{
    switch(event.keyCode)
    {
        case Keyboard.ENTER:
            nextFrame(10);
            break;
    }
}
---------
and when the animation for a character is done playing, I want to go to the next frame on the timeline; which also doesn't work.
Here's a video; can you tell me what I'm doing wrong.
http://www.youtube.com/watch?v=cPCEYpzTVxE&feature=youtu.be]]></description>
			<content:encoded><![CDATA[<div>Hello everyone.  I'm new to AS2 but I'm in the middle of designing a game.  I've used the website to get some code; but it doensn't always work and I don't want to bump the thread.  I'm using a listener when the Enter key is hit to go to the next frame; but that applies to every frame, not just one.<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUpHandler);<br />
<br />
private function onKeyUpHandler(event : KeyboardEvent) : void<br />
{<br />
&nbsp; &nbsp; switch(event.keyCode)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; case Keyboard.ENTER:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextFrame(10);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div> and when the animation for a character is done playing, I want to go to the next frame on the timeline; which also doesn't work.<br />
Here's a video; can you tell me what I'm doing wrong.<br />

<iframe title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/cPCEYpzTVxE" frameborder="0" allowfullscreen></iframe>
 </div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>dontalay</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830661-A-little-help</guid>
		</item>
		<item>
			<title>AS 2 Can anybody assist me with a AS2 coding problem?</title>
			<link>http://board.flashkit.com/board/showthread.php?830649-Can-anybody-assist-me-with-a-AS2-coding-problem&amp;goto=newpost</link>
			<pubDate>Sun, 02 Jun 2013 09:43:02 GMT</pubDate>
			<description>I am quite new to flash and trying to learn Action script is a challenge!

Attachment 74279 (http://board.flashkit.com/board/attachment.php?attachmentid=74279) 

Can anybody help me with something I am trying to set up if you see the attached picture I am attempting set up a small network radio and have 4 different players on offer and five different stations the listener needs to select the player first THEN select the station of their choice.

The player will pop up after player and station buttons are selected
Due to the number of players and stations there are twenty different playlist URL addresses. 
Could anybody help me as to the best way to achieve what I want to do and also help me with the action script? 

The Action script needs to be in AS2
  
Many thanks</description>
			<content:encoded><![CDATA[<div>I am quite new to flash and trying to learn Action script is a challenge!<br />
<br />
<a href="http://board.flashkit.com/board/attachment.php?attachmentid=74279"  title="Name:  
Views: 
Size:  ">Attachment 74279</a> <br />
<br />
Can anybody help me with something I am trying to set up if you see the attached picture I am attempting set up a small network radio and have 4 different players on offer and five different stations the listener needs to select the player first THEN select the station of their choice.<br />
<br />
The player will pop up after player and station buttons are selected<br />
Due to the number of players and stations there are twenty different playlist URL addresses. <br />
Could anybody help me as to the best way to achieve what I want to do and also help me with the action script? <br />
<br />
The Action script needs to be in AS2<br />
  <br />
Many thanks</div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<ul>
			<li>
	<img class="inlineimg" src="/png.gif" alt="File Type: png" />
	<a href="http://board.flashkit.com/board/attachment.php?attachmentid=74279&amp;d=1370166049" target="_blank">24-7.PNG&lrm;</a> 
(78.4 KB)
</li> 
			</ul>
			</fieldset>
	

	

	</div>
 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>kijkij</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830649-Can-anybody-assist-me-with-a-AS2-coding-problem</guid>
		</item>
		<item>
			<title>(AS2) Password system not working?</title>
			<link>http://board.flashkit.com/board/showthread.php?830617-(AS2)-Password-system-not-working&amp;goto=newpost</link>
			<pubDate>Wed, 29 May 2013 01:17:38 GMT</pubDate>
			<description><![CDATA[I've googled on how to use the password system, I tried that but it didn't work. When I type in the correct password, it should go to the key "menu" but when I typed in  the wrong password, it still goes to the key with the correct password. Here's my coding for the button:

Code:
---------
on(release){
	if (passw eq "pass", "password", "cookies"){
		gotoAndStop("menu")
	}else{
		gotoAndStop("credits")
	}
}
---------
I'm certain I put my input textbox in the variable-'passw' but I can't seem to make the wrong password entered go to a different frame other than the frame "menu". Any help, please?]]></description>
			<content:encoded><![CDATA[<div>I've googled on how to use the password system, I tried that but it didn't work. When I type in the correct password, it should go to the key &quot;menu&quot; but when I typed in  the wrong password, it still goes to the key with the correct password. Here's my coding for the button:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">on(release){<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (passw eq &quot;pass&quot;, &quot;password&quot;, &quot;cookies&quot;){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gotoAndStop(&quot;menu&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; }else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gotoAndStop(&quot;credits&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</code><hr />
</div> I'm certain I put my input textbox in the variable-'passw' but I can't seem to make the wrong password entered go to a different frame other than the frame &quot;menu&quot;. Any help, please?</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>Poepipo</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830617-(AS2)-Password-system-not-working</guid>
		</item>
		<item>
			<title><![CDATA[AS 2 "Remember"/Keep last movieclip changes]]></title>
			<link>http://board.flashkit.com/board/showthread.php?830611-quot-Remember-quot-Keep-last-movieclip-changes&amp;goto=newpost</link>
			<pubDate>Tue, 28 May 2013 11:22:52 GMT</pubDate>
			<description><![CDATA[hi all!
I'm having an issue: We are creating a interface with adobe flash cs5 (actionscript 2 only) and when we change the buttons rotation and press buttons they all go back to the initial position when we change to another frame, is there any way to make flash "remember"/keep the initial positions they initially had?

thanks in advance,

W.]]></description>
			<content:encoded><![CDATA[<div>hi all!<br />
I'm having an issue: We are creating a interface with adobe flash cs5 (actionscript 2 only) and when we change the buttons rotation and press buttons they all go back to the initial position when we change to another frame, is there any way to make flash &quot;remember&quot;/keep the initial positions they initially had?<br />
<br />
thanks in advance,<br />
<br />
W.</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>WoRmTa1L</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830611-quot-Remember-quot-Keep-last-movieclip-changes</guid>
		</item>
		<item>
			<title>AS 2 Play/pause buttons controlling a movie within the child file</title>
			<link>http://board.flashkit.com/board/showthread.php?830603-Play-pause-buttons-controlling-a-movie-within-the-child-file&amp;goto=newpost</link>
			<pubDate>Sun, 26 May 2013 19:54:27 GMT</pubDate>
			<description><![CDATA[Hi all, really hoping someone can urgently help.  I have built a rich media expanding banner (by rollover) in CS5, AS2. It's polite load, so i have set up a parent file, which pulls through the child file (expanded file). The child file holds the video for which i have built play and pause buttons - which work correctly controlling the video if you export only the child swf file.  However when i play the parent file and rollover to view the expanded banner (child file), so essentially when i play the child file through the parent file, the play pause button no longer controls the video, however the scrubbing bar still works fast forwarding through the video.  It doesnt make sense as all the code for the play pause button is in the child file which works on its own.  Attachment 74275 (http://board.flashkit.com/board/attachment.php?attachmentid=74275)

I have attached the FLA files, please help :)]]></description>
			<content:encoded><![CDATA[<div>Hi all, really hoping someone can urgently help.  I have built a rich media expanding banner (by rollover) in CS5, AS2. It's polite load, so i have set up a parent file, which pulls through the child file (expanded file). The child file holds the video for which i have built play and pause buttons - which work correctly controlling the video if you export only the child swf file.  However when i play the parent file and rollover to view the expanded banner (child file), so essentially when i play the child file through the parent file, the play pause button no longer controls the video, however the scrubbing bar still works fast forwarding through the video.  It doesnt make sense as all the code for the play pause button is in the child file which works on its own.  <a href="http://board.flashkit.com/board/attachment.php?attachmentid=74275"  title="Name:  
Views: 
Size:  ">Attachment 74275</a><br />
<br />
I have attached the FLA files, please help :)</div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<li>
	<img class="inlineimg" src="/zip.gif" alt="File Type: zip" />
	<a href="http://board.flashkit.com/board/attachment.php?attachmentid=74275&amp;d=1369598048">Fla_Kelly parent.zip&lrm;</a> 
(226.8 KB)
</li> 
			</ul>
		</fieldset>
	

	</div>
 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>Kelly_vdw</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830603-Play-pause-buttons-controlling-a-movie-within-the-child-file</guid>
		</item>
		<item>
			<title>Flash touch controls</title>
			<link>http://board.flashkit.com/board/showthread.php?830601-Flash-touch-controls&amp;goto=newpost</link>
			<pubDate>Sun, 26 May 2013 13:24:21 GMT</pubDate>
			<description>I have a laptop that has  a touch screen and was wondering if i can make a 50% opaque box and give it

touch_event 
move player.x +101
(not actual code)
or what ever 
 

so basically the code will make my player more to the left</description>
			<content:encoded><![CDATA[<div>I have a laptop that has  a touch screen and was wondering if i can make a 50% opaque box and give it<br />
<br />
touch_event <br />
move player.x +101<br />
(not actual code)<br />
or what ever <br />
 <br />
<br />
so basically the code will make my player more to the left</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>ELVEVERX</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830601-Flash-touch-controls</guid>
		</item>
		<item>
			<title>about clicking on subject and continuing</title>
			<link>http://board.flashkit.com/board/showthread.php?830599-about-clicking-on-subject-and-continuing&amp;goto=newpost</link>
			<pubDate>Sun, 26 May 2013 05:33:15 GMT</pubDate>
			<description><![CDATA[Hey guys I need help with action script 2.0 for flash. I'm totally new in this subject.
There's this assignment where I need to include at least 1 action script in my animation and I've figured out what to do but I have no idea what keyword to search for this. So I hope someone can help me out.

What I'm gonna do is that in my animation , there will be 3 items , let's say A,B,C and a person standing beside it. And then the user will click on either one of the items and the person will start talking about it,same goes to item B and C. Then there will be a continue button on corner right so I can proceed with the animation, also is it possible to make the item unclickable once being clicked?? so that the user will not be clicking on same item more than once.

It'll be good if there's a you tube link or some video ,thanks :)



PS: Yes ,only action script 2.0,cause my lecturer is using an outdated software ,so she asked to use only 2.0 lol]]></description>
			<content:encoded><![CDATA[<div>Hey guys I need help with action script 2.0 for flash. I'm totally new in this subject.<br />
There's this assignment where I need to include at least 1 action script in my animation and I've figured out what to do but I have no idea what keyword to search for this. So I hope someone can help me out.<br />
<br />
What I'm gonna do is that in my animation , there will be 3 items , let's say A,B,C and a person standing beside it. And then the user will click on either one of the items and the person will start talking about it,same goes to item B and C. Then there will be a continue button on corner right so I can proceed with the animation, also is it possible to make the item unclickable once being clicked?? so that the user will not be clicking on same item more than once.<br />
<br />
It'll be good if there's a you tube link or some video ,thanks :)<br />
<br />
<br />
<br />
PS: Yes ,only action script 2.0,cause my lecturer is using an outdated software ,so she asked to use only 2.0 lol</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>wong93</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830599-about-clicking-on-subject-and-continuing</guid>
		</item>
		<item>
			<title>AS 2 Game Over Screen help</title>
			<link>http://board.flashkit.com/board/showthread.php?830597-Game-Over-Screen-help&amp;goto=newpost</link>
			<pubDate>Sat, 25 May 2013 13:34:24 GMT</pubDate>
			<description><![CDATA[So for school the assignment is to make a game with AS2 in Flash CS5.5. What I'm going for is a sort of avoider game where enemies scroll up from the bottom of the screen and the player avoids them. I have the enemies scrolling up and resetting at a random position at the bottom of the screen again, but when the player hits an enemy the enemies keep scrolling and restting. I'm not very used to AS or coding in general, but I tried adapting various tutorial codes for this to work, but to no avail yet. I hope you guys can make sense of all this.


The code on the enemy mc is as follows:



Code:
---------
onClipEvent (load) {

 function reset(){
	this._y=400;
	this._x=random(550);
	enemySpeed=random(4)+3;
 }
 function reset2(){
	this._y=500;
	this._x=random(550)+550;
	enemySpeed=0;
	this._alpha=0;
 }
 reset();
 var taart:Boolean = false
 
 }


onClipEvent (enterFrame) {

 if (_root.spaceship.scrollStart){
	this._y-=enemySpeed+_root.mainGround.groundSpeed;
 } else {
	this._y-=enemySpeed;
 }


 if (this._y<-10) {
	 _root.score+=100;
	reset();
 }
 
 if (taart==true) {
	reset2();
}

 if (this.hitTest( _root.spaceship ) ){
	 taart = true;
	_root.gotoAndPlay (2);
	
}


}
---------
On the frame there is the following script:


Code:
---------
stop();

numEnemy=3;

for (i=2; i<=numEnemy; i++){
	enemy1.duplicateMovieClip( "enemy"+i, i+100 );
	
}

score=0;
---------
]]></description>
			<content:encoded><![CDATA[<div>So for school the assignment is to make a game with AS2 in Flash CS5.5. What I'm going for is a sort of avoider game where enemies scroll up from the bottom of the screen and the player avoids them. I have the enemies scrolling up and resetting at a random position at the bottom of the screen again, but when the player hits an enemy the enemies keep scrolling and restting. I'm not very used to AS or coding in general, but I tried adapting various tutorial codes for this to work, but to no avail yet. I hope you guys can make sense of all this.<br />
<br />
<br />
The code on the enemy mc is as follows:<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">onClipEvent (load) {<br />
<br />
&nbsp;function reset(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; this._y=400;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this._x=random(550);<br />
&nbsp; &nbsp; &nbsp; &nbsp; enemySpeed=random(4)+3;<br />
&nbsp;}<br />
&nbsp;function reset2(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; this._y=500;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this._x=random(550)+550;<br />
&nbsp; &nbsp; &nbsp; &nbsp; enemySpeed=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this._alpha=0;<br />
&nbsp;}<br />
&nbsp;reset();<br />
&nbsp;var taart:Boolean = false<br />
&nbsp;<br />
&nbsp;}<br />
<br />
<br />
onClipEvent (enterFrame) {<br />
<br />
&nbsp;if (_root.spaceship.scrollStart){<br />
&nbsp; &nbsp; &nbsp; &nbsp; this._y-=enemySpeed+_root.mainGround.groundSpeed;<br />
&nbsp;} else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this._y-=enemySpeed;<br />
&nbsp;}<br />
<br />
<br />
&nbsp;if (this._y&lt;-10) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  _root.score+=100;<br />
&nbsp; &nbsp; &nbsp; &nbsp; reset();<br />
&nbsp;}<br />
&nbsp;<br />
&nbsp;if (taart==true) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; reset2();<br />
}<br />
<br />
&nbsp;if (this.hitTest( _root.spaceship ) ){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  taart = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; _root.gotoAndPlay (2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
<br />
}</code><hr />
</div> On the frame there is the following script:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">stop();<br />
<br />
numEnemy=3;<br />
<br />
for (i=2; i&lt;=numEnemy; i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; enemy1.duplicateMovieClip( &quot;enemy&quot;+i, i+100 );<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
score=0;</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>SirAnon</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830597-Game-Over-Screen-help</guid>
		</item>
		<item>
			<title>AS 2 Error opening URL</title>
			<link>http://board.flashkit.com/board/showthread.php?830589-Error-opening-URL&amp;goto=newpost</link>
			<pubDate>Fri, 24 May 2013 16:33:58 GMT</pubDate>
			<description><![CDATA[Hi hope someone could help me with this error.

I´m trying to load some variables with this code:

this.loadVariables("https://partner.cola.com/sites/laitclients/outlook/widget/datos/training.txt")

but when i publish my movie y get the next error:

Error opening URL 'https://partner.cola.com/sites/laitclients/outlook/widget/datos/training.txt'

Anyone knows why flash render this error? is because the HTTPS protocol? is there an other way to load the variables from this page?]]></description>
			<content:encoded><![CDATA[<div>Hi hope someone could help me with this error.<br />
<br />
I´m trying to load some variables with this code:<br />
<br />
this.loadVariables(&quot;https://partner.cola.com/sites/laitclients/outlook/widget/datos/training.txt&quot;)<br />
<br />
but when i publish my movie y get the next error:<br />
<br />
Error opening URL 'https://partner.cola.com/sites/laitclients/outlook/widget/datos/training.txt'<br />
<br />
Anyone knows why flash render this error? is because the HTTPS protocol? is there an other way to load the variables from this page?</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>gabriel.valdez</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830589-Error-opening-URL</guid>
		</item>
		<item>
			<title>AS 2 Load and save a movie clip position from a txt file</title>
			<link>http://board.flashkit.com/board/showthread.php?830575-Load-and-save-a-movie-clip-position-from-a-txt-file&amp;goto=newpost</link>
			<pubDate>Thu, 23 May 2013 22:47:56 GMT</pubDate>
			<description>Hi, im kind into a hurry i hope some could help me with this.

I need to set the position of a movie clip from a .txt file, also when the user drags this movie clip the new position get saved on the same .txt file, is there a way to do this or something similiar? 

I´m relatively new in AS 2.0, I will really appreciate any help.

Thanks!</description>
			<content:encoded><![CDATA[<div>Hi, im kind into a hurry i hope some could help me with this.<br />
<br />
I need to set the position of a movie clip from a .txt file, also when the user drags this movie clip the new position get saved on the same .txt file, is there a way to do this or something similiar? <br />
<br />
I´m relatively new in AS 2.0, I will really appreciate any help.<br />
<br />
Thanks!</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>gabriel.valdez</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830575-Load-and-save-a-movie-clip-position-from-a-txt-file</guid>
		</item>
		<item>
			<title>MX04 X and Y of a nested Rotated Clip</title>
			<link>http://board.flashkit.com/board/showthread.php?830557-X-and-Y-of-a-nested-Rotated-Clip&amp;goto=newpost</link>
			<pubDate>Wed, 22 May 2013 07:18:41 GMT</pubDate>
			<description><![CDATA[I need to 'lock on' one Movieclip to a fixed point on another. BUT the other is inside of another clip that can be rotated. When the clip is rotated, the X and Y of the clip inside the rotated clip isn't changing so Local to Global or anything like that doesn't want to work. I've tried some basic Trig to workout where the point is but My math skills don't seam to be up to it.. Basiclly, lets refer to the lock-on clip as 'Lock', the rotating clip as 'Target' and the clip inside that which I need to lock onto 'TargetPoint', so we have _root.Lock, _root.Target and _root.Target.TargetPoint

Any ideas?]]></description>
			<content:encoded><![CDATA[<div>I need to 'lock on' one Movieclip to a fixed point on another. BUT the other is inside of another clip that can be rotated. When the clip is rotated, the X and Y of the clip inside the rotated clip isn't changing so Local to Global or anything like that doesn't want to work. I've tried some basic Trig to workout where the point is but My math skills don't seam to be up to it.. Basiclly, lets refer to the lock-on clip as 'Lock', the rotating clip as 'Target' and the clip inside that which I need to lock onto 'TargetPoint', so we have _root.Lock, _root.Target and _root.Target.TargetPoint<br />
<br />
Any ideas?</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>Manic_Man</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830557-X-and-Y-of-a-nested-Rotated-Clip</guid>
		</item>
		<item>
			<title>AS 2 Tooltip in Flash AS2</title>
			<link>http://board.flashkit.com/board/showthread.php?830549-Tooltip-in-Flash-AS2&amp;goto=newpost</link>
			<pubDate>Tue, 21 May 2013 19:01:41 GMT</pubDate>
			<description>I have a map with 32 small states and I like to show the name of each state when the user mouse over the state.The states are all now buttons, the problem is that as the states are very small and reside closely sometimes the states with big names creates problem. So I am in search of tooltip that will display the name of the state when the user mouse over the state. 

Can anyone help me. The state will be buttons and I could not use movie clip .

Thanks.</description>
			<content:encoded><![CDATA[<div>I have a map with 32 small states and I like to show the name of each state when the user mouse over the state.The states are all now buttons, the problem is that as the states are very small and reside closely sometimes the states with big names creates problem. So I am in search of tooltip that will display the name of the state when the user mouse over the state. <br />
<br />
Can anyone help me. The state will be buttons and I could not use movie clip .<br />
<br />
Thanks.</div>

 ]]></content:encoded>
			<category domain="http://board.flashkit.com/board/forumdisplay.php?30-ActionScript-2.0">ActionScript 2.0</category>
			<dc:creator>trnghosh</dc:creator>
			<guid isPermaLink="true">http://board.flashkit.com/board/showthread.php?830549-Tooltip-in-Flash-AS2</guid>
		</item>
	</channel>
</rss>
