Click to See Complete Forum and Search --> : newbie with questions
ch.strider
08-25-2006, 11:58 PM
hi, ive had KoolMoves for about 3 months now...
i know how to the basic stuff but i want to learn more about
Action Scripting.
Can someone tell me how to do the morphing thing...
ive read the tuts and i get lost when it says make it an MC(movie clip)
How do you do that?
I also want to learn how to create a password frame.
&
on a menu type thing, how do i make it so the user uses his keys to move up and down? (does that make sense?)
and 1 more thing
a different kind of mouse cursor...
Thanks-a-bunch!
Edit: Also i want to learn how to add an E-mail form.
ch.strider
08-26-2006, 04:10 PM
b-u-m-p
tmoore935
08-26-2006, 04:27 PM
For the mouse, make the shape and turn it into a MC by selecting the shape. Then go to the file and select shapes>>convert to MovieClip.
Click on the MC twice and an info window should show up. Click on the actions and add this:
onClipEvent(load){
mouse.Hide();
this.startDrag(true);
}
ant_Z
08-26-2006, 04:33 PM
i get lost when it says make it an MC(movie clip)
How do you do that?
and 1 more thing
a different kind of mouse cursor...
Edit: Also i want to learn how to add an E-mail form.
1. a) select shape.
b) Menu -> shapes -> convert to MovieClip
c) well done
2. a) make your cursor
b) menu -> effects -> motion script
c) mouse trial (on left side)
d) set parameters:
~ trail motion: figure 8
~ radius (px) : 1
~ speed: 0
~ trail lenght: 1, or as you wish
~ rotation speed: no rotation
~ hide orginal mouse: yes
3. i think this is gonna need PHP
ant_Z
08-26-2006, 04:33 PM
i get lost when it says make it an MC(movie clip)
How do you do that?
and 1 more thing
a different kind of mouse cursor...
Edit: Also i want to learn how to add an E-mail form.
1. a) select shape.
b) Menu -> shapes -> convert to MovieClip
c) well done
2. a) make your cursor
b) menu -> effects -> motion script
c) mouse trial (on left side)
d) set parameters:
~ trail motion: figure 8
~ radius (px) : 1
~ speed: 0
~ trail lenght: 1, or as you wish
~ rotation speed: no rotation
~ hide orginal mouse: yes
3. i think this is gonna need PHP
b-u-m-p
w-h-a-t-?
ant_Z
08-26-2006, 04:34 PM
hey tmoore, i was the first one :):):) im just typing slowly :):):) :cap:
ch.strider
08-26-2006, 04:45 PM
wow, thats was easier than i thought... :)
how about the other stuff?
Stoke Laurie
08-26-2006, 05:26 PM
Hi Ch, if you haven't already done so, take a look at www.koolexchange.com where you will find examples of what you need. Take a look at how the stuff is put together, a great way to learn.
ch.strider
08-26-2006, 05:53 PM
yes i have looked at it,
but i need like a cheat sheet or seomthing.
for instance
OnSubmit if text field=(passwordishere); goto key frame (3)
if text field=(""); goto key frame (4)
see i have no idea how to set it up... but i get the general idea
Stoke Laurie
08-27-2006, 08:02 AM
Try this, it uses php to check passwords, so it won't work locally on your machine, you will have to upload it to see it work.
ant_Z
08-27-2006, 08:47 AM
you can also do 2 swf - one for registered users, 1 for guests. If isset cookie['login'] view registered.swf, else guest.swf. it uses php and ive got the code :] i can share if you want
Chris_Seahorn
08-27-2006, 10:47 AM
See below...
Chris_Seahorn
08-27-2006, 11:29 AM
Are you asking for a login/password that needs no serverside (php,etc)? Antz example would...mine would (I have two at the Exchange) and Stokes would.
There are no examples of a login/pass that is internal (all inside the swf itself) because it is about as secure as a swish cheese barricade. If this is what you are looking for...maybe someone can help because there are none in the Exchange that use all internal coding.
ch.strider
08-27-2006, 12:44 PM
o i gotcha. kind of like viewing a source in html to find some passwords...
alrigt.
well thanks to all.
i didnt realize you could that in flash
Chris_Seahorn
08-27-2006, 01:38 PM
Koolmoves users can import your SWF into a new movie (flash users too) and read the coding unless:
1. The movie is extremely complicated and might garble the scripts (usually causes the application to crash if someone tries to import) on import.
or
2. You ofuscate (encrypt it or protect with a third party app)
Even then I would suggest a serverside (php,cgi,etc) to add a layer of protection should 1 or 2 fail.
Chris_Seahorn
08-27-2006, 01:45 PM
One last tip. I don't suggest anyone (these days at least) attempt to protect a Flash6 movie because if you export as F7 or F8 (the preferred) you can block right clicking which allows users to step through your movies frames using the flash menu. This would bypass even a serverside protection so I highly recommend you get into the habit of exporting F7 or F8 and place this on frame 2 of every movie you make:
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
_root.menu = newMenu;
This way if they direct hit your SWF (bypass the html page it's embedded in) and try to step past your security by right clicking....they get blocked. That code will not work in F6 exports or below.
ch.strider
08-27-2006, 04:21 PM
Well my server supports .php files, and i have PhpMyAdmin, but im completel lost when it come to that. I treid to learn Cgi and php but i get really confused. html is a cinch and flash isnt to difficult.
Is there any easy way to setup a php file to do this?
Chris_Seahorn
08-27-2006, 04:31 PM
Well...I'm not tooting my own horn here because I wish there were hundreds of files to pick and choose from but I have one in the Exchange called "Loadvars Login w/SO" that is exactly what you want. It's in the misc section. It doesn't use http cookies to remember you...it uses a Shared Object (which works across browsers...http cookies don't).
The backend is commented where to change the username/pass and after that as long as they exist (THE SWF AND PHP FILE) in the same directory on your server it should definitely let you better understand how php and flash integrate.
ch.strider
08-27-2006, 04:51 PM
Well...I'm not tooting my own horn here because I wish there were hundreds of files to pick and choose from but I have one in the Exchange called "Loadvars Login w/SO" that is exactly what you want. It's in the misc section. It doesn't use http cookies to remember you...it uses a Shared Object (which works across browsers...http cookies don't).
The backend is commented where to change the username/pass and after that as long as they exist (THE SWF AND PHP FILE) in the same directory on your server it should definitely let you better understand how php and flash integrate.
okay i downloaded it, im lost. what .php file do i upload? sry...
Chris_Seahorn
08-27-2006, 05:05 PM
Cut it out man...there is only one php file in it ;)
Edit these two lines (between the quotes)
//Enter your admin username and password below!
$adminuser="testadmin";
$adminpass="testpass";
//
So if you wanted a username of "test" and a password of "user" the lines would be:
$adminuser="test";
$adminpass="user";
Upload the php file and swf file to your server (same directory) and test
ch.strider
08-27-2006, 05:18 PM
okay theres 4 files in the folder
1)loadvar_so_login (koolMoves Format)
2)loadvar_so_login ( HTML document) - which i uploaded to server
3)loadvar_so_login (.swf file)
4)login (in PictureIt! format)
i uploaded the html doc. and i see nothing like that to edit....
please help
Chris_Seahorn
08-27-2006, 05:20 PM
Wonderful...your computer is associating .php files with PictureIt. That login file is actually "login.php".
Login.php is the file that needs editing (but be careful what you edit it with or carriage returns will corrupt it) like I explained earlier. Then upload the html...swf and php file.
Chris_Seahorn
08-27-2006, 05:25 PM
If backend code (serverside) is what you plan on getting into or needing due to what your movies require...you might want to invest in a free or paid html editor (Dreamweaver has a 30 day trial...at least a start).
ch.strider
08-27-2006, 05:26 PM
okay i got it! but
i logged in with somethin other than what i chose and it said
'success' and now im stuck there...
whats goin on?
will new members beable to register?
Chris_Seahorn
08-27-2006, 05:32 PM
Somewthing got buggered. I just tested here OK.
As for registering...you didn't ask for a registration system...you asked for a login. I have one at the Exchange but it is MySQL based and even more complicated than this one. Registrations are not a simple matter.....no dynamic code is really.
ch.strider
08-27-2006, 05:33 PM
okay, so what do i do to get back to the main login page?
Chris_Seahorn
08-27-2006, 05:37 PM
Listen...that is meant to be a piece of a larger pie. That success message you see is supposed to be where you would do something...move forward in the timeline...load a clip...whatever. It's a login that sends you to a frame. What you do when you get to the frame is on you. The success message is not stuck...I stop the movie there on purpose because that is the end of the routine..
To go back...you need to learn to code a back button. Some things you will have to learn....there is no way around this.
ch.strider
08-27-2006, 05:42 PM
gotcha. okay thanks for your help/patience
Chris_Seahorn
08-27-2006, 05:52 PM
I don't mean to sound frustrated but you have to understand...we have no idea what any given user will use any given example movie for so some things (like this) are setup generically and only deal with the frames it needs to function. These bits and pieces (or snippets) are useful to either import as part of a larger movie or to completely recreate into a full system using the code as an example.
Anything else assumes I know what your movie is going to do and what happens when they successfully login. I can't possibly know that but still want to try to help users understand logins and integrating movement based on php returns. The movie did what it was built to do. Is it anything by itself?...no. It needs a parent movie to be a part of so you can send them where you want on success or fail.
ant_Z
08-27-2006, 07:37 PM
Hey Guys, i can share with you my code (working, chcecked) which allows registration, has password reminder, has two ranks and is not very safe and uses cookie, but its easy to use and its very good for home users :]
Chris_Seahorn
08-27-2006, 07:48 PM
Please do.
Chris_Seahorn
08-27-2006, 09:50 PM
2 hours and waiting. Where's the link man?
ant_Z
08-28-2006, 09:38 PM
hey, chill man, i thought that youll not understand anything from polish so i had to make english version :]
heres the zip and code for index (checking and replacing swf due to login):
script isnt safe, but it works.
put this before <html> tag: <?php
if($_GET['refresh'] == 1)
{
header('Location: ./index.php');
exit;
}
?>,
next <?php
if(isset($_COOKIE['zalogowany'])) {
echo '<script type="text/javascript">AC_FL_RunContent(\'codebase\',\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0\',\'loop\',\'false\', \'menu\',\'false\',\'bgcolor\',\'#3b2703\',\'width \',\'800\',\'height\',\'51\',\'src\',\'button_bar\ ',\'quality\',\'high\',\'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\',\'movie\',\'button_bar\');
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=button_bar width=800 height=51 codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0">
<param name="movie" value="button_bar.swf" />
<param name="quality" value="high" />
<param name="play" value="true" />
<param name="menu" value="false" />
<param name="loop" value="false" />
<param name="bgcolor" value="#3b2703" />
<embed src="button_bar.swf" width=800 height=51 bgcolor="#3b2703" quality="high" loop="false" menu="false" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>';
}
else {
echo '<script type="text/javascript">AC_FL_RunContent(\'codebase\',\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0\',\'loop\',\'false\', \'menu\',\'false\',\'bgcolor\',\'#3b2703\',\'width \',\'800\',\'height\',\'51\',\'src\',\'button_bar\ ',\'quality\',\'high\',\'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\',\'movie\',\'button_bar_guest\');
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=button_bar width=800 height=51 codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0">
<param name="movie" value="button_bar_guest.swf" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="play" value="true" />
<param name="loop" value="false" />
<param name="bgcolor" value="#3b2703" />
<embed src="button_bar_guest.swf" width=800 height=51 bgcolor="#3b2703" quality="high" loop="false" menu="false"
type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>'; }
?> where u want your swf. change colours, names and parameters, and remember that single quote has to be \' :]
ant_Z
08-28-2006, 09:39 PM
i know that this script sux but i couldnt find my new version...
ch.strider
09-13-2006, 09:59 PM
Try this, it uses php to check passwords, so it won't work locally on your machine, you will have to upload it to see it work.
sry to kick a dead horse, i got this to work and i was wondering a way to make it so i could assign passwords to different members and when that member puts in his password it takes him to his key frame in flash...make sense?
ch.strider
09-14-2006, 07:42 PM
no?
ant_Z
09-14-2006, 07:44 PM
yea, but how to generate flash frames?
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.