Home | Community | Message Board


Azarius
Please support our sponsors.

General Interest >> Science and Technology

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!

Jump to first unread post. Pages: 1
OfflineBrAiN
Art Fag
 User Gallery
Registered: 03/01/01
Posts: 6,870
Loc: Chocolate City
Last seen: 8 years, 6 months
Flash - actionscript help
    #3661122 - 01/22/05 12:16 AM (13 years, 3 months ago)

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.


Post Extras: Print Post  Remind Me! Notify Moderator
Invisiblevampirism
Stranger
Male User Gallery

Registered: 03/14/04
Posts: 8,120
Re: Flash - actionscript help [Re: BrAiN]
    #3661194 - 01/22/05 12:39 AM (13 years, 3 months ago)

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.


Post Extras: Print Post  Remind Me! Notify Moderator
OfflineBrAiN
Art Fag
 User Gallery
Registered: 03/01/01
Posts: 6,870
Loc: Chocolate City
Last seen: 8 years, 6 months
Re: Flash - actionscript help [Re: vampirism]
    #3661210 - 01/22/05 12:49 AM (13 years, 3 months ago)

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


Post Extras: Print Post  Remind Me! Notify Moderator
Invisiblevampirism
Stranger
Male User Gallery

Registered: 03/14/04
Posts: 8,120
Re: Flash - actionscript help [Re: BrAiN]
    #3661212 - 01/22/05 12:50 AM (13 years, 3 months ago)

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


Post Extras: Print Post  Remind Me! Notify Moderator
Jump to top. Pages: 1

General Interest >> Science and Technology

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

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Lana, trendal, automan
402 topic views. 0 members, 2 guests and 0 web crawlers are browsing this forum.
[ Toggle Favorite | Print Topic | Stats ]
Search this thread:
Azarius
Please support our sponsors.

Copyright 1997-2018 Mind Media. Some rights reserved.

Generated in 0.073 seconds spending 0.014 seconds on 31 queries and 0.034 seconds on Sphinx.