RE: Flash Q&A Thread 4 (Full Version)

All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy



Message


EragonZZZZ -> RE: Flash Q&A Thread 4 (1/22/2008 21:05:30)

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

BEST LINK EVAR




Taerzik -> RE: Flash Q&A Thread 4 (1/23/2008 3:10:34)

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. [8|] Duh. Problem solved.




dominic_r_monroe -> RE: Flash Q&A Thread 4 (1/24/2008 15:23:22)

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




Taerzik -> RE: Flash Q&A Thread 4 (1/26/2008 2:38:57)

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.




dominic_r_monroe -> RE: Flash Q&A Thread 4 (1/26/2008 3:21:15)

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 ?




Taerzik -> RE: Flash Q&A Thread 4 (1/26/2008 5:09:51)

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.




zenron the great -> RE: Flash Q&A Thread 4 (1/26/2008 7:04:07)

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




biG frend -> RE: Flash Q&A Thread 4 (1/26/2008 7:11:06)

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.




zenron the great -> RE: Flash Q&A Thread 4 (1/26/2008 7:17:31)

[:(]that sucks

ok ill have to outline it then. might take awhile




dominic_r_monroe -> RE: Flash Q&A Thread 4 (1/26/2008 8:01:58)


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




biG frend -> RE: Flash Q&A Thread 4 (1/26/2008 8:13:58)

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






flsg -> RE: Flash Q&A Thread 4 (1/26/2008 9:17:07)

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




biG frend -> RE: Flash Q&A Thread 4 (1/26/2008 9:18:59)

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




The Illusive Man -> RE: Flash Q&A Thread 4 (1/27/2008 3:52:05)

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




Taerzik -> RE: Flash Q&A Thread 4 (1/29/2008 22:49:43)

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.




SirSchmoopy -> RE: Flash Q&A Thread 4 (1/30/2008 11:33:06)

@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?




flsg -> RE: Flash Q&A Thread 4 (1/30/2008 21:38:26)

attach it to a different depth, the third argument in the function
BTW did someone delete all the other recent posts? o.o




EragonZZZZ -> RE: Flash Q&A Thread 4 (1/30/2008 22:39:55)

Yeah I noticed that, we sorta went off topic though so maybe thats why.




SirSchmoopy -> RE: Flash Q&A Thread 4 (1/31/2008 20:21:37)

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]);
}
}
}




EragonZZZZ -> RE: Flash Q&A Thread 4 (1/31/2008 20:43:34)

flsg was right, you've left out the depth argument in the attachmovie command :P




SirSchmoopy -> RE: Flash Q&A Thread 4 (1/31/2008 20:56:06)

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




EragonZZZZ -> RE: Flash Q&A Thread 4 (1/31/2008 21:38:35)

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.




SirSchmoopy -> RE: Flash Q&A Thread 4 (1/31/2008 21:46:47)

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




SirSchmoopy -> RE: Flash Q&A Thread 4 (2/1/2008 10:24:58)

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);
}




EragonZZZZ -> RE: Flash Q&A Thread 4 (2/1/2008 16:16:06)

I'm vaguely uncertain where you pulled the property, 'nextFrame' from.




Page: <<   < prev  23 24 [25] 26 27   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.109375