Home  | Login  | Register  | Help  | Play 

RE: Flash Q&A thread 3

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A thread 3
Page 7 of 16«<56789>»
Forum Login
Message << Older Topic   Newer Topic >>
5/14/2007 18:45:52   
Tapeworm Shoelace
Member

I was using the button tutorial, and it said that i needed to make a circle. This also works with a square, right?
AQ  Post #: 151
5/14/2007 20:58:45   
Myhos
Member


quote:

ORIGINAL: LightningBlade

I was using the button tutorial, and it said that i needed to make a circle. This also works with a square, right?


Inside the button the object can be ANYTHING a square a triangle a ...well you name it
AQ DF  Post #: 152
5/15/2007 0:48:36   
banished and forgott
Member

well i have a question i got flash mx with freehand, dreamware, extention manager, fireworks and homesite+...i dont know why but everything is in a different language have any idea how to fix????

_____________________________

AQ DF  Post #: 153
5/15/2007 13:19:30   
petermaxo
Member

What?
quote:

ORIGINAL: Myhos
Yea you see for flash the # 5000 = 5 secs so if you want it to be 6 minutes just tweak the #:

60*6= 360 so then..

_root.timerDelay = timerX+360000;

I hope that helps

but if you want it to be for the entire movie you might need it to be a global funtion

AQ DF  Post #: 154
5/16/2007 16:27:16   
SirSchmoopy
Banned Multi


