Home | Community | Message Board

Sporeworks
This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Unfolding Nature Shop: Unfolding Nature: Being in the Implicate Order

Jump to first unread post Pages: 1
Flash - actionscript help
    #3661122 -

Anyone familiar with actionscript/flash?

I'm having trouble getting my swf file to recognize global variables. Anyone out there think they can help me out?

on frame one (the frame itself) I have the declaraton

_global.menu1click = "0"
_global.menu2click = "0"

later on in the timeline I change one of the variables

menu1click = "1"

Then even later on in the timeline when I test the value of "menu1click".. its back to 0. WTF? I've tried referring to the menu1click as both "_global.menu1click" and "menu1click" when setting and testing it... but either way... it doesn't remember me setting the global variable for some reason.

Extras: Filter Print Post Top
Re: Flash - actionscript help [Re: BrAiN]
    #3661194 -

do you ever loop back to the first frame?
Also, doesn't flash require a semicolon at the end of the line?
I haven't written any in a while, so i guess i could be wrong.. what about the quotations? I don't think they're used when you mean for it to be a numerical variable.

Extras: Filter Print Post Top
Re: Flash - actionscript help [Re: vampirism]
    #3661210 -

Actually I found my problem. I'm used to VB where testing conditionals with if (x=y).. notice the SINGLE "=" symbol. I forgot in Actionscript that in order to tets you need "=="... a double equal sign.. similar to C... or else I'm just SETTING the conditional to true automatically... :wink: oops

thanks though

Extras: Filter Print Post Top
Re: Flash - actionscript help [Re: BrAiN]
    #3661212 -

ah, the problem wasn't shown up there then. well nevermind

Extras: Filter Print Post Top
Jump to top Pages: 1

Unfolding Nature Shop: Unfolding Nature: Being in the Implicate Order


Similar ThreadsPosterViewsRepliesLast post
* Need help with Flash paradox_ 301 2 02/11/09 02:18 PM
by zouden
* Global Warming.
( 1 2 3 4 5 all )
Madtowntripper 6,695 81 06/24/08 06:42 PM
by ScavengerType
* Plants May Contribute Up to 1/3 of a Greenhouse Gas, Globally Catalysis 988 7 01/13/06 09:45 AM
by Notell
* Global Warming???
( 1 2 all )
crazyman 3,437 24 02/01/05 09:35 PM
by crazyman
* Anthropogenic Global Warming - Fact or Fiction?
( 1 2 all )
libertaire 1,981 23 05/01/09 09:00 PM
by BrainChemistry
* Global Consciousness Project
( 1 2 all )
Eightball 4,458 30 02/26/05 01:20 PM
by Eightball
* Global warming during the time of Neanderthals lIllIIIllIlIIlIlIIllIllIIl 4,312 19 11/01/08 04:31 PM
by niteowl
* flash player is spyware arainbow 451 1 12/16/08 05:08 PM
by supra

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: trendal, automan, Northerner
441 topic views. 0 members, 12 guests and 17 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2026 Mind Media. Some rights reserved.

Generated in 0.025 seconds spending 0.007 seconds on 16 queries.