Be a Supporter!

2 quicks questions

  • 731 Views
  • 17 Replies
New Topic Respond to this Topic
karasz
karasz
  • Member since: Nov. 22, 2002
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
2 quicks questions 2003-10-25 16:30:45 Reply

question 1) what is flash called? like the program you need to start making the movies everyone uses?

2) how do i make a random number generator for up to 50? (im setting up a poker tourney and need to put everyone at a table, so im going to give them a number and place the first ten numbers at table one... and so on)

BurstStudio
BurstStudio
  • Member since: Dec. 27, 2002
  • Offline.
Forum Stats
Member
Level 12
Programmer
Response to 2 quicks questions 2003-10-25 17:11:02 Reply

At 10/25/03 04:30 PM, karasz wrote: 1) what is flash called?

Ummm... it's called Flash...

2) how do i make a random number generator for up to 50?

random(50)+1 will make a random number between 1 and 50

karasz
karasz
  • Member since: Nov. 22, 2002
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to 2 quicks questions 2003-10-25 17:30:37 Reply

just making sure its not called something huge and referred to as just flash...

and i need like the actual code for microsoft VB... the cheap one you can use from microsoft word...

i know its the pussy way but i dont care

The-GrandMaster
The-GrandMaster
  • Member since: Feb. 6, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to 2 quicks questions 2003-10-25 17:41:55 Reply

Sub Random()

Dim Random

Random = CStr(Int(Rnd() * 50))

End Sub

karasz
karasz
  • Member since: Nov. 22, 2002
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to 2 quicks questions 2003-10-25 19:03:38 Reply

ok i guess that was the randomizer for the command button.... how do i make it show up on the screen?

basically i need the whole code for it...

sorry for any inconvience... i know its not very hard... but i cant remember it at all

XXGhettoXX
XXGhettoXX
  • Member since: Oct. 19, 2003
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to 2 quicks questions 2003-10-25 20:09:15 Reply

Answer 1: Macromedia Flash mx
Answer 2: I dont do this much so do what they say.

The-GrandMaster
The-GrandMaster
  • Member since: Feb. 6, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to 2 quicks questions 2003-10-25 21:20:40 Reply

Sub Random()

Dim Random, Msg, Style, Title, Box

Random = CStr(Int(Rnd() * 50))

Msg = "Your Number is " & Random

Style = vbokonly

Title = "Random Number"

Box = MsgBox(Msg, Style, Title)

End Sub

High-Roller
High-Roller
  • Member since: Sep. 20, 2003
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to 2 quicks questions 2003-10-25 22:51:47 Reply

jeezoloweez, grandmaster, pretty smart w/the computa language

Iamthom
Iamthom
  • Member since: May. 2, 2003
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to 2 quicks questions 2003-10-25 22:56:51 Reply

lol here ya go

Random Number Program

made it in 5 secs to save u 5 secs of ur life, aint that nice of me? lol

The-GrandMaster
The-GrandMaster
  • Member since: Feb. 6, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to 2 quicks questions 2003-10-25 23:07:14 Reply

At 10/25/03 10:51 PM, Stiron wrote: jeezoloweez, grandmaster, pretty smart w/the computa language

Not half as smart as some of the people who post here!

The-GrandMaster
The-GrandMaster
  • Member since: Feb. 6, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to 2 quicks questions 2003-10-25 23:14:54 Reply

A better version:

Sub Random()

Start: Dim Random, Msg, Style, Title, Box

Random = CStr(Int(Rnd() * 50))

Msg = "Your Number is " & Random

Style = vbRetryCancel

Title = "Random Number"

Box = MsgBox(Msg, Style, Title)

If Box = vbRetry Then GoTo Start

End Sub

karasz
karasz
  • Member since: Nov. 22, 2002
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to 2 quicks questions 2003-10-25 23:20:04 Reply

two more things... the msgbox doesnt pop up

and the link doesnt do anything...

sorry for being a pain in the ass guys

The-GrandMaster
The-GrandMaster
  • Member since: Feb. 6, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to 2 quicks questions 2003-10-26 00:20:48 Reply

At 10/25/03 11:20 PM, karasz wrote: two more things... the msgbox doesnt pop up

and the link doesnt do anything...

sorry for being a pain in the ass guys

The MsgBox worked on my computer, anyway, I'll email you one I just made in VB.

The-GrandMaster
The-GrandMaster
  • Member since: Feb. 6, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to 2 quicks questions 2003-10-26 00:24:56 Reply

At 10/25/03 11:20 PM, karasz wrote: two more things... the msgbox doesnt pop up

and the link doesnt do anything...

sorry for being a pain in the ass guys

Try:

Sub CommandButton1_Click()

Start: Dim Random, Msg, Style, Title, Box

Random = CStr(Int(Rnd() * 50))

Msg = "Your Number is " & Random

Style = vbRetryCancel

Title = "Random Number"

Box = MsgBox(Msg, Style, Title)

If Box = vbRetry Then GoTo Start

End Sub

The-GrandMaster
The-GrandMaster
  • Member since: Feb. 6, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to 2 quicks questions 2003-10-26 00:27:38 Reply

At 10/25/03 11:20 PM, karasz wrote: two more things... the msgbox doesnt pop up

and the link doesnt do anything...

sorry for being a pain in the ass guys

Lol your link takes you back to this topic!

karasz
karasz
  • Member since: Nov. 22, 2002
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to 2 quicks questions 2003-10-26 00:29:52 Reply

gracias good sir...

thank you very much...

Iamthom
Iamthom
  • Member since: May. 2, 2003
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to 2 quicks questions 2003-10-26 01:14:01 Reply

heh, u know vb well and yet u dont know how to fix the link thing???? It always does that, especially if ur on aol, all u have to do it right click , copy shortcut, then minimize or open a new window (ie) and do it that way (i forget if open link in new window works though)

The-GrandMaster
The-GrandMaster
  • Member since: Feb. 6, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to 2 quicks questions 2003-10-27 00:08:31 Reply

At 10/26/03 12:29 AM, karasz wrote: gracias good sir...

thank you very much...

It was no problem, glad to help!