whts wrong with this code????
import it.gotoandplay.smartfoxserver.*
stop()
ip = "127.0.0.1"
port = 9339
smartfox = new SmartFoxClient()
smartfox.onConnection = handleConnection
smartfox.connect(ip, port)
//----------------------------------------------------------
// Handle connection response from server
//----------------------------------------------------------
function handleConnection(success)
{
if (success)
{
status_txt.text = "Connection succesfull!"
}
else
{
status_txt.text = "Can't connect!"
}
}
smartfox.onRoomListUpdate = function(roomList)
{
roomList_lb.removeAll()
for (var i in roomList)
{
var room = roomList
roomList_lb.addItem(room.getName() + " (" + room.getUserCount() + ")", room.getId())
}
roomList_lb.sortItemsBy("label", "ASC")

// Join the default room
this.autoJoin()
}
smartfox.onUserCountChange = function(roomObj)
{
updateRoomStatus(roomObj.getId())
}
function updateRoomStatus(roomId)
{
var room = smartfox.roomList[roomId]
var newLabel = room.name + " (" + room.getUserCount() + ")"
for (i=0; i < roomList_lb.getLength(); i++)
{
var item = roomList_lb.getItemAt(i)
if (roomId == item.data)
{
roomList_lb.replaceItemAt(i, newLabel, item.data)
break;
}
}
}
//----------------------------------------------------------
// Setup components callback functions
//----------------------------------------------------------
roomList_lb.setChangeHandler("changeRoom")
userList_lb.setChangeHandler("userSelected")
function changeRoom()
{
var item = roomList_lb.getSelectedItem()

// new Room id
var newRoom = item.data
if (newRoom != smartfox.activeRoomId)
{
// Check if new room is password protected
var priv = smartfox.getRoom(newRoom).isPrivate()
if (priv)
{
// Save newroom as _global for later use
_global.newRoom = newRoom
showWindow("passwordWindow")
}
else
{
// Pass the room id
smartfox.joinRoom(item.data)
}
}
var priv = smartfox.getRoom(newRoom).isPrivate()
smartfox.joinRoom(item.data)
function loginProtectedRoom(pwd)
{
hideWindow("passwordWindow")
smartfox.joinRoom(_global.newRoom, pwd)
}
joinRoom = function(newRoom, pword, dontLeave, oldRoom)
smartfox.onJoinRoomError = function(errorMsg)
{
var win = showWindow("errorWindow")
win.errorMsg.text = errorMsg

// Put the selected room in the combo box back to its old value
resetRoomSelected(smartfox.activeRoomId)
}
<Zone name="simpleChat">
<Rooms>
<Room name="The Cottage" maxUsers="70" isPrivate="false" isTemp="false" isGame="false"
autoJoin="true" />
<Room name="The Tree" maxUsers="70" isPrivate="false" isTemp="false" isGame="false"/>
<Room name="The Pool" maxUsers="70" isPrivate="false" isTemp="false" isGame="false" />
<Room name="The Bathroom(lol)" maxUsers="70" isPrivate="false" isTemp="false" isGame="false" />
<Room name="The Tradin' Place Foo!" maxUsers="70" isPrivate="false" isTemp="false" isGame="false" />
<Room name="The Big Fieldy Place Room" maxUsers="50" isPrivate="true" isTemp="false" pwd="piddu"
isGame="false" />
</Rooms>
</Zone>
createRoom(roomObj)
function makeNewRoom()
{
showWindow("newRoomWindow")
}

function createRoom(name, pwd, max)
{
hideWindow("newRoomWindow")

var roomObj = new Object()

roomObj.name = name
roomObj.password = pwd
roomObj.maxUsers = max

smartfox.createRoom(roomObj)
}
smartfox.onCreateRoomError = function(errorMsg)
{
var win = showWindow("errorWindow")
win.errorMsg.text = errorMsg
}
function userSelected()
{
uid = userList_lb.getSelectedItem().data

// If it's not me...
if (uid != smartfox.myUserId)
{
// store the recipient for later use
_global.pmUid = uid

var win = showWindow("pmWindow")

var uList = smartfox.getActiveRoom().getUserList()
var targetUsr = uList[uid]

win.title_txt.text = "Send a private message to " + targetUsr.getName()
}
}
function sendMessage()
{
var m = message.text
if (m.length > 0)
{
_parent.sendPrivateMessage(m, _global.pmUid)
message.text = ""
}
}
smartfox.onConnectionLost = function()
{
gotoAndStop("connect")
}
Edit: stoopid syntax error!!!

< Message edited by SirSchmoopy -- 5/16/2007 20:11:38 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 155
5/17/2007 17:14:33   
flsg
Member

you're using smartfox server already?! Wow, do you know how much a dedicated server costs? XD
AQ  Post #: 156
5/17/2007 17:33:16   
SirSchmoopy
Banned Multi


omg it costs money!!!! oh noes.......oops.... deformed squirrel attack!

< Message edited by SirSchmoopy -- 5/17/2007 17:34:24 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 157
5/17/2007 19:30:06   
Myhos
Member

HAH thats a good one, do you expect for these kind of things to be free? hell no! for an unlimited amount of users (this is the basic package) you need to pay up about 1000 dollars (800 euros) LOL
AQ DF  Post #: 158
5/17/2007 19:56:47   
SirSchmoopy
Banned Multi


holy jumpin juhuzavets batman! by the way, it took me until the 2nd to last day oof my trial to make this game, and it totally sucks....
http://img511.imageshack.us/my.php?image=rpgyo5.swf
tell me wht u think tho
i call it R.P.G...... R.andom P.rombelm G.ame
arrow keys to move, sometimes use ur mouse to do stuff.....

< Message edited by SirSchmoopy -- 5/17/2007 20:01:01 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 159
5/17/2007 20:05:10   
SirSchmoopy
Banned Multi


oh by the way myhos, i got the free server that only holds 70 peeps...(i aint expecting much!)

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 160
5/17/2007 20:13:17   
EragonZZZZ
Member

flsg...ten bucks says you reacted that way not out of shock, but out of sheer jealousy. XD


whoa...that game put my mind on freakout mode. confuszling to the max.
but nice concept. collision formulas (YAY! MY FAVORITE) need work, though.
AQ  Post #: 161
5/17/2007 20:20:21   
SirSchmoopy
Banned Multi


quote:

ORIGINAL: EragonZZZZ

flsg...ten bucks says you reacted that way not out of shock, but out of sheer jealousy. XD


whoa...that game put my mind on freakout mode. confuszling to the max.
but nice concept. collision formulas (YAY! MY FAVORITE) need work, though.

ty, and i will work on it as much as i can, even tho i have 2 days of trial and not enuf money, still its my first game and i dont plan on it being the last! its gonna kik moglin but!


< Message edited by SirSchmoopy -- 5/17/2007 21:09:11 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 162
5/17/2007 22:12:08   
Jergal
Code Fysh


If you want to end up making a real game you will have to concentrate on the programming part in priority. Flash is nice because you can make decent little games with a few gotoAndPlay and eventually some hitTest, but you will not get very far without focusing on programming. Unless you just plain enjoy drawing and do not care much about the rest (which is utterly respectable, artists are the cool).

A few things that will help in the kind of game that you want to make:
- Dynamic Z-sorting (depth management, the player can walk around an object and appear on top of or behind it depending on the relative Y coordinates)
- Collision detection (be careful with hitTests, they use a lot of memory. When you have to test many objects it is better to switch to your own methods. And a very important part of collision detection is "what to do if objectA and objectB do collide ?")
- Grouping your code (OOP may be a bit hard if you just started. Another way to have your code neat and organized is to group it in one or few places. Having your code organized is extremely helpful for any program that consists of more than the few gotoAndPlay and hitTest I mentionned above. Use instance names to target your objects, and only one main onEnterFrame that will group all the tasks that you did with onClipEvent(enterFrame). There are better ways, but the problem with programming is that when you start, there is so much to learn that you have to aim low at first.)
- Forget about chats for now >>

The hardest part in programming is to actually think up how the hell you want your objects to behave in a very detailed way. Once you have what you want in mind, you just translate it in computer language. If you start to write your code without knowing exactly where you are going, hoping to get ideas on the heap...you end up with something sucky that you will most likely have to re-code from scratch if you want to build up further. Yah, programming requires mind discipline, like it or not... >>


But then again with Flash you can do decent little games without bothering much about programming, so do as you wish, now at least you know what to expect and where to dig.


Edit: Damn, I wrote all this stuff when you have 2 days left on your Flash trial ? >>

< Message edited by Jergal -- 5/17/2007 22:17:12 >
AQ DF MQ  Post #: 163
5/18/2007 7:23:29   
SirSchmoopy
Banned Multi


today only 1 day :) and also i like drawing the best, i rock at drawing in real life, and its a fun practice.
quote:

