Home  | Login  | Register  | Help  | Play 

RE: Flash Q&A Thread 4

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 4
Page 25 of 30«<2324252627>»
Forum Login
Message << Older Topic   Newer Topic >>
1/22/2008 21:05:30   
EragonZZZZ
Member

Yeah I learned the real way to do it, hooray!

BEST LINK EVAR
AQ  Post #: 601
1/23/2008 3:10:34   
Taerzik
Member

Can someone tell me how to get text that's been entered into a dynamic text field( so that it shows up when the field is first loaded) to retain it's formatting when loaded? The color, size and font are fine but the text loads as one continuous string instead of set out as I had it.




^ I was just about to post this when I realized that the text field was behaving as if it had been set to single line. Duh. Problem solved.
Post #: 602
1/24/2008 15:23:22   
dominic_r_monroe
Member

I'm gonna be posting a load because I'm working on a new Project.

A) Is there Any advantages in AS3 to AS2
B) I'm Designing an RPG type thing and I have a portal

quote:

onClipEvent (enterFrame) {
if (this.hitTest( _root.char)) {
gotoAndPlay(2);

}
}


It does nothing :(

Thankyou in Advance

p.s I have no error messages
AQ  Post #: 603
1/26/2008 2:38:57   
Taerzik
Member

If you mean if AS2 is in anyway better than AS3 or has a noteworthy advantage then no, not to speak of. It is easier to script but executes slower. Mind you, I'm not familiar with AS3.

If you're not getting any error then it's not the commands or structure... have you referenced something wrong? Ah... gotcha, I think...

This code is on the movie clip of the portal isn't it? When the player clip hits the portal clip it's supposed to do something right? Well, I guess it depends on what's supposed to happen but you have the script telling the portal movie clip to gotoAndPlay it's own second frame. If that's not you're desired reaction then you need to specifiy what it is that is supposed to respond to the command. If that is what the code is supposed to do then the error is in the code on that destination frame.
Post #: 604
1/26/2008 3:21:15   
dominic_r_monroe
Member

A Thanks for replying at last ;D but i didn't get a part of that second bit lol O right i got you I think could i hit test the player instead ?
AQ  Post #: 605
1/26/2008 5:09:51   
Taerzik
Member

Well, thing is, I don't know what the code you showed us is attached to. It looks to be just fine as it is. I suspect that the problem is with the code or animation on frame #2 rather than this part of it.
Post #: 606
1/26/2008 7:04:07   
zenron the great
Member

ok ive got another question

ok so when you put a picture into flash. I cant seem to edit it to the way I want. I want to color it bu flashwont let me. Whats my problem here
DF  Post #: 607
1/26/2008 7:11:06   
biG frend
Member

You can't edit non-flash art in flash, Its the way it goes. You have to sketch over the outline using the Line tool and a second layer.
AQ DF MQ  Post #: 608
1/26/2008 7:17:31   
zenron the great
Member

that sucks

ok ill have to outline it then. might take awhile
DF  Post #: 609
1/26/2008 8:01:58   
dominic_r_monroe
Member


quote:

ORIGINAL: Taerzik

Well, thing is, I don't know what the code you showed us is attached to.


I have attached it to the portal, that one set up will take you to a battle but i have added the Keyframe ready
AQ  Post #: 610
1/26/2008 8:13:58   
biG frend
Member

Have you given your character the instance name 'char'? Its case sensitive as well.
Thats the only solution I can think of.




< Message edited by biG frend -- 1/26/2008 9:18:41 >
AQ DF MQ  Post #: 611
1/26/2008 9:17:07   
flsg
Member

onClipEvent is always associated to a mc
try adding a reference in front of the gotoAndPlay. like: this.gotoAndPlay or char.gotoAndPlay, dunno which one you want

< Message edited by flsg -- 1/27/2008 13:55:59 >


_____________________________

My flash gallery
my game thread

flsg, proud old member of AQ(still playing :O)
AQ  Post #: 612
1/26/2008 9:18:59   
biG frend
Member

I'm having problems understanding saving with obj's
I got this code
Object.prototype.setCookie = function(c, n, v) {
var so = SharedObject.getLocal(c);
so.data[n] = v;
so.flush();
};
Object.prototype.getCookie = function(c, n) {
var so = SharedObject.getLocal(c);
return so.data[n];
};


But I can seem to get it to function
The tutorial about it I just don't understand. Can you guys help me?


I found an Awesome Save/load feature and Its so mega awesome, I think I'm in love heh. /nerdrant

< Message edited by biG frend -- 1/26/2008 21:32:56 >
AQ DF MQ  Post #: 613
1/27/2008 3:52:05   
The Illusive Man
Member

Heh, seeing as i'm outta here and stuff (read post in saer haven by swenn), i'm not going to be visiting this much more...

Flsg or eragon, you take the thread :) You're better at AS than me anyway
Post #: 614
1/29/2008 22:49:43   
Taerzik
Member

