Is there a more efficient way of adding sounds to movie clips than
var mySound = new Sound();
mySound.attachSound("sound");
if there are a lot of different movie clips?
Peter
CCNA, Cisco Qualified Specialist
This is what I have done so far,
picNumber = 0;
//trace(picNumber);
correct._visible = false;
pictureArray = [{image:"images1/badger", text:"badger"}, {image:"images1/butter", text:"butter"}, {image:"images1/computer", text:"computer"}, {image:"images1/cooker", text:"cooker"}];
while (n) {...
Thanks, you were right about if deleting the previous object if it is replaced by another object on the same depth.
I am trying to get a button to check if the answer written in the text box is the same as the answer associated with the picture in the array
checkAnswer_btn.onRelease =...
No it doesn't your right I must have done something wrong. Is it possible to delete the previous picture when you press the button to get the next picture?
Peter
CCNA, Cisco Qualified Specialist
I managed to figure out why it was returning undefined. When the button is pressed to go to the next picture you have to press it twice before it goes to the next one in the array. It does this the way I have done it and I tried the way you stated above but both seem to do this?
Thanks a lot...
When I tried to get the picture on the screen it is coming back as undefined, any idea what the problem would be?
Thanks again!
Peter
CCNA, Cisco Qualified Specialist
This is what I have done so far would this be easy to adapt to use the text within the array too?
_global.picNumber = 0;
pictureArray = ["images1/badger", "images1/butter", "images1/computer"];
var n:Number = pictureArray.length;
while (n) {
var k:Number = Math.floor(Math.random()*n)...
Hi
I was just wondering, I have a an array of pictures that I randomise. I also have an inout tect box. I display a picture from the array for example a picture of an apple and I want the user to type the correct answer into the text box. I am not sure how to check the answer is correct if I...
Cool, I havn't tried to do it that way before, do you know of any online tutorials that will help me with this?
Thanks
Peter
CCNA, Cisco Qualified Specialist
Is there a way to generate movieclips rather than just making lots of them. For example is it possible to have an instance of a movieclip that is made up of a dynamic text box then have an array of strings that you want in the text box. When you press a button it will choose a random string to...
This is what I have done so far, I have commented some parts out just to make things smaller to make it easier when I was testing it out.
var position:Array = [{_x:100, _y:100}];
//{_x:200, _y:200}, {_x:300, _y:300}];
var correctArray:Array = ["bandMC", "bendMC", "brandMC"]...
I have made an array with the positions that I want them in and I have added the array to the end of the attatch movie statement but the movieclips appear in the top left hand corner on top of each other
Peter
CCNA, Cisco Qualified Specialist
Cool thanks, so if I make an array with the positions that I want to put them in how would I insert this within the attatchMovie()?
Thanks for the help
Peter
CCNA, Cisco Qualified Specialist
Is there a way to set the position of each movieclip separately I have tried a number of different ways but can't seem to do it?
Peter
CCNA, Cisco Qualified Specialist
Mine seems to be working too now, not sure what was wrong. To change the position of the movieclips on the screen do I just change the paramaters at the end of the attatchmovie statement?
Peter
CCNA, Cisco Qualified Specialist
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.