PDA

View Full Version : i need help


babonji
06-22-2001, 02:58 PM
i need ur help if u don't mind
this test file show you square u can type two numbers

i would like to type ( for example ) 01 then press enter
will desplay cat and 02 will display some thing elss
etc etc

do u mind if u help me which ActionScrips i need to do that

thanks alot


the test file
http://groups.yahoo.com/group/MyFlashFiles/files/Test/test.swf

babonji
06-22-2001, 10:32 PM
please answer

Jesse
06-23-2001, 04:06 AM
your text field will have a variable name, let's say it's 'item'. so on your button have:

if (item=="01") {
// show cat code
} else if (item=="02") {
// show dog code
}

the show code could be anything but the best idea woul dbe to have all your movie clips with their visibility set false, and then set them true to make the appear. see the get and set property tutorials. and read the first 5 beginner tutorials if you haven't already.

babonji
06-23-2001, 09:58 AM
thanks i will try it now
but what do u mean by ( show cat code )
i mean what do u mean by code?

thanks for answering

Jesse
06-24-2001, 04:57 AM
code = script... like I said above
the show code could be anything but the best idea woul dbe to have all your movie clips with their visibility set false, and then set them true to make the appear. see the get and set property tutorials. and read the first 5 beginner tutorials if you haven't already.

babonji
06-24-2001, 07:09 AM
thanks alot DR_jesse
i am reading the first five tutorial thanks again
i will name you as DR_ActionScript :)

babonji
06-30-2001, 06:05 PM
please Dr_jesse help me



i coudn't do what u said

please downlaod the flash file and look at the wrong
please teach me

as i said i would like to write down 01 in the box then
press ((((( ENTER )))))
so i can load the movie from the first fram to the 5"th fram


how i can do that

i would like to make my research by the flash 5


this is the file

http://groups.yahoo.com/group/MyFlashFiles/files/Test/test.fla



thanks alot i am waiting for you

babonji
07-02-2001, 10:55 AM
please help me please

babonji
07-03-2001, 03:29 PM
please

Sephiroth
07-03-2001, 07:52 PM
try this:

on frame 1:

setProperty ("catMC", _visible, "False");
setProperty ("dogMC", _visible, "False");


if (item == "01") {
// show cat code
setProperty ("catMC", _visible, "True");
} else if (item == "02") {
// show dog code
setProperty ("dogMC", _visible, "True");
}


catMC is a movie containg all your cats..and dogMC contains all the dog

babonji
07-03-2001, 09:05 PM
i did what u said but nothing and u can check ur self


http://groups.yahoo.com/group/MyFlashFiles/files/Test/11.fla


thanks for answering

please help

babonji
07-04-2001, 11:59 PM
finaly i did it but just with little problem

how i can detarmane the movie from the first frame to frame 5 with 01


i mean when i press 01--->enter i can see from frame no 1 upto 5 when i press 02 i can see from frame no 5 upto 10
etc


thanks for evry one answerd my quistion

this is the link of new flash file


http://groups.yahoo.com/group/MyFlashFiles/files/Test/11.fla

babonji
07-06-2001, 12:57 PM
please any one answer this simple quistion

babonji
07-07-2001, 10:58 AM
which actionscript can play the MC from frame to frame ?

Jesse
07-07-2001, 11:29 AM
to make 11.fla work make the button code this:
on (release, keyPress "<Enter>") {
if (oo=="01" or oo=="1" ) {
setProperty ("_root.flag", _visible, true);
}
}
you had:
if (oo=="01" or "1" ) {
which is invalid. Flash groups those terms in this way:
if ((oo=="01") or ("1") ) {
so ("1") is not being tested against the 'oo' variable, it's just a stirng, which will always be true, so the flag was always being displayed.

babonji
07-07-2001, 11:45 AM
((((( which will always be true ))))))))
i don't like it always true

so which actionscript i need if

if the box is blank or 00 don't see MC
if 01 or 1 can play MC from frame to frame



thanks for answering
please don't be late thanks thanks alot

Jesse
07-07-2001, 12:01 PM
"please don't be late"? I'm a busy man my friend, patience is a virtue.
the script I gave is what you need. your old script was always true, so I changed it.

babonji
07-07-2001, 03:40 PM
i am so so sorry Mr _jesse i didn't mean it


please except my sorry thanks again

Jesse
07-08-2001, 02:54 AM
:D

babonji
07-14-2001, 01:31 AM
thanks Mr jesse

which actionscript i need to run the MC from the frame no 1 to the frame no 5


thanks again

Jesse
07-14-2001, 03:42 AM
is that a question? I don't get what you mean...

babonji
07-16-2001, 05:46 PM
yes that was quistion ( my english langauge very bad ) i am so sorry

ok look at the actionscript i did
************************************************** *********
on (release, keyPress "<Enter>") {
if (o=="0") {
setProperty (_root.h, _visible, false);
} else if (o=="1") {
setProperty (_root.h, _visible, true);
gotoAndStop (10);
}
}
************************************************** *********
my quistion is i don't know how to use the ( gotoAndstop ) action


i need to use this action to stop the Mc at the frame no 10 ( e.g)

thanks

Jesse
07-17-2001, 10:01 AM
the _root.h MC?

_root.h.gotoAndStop(10);

babonji
07-17-2001, 10:51 AM
yes that what i need
thousend thanks Mr jesse

i will show you sample of my research