Be a Supporter!
Response to: Variable troubles Posted September 24th, 2007 in Game Development

flooding my output would be nice.. at least it would work, but for now its staying silent

Response to: Variable troubles Posted September 24th, 2007 in Game Development

bump

Variable troubles Posted September 24th, 2007 in Game Development

On MC button:

stop();
this.onPress = function() {
	
	gotoAndStop(1);
	_parent.repair = "rewind";
};

On _root frame 1:

//variables

if(_root.repair == "rewind")
trace("Rewind")

if (_root.repair == "forward")
trace("forward")

on MC Button 2 frame 1:

stop();

	_parent.repair = "forward";

on MC Button 2 frame 2-> :

if (_parent.repair == "rewind"){prevFrame();}

I know the onPress functions, and there is no errors within the actionscript but I dont get a trace in my output and the prevFrame does not function, can anybody see the problem?

Response to: Buttons inside Movieclips Posted September 24th, 2007 in Game Development

movieclip buttons dont work inside of buttons is what the problem is, so i'm having to do a redesign altogether..

Response to: Buttons inside Movieclips Posted September 18th, 2007 in Game Development

im guessing its gonna have to be a load symbol into root when the button is available for clicking job? -.-

If nobody else has ideas can i have some help with load and unload ?

Response to: Buttons inside Movieclips Posted September 18th, 2007 in Game Development

this.Repair.submenu.Products.onRelease = function() {
getURL("aHTMLlink", "_parent");
};

Located on Frame1
is an example, it has no effect on page movement at all...

Response to: Buttons inside Movieclips Posted September 18th, 2007 in Game Development

yes, all AS on timeline ill give that a go it looks promising. Thanks

Buttons inside Movieclips Posted September 18th, 2007 in Game Development

Hi, i have some movieclips that contain animation and button symbols, but unless i remove these buttons from the movieclip they fail to activate they're actionscript :

Products.onRelease = function() {
getURL("aHTMLpage", "_parent");
};

They work fine out of the movieclip, but is there a way to make them work inside the movieclip? If not i would need to redesign an awful lot.

Response to: Need some advanced actionscript hel Posted January 22nd, 2007 in Game Development

