The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 Viewsyou can also do swfcabin.com
is it possible to specify the layer that the mc will be put onto? say the code is only layer1. I need it to be based on layer2. Is that possible? Or should I forget layers and just use an algorithm to organize the depths of the mc's with actionscript all on one layer?
At 7/25/09 11:25 AM, FlashtooREV wrote: I don't think so, you only listed them in an array.
Say you have 5 puppies.
You make a list:
puppy1
puppy2
etc.
Now, you throw that list away. Do the puppies get thrown away?
rofl. great real life example.
I just didn't know if the array adopted the puppies or that is was a just a list of them.
thanks for the help.
Just wondering-if I delete/clear the array, does it delete all the mcs(because they are the children)?
right below this code:
_root.coin._x = Math.random()*400+50;
put this:
_root.coin._y = Math.random()*400+50;// replace 400 with you stage height
thanks, ididn't know that... :P
ok, I created 30 or so boxes and i was wondering how to talk to them
their names are box1 box2 etc.
this code isn't working
stage["box"+a].x
At 7/25/09 10:13 AM, Kirk-Cocaine wrote: myMC.myVar = 5;
trace(myMC.myVar); //5
i get an error: 1119: Access of possibly undefined property myvar through a reference with static type flash.display:Sprite.
I tried that a million times:
var mc.variable:String="blah"
is it possible to assign a newly created variable to an mc? Whenever I create a new variable, it is automatically assigned to the frame. How would i be able to assign it to an mc instead?
well, you have to first create the variable score:
onClipEvent(load){
score=0
}
on(release){
score++
}
http://www.albinoblacksheep.com/tutorial /contextmenu
heres a good site for that
http://www.swfcabin.com/open/1248474239
That's as2 but Im really starting to get the hang of as3 right now :)
if that is the only way of doing it, then is their a property of sprites that tells the user what color the background is?
well, here is an old maid game. i never finished the ai(it was screwed up). your hand is at the bottom. click two cards that match to remove them. http://spamtheweb.com/ul/upload/240709/5 9886_old_maid3.fla
you can also view my coding in the .fla
bump...
for more clarification: After I create the variable filled, It is automatically assigned to the frame. I want it to be assigned to the mc. How would I do this in code?
Well, i can do either. right now I do not have any as3 examples(just switched over a month ago) and my as2 examples are unfinished, but they could be of some use to you if you want to "estimate my skills"
Thanks for the help. I, yet again, have another question:
how would it be possible to give the property "filled" to an mc
i know how to define the var filled but when i do that on the frame, it doesn't belong to the mc
var filled:Boolean=false
//give variable to box(how would i do this?)
sorry for triple post, I found another obsticle
is it possible to change the fill color of a rectangle after it has been completely drawn?
Example:
var square:Sprite=new Sprite()
square.graphics.beginfill(0xFFFFFF)
square.graphics.drawRect(0,0,25,25)
square.graphics.endfill()
addChild(square)
square.addEventListener(MouseEvent.CLICK,squareclicked)
function squareclicked(event:MouseEvent){
var mc:object=event.target
//change fill here
}
i figured it out:
var mc:Object=event.target
as2 or as3?
how would I make this script work?
box.addEventListener(MouseEvent.CLICK,boxclicked);
function boxclicked(event:MouseEvent) {
var mc:sprite=event.target
trace(mc.y)
}
it's legal, just ask JohnnyUtah for permission to use them
what do you want? :|
as2 or as3?
is it for a small project(like a menu in a movie) or a big project(a game)?
when you publish the file(which turns it into a .swf) it automatically compiles the document. A lot of the 5 mb's is the user history that is included with the .fla.
I'd be willing to do it if you improve the art. pm me if you want to start something ;)
show the example so we can see what you are talking about.
1. Better sprites(drawing)
2. Lipsynching
3. Actual sounds for bullet fire
That would make it much better:)
for (a=1; a<=slimit; a++) {
var ["subbox"+a]:Sprite=new Sprite();
["subbox"+a].graphics.lineStyle(2,0x000000);
["subbox"+a].graphics.beginFill(0x999999);
["subbox"+a].graphics.drawRect((a-1)*(25+sdist),87.5,25,25);
["subbox"+a].graphics.endFill();
}
how would I fix this so It works in as3?
here's a forum, there's bound to be some sprite sheets there. :)http://www.madnesscombat.net/phpBB3/