Checkbox Horror
Hi All,
I'm trying to create a form using Flash, within this form there are 25 checkboxes and 5 text feilds. When the submit button is pressed the form gets processed in a Php file in the server.
I manage to receive the results to the text feilds via email but I don't know what to do with the checkboxes. I think the main problem is I have a clue about script writing or Php!!!
Can someone can help me? Or may be provide me a working checkbox and php so I know what the script might look like? Help?
cheers
chio
FlashKit > Flash Help > Flash Newbies
Posted on: 01-12-2005, 12:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Preloading Horror
Hi there,
I just do not get this preloading thing or action scripting in general! I always do exactly what tutorials tell me to do but when I upload it, it just does not work!! Which frustrates me enourmously! I tried to make a preloader for an swf file that is to loaded into the mean flash website I built, but when I add this preloader from this tutorial:
http://www.kirupa.com/developer/acti.../preloader.htm
It just loads the first frame it is supposed to and then immediately jumps to that frame, while it's supposed towait untill the rest of the frames are loaded as well. I've tried almost everything in there, but I just do not get it!!! Could someone please tell me what would be the most easy way to create a preloader for an swf that has to be loaded into a host website with the exact instructions and code? Because this obviously doesn't work!!! At all!!! Thanks very much! I'm working in flash5 btw, well FlashMX actually but I want to make it using Flash5 code!!! No components!
Have a great day!!!
ROB
Preloading Horror
Hi there,
I have made a website with a main movie and navigation in there, then when you click the buttons for the different sections it should preload the content of other swf files I have put online and then stop at the first frame of that loaded content. Now all the swf's for the website as well as the external ones have preloaders and they work fine for the seperate files but once combined they do not function. They just don't preload anything and just immediately jump to the first frame of the content to be loaded, without waiting for the entire swf to load into the website! I have tried several different preloaders but they all tend to just jump to the content and not wait for everything to preload when everything is uploaded online. Would anyone know what the problem is or what could be the most easy way to make everything preload and then when everything is preloaded jump to the first frame and stop there? I'm not a wizard with action scritping so I could really use a detailed description of what to do! I am pulling my hair out by this point and could reaaaaaaally use some help!!!
Have a great day!!!
ROB
Scene Horror
Hello everyone...
If a bit puzzeld about this problem I'm having.
I have 2 scenes, the first one is a preloader en at the end it goes to scene 2...in fact, it goed to the framelabel in scene 2...
in Scene 2 there is a simple menu, with buttons...an an empty movieclip called "container'.
Now my problem is, on release, in the MC container I load an swf,..; that all works fine. But after a while, when you pus a button or 4...5 it jumps back to the preloader.. in scene one... and there is no reason what so ever to do that.
Does anyone know what I'm talking about ? I just cant see what I'm doing wrong. I'ts all very simple...but stille... the damn thing goes back to the first scene.
I think I'm going cray here !!!
Please help me someone....
greetz,
Loading Variables Horror
HI all. Pulling my hair out here... Hope this isn’t too confusing.
Plain and simple the movie is NOT loading my variables. Here’s the scenario. The movie initially loads variables into a scrolling movie. Everything works fine there.. loads the variables in (categories and subcategories within the scroller). Once a sub category is choosen a frame is targeted on the main timeline which loads variables according to an ID of the subcategory that was just selected. These variables are loading ot the main timeline. This is where the variables will not load.
play ();
loadVariablesNum ("AVdata.cfm", 0);
then a couple of frames alter
if (_root.go4 == "1") {
gotoAndStop ("loadedav");
} else {
gotoAndPlay ("notloaded");
}
I took this little area of the movie out from the rest of the movie and made a new one with just this and hard coded the ID into the cfm file. Still no beans. I even took out where it displays the variables and made the loadedav frame say loaded so I’d know it was loaded... it never gets there.
I’m loading the data the same way I did in the first loadvariables that works fine (except that targets an instance). Help! Please!!!!
((Ignore this but: We had a very similar problem earlier in our dev process that was even worse. I worked fine on my own server but when it was moved up to the test server it would not load the variables. We checked the path a million times and changed it to every possible combination.))
Dynamic Movieclip Horror, - Please Help
I have a movieclip on stage with some not dynamic grafix, -
and then later on this code:
function lavNySide() {
createEmptyMovieClip("nySide", 1);
nySide.attachMovie("clip1", "Print", 1);
with (nySide.Print) {
// blablablabla
}
}
that makes a new movieclip called Print from the clip1 movieclip.
It works perfect!.... but
when I load some dynamic content into my movieclip (clip1) the clip that I generate via the 'lavNySide' function takes the clip1 movieclip from the library (I guess) because now the dynamic content is lost.
So is it possible to dynamically create some movieclipt directly to the library?
Or what can I do to make my dynamic movieclip behave like the not dynamic one??
Pleas help...
Best regards
Godowsky
Text Input Horror
Hi all, I'm running Flash5 on a Mac & every time I try to input text (including parameters in text boxes) my keyboard becomes reconfigured & the input is garbled. If I quit Flash all other apps have the same problem. After restart the problem is gone ............. until I open Flash again!!
I tried trashing my Flash preference file & re-entering my registration code but no go..............HELP!!!!!!!!!!!!!
Actionscript Slideshow Horror
Hey everyone,
I've got a simple random actionscript slideshow that loads external jpgs into a mc. Everything works good but i can't get the darn jpgs to fade in and out. Could someone please help, the deadline approaches.
Here is the AS for the movieclip, it's in the 1st frame:
mc = function() {
num = (Math.round(Math.random()*2));
// 50 being the number of your jpg, rename them from 0.jpg to 49.jpg
totalfilename = num + ".jpg";
picLoader.loadMovie("
Dropdown Menu Horror
Okay I am going on week 2 of working on this blasted dropdown menu. There are 9 buttons on the main navigation. I have 3 of the button dropdowns working. Everything seems to work fine, but if I mouseOver and mouseOut really fast the dropdowns will stay in the down positions and not come back up. Could you check out my code and see if there is anything that might be causing this.
here is the swf link: http://upwardstudios.com/test/banner.html
ActionScript Code:
stop();import mx.transitions.Tween;import mx.transitions.easing.*;_global.front;_global.intTime = 50;_global.down = false;_global.down3 = false;_global.down4 = false;///////////////////////////////////Functions////////////////////////////////////////////////////function menuopen(but, drop, end) { var butin:Tween = new Tween(but, "_alpha", Strong.easeOut, 0, 12, .5, true); var butopen:Tween = new Tween(drop, "_y", Strong.easeOut, -219, end, .3, true); };function menuclose() { var butin:Tween = new Tween(b1, "_alpha", Strong.easeOut, 12, 0, .5, true); var butclose:Tween = new Tween(d1, "_y", Strong.easeOut, 0, -225, .3, true); clearInterval(_global.b1int); _global.down = false;};function menuclose3() { var butin3:Tween = new Tween(b3, "_alpha", Strong.easeOut, 12, 0, .5, true); var butclose3:Tween = new Tween(d3, "_y", Strong.easeOut, -65, -225, .3, true); clearInterval(_global.b3int); _global.down3 = false;};function menuclose4() { var butin4:Tween = new Tween(b4, "_alpha", Strong.easeOut, 12, 0, .5, true); var butclose4:Tween = new Tween(d4, "_y", Strong.easeOut, -55, -225, .3, true); clearInterval(_global.b4int); _global.down4 = false;};//////////////////////////////////////Button Actions///////////////////////////////////////////////////////dropdown 1 startb1.onRollOver = function() { if(_global.b1int != null){ clearInterval(_global.b1int); } if(_global.down == false) { _root.d1.swapDepths(_global.front); menuopen(this, d1, 0); _global.down = true; _global.front = d1; } }; b1.onRollOut = function() { _global.b1int = setInterval(menuclose, _global.intTime);};b1.onReleaseOutside = function() { _global.b1int = setInterval(menuclose, _global.intTime);};d1.d1stop.onRollOver = function() { clearInterval(_global.b1int);};d1.d1stop.onRollOut = function() { _global.b1int = setInterval(_root.menuclose, _global.intTime);}; d1.d1stop.onReleaseOutside = function() { _global.b1int = setInterval(_root.menuclose, _global.intTime);};var i:Number = 1;onEnterFrame = function(){ with(d1){ eval("b"+i).onRollOver = function() { if(_global.b1int != null){ clearInterval(_global.b1int); } }; eval("b"+i).onReleaseOutside = function() { _global.b1int = setInterval(_root.menuclose, _global.intTime); }; i++; } if(i == 10){ delete this.onEnterFrame; }}//dropdown 3 startb3.onRollOver = function() { if(_global.b3int != null){ clearInterval(_global.b3int); } if(_global.down3 == false) { _root.d3.swapDepths(_global.front); menuopen(this, d3, -75); _global.down3 = true; _global.front = d3; } }; b3.onRollOut = function() { _global.b3int = setInterval(menuclose3, _global.intTime);};b3.onReleaseOutside = function() { _global.b3int = setInterval(menuclose3, _global.intTime);};d3.d3stop.onRollOver = function() { clearInterval(_global.b3int);};d3.d3stop.onRollOut = function() { _global.b3int = setInterval(_root.menuclose3, _global.intTime);}; d3.d3stop.onReleaseOutside = function() { _global.b3int = setInterval(_root.menuclose3, _global.intTime);};var z:Number = 1;d3.onEnterFrame = function(){ with(this){ eval("d"+i).onRollOver = function() { if(_global.b3int != null){ clearInterval(_global.b3int); } }; eval("d"+i).onReleaseOutside = function() { _global.b3int = setInterval(_root.menuclose3, _global.intTime); }; z++; } if(z == 7){ delete this.onEnterFrame; }}//dropdown 4 startb4.onRollOver = function() { clearInterval(_global.b4int); if(_global.down4 == false) { _root.d4.swapDepths(_global.front); menuopen(this, d4, -55); _global.down4 = true; _global.front = d4; }}; b4.onRollOut = function() { _global.b4int = setInterval(menuclose4, _global.intTime);};b4.onReleaseOutside = function() { _global.b4int = setInterval(menuclose4, _global.intTime);};d4.d4stop.onRollOver = function() { clearInterval(_global.b4int);};d4.d4stop.onRollOut = function() { _global.b4int = setInterval(_root.menuclose4, _global.intTime);}; d3.d4stop.onReleaseOutside = function() { _global.b4int = setInterval(_root.menuclose4, _global.intTime);};var c:Number = 1;d4.onEnterFrame = function(){ with(this){ eval("b"+c).onRollOver = function() { if(_global.b4int != null){ clearInterval(_global.b4int); } }; eval("b"+c).onReleaseOutside = function() { _global.b4int = setInterval(_root.menuclose4, _global.intTime); }; c++; } if(c == 8){ delete this.onEnterFrame; }}//////////////////////////Side Link Buttons//////////////////////////var w:Number = 1;a1.onEnterFrame = function(){ var ar:MovieClip = eval("a"+w); eval("s"+w).onRollOver = function() { var amove:Tween = new Tween(ar, "_x", Strong.easeOut, 29, 39, .3, true); }; eval("s"+w).onRollOut = function() { var amove:Tween = new Tween(ar, "_x", Strong.easeOut, 39, 29, .3, true); }; eval("s"+w).onReleaseOutside = function() { var amove:Tween = new Tween(ar, "_x", Strong.easeOut, 39, 29, .3, true); }; if(w == 6){ delete this.onEnterFrame; } w++;};
Scary/Horror Sites?
Can people recommend some cool, dark, moody, scary, haunted flash sites? Thanks for the help!!!
Duplicate Movie Horror Story
Hi guys,
wrote this function(resides in the parent timeline) that duplicates a movie clip from the parent timeline.Problemoesn't work..
nature of problem: depth is not considered at all...debugging the movie indicates all the duplicates are created on _level0 itself.
remarks: this function is called by another mc(residing inisde another mc) on a particular event. "trace" suggests that this function is successfully called.
Need you to: HELP ME!!!!!!!
*************
function magic (startx, starty, stepx, stepy, counter, signx, signy) {
i = 1;
while (i<=counter) {
trace ("a)"+(startx+(signx*stepx*i))+" b)"+(starty+(signy*stepy*i))+" c)"+("trail"+i));
trace (i);
_root.trail.duplicateMovieClip("trail" & i, i);
setProperty (""trail"&counter", _x, (startx+(signx*stepx*i)));
setProperty (""trail"&counter", _y, (starty+(signy*stepy*i)));
i = i+1;
}
}
**************
cheers
mayavi
Horror Movie Text Effect
In movies like seven you see text flash very rapidly and distort - is there a good way to do this? Any help is appreciated if this question makes any sense at all..
Attachmovie HOrRor (my Preloader Solution)
I am 'attempting' to get each of my pages (home, contact, portfolio...) in the single .swf to load dynamically w attachmovie....however, the dreaded export in first frame, unavoidable as it is, is wrecking everything.
** It seems like it would be fine if I took the mc I was to export (i.e. home mc) in the first frame and inside of the mc itself put an individual preloader so technically the first first frame of the movie would at least show a preloader instead of waiting some 30% before appearing.
This giving me two preloaders, one for the main swf and another for the movie that's being exported in the first frame. I only get to see the main one.
Is there any other way to import this mc w a preloader separate from the maintimeline?
Thanks.
~ Seretha
( And one other quick question: If I were to load an external mc on the third frame would the preloader take the entire mc into consideration when loading?)
Attachmovie HOrRor (my Preloader Solution)
I am 'attempting' to get each of my pages (home, contact, portfolio...) in the single .swf to load dynamically w attachmovie....however, the dreaded export in first frame, unavoidable as it is, is wrecking everything.
** It seems like it would be fine if I took the mc I was to export (i.e. home mc) in the first frame and inside of the mc itself put an individual preloader so technically the first first frame of the movie would at least show a preloader instead of waiting some 30% before appearing.
This giving me two preloaders, one for the main swf and another for the movie that's being exported in the first frame. I only get to see the main one.
Is there any other way to import this mc w a preloader separate from the maintimeline?
Thanks.
~ Seretha
( And one other quick question: If I were to load an external mc on the third frame would the preloader take the entire mc into consideration when loading?)
[F8] Checkbox & Masks - How Do I Embed The Checkbox Font?
i'm trying to put checkboxes under a mask, but can't seem to succesfully embed the font for the checkboxes so that they labels actually appear...
can someone please give me directions as to how/where to set the checkbox font to be embedded? the default font is fine...
TIA
Scary/horror Movie Text Effects
Hi. I'm designing a site for a friend that is, well, pretty damn frightening. I'd like to do an effect on his name that is something like the text in the movie "Seven" or possibly something that resembles text being displayed on 8mm film for a jagged, rough feel. I'm not sure how to start, and I can't seem to dig up any examples on the web. I'm okay with Flash - I sort of learn as I go. Any suggestions?
CDROM CATALOGUE SAVE TXT-FILE HORROR
Hi all
I am working on a cd-rom catalogue with shopping cart facility which basically adds slelected options from the swf file to a txt file in the same folder then uploads it to print off the list.
On my PC it works fine but I didint realise that the txt file would not be able to be written to if it is on a CD so I need a way to either collect the selections elsewise, or need to be able to save a txt file onto the users hard disk and then use that location ( need to know it) to loadup the variables later. Or possibly download the whole thing onto their hard disk in a folder by itself so it can work from there?
I dont want any third party tools and I cant pay for it so if there is any genius that can think of a way (I am using flash 5) i would like to know pls!!
thx
Shaf
email: cangil@utku.com
Checkbox Help Please
I have a flash form that i'm working on that has 5 checkboxes. And i only want them to select 2 of the 5.
I believe i have to write a "change handler" function...am i right?
If so, how would i go about doing that?
please help!!!
Set CheckBox Value
This is a small part to a bigger thing, but what I am trying to do is load a movie clip that contains an instance of a checkbox and then set the value of the checkbox from the parent movie. I know this is probably really simple, but I can't seem to get my relative addressing right to make it work.
What I have been trying is
this.new_name_of_attached_mc.inst_name_of_box.setV alue(true);
This is one of those really irritating little things, and I would appreciate the help.
Here is an example fla.
Add Checkbox
I need to modify this script to add a column for checkboxes..
i think this part of the script that i got to modify...
Muz i modify the php file as well??
Can anyone help??
Thanx in advance!!!
function initializePHP(file) {
//Defining url string
//Result array initialization
dataArray = [];
//Loading and processing function
loadedData = new LoadVars();
v = new LoadVars();
v.host = hostName;
v.user = user;
v.pass = pass;
v.db = dbName;
v.table = tbName;
v.sendAndLoad(file, loadedData, "POST");
loadedData.onLoad = function(success) {
if (success) {
if (loadedData.link == "false") {
errorMessage();
} else {
columns = [];
for (var i = 0; i<loadedData.colnum; i++) {
columns.push(eval("loadedData.column"+i));
}
var count = 0;
for (var i = 0; i<loadedData.rownum; i++) {
var obj = new Object();
//Feeding Object with its properties
for (var j = 0; j<loadedData.colnum; j++) {
obj[columns[j]] = eval("loadedData.row"+count);
count++;
}
//Feeding Result array with Objects
dataArray.push(obj);
delete (obj);
}
dragPos(loadedData.colnum);
//make Table At Startup
createTable(dataArray);
}
} else {
errorMessage();
}
};
//initialize pages number
pages = 1;
}
How Do I Set A Value In A Checkbox?
Hey guys,
This is my first try at doing Flash so I don't know anything. I have a job where an associate is going to be doing flash pages and I have to do the ASP back side scripting. So... I need to understand a few basic things about actionscripting to do it.
if someone could help me understand the object model that is used that would be great.
What I need to do is set the value of a checkbox from a value collected from an ASP.
I got the value from the ASP into Flash. Now I don't know how to set the value of a checkbox.
Any help would be appreciated.
Checkbox Help
newb question...
how would i go about setting up a checkbox component in a movie clip which makes the clip invisible when unchecked, and visible when checked?
something like
if(checked){
myMovieClip._visible = false;
right?
but how do i find out what variable the check box is making true/false?
Checkbox
I have a checkbox through out my entire flash movie. Depending on its state and what buttons are clicked on next will take them to a different 'slide'. I would like perform an action immediately after the checkbox is first checked or unchecked. Can someone tell me how to perform this action.
Thanks,
Nate
Checkbox
I've made a form that people can fill in and send to my email address. I want to add a checkbox to that form that is send with the form to my email address. How do I do that. I used the component inside flash. What actionscript do I use to make sure that the information (true or false) is send with the rest of the form variables!
The checkbox is used to let the sender of the form deside if he wants extra information or not.
Thanks for helping me out!
CheckBox
Hi, I am trying to create a quiz in flash MX, one of the questions involves picking 3 correct answers from 7 possible. I want to be able to make the user taking the test to check they have selected the correct answers.
I am trying to use the checkbox component, however I am not really sure how to go about it as i want a variable to record which answers are selected and give a mark ie 1/3 correct. Can anyhow help me on the actionscript I would need to go about this? Or point me towards a helpful simply tutorial?????
Please help....
Michelle
Checkbox
I want to make a form using the checkbox component
Let's say I have 6 checkbox and 6 variables
I dont know how to modify the 6 variables when
the user clicks the checkboxes
Checkbox Help
I need help with my checkbox componenet. I have a checkbox labeled Resident and a component name of TNUR. From within another MC on the next frame, I have the action:
ResCHK = _root.inrec.TNUR.getValue();
Now shouldn't the variable ResCHK be equal to the Checkbox? Shouldn't something appear on the screen if I set a variable on the screen with the name of ResCHK? If not, can someone please help?
Checkbox Help
I am trying to tell when a checkbox is selected... then display something. Below is the code I am using.
Code:
var t1 = myAccordion.jobDept.createChild("CheckBox", "label1", { label: label1 });
t1.setSize(200,25);
if (t1.selected=="true"){
trace("SUCCESS");
}
Any help is greatly appreciated!
/z
Checkbox
Hello
I have a movie loaded into my flash program and I have created several check boxes for which I want to give the user the control to stop at a particular frame within the movie. I am not sure where to start. My end goal is to provide the User with three checkboxes. If they check the first one they start at the beginning of the movie and stop at the specified frame. If they check the second box then they start at the beginning of the movie and continue past where the first check box would stop and stop and a second specified frame and so on. Does anyone know how to do this?
Thanks
Can't See My Checkbox
I have some simple checkboxes set up, not embedded in a movie clip. They seem fine in Flash, but when I test or export the movie, there's a white box (the size of the bounding box) where the checkbox and the label should be. I copied the checkboxes to a fresh project, and they seem fine. I'm sure there's a simple solution, but I've yet to find it. Any ideas?
Thanks.
apVance
Checkbox
If checkbox is clicked, movie has to go to particular label & play. If it is unclicked it has to go to other lable & play. How to do that?
Checkbox?
i just want to globally change the theme color of the check box.
for an instance
myCB.setStyle("themeColor", 0xff0000); // works
_global.styles.CheckBox.setStyle("themeColor", 0xff0000); //doesn't???
Checkbox Help
I'm having troubles transposing the tutorial for creating the checkboxes into the project I'm working on. I just need one checkbox linked to a Boolean variable called exitOnLoad. What is the easiest way to go about this? Is it better to accomplish this by actionscript or via the components? I must be making this harder than it really is.
Help With Checkbox Please...
hi, I am having some trouble trying to get flash check boxes work with php, can anyone help please...
I've been banging my head against the wall..hehe...
I apreciate any help at all
CheckBox And MCs
I am trying to create a small movie where users select a number of images (MCs) by ticking a CheckBox for each image they wish to select. Then they press continue_btn and they are taken to another frame where their chosen MCs can be found. Is this even possible?
Gabriel
[F8] Checkbox Help Please
Trying to set a price to 25.00 once the checkbox is selected and set the price back to 0.00 once its unselected.
I have the following code in the frame's actionscript;
Code:
myCheckbox.click = function() {
if (myCheckbox.selected) {
photo_pricet.text = rounding(25, 2);
return;
}
photo_pricet.text = rounding(0, 2);
};
}
the dynamic text doesn't change at all...any ideas? Thanks!
[F8] Help With Checkbox Please
HI
I build an image gallery with AS2 and XML, now I want the user to be able to check a checkbox next to the image whenever they want to select it as one of their favourates...it's kind of like a catalouge and it should just write the image info to a seperate word file or spreadsheat. Is there any way of doing this?
This is the code for one of the frames in my swf.
//thank you cards
stop();
Fuse.AUTOSTOP = true;
Fuse.AUTOCLEAR = true;
this.tin_mc.slideTo('260', '0', .6, 'easeInOutBack');
this.organza_mc.slideTo('260', '0', .7, 'easeInOutBack');
this.boxed_mc.slideTo('260', '0', .8, 'easeInOutBack');
this.unique_mc.slideTo('260', '0', .9, 'easeInOutBack');
this.serv_mc.slideTo('260', '0', 1, 'easeInOutBack');
this.tin_mc.alphaTo(100, .6, 'easeInOutBack');
this.organza_mc.alphaTo(100, .7, 'easeInOutBack');
this.boxed_mc.alphaTo(100, .8, 'easeInOutBack');
this.unique_mc.alphaTo(100, .9, 'easeInOutBack');
this.serv_mc.alphaTo(100, 1, 'easeInOutBack');
//back
this.back_mc.slideTo('260', '0', 1.1, 'easeInOutBack');
this.back_mc.alphaTo(100, 1.1, 'easeInOutBack');
//
//code wat images load van xml
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var wis:Number;
x.onLoad = function() {
urls = new Array;
var photos:Array = this.firstChild.childNodes;
for (i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.url);
captions.push(photos[i].attributes.caption);
}
holder.loadMovie(urls[0]);
caption.text = captions[0];
wis = 0;
}
tin_mc.onRelease = function() {
x.load("XML/gallery/thanx/tTin.xml");
}
organza_mc.onRelease = function() {
x.load("XML/gallery/thanx/tOrganza.xml");
}
boxed_mc.onRelease = function() {
x.load("XML/gallery/thanx/tBoxed.xml");
}
unique_mc.onRelease = function() {
x.load("XML/gallery/thanx/tUnique.xml");
}
serv_mc.onRelease = function() {
x.load("XML/gallery/thanx/tServiette.xml");
}
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = holder.getBytesTotal();
loaded = holder.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (holder._alpha<100) {
holder._alpha += 10;
}
}
};
/////////////////////////////////////////////////
//previous button
previous_btn.onRollOver = over;
previous_btn.onRollOut = out;
previous_btn.buttText.buttonText.text = "previous";
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(7);
}
previous_btn.onRelease = function() {
if(wis > 0) {
wis--;
holder.loadMovie(urls[wis]);
caption.text = captions[wis];
}
}
//next button
next_btn.onRollOver = over;
next_btn.onRollOut = out;
next_btn.buttText.buttonText.text = "next";
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(7);
}
next_btn.onRelease = function() {
if(wis < urls.length-1) {
wis++;
holder.loadMovie(urls[wis]);
caption.text = captions[wis];
}
}
//submenu settings
back_mc.subText.subbText.text = "Home";
tin_mc.subText.subbText.text = "Tin Favours";
organza_mc.subText.subbText.text = "Organza Favours";
boxed_mc.subText.subbText.text = "Boxed & Other";
unique_mc.subText.subbText.text = "Unique Favours";
serv_mc.subText.subbText.text = "Serviette Rings";
//back
back_mc.onRollOver = over;
back_mc.onRollOut = out;
back_mc.onRelease = function() {
gotoAndPlay(2);
}
//
tin_mc.onRollOver = over;
tin_mc.onRollOut = out;
organza_mc.onRollOver = over;
organza_mc.onRollOut = out;
boxed_mc.onRollOver = over;
boxed_mc.onRollOut = out;
unique_mc.onRollOver = over;
unique_mc.onRollOut = out;
serv_mc.onRollOver = over;
serv_mc.onRollOut = out;
//about us button en contact us
aboutUs_btn.onRollOver = over;
aboutUs_btn.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(7);
}
aboutUs_btn.onRelease = function() {
gotoAndPlay(8);
}
contactUs_btn.onRollOver = over;
contactUs_btn.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(7);
}
contactUs_btn.onRelease = function(){
gotoAndPlay(10);
}
Thanx for any help
Checkbox To Php
Hi there,
I working on a send a friend script and I am trying to ad a "yes I want to receive the newsletter" checkbox. I want to send a yes or no to sendfriend.php but it won't work? What is the problem?
PHP Code:
// SETTING VARIABLESvar bedanktBericht = '';var errorBericht = '';var fout1 = false;var fout2 = false;var fout3 = false;var fout4 = false;var fout5 = false;var fout6 = false;var signup:mx.controls.CheckBox;scherm._visible = false;// check ENTERvar keyListener:Object = new Object();keyListener.onKeyDown = function() { if (Key.getCode() == Key.ENTER) { checkData(); }};Key.addListener(keyListener);// SET BUTTONthis.send.onPress = function() { checkData();};// CHECK EMAILfunction emailCheck(address:String):Boolean { if (address.indexOf("@")<0) { return false; } else { return true; }}// CHECK INPUTfunction checkData() { // FIELD 1 -------------- correct emailaddress needed if (emailCheck(this.txt.email1.text) == true && this.txt.email1.text != "") { email1 = this.txt.email1.text; this.fout1.gotoAndPlay(6); fout1 = false; } else { fout1 = true; this.fout1.gotoAndPlay(1); } // FIELD 2 ------------------------------------------ if (this.txt.email2.text == "") { fout2 = false; this.fout2.gotoAndPlay(1); //trace("niets ingevuld"); } else if (emailCheck(this.txt.email2.text) == false && this.txt.email2.text != "") { fout2 = true; this.fout2.gotoAndPlay(1); //trace("geen geldig emailadres, maar wel wat ingevuld"); } else { email2 = this.txt.email2.text; this.fout2.gotoAndPlay(6); fout2 = false; //trace("goed"); } // FIELD 3 ------------------------------------------ if (this.txt.email3.text == "") { fout3 = false; this.fout3.gotoAndPlay(1); } else if (emailCheck(this.txt.email3.text) == false && this.txt.email3.text != "") { fout3 = true; this.fout3.gotoAndPlay(1); } else { email3 = this.txt.email3.text; this.fout3.gotoAndPlay(6); fout3 = false; } // FIELD 4 ------------------------------------------ if (this.txt.email4.text == "") { fout4 = false; this.fout4.gotoAndPlay(1); } else if (emailCheck(this.txt.email4.text) == false && this.txt.email4.text != "") { fout4 = true; this.fout4.gotoAndPlay(1); } else { email4 = this.txt.email4.text; this.fout4.gotoAndPlay(6); fout4 = false; } // FIELD 5 ------------------------------------------ if (this.txt.email5.text == "") { fout5 = false; this.fout5.gotoAndPlay(1); } else if (emailCheck(this.txt.email5.text) == false && this.txt.email5.text != "") { fout5 = true; this.fout5.gotoAndPlay(1); } else { email5 = this.txt.email5.text; this.fout5.gotoAndPlay(6); fout5 = false; } // FIELD 6 ------------------------------------------ if (this.txt.email6.text == "") { fout6 = false; this.fout6.gotoAndPlay(1); } else if (emailCheck(this.txt.email6.text) == false && this.txt.email6.text != "") { fout6 = true; this.fout6.gotoAndPlay(1); } else { email6 = this.txt.email6.text; this.fout6.gotoAndPlay(6); fout6 = false; } // ALS ER GEEN FOUTEN ZIJN //if (fout1 == false && fout2 == false && fout3 == false && fout4 == false && fout5 == false && fout6 == false) { //sendData(); //} // // we give "myCheckbox" a default value var myCheckbox:String; myCheckbox = "yes"; // // we create a listener for the checkbox to increase either number var checkListener:Object = new Object(); checkListener.click = function() { // // here we let the user select if (nieuwsbrief.selected) { myCheckbox = "yes"; } else { myCheckbox = "no"; } }; // ALS ER GEEN FOUTEN ZIJN if (fout1 == false && fout2 == false && fout3 == false && fout4 == false && fout5 == false && fout6 == false) { sendData(); } // }// VERZENDEN VAN DATA NAAR PHPfunction sendData() { scherm._visible = true; this.output.text = 'Moment geduld...'; var sendData = new LoadVars(); sendData["_parent"] = this; sendData.email1 = email1; sendData.email2 = email2; sendData.email3 = email3; sendData.email4 = email4; sendData.email5 = email5; sendData.email6 = email6; sendData.myCheckbox = nieuwsbrief;// sendData.nieuwsbrief = nieuwsbrief; sendData.sendAndLoad("sendfriend.php",sendData,"POST"); sendData.onLoad = function(success) { this['_parent'].bedanktBericht = 'Bedankt voor het doorsturen!'; this['_parent'].gotoAndStop('bedankt'); };}stop();
CheckBox And MCs
I want to create a small movie where users select a number of images (MCs) by ticking a CheckBox for each image they wish to select. Then they press continue_btn and they are taken to another frame where their chosen MCs can be found. Is this even possible?
wB
CheckBox Php Help
Hello there. I am new to all of this and have used this boards postings and tutorials to make a site for our boat in Costa Rica. Link at bottom.
I am solving all the problems I have had so far except 2:
1 -- Is there anyway to prevent the buttons at the top from switching frames on multiple rollovers? I have 3 timelines with 30 frames. 1 TL for the background and main frame with a stop at 1. 1 for the buttons with a stop on every frame. And 1 for the block where the info is posted on every frame. Each button has this Action
on (rollOver) {gotoAndStop(frame number);
}
2 -- And my main problem now is with my script for PHP on my 'Contact' page. Everything shows up in the email except for the check boxes that are checked. At this point the input fields are tagged with letters and the boxes are numbered.
<?php
$sendTo = "myemail@somewhere.com";
$subject = "Reel Deal Inquiery";
$headers = "From: " .
$_POST["a"] ." ".
$_POST["b"] . "<" .
$_POST["d"] .">
";
$headers .= "Reply-To: " .
$_POST["d"] . "
";
$headers .= "Return-path: " .
$_POST["d"];
$message =
$_POST["d"] ." / ".
$_POST["c"] ." / ".
$_POST["e"] ." / ".
$_POST["f"] ." / ".
$_POST["g"] ." / ".
$_POST["message"] ."/".
$_POST["CheckBox01 = CheckBox01.selected"] ." / ".
$_POST["CheckBox02 = CheckBox02.selected"] ." / ".
$_POST["CheckBox03 = CheckBox03.selected"] ." / ".
$_POST["CheckBox04 = CheckBox04.selected"] ." / ".
$_POST["CheckBox05 = CheckBox05.selected"] ." / ".
$_POST["CheckBox06 = CheckBox06.selected"] ." / ".
$_POST["CheckBox07 = CheckBox07.selected"] ." / ".
$_POST["CheckBox08 = CheckBox08.selected"] ." / ".
$_POST["CheckBox09 = CheckBox09.selected"] ." / ".
$_POST["CheckBox10 = CheckBox10.selected"] ." / ".
$_POST["CheckBox11 = CheckBox11.selected"] ." / ".
$_POST["CheckBox12 = CheckBox12.selected"] ." / ".
$_POST["CheckBox13 = CheckBox13.selected"] ." / ".
$_POST["CheckBox14 = CheckBox14.selected"] ." / ".
$_POST["CheckBox15 = CheckBox15.selected"] ." / ".
$_POST["CheckBox16 = CheckBox16.selected"] ." / ".
$_POST["CheckBox17 = CheckBox17.selected"] ." / ".
$_POST["CheckBox18 = CheckBox18.selected"] ." / ".
$_POST["CheckBox19 = CheckBox19.selected"] ." / ".
$_POST["CheckBox20 = CheckBox20.selected"] ." / ".
$_POST["CheckBox21 = CheckBox21.selected"];
mail($sendTo, $subject, $message, $headers);
?>
I really hate to bother someone for their time, but I am trully stumped here...
Be advised...This site is not complete and I am reading now how to make preloader and optimize to make the site lighter. Any suggestions are welcome if you see something that I could improve...Thanks in advance for your time and efforts. TDR
http://www.reeldealcr.com
Checkbox Php
I have created a form in flash with input fields and checkbox's. I'm using php script to send and receive email. I'm receiving the information from the input fields ok but cannot seem to get any info from the checkbox reply.
Can anyone help?
Checkbox Help
I need help ASAP. Here's the problem. I have created a 2 page form in Flash Prof 8. I don't have any issues passing the TextField variables to php from either page 1 or page 2, but I can't seem to get the Checkbox values on page 1 to carry over to page 2 and be uploaded to the database when the submit button is triggered.
My script is attached:
on (release) {
//loads variable and submits to .php page
var my_lv:LoadVars = new LoadVars();
my_lv.firstName = _level0.firstName;
my_lv.lastName = _level0.lastName;
my_lv.email = _level0.email;
my_lv.zipcode = _level0.zipcode;
my_lv.myVar1 = _level0.myVar1;
my_lv.myVar2 = _level0.myVar2;
mytmpvar = optIn_chBx1.selected;
if (mytmpvar == true) {
my_lv.myVar1 = true; }
else {
my_lv.myVar1 = false;
}
mytmpvar = optIn_chBx2.selected;
if (mytmpvar == true) {
my_lv.myVar2 = true; }
else {
my_lv.myVar2 = false;
}
my_lv.sendAndLoad("SubmitEntry.php", my_lv,"POST");
Checkbox Help
I need help ASAP. Here's the problem. I have created a 2 page form in Flash Prof 8. I don't have any issues passing the TextField variables to php from either page 1 or page 2, but I can't seem to get the Checkbox values on page 1 to carry over to page 2 and be uploaded to the database when the submit button is triggered.
My script is attached:
on (release) {
//loads variable and submits to .php page
var my_lv:LoadVars = new LoadVars();
my_lv.firstName = _level0.firstName;
my_lv.lastName = _level0.lastName;
my_lv.email = _level0.email;
my_lv.zipcode = _level0.zipcode;
my_lv.myVar1 = _level0.myVar1;
my_lv.myVar2 = _level0.myVar2;
mytmpvar = optIn_chBx1.selected;
if (mytmpvar == true) {
my_lv.myVar1 = true; }
else {
my_lv.myVar1 = false;
}
mytmpvar = optIn_chBx2.selected;
if (mytmpvar == true) {
my_lv.myVar2 = true; }
else {
my_lv.myVar2 = false;
}
my_lv.sendAndLoad("SubmitEntry.php", my_lv,"POST");
Please Help With Checkbox
HI
I buildt an image gallery with AS2 and XML, now I want the user to be able to check a checkbox next to the image whenever they want to select it as one of their favourates...it's kind of like a catalouge and it should just write the image info to a seperate word file or spreadsheat or even another movie. Is there any way of doing this and how do I get started?
Thanx for any help
Attach Code
//thank you cards
stop();
Fuse.AUTOSTOP = true;
Fuse.AUTOCLEAR = true;
this.tin_mc.slideTo('260', '0', .6, 'easeInOutBack');
this.organza_mc.slideTo('260', '0', .7, 'easeInOutBack');
this.boxed_mc.slideTo('260', '0', .8, 'easeInOutBack');
this.unique_mc.slideTo('260', '0', .9, 'easeInOutBack');
this.serv_mc.slideTo('260', '0', 1, 'easeInOutBack');
this.tin_mc.alphaTo(100, .6, 'easeInOutBack');
this.organza_mc.alphaTo(100, .7, 'easeInOutBack');
this.boxed_mc.alphaTo(100, .8, 'easeInOutBack');
this.unique_mc.alphaTo(100, .9, 'easeInOutBack');
this.serv_mc.alphaTo(100, 1, 'easeInOutBack');
//back
this.back_mc.slideTo('260', '0', 1.1, 'easeInOutBack');
this.back_mc.alphaTo(100, 1.1, 'easeInOutBack');
//
//code wat images load van xml
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var wis:Number;
x.onLoad = function() {
urls = new Array;
var photos:Array = this.firstChild.childNodes;
for (i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.url);
captions.push(photos[i].attributes.caption);
}
holder.loadMovie(urls[0]);
caption.text = captions[0];
wis = 0;
}
tin_mc.onRelease = function() {
x.load("XML/gallery/thanx/tTin.xml");
}
organza_mc.onRelease = function() {
x.load("XML/gallery/thanx/tOrganza.xml");
}
boxed_mc.onRelease = function() {
x.load("XML/gallery/thanx/tBoxed.xml");
}
unique_mc.onRelease = function() {
x.load("XML/gallery/thanx/tUnique.xml");
}
serv_mc.onRelease = function() {
x.load("XML/gallery/thanx/tServiette.xml");
}
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = holder.getBytesTotal();
loaded = holder.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (holder._alpha<100) {
holder._alpha += 10;
}
}
};
/////////////////////////////////////////////////
//previous button
previous_btn.onRollOver = over;
previous_btn.onRollOut = out;
previous_btn.buttText.buttonText.text = "previous";
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(7);
}
previous_btn.onRelease = function() {
if(wis > 0) {
wis--;
holder.loadMovie(urls[wis]);
caption.text = captions[wis];
}
}
//next button
next_btn.onRollOver = over;
next_btn.onRollOut = out;
next_btn.buttText.buttonText.text = "next";
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(7);
}
next_btn.onRelease = function() {
if(wis < urls.length-1) {
wis++;
holder.loadMovie(urls[wis]);
caption.text = captions[wis];
}
}
//submenu settings
back_mc.subText.subbText.text = "Home";
tin_mc.subText.subbText.text = "Tin Favours";
organza_mc.subText.subbText.text = "Organza Favours";
boxed_mc.subText.subbText.text = "Boxed & Other";
unique_mc.subText.subbText.text = "Unique Favours";
serv_mc.subText.subbText.text = "Serviette Rings";
//back
back_mc.onRollOver = over;
back_mc.onRollOut = out;
back_mc.onRelease = function() {
gotoAndPlay(2);
}
//
tin_mc.onRollOver = over;
tin_mc.onRollOut = out;
organza_mc.onRollOver = over;
organza_mc.onRollOut = out;
boxed_mc.onRollOver = over;
boxed_mc.onRollOut = out;
unique_mc.onRollOver = over;
unique_mc.onRollOut = out;
serv_mc.onRollOver = over;
serv_mc.onRollOut = out;
//about us button en contact us
aboutUs_btn.onRollOver = over;
aboutUs_btn.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(7);
}
aboutUs_btn.onRelease = function() {
gotoAndPlay(8);
}
contactUs_btn.onRollOver = over;
contactUs_btn.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(7);
}
contactUs_btn.onRelease = function(){
gotoAndPlay(10);
}
As3 Cannot Use CheckBox ?
hi, I attempt to drag a CheckBox from to the stage, but flash authoring tool insists on employing as2 to use this component. But I don't want as2. I refer to the help document but it says nothing about this problem. Can someone help me?
Can This Be Done With Checkbox?
Well perhaps it's really simple and obvious for u ppl( i really hope so but i was wondering...
On the new site am making I'd like to use the component CheckBox to turn the music on and off...
But i don't know how..is it possible and how?
tnx
I know it can be done by simple regular buttons as well but the components add that something extra ...am sure u all agree
Happy New Year all...< <
Checkbox
when i click on a submit button, it sends values to php. i have made 3 checkmoxes. when i select one and then click on a button, i want that the button transfer values that i selected. here is the code.
submit.onPress = function() {
if (checkbox1.value = true) {a1 != ""; a2 != ""; a1value != ""; a2value != "";
myData.a1value = a1value;
myData.a2value = a2value;
myData.sendAndLoad("savebar2.php", myData, "POST");
}
if (checkbox2.value = true) {a1 != ""; a2 != ""; a1value != ""; a2value != "";
myData.a1 = a1;
myData.a2 = a2;
myData.SendAndLoad("savebar2.php", myData, "POST");
}
checkbox1 = checkbox1.value;
checkbox2 = checkbox2.value;
checkbox3 = checkbox3.value;
myData = new LoadVars();
myData.onLoad = function() {
if (this.writing == "ok") {
status.text = "Datas are in the text";
} else {
status.text = "error";
}}
};
UN@
CheckBox
Hello,
How do I setup a checkBox component? I'm creating a form in flash and the server im talking to is in JSP. However, i don't really think that's the issue... how do I set up a fla with two checkBoxes and after the submit button has been hit, the one that's checked get's sent with the form... what's the actions script for all of that?
Thank you in advance,
Devin
Checkbox Help
Hi there, new to 2004..
I need to do a simple validation . 2 check boxes need to be checked before a user can go onto the next frame.
This is my code so far.. I only have the one checkbox in the code cos not sure how 2 do both...
Code:
on (release) {
if (myCheckBox1.selected="false") {
_root.alert.gotoAndPlay("2");
} else if (myCheckBox1.selected="true") {
_root.gotoAndPlay("5");
}
}
Any ideas....
It just goes 2 frame 5 the whole time.....
Help, CheckBox
Can any1 help me please,
Im trying to create a checkbox, and a textbox,
when the checkbox is checked for the textbox, to say, Its Check and when its not checked to say, its not checked. I want to do this on MX 2004, it does not have change handle, can any1 assist me or fix me a quick example, would really appricate it.
Thank You
DNG
|