A Few Questions In Regards To Forms: Simple
Stop animation repeating:
-if i want to fade my form using an alpha of 0% starting out then 10 frames later fade to 100% alpha, then how do i make it so it doesnt repeat itself? instead do it once as the form is loaded.
text component trouble:
i have text fields im using as input text fields. a tutorial that i learned from told me to start out by making a button and place the text in the up frame. this way when i drag the text button onto the frame i can fade it and do other things as its a symbol..
Problem
doing this i end up with TWO instance names, one on the button symbol and one when i drag it onto the scene. which one am i using? also in the code am i making my own variable or am i using the one i specified in the button scene
i put my questions down below
PHP Code:
function onSubmit() {
// Initialize form variables: formData = new LoadVars();
//ok so is this a variable i make up now or am i using the one i gave to the text box button? formData.name = "";
// Get textbox info: //is txtname the instance name of the textbox? if so which instance name? the one on the scene or the button formData.name = txtname.getValue();
last question:
do i put the code in the frame/scene rather than the actualy submit button?
DevShed > Flash Help
Posted on: August 27th, 2005, 01:35 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
2 Questions About Forms
Two questions about forms...I searched for the answers on the forum, but couldn't find any answers. Anyway:
1) I'm trying to set tab orders and I'm having a problem. I set my tab order, everything is is working fine, but when I play the movie my input text boxes are filled with "_level0.First, _level0.First,_level0.Last" and so on. The actionscript I'm using is as follows:
Code:
First.tabIndex=1;
Email.tabIndex=2;
Middle.tabIndex=3;
Last.tabIndex=4;
Grad.tabIndex=5;
submit.tabIndex=6;
reset.tabIndex=7;
Any clue with what's wrong?
2) I'm trying to set up a form to send to an email. I got it to send using loadVariablesNum action. When I receive the email, I would like to be able to set the order in which a receive the variables. I know that the designer has control over such a thing in HTML. Can I control this in Flash as well? Thanks for the help!
2 Questions For Ya VIDEO/Forms
My first question is...can you have a FORM made in FLASH e-mail the results/info/comments...etc. Using just your e-mail? For example..NOT using ant CGI information typed into the actions panel?? Like in HTML you can just use mailto:.........
Second question: Flash does not support any video clips right?..Only sequential bitmap images right?? (do they have to be bitmap?) How can you get a sequential image series? Can you use QUICKTIME? Is there a tool that will take an .MPG video clip and convert it to a sequential image series?..Or to .MOV file so I can use it in QUICKTIME?
Thanks. -whispers-
Questions About Creating Forms....
I'm creating a form in Flash for the first time, and I'm having two problems:
How do I standardize the way the text appears when typed in the field? Right now, when I test it, the text in each field is a completely different size and it looks very sloppy...
Can I set things so that the TAB key automatically moves the cursor to the next boxs, as is standard on forms? Right now, it's not happening - hitting TAB seems to send the cursor to some random button on the movie...
Thanks for you help...
Julia
Wywalk Design - www.wywalk.com
2 Questions About Flash Forms
I am a real noob to making forms in flash.
i have made this page:
http://www.tellersolution.com/newsite/demo.htm
when the form is filled out and you press the send button, it will open up in a new window an ASP page (that will eventually email me the results, but i need to get the flash working first before i integrate that into it). Right now the ASP page will display the user's entries into the form fields.
right now all of that works.
but...
Problem one:
http://www.tellersolution.com/newsite/index2.htm
when you go to this site, and click the "Request a Demo" link, it opens the demo.htm file that i reference above, inside of a frame. Now when you fill out the form, the ASP page does not grab any of the variables.
I am sending the form information with an on(Release) action applied to the send button. the send button uses a getURL to POST the information in a _blank window.
I am at a loss as to why when the file is in the frameset it will not work, but when opened by itself it does work.
Problem two:
I am unsure how to have Flash check and see if the value of an input text field is equal to nothing (basically, i am using flash to validate if all of the required fields are filled in.
here is the actionscript that i have applied to the send button:
on (release) {
if (_root.varHear == "Select One") {
_root.MessageBox.gotoAndStop(2);
} else {
if (_root.varName == 0) {
_root.MessageBox.gotoAndStop(2);
} else {
getURL("form.asp", "_blank", "POST");
}
}
}
Right now, it will validate the dropdown list on the page (which it's value is equal to "varHear" and since "Select One" is the default setting, that means the user did not select anything, and so it will go to frame number 2 in the movie clip MessageBox which informs the user that they did not complete all the required fields.
But, the text box does not work the same way. varName is the Name: field in the form. i need to know how to have it check and see if the value of varName is not equal to anything. i have tried these: 0 "0" "" and none of these work.
does anyone have any thoughts or ideas on why these are happening. (sorry for the long post, but i just want to be sure to give as much information as i can the first time around.)
Thanks in advance for any help.
Joe Sites
Many Flash Forms Questions
Hi all, I have some questions
How do you customize the look of your items such as the submit for a form, or the text box you type into? I think it's also known as skinning components.
Do you know how to make it so when you enter a user/pass, it takes you to an Invalid Password animation?
And also, what in your opinion is the best method of doing forms? (Link to a tutorial, or explained method)
Thanks a bunch
2 Questions About Flash Forms
I am a real noob to making forms in flash.
i have made this page:
http://www.tellersolution.com/newsite/demo.htm
when the form is filled out and you press the send button, it will open up in a new window an ASP page (that will eventually email me the results, but i need to get the flash working first before i integrate that into it). Right now the ASP page will display the user's entries into the form fields.
right now all of that works.
but...
Problem one:
http://www.tellersolution.com/newsite/index2.htm
when you go to this site, and click the "Request a Demo" link, it opens the demo.htm file that i reference above, inside of a frame. Now when you fill out the form, the ASP page does not grab any of the variables.
I am sending the form information with an on(Release) action applied to the send button. the send button uses a getURL to POST the information in a _blank window.
I am at a loss as to why when the file is in the frameset it will not work, but when opened by itself it does work.
Problem two:
I am unsure how to have Flash check and see if the value of an input text field is equal to nothing (basically, i am using flash to validate if all of the required fields are filled in.
here is the actionscript that i have applied to the send button:
on (release) {
if (_root.varHear == "Select One") {
_root.MessageBox.gotoAndStop(2);
} else {
if (_root.varName == 0) {
_root.MessageBox.gotoAndStop(2);
} else {
getURL("form.asp", "_blank", "POST");
}
}
}
Right now, it will validate the dropdown list on the page (which it's value is equal to "varHear" and since "Select One" is the default setting, that means the user did not select anything, and so it will go to frame number 2 in the movie clip MessageBox which informs the user that they did not complete all the required fields.
But, the text box does not work the same way. varName is the Name: field in the form. i need to know how to have it check and see if the value of varName is not equal to anything. i have tried these: 0 "0" "" and none of these work.
does anyone have any thoughts or ideas on why these are happening. (sorry for the long post, but i just want to be sure to give as much information as i can the first time around.)
Thanks in advance for any help.
Joe Sites
2 Questions About Forms In Flash
I am a real noob to making forms in flash.
i have made this page:
http://www.tellersolution.com/newsite/demo.htm
when the form is filled out and you press the send button, it will open up in a new window an ASP page (that will eventually email me the results, but i need to get the flash working first before i integrate that into it). Right now the ASP page will display the user's entries into the form fields.
right now all of that works.
but...
Problem one:
http://www.tellersolution.com/newsite/index2.htm
when you go to this site, and click the "Request a Demo" link, it opens the demo.htm file that i reference above, inside of a frame. Now when you fill out the form, the ASP page does not grab any of the variables.
I am sending the form information with an on(Release) action applied to the send button. the send button uses a getURL to POST the information in a _blank window.
I am at a loss as to why when the file is in the frameset it will not work, but when opened by itself it does work.
Problem two:
I am unsure how to have Flash check and see if the value of an input text field is equal to nothing (basically, i am using flash to validate if all of the required fields are filled in.
here is the actionscript that i have applied to the send button:
on (release) {
if (_root.varHear == "Select One") {
_root.MessageBox.gotoAndStop(2);
} else {
if (_root.varName == 0) {
_root.MessageBox.gotoAndStop(2);
} else {
getURL("form.asp", "_blank", "POST");
}
}
}
Right now, it will validate the dropdown list on the page (which it's value is equal to "varHear" and since "Select One" is the default setting, that means the user did not select anything, and so it will go to frame number 2 in the movie clip MessageBox which informs the user that they did not complete all the required fields.
But, the text box does not work the same way. varName is the Name: field in the form. i need to know how to have it check and see if the value of varName is not equal to anything. i have tried these: 0 "0" "" and none of these work.
does anyone have any thoughts or ideas on why these are happening. (sorry for the long post, but i just want to be sure to give as much information as i can the first time around.)
Thanks in advance for any help.
Joe Sites
Simple Forms
Can anyone help? I am working my way through the simple form tutorial, and I am stuck on the section where I attach script to the send button. The last two commands, "End if" and "End on" dont appear to there to select. I am using Flash 5, has this changed in the update from 4 to 5?
If anyone could help it would be fantastic.
Thanks
Alan
Simple Forms
I am only a beginner so i dont know, but can i make a form in flash that users can type into and then send it directly to my email account with out the use of C.G.I
Obviously components would come into it somewhere.
This Should Be A Simple On (more On Forms...)
Flash MX 2004 Professional (latest update applied)
I'm sure all you gurus out there are absolutely sick of reading flash form questions ... probably just as sick as I am of reading tutorials that I just can't get to work.
I am redesigning my new site completely in Flash (with an html-based sidekick site for dialup users). On the html site, I can easily get the small form to work - not so much luck in flash. I need to be able to pass form data (just a text input and combo box along with 2 static 'variables') to a php script and I simply cannot get it to work. This is a simple domain registration form. Nothing fancy, no validation ... The required elements (per html) are:
<form method="post" action="https://domain.com/billing/order/orderwiz.php">
// -------my two static entries that need to be passed------- \
<input type="hidden" name="v" value="1">
<input type="hidden" name="submit_domain" value="register">
// -------domain name from user input (text input)------- \
<input type="text" name="domain" value="">
// -------my combo box options------- \
<select name="tld_extension">
<option value="com">.com</option>
<option value="net">.net</option>
<option value="org">.org</option>
<option value="info">.info</option>
<option value="biz">.biz</option>
<option value="us">.us</option>
</select>
<input type="submit" name="submit" value="Go!">
</form>
I would like this to send the user and his variables to the php page. I would post what I have tried, but I would like to see a fresh start on this instead of trying to fix my poorly written code. Find the format that I have been working with below (all previous AS stripped out) (please keep reponses simple and stupid - kinda the way I feel right now ) Your help is greatly appreciated
Download layout fla here.
Simple Forms To Email
I am trying to create a simple web page with 2 input text fields at the bottom for users to input a company name and donation amount. I have these created in flash mx2004 version 7 but I don't know what actions to attach to them to have the information users input transferred to an email address. Any help would be appreciated.
Shannon
Looking For A Tutorial On Simple Forms
I am looking for a tutorial that will introduce me to setting up a simple feedback form in Flash MX and that hopefully covers sending the gathered user input to FormMail.
The tutorials I have seen so far, seem to concentrate on radio buttons, combo boxes, check boxes, styling, etc., as opposed to text boxes and textareas and how to send results somewhere.
Any suggestions?
Flash Forms And Simple If Else Condition
I created a Flash form for users to fill out. When the form is submitted they leave the movie. I want to return users back to a specific frame in the flash movie after the form has been submitted.
I have control over the redirect URL after the form submits and I can dynamically provide variables in an ASP file.
The variables print properly in a dynamic text box so I know the values are coming across.
I tried to solve my problem by pulling variables from an ASP file and then using those values to take the user to the thank you page or the primary content. If var0 = 1 then take them to the thank you page, else take them back to the primary content. The way I am doing it below doesn't work...
Any suggestions?
loadVariablesNum ("variables.asp", 0);
if (var0 = 1) {
gotoAndPlay (10);
stop ();
} else {
gotoAndPlay (5);
stop ();
}
Flash Forms And Simple If Else Condition
I created a Flash form for users to fill out. When the form is submitted they leave the movie. I want to return users back to a specific frame in the flash movie after the form has been submitted.
I have control over the redirect URL after the form submits and I can dynamically provide variables in an ASP file.
The variables print properly in a dynamic text box so I know the values are coming across.
I tried to solve my problem by pulling variables from an ASP file and then using those values to take the user to the thank you page or the primary content. If var0 = 1 then take them to the thank you page, else take them back to the primary content. The way I am doing it below doesn't work...
Any suggestions?
loadVariablesNum ("variables.asp", 0);
if (var0 = 1) {
gotoAndPlay (10);
stop ();
} else {
gotoAndPlay (5);
stop ();
}
Simple Question About Referencing Forms
I have what I hope is a simple question. Could someone please provide a primer on how to reference forms (and things contained in forms) in AS2? Specifically, I am having trouble referencing a form loaded into another form. Here is my form structure:
Application
Form1
Form2
Loaded into Form1 is an swf containing another set of forms, with this structure:
NewApplication
NewForm1
NewForm2
So, how do I reference NewForm1 from Application and vice versa?
Thanks.
-Brian
Simple Forms Not Working On Flash 8?
Hello,
i'm trying to make a simple form, using the old but effective tutorials scattered around... I've developed forms successfuly in the past, but now the same procedures doesn't seem to work.. the strange thing is that the source files of the tutorials work, but my application doesn't; to be more precise, it works, but the mail i'm receiving back is blank, just the strings declared in the PHP file; tracing within flash, the loadVars object contains all the correct data, but somewhere in the road it gets lost. Does anybody knows the answer for this problem? I know almost nothing of PHP
Here's the code I've got (based upon a tutorial by CyanBlue)
ActionScript Code:
_global.sndMail = function(hasta) {
var pqte = new LoadVars();
for (i=1; i<=hasta; i++) {
var nTemp = tsp["c"+i].ct.text;
pqte[nTemp] = tsp["i"+i].text;
}
pqte.onLoad = function(ok) {
if (ok) {
trace("Email Sent!!!");
} else {
trace("Problem sending an Email!!!");
}
};
pqte.sendAndLoad("form.php", pqte, "POST");
};
tracing unescape(pqte) yields this
PHP Code:
");
}
}
else
{
echo("This script runs only in Flash!!!");
}
?>
=&");
}
else
{
echo("=&result=2&<?php
if ($_POST)
{
$mailTo = "berrios@instrumental.cl";
$mailSubject = "[Contact] Website Contact from - (" . $_POST['NOMBRE'] . ")";
$Header = "MIME-Version: 1.0
";
$Header .= "Content-type: text/html; charset=iso-8859-1
";
$Header .= "From: " . $_POST['E-MAIL'] . "
";
$output = "<BR>";
$output .= "De : " . $_POST['NOMBRE'] . "<BR><BR>";
$output .= "e-mail : " . $_POST['E-MAIL'] . "<BR><BR>";
$output .= "comentario : " . $_POST['comentario'] . "<BR><BR>";
$output = nl2br($output);
if (e-mail($mailTo, $mailSubject, stripslashes($output), $Header))
{
echo("&onLoad=[type Function]&COMENTARIO=HERE I WROTE MY COMMENT&EMPRESA=HERE I WROTE MY COMPANY NAME&E-MAIL=HERE I WROTE MY E-MAIL&NOMBRE=HERE I WROTE MY NAME
Email Sent!!!
The text is sent with all caps, so i tried to change some variables to all caps and others not for testing purposes... i didn't add the "company" field because the example php file had only three fields, wanted them to work before changing more things around...
Thanks in advance,
Sir Patroclo
Anyone Had Experience With Forms And Flash? Simple Problem I Think
hello friends,
i've created a flash form that im using to send four variables to a php script.. I am having some trouble sending the
variables to the script.. In fact, i cant get it to work at all.
I have created the file
http://members.optushome.com.au/panus/flash.swf
The drop down buttons are set in the movie mode which i think is correct, along with the submit button.
I looked up what action script I should use but found many different ones. I tested a couple of them out but they don't
seem to submit anything at all, the submit button isn't functioning. It's like the submit button isnt attaching itself
to the values of the drop down buttons, and then not submitting..
I tried using
On (Release)
Load Variables ("mailto:form.php", 1, vars=POST)
End On
I'm pretty new to flash and was hoping for a little help.
the flash file is located here if you want to have a look
http://members.optushome.com.au/panus/flash.fla
regards
-n
Simple Questions...mean Simple Answers....right?
I just have a question about the various ways to loop in Flash.
now I know the for, and the while, and the do while,etc. My question is I can never get any of these loops to work unless they are on the main timeline. If I put a for loop inside a movie clip, i get nothing, or errors of the script continually running.
Just wondered if and how to use a loop script inside a movieclip without generating errors, and not having to revert to making the movieclip continually play two frames to get what I want.
curious.........
dduck1934
Simple Questions From A Simple Person
Hi all...
I am new to flash... The only actionscript I have actionally used is "stop ();" Anyway... I'm using flash cs3... It seems a fantastic tool to a newcomer like me!! Firstly, I'll show you what I've managed to do so far...
This is my first movie...
http://www.allnationschessleague.com...tpagewhite.swf
An this is the header I would like to put at the top of the website pages:
http://www.allnationschessleague.com...ANCLHeader.swf
Well, my first question (for I am sure to return to this site for more advice, is how do I link the flags at the top, to the relevant pages. Please check out the following page to see how it should work:
http://www.allnationschessleague.com
So as you can see, the flash needs to link to php pages... for example the British flag needs to link to 'setlanguage.php?lang=en' etc... so how do I set those links for the flags?
Thank you for answering my post )
Jeff
Few Simple Questions
I'm going to start a flash site and I have a few easy questions!
1. If you have a movieclip that is 400x600 and you load a swf the same size, will it match the mc perfectly?
2. Ok, Lets say I have an index.swf, and I load an intro on frame 1, and frame 1 has a stop action.
The intro will play through and stop!
Now how do I make it skip to frame 2 on the main timeline of the index.swf after the intro is done?
And only after the intro is done no matter how many or few frames it is!
Oh I almost forgot, last question.
If i load top.swf into layer one of index.swf
and I load bottom.swf into layer2 of index.swf
Will top.swf overlay bottom.swf?
2 Simple Questions
i'm not the best at scripting, and i'm stuck.
1. i'm trying to target a graphic in a movieclip on the main stage, to display an input text. that is entered earlier.
what is the code and where should it be placed?
2. i want to an input text to close down the swf window can this be done?
cheers rat
2 Simple Questions?
1. I imported a quicktime movie into a flash movie and previewed it, I saw nothing!! what do I have to do in order to activate or launch it?
2. I have a link in the flash movie, by click it should open a new window that has no menu bar and turns off the window scaler. Anyone has a simple Java code for it?
I have beeeen trying to implement other codes to mine, but it doesn't work, please help!!
Thanks guys!!
Simple Questions
1. Is it possible to change the properties (height in my case) of a button with actionscript?
2. Having textfields inside a movieclip, and then scaling the movieclip with aciontscript, is it possible *NOT* to scale the text, but only the MC?
regards,
James
Simple Questions.
Not so much a how to question but seeking advice.
1. I have Dreamweaver 4 and I just got Flash 5. All I really want to do is make interesting flash movies, moving logos etc.
Is there a good tutorial site or 3rd party book anyone can reccomend?
Also, what are some good flash sites to take a look at for ideas on what Flash can do. I don't have a ton of money so I can't afford a lot of other programs.
I'm already very artistic and computer literate but I'm branching out. Here is a site I would like to aspire to
http://www.cmart.design.ru
I like the interaction etc. Is this mostly (or all) flash related material?
Thanks
I won't always be this vague.
Help Simple Questions...
question 1:
i want to know to click on a link and it will send u to the same page. example pages are like http://www.craigdavid.com or http://www.realsongs.com. when u click on a link, it stays in the same window. how do i link it that way?
question 2:
just like on those 2 websites, how do i make the music options they have, where u can choose which song u want and it loops.
i think i also played with my flash mx settings, and saved the defaults on the page settings. what is the real size of the page? isn't is osmething like 590X350? i forgot and i need it because i think its messing up what i'm doing.
if you know any other tricks and effects for flash, please please please tell me because i am building a personal organization website and they are depending on me to make it look good, but i've only used this equipment for a week and i had to learn it all on my own.
explain step by step and slowly because if u tell me to make something alpha, i won't know how to do that. u'll have to tell me how to get to that point.
if u would like...... i have Aol instant messenger. IM me anytime at "dio you rule"
thank you
Just 2 Simple Questions
I'm interested in making really cool-looking intros. I have 2 questions....
1. I'm not really all that concerned with the size of my .swf files, what is a really good fps setting so that the size of the files are not absolutely HUGE, but it looks incredibly smooth?
2. If you know of any very cool intros, post the URL down below for me to look at, thanks!
Simple Questions
Hey all, thanks in advance for any help you can provide.
My first question is about symbols. What is the main purpose of them? I assume the Movie symbol is kind of a Flash movie inside of a Flash movie? How do you keep a Movie symbol from playing right when the Flash loads?
My second question refers to PHP, MySQL, and Flash integration. Most of my site is dynamic content, loaded from a MySQL database using PHP. I am going to *attempt* to redo the entire site in Flash. How do I pass the information loaded from the database to the screen through Flash? Is there a way to pass them all at once? We are talking about 50 values here sometimes, and passing them all separately would be a pesk.
Thanks for the help,
Tom
Some Simple Questions
I have created my flash intro but by DEFAULT I do NOT want it to loop.
How do I disable looping?
Also I created a "ENTER" button for the site and the cursor has to be on the T for it to work, how do I make that where they can click on enter anywhere and the action is performed?
Thanks in advanced.
Prophecy
A Few Simple Questions...
http://www.katrinamodel.com/
How do I make this effect? Like when you mouse over the navigation button, a few more sub-buttons floats up. And when I get the cursor away from the navigation button, the few sub-buttons disappears. How do I do it? Does it require actionscript?
Look into http://www.katrinamodel.com/ to see what I mean. I want to do an effect exactly like the one there.
Thanks for you help.
2 Simple Questions
1. does the number of symbols/number of frames/length of a movie affect the overall speed of the movie?
2. HOW COME WHEN I PUBLISH MY MOVIE TO HTML AND VIEW IT IN A BROWSER ITS SLOWER THAN WHEN I PREVIEW IT IN FLASH?!!
A Few Simple Questions
Firstly want to say this is one cool board. I'm new into Flash and love it I've never had so much fun.
Anyway my questions, I've did a quick search on the forum here and found no answers to my following questions.
1. I've created a flash file (700x342) but want it to open at a size of 800x420. I don't want to recreate the whole fla file again, so my questions is; is a way to do this?
2. Is there a way that the swf file opens in the middle of the screen?
BTW I'm not placing this inside a html document.
Thanks for any help you guys can give.
Simon
2 Simple Questions?
Hi,
1. I have a question,
i imported a flash intro into the dreamweaver,
should i save it as the index.htm file?
so that when ppl go online, they see the flash intro immed.
2. how may i link it?
so that when the flash intro is over, it automatically goes
to the main page.
thanks.
Two Simple (I Think) Questions
1) i wonder what does - syncronise frames - do?
2) and might as well ask, is there anyway to spread frames? say i want 5 keyframes, all have a fram between them?
ta
3 Simple Questions...
How do I do a simple animation? *blushes*
How do I make a link to another site? *blushes again*
HOw do i make a loading bar? *blushes one more time*
Now these are stupid questions but dammit I need to know
Thanks guys
[estatika.]
3 VERY Simple Questions
Hows it going this is my first post on flash kit so gimme a break if I sound like a n00b.
anyways.
I have three basic questions about Flash MX 2004
1. I want to use a preloader in my page but I have no Idea how to use it and I haven't found much info on how to use it.
what I did was I inserted it before the actual movie begins and after that I have no idea what to do.
2. How do you get the browser to stay to the size of the video
like my vid is 650x400 and the browser stays just like you were going to any other site.
3. ummm well I forgot what number 3 was so I guess it's just 2 simple questions
2 Simple Questions...
ok yea im a newbie
basically i got 2 problems
1, I want to loop 20 frames, 5 times....whats the script i use to do this?....and to i put it in the begining of the 20 frames or the last frame?
2, i want to stall on a frame for 5 seconds...how do you do this?... I had a go at this this is what i wrote in the frame i wanted to stall on.
stop();
restart = function(){
clearInterval(myInt);
play();
}
var secondsToPause = 5;
myInt = setInterval(this,"restart",secondsToPause * 1000);
but it just seems to pause for a few thenths of a second.?? whats wrong with the script?
thanks in advance !!
A Few SIMPLE Questions...
Hi, I'm new to this site as well as new to using Flash. I'm creating my portfolio site and so far I've got most of it down thanks to the many useful tutorials and open source files.
A few things I'm stuck on and can't seem to figure out using tutorials and Flash's help files:
1. How do I make my movie go though all scenes without having to use a button with actionscript to make it proceed?
2. How can I make a button stay in it's over state once it has been clicked?
3. How do I prevent my animations from looping after it has been loaded? I'm using actionscript "stop" but just double-checking if there is another way.
I realize these questions are probably SO simple it's ridiculous to ask, but I'm just STUCK! Any help would be greatly appreciated.
Thanks,
Stevie
2 Simple Questions
I've been doing great up until this point, and I'm sorry if this has all been answered a million times before, I'm having trouble wording it so I could search for a tutorial via google or in here. I'm always insanely tired. Anyway...
For context, I'm making a short animation.
1) How do you set what's shown? Each time I preview what I've made, a portion of the character is shown. Is that something to do with setting the stage size, or is there something else?
2) When my animation is completed, I'd like for there to be a still of the first frame, maybe a "click here" text, and when someone clicks on it, the animation starts. All simple stuff, I just, like I said, can't figure out how to word it to find a tutorial. Big thanks to anyone who can help.
Some Simple Questions
(first post, sorry if I've got something wrong here)
hi there
first off, I want to have buttons that would go to the different scenes of the flash. How can I do that?
also, I want to flip a picture horizontally when I press a button. The picture moves when I use the arrow keys. Here's the script
Code:
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this._y -= 8;
} else if (Key.isDown(Key.DOWN)) {
this._y += 8;
}
if (Key.isDown(Key.LEFT)) {
this._x -= 8;
} else if (Key.isDown(Key.RIGHT)) {
this._x += 8;
}
}
when left is down I want the picture flipped horizontally etc.
any ideas? thanks
Two Simple Questions
I have two problems that I know I am over thinking.
First, I want to know how to alternate between two images at random, but I only want one image to show up per movie play. basically like a alternating background.
Second, I have a main swf file, I want to load another swf on top of that in a specific location, because the second movie is smaller than the other I still want to see the first level but no matter what I try I cannot get the second file to load in that specific location.
Two Simple Questions (hopefully) Please Help
Hi everyone,
I am cleaning up the code from a game I made a few months ago and I am trying to place all my code into one external file as opposed to code residing on individual movie clips.
All is well but a number of questions have arisen. They are not complicated so can someone set me straight please.
First of all. In Actionscript good practice should all the code reside in one .as file or is it common practice to seperate ellements of the game by using seperate .as files? ie one for the main time line and another for the main character and so on?
The second question is a bit more complex. In my original game Code for the enemy characters resided in on the movie clip. This clip was then duplicated taking the code with it. Now that have movied the script to the main timeline I am finding it difficult to reference the duplicated objects.
The original scrpit works alone the lines of:
On the main time line
_root.enemy_mc.duplicateMovieClip("enemy_mc"+_root .enemyCount,_root.level);
Then on the movie clip is the onEnterFrame function:
OnClipEvent (EnterFrame){
this._x +=2;
}
How can this be translated to the main time line. I have tried using
_root["enemy_mc"+_root.EnemyCount].onEnterFrame =function(){
}
But this doesn't seem to work. Can anyone help? Maybe you cannot use onEnterFrame this way but I am not sure please shed some light on this for me.
Thanks
Some Simple Questions
Hi, I am fresh to Flash and have the following questions:
1. I have a frame that display some text and I want it to hold for 30 seconds and then go to the next frame. Is it possible to use ActionScript to do that?
2. I saw some Flash website which have a loading bar or counter. How to do that?
3. My Flash file contain 7 scences, can each scene has an individual loading bar?
Thanks!
2 Simple Questions
I have 2 simple questions. I may look back an laugh at how stupid these questions are later but here they are. Firstly, how do I make an object "solid", how do I make it so that if you drive into it you stop or bounce off?..
Secondly, how do I make it so that when I drive off the screen the screen kinda follows the object?..
If they make sence..
Some Simple Questions -Regarding XML
I'm following the adobe demonstration of loading xml, i.e. Load the xml file into a XMLConnector component --> into a dataSet component --> into a dataGrid component.
I have the following questions:
1) If i have multiple scenes in my flash document and I have the XMLConnector and dataSet components in scene1 only, will i be able to access them in any other scene (i.e have my dataGrid in a seperate scene). Or do I have to re-instance them each scene and reload the xml data?
2) I plan on having my dataGrid editable by the user, I have tested this and to me it appears the data loaded in the XMLConnector does not get changed when the dataGrid is edited (i did this useing XMLConnector.results after the dataGrid was edited). Is there a method of refreshing the dataGrid with the original data without having to reload it (using XMLConnector.trigger() ) ?
3) I want to have my user be able to edit the original XML file, i know flash can't write directly too files. What would be the most reliable method for writing to the xml file via flash - i.e. flash to php to xmlfile ? Or is there no good way of doing this from flash?
Thanks for any help you guys can offer. (Using MX 2004)
Simple ? Questions
at least for me not that simple...that's why I come back
1- how do I position my flash web site to be sure that it will appear in the middle of my viewers screens ? I checked the publish settings, but whatever I try, does not work...
2- I am in the finalization of all the site, and so , I am putting all the swfs in my button menu. Everything is ok in the html preview, but when I try to navigate the menu, I can not navigate, because each first swf that appear on button command does not diappear..
I hope you'll get what I mean, considering my high english level.
Thanks
Four Simple Questions...
Hi,
I have been working on a simple family website for me and my girlfriend (not something I got a lot of time for) --> www.kraghkrogh.dk, but I have run into a couple of problems that I can't seem to solve googling
1. No matter what settings I use to publish the document, my flashsite is in the left upper corner. Any idea on how to change that? I wan't it to be centered in the top.
2. I have found this site that explains how to remove the active x control, by including a javascript in the html document. It semi works, but IE keeps saying "(1 item remaining) Opening page......". Any other way to do this properly?
3. On the "nyheder" page, I got a scrolling area consisting of a dynamic textfield and two buttons for scrolling. How can I format the text inside the dynamic textarea or is there a smarter way to do this? (i think the kirupa tutorial is to complex)
4. On the scrolling buttons, I have the following code:
Code:
on (release) {
scrollbar.scroll -= 4;
}
Is there anyway to make it scroll continuously while the button is pressed?
Help is appreciated!!
Regards
Kragh
**** 2 Simple Questions ****
Question 1
on (press, release) {
button1.onRelease = function() {
_root.gotoAndPlay("scene 2", 1);
};
}
I have the _root with a sliding menu. In the sliding menu I have buttons. I want the buttons to change scenes, however the buttons only seem to function as long as my request is in within the same scene.
ex:
gotoAndPlay("frame 10");
Some Simple Questions
Hi, I am fresh to Flash and have the following questions:
1. I have a frame that display some text and I want it to hold for 30 seconds and then go to the next frame. Is it possible to use ActionScript to do that?
2. I saw some Flash website which have a loading bar or counter. How to do that?
3. My Flash file contain 7 scences, can each scene has an individual loading bar?
Thanks!
|