Lol, I've been struggling with a piece of code for the last few days that attaches and manipulates a mc for every item in an array. Problem was that the code would make more than one copy of the movie. I was frustrated because my multi-user environment uses a similar process and I couldn't figure out what was wrong. As it turned out the whole problem was that I forgot to put a pair of parenthesis after the getNextHighestDepth part of the movie attachment command.
Post #: 615
1/30/2008 11:33:06   
SirSchmoopy
Banned Multi


@big frend: sweet.... Can u by any chnce help me find it again?? or can u tell me, it sounds Awsome!!!
also i have a question for anyone. if i attach a movie on the lowest layer, why does it overlap the stuff on thet top layer? is there anyway to stop it from doind that?

< Message edited by SirSchmoopy -- 1/30/2008 12:22:55 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 616
1/30/2008 21:38:26   
flsg
Member

attach it to a different depth, the third argument in the function
BTW did someone delete all the other recent posts? o.o
AQ  Post #: 617
1/30/2008 22:39:55   
EragonZZZZ
Member

Yeah I noticed that, we sorta went off topic though so maybe thats why.
AQ  Post #: 618
1/31/2008 20:21:37   
SirSchmoopy
Banned Multi


but that 1 thing is the only 1 thing that i attached, the rest i put in, and everytime i change depth, it becomes less rows.
can u check over this code, i dont think what im looking for will work with this.
rowOffset = 25;
colOffset = 25;
numRows = 15;
numCols = 20;

tileName = new Array("road", "grass", "dirt", "trees", "water");
board = new Array (
new Array (2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2),
new Array (2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2),
new Array (2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2),
new Array (2, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 2),
new Array (2, 1, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 2),
new Array (2, 1, 1, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 2),
new Array (2, 1, 1, 1, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 2),
new Array (2, 1, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 2),
new Array (2, 1, 1, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 1, 1, 3, 1, 2),
new Array (2, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2),
new Array (2, 1, 0, 0, 0, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2),
new Array (2, 1, 0, 0, 0, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2),
new Array (2, 0, 0, 0, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 2),
new Array (2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 1, 1, 2),
new Array (2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2)
);

init();
function init(){
for (col = 0; col < numCols; col++){
for (row = 0; row < numRows; row++){
_root.attachMovie("tile", "tile_" + col + "_" + row, 1 * col + row);
theTile = eval("tile_" + col + "_" + row);
theTile._x = (col * theTile._width) + colOffset;
theTile._y = (row * theTile._height) + rowOffset;
theTile.row = row;
theTile.col = col;


tileType = board[row][col];

theTile.gotoAndStop(tileName[tileType]);

board[this.row][this.col] = currentState;
this.gotoAndStop(tileName[currentState]);
}
}
}

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 619
1/31/2008 20:43:34   
EragonZZZZ
Member

flsg was right, you've left out the depth argument in the attachmovie command :P
AQ  Post #: 620
1/31/2008 20:56:06   
SirSchmoopy
Banned Multi


positive??? cuz when i added it, nutin happened.....

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 621
1/31/2008 21:38:35   
EragonZZZZ
Member

Also, init() is defined after you call it, although I'm not certain if this is an issue.

And yes I'm positive. Also, you have a lot of useless code there....why not specify tile position in the attachMovie() call?
Skip all the yucky string concatenation for names and such.
AQ  Post #: 622
1/31/2008 21:46:47   
SirSchmoopy
Banned Multi


because the array making the position makes it easier for me to edit it, its sorta like a map editor, but with numbers :)

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 623
2/1/2008 10:24:58   
SirSchmoopy
Banned Multi


srry for duble post :(
how wuld i make a button that sends sumtin to the next frame? i tried this, but i duzn't work :( :
on(release){
_root.Char.hair.gotoAndStop(nextFrame);
}

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 624
2/1/2008 16:16:06   
EragonZZZZ
Member

I'm vaguely uncertain where you pulled the property, 'nextFrame' from.
AQ  Post #: 625
Page:   <<   < prev  23 24 [25] 26 27   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 4
Page 25 of 30«<2324252627>»
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