I am making an app, the app is quite simple in one part you have 4 flower petals and you pick all 4 and that takes you to a different scene that displays a logo “try again” for some reason i cant even trace the activity once these petals are picked on that stage (each petal is a movieclip). i also wrote the movieclips as variables into AS3 by linking it through classes, i dont even know if this is really necessary and i put the sentence “helloworld” to be traced when movieclip “one” is not vissible and this does not happen either. (i also tried arrays, and if(“array”.visible == false then gotoandplay “other scene” with the same results.) ; “the place” is the scene i want to go to once the petals are picked.
this is my current code and theres no error but it does not work as i would want it to, since it does not register that the movieclip is not visible nor does it go to the other scene.
var one = new sunflowerpetal10;
var two = new sunflowerpetal12;
var three = new sunflowerpetal13;
var four = new sunflowerpetal14;
var five = new sunflowerpetal15;
var six = new sunflowerpetal16;
var hello:String;
hello = "helloworld";
if(one.visible == false, two.visible == false, three.visible == false, four.visible == false, five.visible == false, six.visible == false)
{
trace(hello);
gotoAndPlay(1, "theplace");
}
Help please!
are my movieclips that are already on stage not registering on AS3? or what seems to be the problem??
You have a bunch of things wrong here, and it’s difficult to determine what you’re actually doing. Flash is very confusing in regards to what gets referenced where and how.
For starters when you call new on something you need to give it parenthesis. so…
This assumes you have an MC called sunflowerpetal15 in your library and that this label is how’s “exported to actionscript” and not just its name in the library.
Next you have to actually put this item on the stage
next in your if statement you have ,s which are illegal. I think you mean && (logical and) between your items, but again, not sure what you’re doing).
When all of that is fixed, you *should have it go and play frame 1 but I suspect you’ve never left frame 1 to begin with! so… again, I suspect you’re not clear on what you’re doing here.
What you *really need is a good step by step tutorial on getting started in Flash and AS3. You’re all over the map and Flash is the ABSOLUTELY wrong environment to go it alone without a good guide because it’s profoundly un-intuitive.