ORIGINAL: Jergal

If you want to end up making a real game you will have to concentrate on the programming part in priority. Flash is nice because you can make decent little games with a few gotoAndPlay and eventually some hitTest, but you will not get very far without focusing on programming. Unless you just plain enjoy drawing and do not care much about the rest (which is utterly respectable, artists are the cool).

A few things that will help in the kind of game that you want to make:
- Dynamic Z-sorting (depth management, the player can walk around an object and appear on top of or behind it depending on the relative Y coordinates)
- Collision detection (be careful with hitTests, they use a lot of memory. When you have to test many objects it is better to switch to your own methods. And a very important part of collision detection is "what to do if objectA and objectB do collide ?")
- Grouping your code (OOP may be a bit hard if you just started. Another way to have your code neat and organized is to group it in one or few places. Having your code organized is extremely helpful for any program that consists of more than the few gotoAndPlay and hitTest I mentionned above. Use instance names to target your objects, and only one main onEnterFrame that will group all the tasks that you did with onClipEvent(enterFrame). There are better ways, but the problem with programming is that when you start, there is so much to learn that you have to aim low at first.)
- Forget about chats for now >>

The hardest part in programming is to actually think up how the hell you want your objects to behave in a very detailed way. Once you have what you want in mind, you just translate it in computer language. If you start to write your code without knowing exactly where you are going, hoping to get ideas on the heap...you end up with something sucky that you will most likely have to re-code from scratch if you want to build up further. Yah, programming requires mind discipline, like it or not... >>


But then again with Flash you can do decent little games without bothering much about programming, so do as you wish, now at least you know what to expect and where to dig.


Edit: Damn, I wrote all this stuff when you have 2 days left on your Flash trial ? >>



< Message edited by SirSchmoopy -- 5/18/2007 7:32:34 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 164
5/18/2007 11:35:39   
Myhos
Member

Sir Schoopy, your making a bunch of newbie mistakes with your flash game; All you your pointers have the actually point which your clicking as the top left end of your pointer. Go inside of all your pointers movie clips or buttons and fix it.