thats not all to helpful dude..
(first post Ok guys, i need help with moving a scrollbar of images. If you look at my screnshot, it contains the information of the document, and and idea of what i want.

I want the top images that currently overlap the view area to slide left and right acording to where your mouse is on the screen, and i need it to also allow me to add more images to it at a later date.

© part mouse pointer changed due to spaces being removed, it just signifies further from middle, faster it scrolls over.

Response to: Need some advanced actionscript hel Posted January 22nd, 2007 in Game Development

screenshot

Need some advanced actionscript hel


Ok guys, i need help with moving a scrollbar of images. If you look at my screnshot(posted below due to tech difficulties), it contains the information of the document, and and idea of what i want.

I want the top images that currently overlap the view area to slide left and right acording to where your mouse is on the screen, and i need it to also allow me to add more images to it at a later date.

Eg.
©=image
_____________
|©©©©©©©©©©|
^Mouse here, doesnt move
_____________
|©©©©©©©©©©|
^Mouse here, move images << to see whats further right (speed fast)
_____________
|©©©©©©©©©©|
^Mouse here, move images << to see whats further right (speed slow)
and visa versa

If you could help it would be much appreciated

Response to: Mouse over? Posted February 2nd, 2006 in Game Development

Scene=Scene 1, Layer=button, Frame=84: Line 1: Clip events are permitted only for movie clip instances
onClipEvent (load) {

Scene=Scene 1, Layer=button, Frame=84: Line 4: Mouse events are permitted only for button instances
on (rollOver, dragOver) {

Scene=Scene 1, Layer=button, Frame=84: Line 7: Mouse events are permitted only for button instances
on (rollOut, dragOut) {

Scene=Scene 1, Layer=button, Frame=84: Line 1: ';' expected
Scene=Scene 1, Layer=button, Frame=84: Line 1: Clip events are permitted only for movie clip instances

... Thanks for trying but it seems it doesn't want to do it, so i'll leave it without it looping..

Response to: Mouse over? Posted February 2nd, 2006 in Game Development

I think those are button events, not MC's, so it would be:

on (rollOver,dragOver){//stuff();

&&

on (rollOut,dragOut){//moreStuff();

So, what you the ///stuff, be ?:P

Response to: Mouse over? Posted February 2nd, 2006 in Game Development

Scene=Scene 1, Layer=button, Frame=65: Line 4: Invalid movie clip event specified.
onClipEvent (rollOver, dragOver) {

Scene=Scene 1, Layer=button, Frame=65: Line 7: Invalid movie clip event specified.
onClipEvent (rollOut, dragOut) {

where does i specify the movie clip?
too keep things clean and understandable its name is symbol 29 :P

Response to: Mouse over? Posted February 2nd, 2006 in Game Development

ok, i got the first part done, on the final frame can sum1 think of a way to do this:
A: If mouse is over the target, goto and play 2
B: if mouse is not over target goto and stop 2

Thanks for all the help

Response to: Mouse over? Posted February 2nd, 2006 in Game Development

ahh thats the problem i had.. I don't want it to goto and stop 2 :/ i want it to carry on playing until it reaches frame 2 (it loops) then stop at frame 2 if mouse has rolled out or not present on the target.

Response to: Mouse over? Posted February 2nd, 2006 in Game Development

thanks alot, and if the mouse isn't over, how do i get goto and stop 2?

Mouse over? Posted February 2nd, 2006 in Game Development

Is there such a commander to to in this movieclip that if the mouse is over the same movie clip, action: goto and play frame 2?

Tanks

Roll over, goto and play? Posted November 28th, 2005 in Game Development

Hey!
Well Flash 7 pro had a thing that let me do this easy, but flash 8.. I cant do it so sum1 please script this for me, its not hard

on a button, i want a script that when roll over, goto and play frame 2, the button name(if req.) can be anything, but make sure u state please.

Response to: Please help Actionscrpit ppl Posted November 7th, 2005 in Game Development

sum1 else hlp me fix it nooby.. wya thnx for ur attention and time.. i actualy learn somthin lol

Response to: Please help Actionscrpit ppl Posted November 7th, 2005 in Game Development

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 9: ')' expected
_root["coin"+a]._y<-10 ? (delete _root["coin"+a].onEnterFrame, createCoin, removeMovieClip(this) : 0;

Total ActionScript Errors: 1 Reported Errors: 1

Please help Actionscrpit ppl Posted November 7th, 2005 in Game Development

Hey actionscript pros.
I'm making a banner for a friends site and i need help with a actionscript command which i know exists which will reduce filesize, and smoothen out the animation. I have 2 coins which i want to go from top to bottom of banner (50pix high) randomly (Sort of like in the portal with the .swf files floating to the left of page) And then once they get out of sight i want them to dissapear again to reduce lag on site.. Plz help

Response to: shooting from first person view? Posted April 25th, 2005 in Game Development

is ur ship aligned with the cross of the MC?

Response to: New problem :( Posted April 25th, 2005 in Game Development

thanks! that fixed the prob

Response to: New problem :( Posted April 25th, 2005 in Game Development

gravity works fine, and the character can jump, move left and right, but the walls don't work

New problem :( Posted April 25th, 2005 in Game Development

I'm adding a ground for a instance named 'character'. The coding im using works perfert this way for another game i did and flash has no errors, but it doesnt work on the actual game when i test it...

onClipEvent (enterFrame) {
if (this.hittest(_root.Character)) {
_root.Character._y += 8;
}
}

and i have gravity:

onClipEvent (enterFrame) {
this._y += 5;
}

Response to: help with instance name Posted April 25th, 2005 in Game Development

thanks dude, didnt c it b4 cos i usualy have that bar closed(always in the way:D)

Response to: I's got a problem, can some1 help? Posted April 25th, 2005 in Game Development

the prob is is that u need ot make the text bubble into a symbol, then double click the symbol to open a new instance. Then add you actionscript code 'Stop();' here, this will cause just the bubble to freezwe, but the rest of the movie to run.

help with instance name Posted April 25th, 2005 in Game Development

how can i add an instance name to a movieclip symbol? Im using flash MX 2004 Professional, and cant find a spot to add an instance name. Please help!

Response to: actionscript hlp please Posted April 24th, 2005 in Game Development

(small tut) is part of the symbol which im trying to moves name, can't be the prob unless it needs renaming