Home | Community | Message Board


Kratom Eye
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: 7 years, 10 months
Flash - actionscript help
    #3661122 - 01/22/05 12:16 AM (12 years, 6 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 (12 years, 6 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: 7 years, 10 months
Re: Flash - actionscript help [Re: vampirism]
    #3661210 - 01/22/05 12:49 AM (12 years, 6 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 (12 years, 6 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_ 261 2 02/11/09 04:18 PM
by zouden
* Global Warming.
( 1 2 3 4 5 all )
Madtowntripper 5,332 81 06/24/08 08:42 PM
by ScavengerType
* flash player is spyware arainbow 403 1 12/16/08 07:08 PM
by supra
* Scientist publishes "escape route" from global warming Silversoul 1,560 14 08/03/06 01:51 PM
by Viveka
* Global Warming on Mars DiploidM 1,043 3 04/08/07 05:12 PM
by funnybunny
* Imagining the Tenth Dimension (Flash)
( 1 2 all )
ivi 2,813 38 08/12/06 02:51 PM
by barfightlard
* More global warming rhetoric SeussA 3,088 16 11/01/08 01:33 AM
by lIllIIIllIlIIlIlIIllIllIIl
* Puppy 3.00 Released - A Linux Distro. that will fit on your USB flash drive daba 1,252 10 10/10/07 12:56 AM
by daba

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

Copyright 1997-2017 Mind Media. Some rights reserved.

Generated in 0.026 seconds spending 0.009 seconds on 19 queries.