Also I'm adding my 10 bucks with Eragonzzz
AQ DF  Post #: 165
5/18/2007 15:45:38   
lil boi blue
Member

if you have one day left on your trial, just uninstall it and then reinstall it, it does work lol.
AQ DF  Post #: 166
5/18/2007 15:50:09   
flsg
Member

EragonZZZZ: jalousy? lol. It is true that I have always wanted the unlimited SFS, but why would I be jalous? I'm just shocked. that SirSchmoopy is the first person on this forum who wants to create multiplayer games at the very beginning

Jergal: wow, you talk like colin moock lol
lil boi blue: are you sure? It shouldn't work

< Message edited by flsg -- 5/18/2007 15:51:02 >
AQ  Post #: 167
5/18/2007 16:07:26   
SirSchmoopy
Banned Multi


quote:

ORIGINAL: lil boi blue

if you have one day left on your trial, just uninstall it and then reinstall it, it does work lol.

thanks, considering the fact i asked everyone i knew if they culd lend me sum money, and all i got wuz 400 bucks in the stomach \
....but how do i uninstall it???

< Message edited by SirSchmoopy -- 5/18/2007 16:09:20 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 168
5/18/2007 16:11:35   
SirSchmoopy
Banned Multi



quote:

ORIGINAL: Myhos

Also I'm adding my 10 bucks with Eragonzzz

lol

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 169
5/18/2007 16:12:06   
petermaxo
Member

Sir Schmoopy: Wow! I didn't know there were free servers of any form! this will make my supremely complex password system un needed (for the moment).

flsg: I wouldn't say he's the first one to want to. I have made approximately 1/4 of a game, and am currently alpha-testing it before releasing it to the internet-at-large, i.e., actually buying a real website rather than getting a free one. And getting a server.
AQ DF  Post #: 170
5/18/2007 16:12:48   
SirSchmoopy
Banned Multi



quote:

ORIGINAL: Myhos

Sir Schoopy, your making a bunch of newbie mistakes with your flash game; All you your pointers have the actually point which your clicking as the top left end of your pointer. Go inside of all your pointers movie clips or buttons and fix it.

Also I'm adding my 10 bucks with Eragonzzz

lol,
but u do realize that u might owe her $10.

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 171
5/18/2007 16:29:35   
petermaxo
Member

When the server capacity is 20, does that mean in total or at a time?

ex. for a game, 20 loged on or 20 total?


Edit: Woah... the code used for these things is complex!
I would appreciate any tips anyone might have on the subject of servers.

< Message edited by petermaxo -- 5/18/2007 16:45:52 >
AQ DF  Post #: 172
5/18/2007 18:37:42   
SirSchmoopy
Banned Multi


how do i uninstall it?

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 173
5/18/2007 18:54:31   
SirSchmoopy
Banned Multi


why does this always say cant connect? i have the smartfoz server and it doesnt work even when server is running? u shuld checkitout
http://img174.imageshack.us/my.php?image=avatarchatca1.swf

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 174
5/18/2007 19:53:58   
flsg
Member

petermaxo:20 total

SirSchmoopy: O.M.G.sorry to say this, but you shouldn' start with a multiplayer game or even a chatroom, because you don't even understand the basic of a multiuser socket.
I looked at your thing, but I don't even need to see it to tell you that it won't work. imageshack?! Do you think you can just upload a single flash file on a webpage in order to run a chatroom? You need a dedicated server(most of them cost money), and you need to configure very complicated things (do you think I'm still jalous eragon?) I seggest you to learn the basic of actionscript before attempting such a big project.

BTW, did you see any big game running with a single file hosted on a webpage like imageshark?
AQ  Post #: 175
Page:   <<   < prev  5 6 [7] 8 9   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A thread 3
Page 7 of 16«<56789>»
Jump to:






Icon Legend
New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Content Copyright © 2018 Artix Entertainment, LLC.

"AdventureQuest", "DragonFable", "MechQuest", "EpicDuel", "BattleOn.com", "AdventureQuest Worlds", "Artix Entertainment"
and all game character names are either trademarks or registered trademarks of Artix Entertainment, LLC. All rights are reserved.
PRIVACY POLICY


Forum Software © ASPPlayground.NET Advanced Edition