dween
asked on
Invisible text and loadMovie?
I've created (with a little tutorial help : ) this nifty this CGI input form. It works great on it's own.
I'm having trouble when I load it into another movie. I can't see the input text....it's invisible? The form can still be submitted and the info still gets sent? My fonts are embedded. Any ideas? Thanks.
var feedbackForm:LoadVars = new LoadVars();
function sendForm() {
feedbackForm.recipient = "my@email.com";
feedbackForm.realname = contactForm.userName.text;
feedbackForm.email = contactForm.userEmail.text ;
feedbackForm.comments = contactForm.userComments.t ext;
feedbackForm.send("/cgi-bi n/formmail ", "_blank", "POST");
}
_global.style.setStyle("fo ntFamily", "Helvetica-Narrow");
_global.style.setStyle("fo ntWeight", "bold");
_global.style.setStyle("em bedFonts", true);
_global.style.setStyle("fo ntSize", 14);
_global.style.setStyle("co lor", 0x000000);
this.contactForm.submitBtn .btnLabel. autoSize = "center";
this.contactForm.submitBtn .btnLabel. text = "submit";
// on RollOver
this.contactForm.submitBtn .onRollOve r = function() {
contactForm.submitBtn.goto AndStop (2);
}
//onRollOut
this.contactForm.submitBtn .onRollOut = function() {
contactForm.submitBtn.goto AndStop (1);
}
//onRelease
this.contactForm.submitBtn .onRelease = function() {
if (contactForm.userName.text == "" || contactForm.userEmail.text == "" || contactForm.userComments.t ext == "") {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}
I'm having trouble when I load it into another movie. I can't see the input text....it's invisible? The form can still be submitted and the info still gets sent? My fonts are embedded. Any ideas? Thanks.
var feedbackForm:LoadVars = new LoadVars();
function sendForm() {
feedbackForm.recipient = "my@email.com";
feedbackForm.realname = contactForm.userName.text;
feedbackForm.email = contactForm.userEmail.text
feedbackForm.comments = contactForm.userComments.t
feedbackForm.send("/cgi-bi
}
_global.style.setStyle("fo
_global.style.setStyle("fo
_global.style.setStyle("em
_global.style.setStyle("fo
_global.style.setStyle("co
this.contactForm.submitBtn
this.contactForm.submitBtn
// on RollOver
this.contactForm.submitBtn
contactForm.submitBtn.goto
}
//onRollOut
this.contactForm.submitBtn
contactForm.submitBtn.goto
}
//onRelease
this.contactForm.submitBtn
if (contactForm.userName.text
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hey, just a thought...the input fields you have there, are they the same color as your background? because if they are that's why you can't see them.
Goodluck!
Goodluck!
ASKER
Thanks,
Actually...the colors being the same was the first thing I thought of. They're not the same...rats.
I tried highlighting (selecting) the text. It wont select. I removed all of the global.style script and tried it again.
Essentially the same thing....just no style attributes.
I'm pretty sure blue-genie is on the right path (no pun intended ; ) So...
Yes, the contact form is in it's own swf
From the main timline of "master.swf":
myMCL.loadClip("slide.swf" , 5);
Im loading "contact_form.swf" into clip2_mc in "slide.swf" using:
this.loadMovie("contact_fo rm.swf");
This is where the input text becomes invisible....
Actually...the colors being the same was the first thing I thought of. They're not the same...rats.
I tried highlighting (selecting) the text. It wont select. I removed all of the global.style script and tried it again.
Essentially the same thing....just no style attributes.
I'm pretty sure blue-genie is on the right path (no pun intended ; ) So...
Yes, the contact form is in it's own swf
From the main timline of "master.swf":
myMCL.loadClip("slide.swf"
Im loading "contact_form.swf" into clip2_mc in "slide.swf" using:
this.loadMovie("contact_fo
This is where the input text becomes invisible....
hrm.. hard to guess.
could u verify that the 'input-text field' is visible, meaning stretched across the timeline likewise other components that are visible such as ur buttons etc.
also do a trace (<input_text_instance>.tex t) to see that the textfield object instance is there.
:B
could u verify that the 'input-text field' is visible, meaning stretched across the timeline likewise other components that are visible such as ur buttons etc.
also do a trace (<input_text_instance>.tex
:B
ASKER
Ive got 2 input text fields, a textarea field and a submit button across the timeline. They are all visible.
I'm new to Flash so I dont know exactly where to put (start) the trace?
I'm new to Flash so I dont know exactly where to put (start) the trace?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you see them, then it shouldn't be the embedded font problem
Is it because of these scripts pathing problem?
_global.style.setStyle("fo
_global.style.setStyle("fo
_global.style.setStyle("em
_global.style.setStyle("fo
_global.style.setStyle("co