Link to home
Start Free TrialLog in
Avatar of dween
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.text;
      
      feedbackForm.send("/cgi-bin/formmail", "_blank", "POST");
      
}



_global.style.setStyle("fontFamily", "Helvetica-Narrow");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("embedFonts", true);
_global.style.setStyle("fontSize", 14);
_global.style.setStyle("color", 0x000000);



this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "submit";

// on RollOver
this.contactForm.submitBtn.onRollOver = function() {
      contactForm.submitBtn.gotoAndStop (2);
}

//onRollOut
this.contactForm.submitBtn.onRollOut = function() {
      contactForm.submitBtn.gotoAndStop (1);
}

//onRelease
this.contactForm.submitBtn.onRelease = function() {
      if (contactForm.userName.text == "" || contactForm.userEmail.text == "" || contactForm.userComments.text == "") {
            gotoAndStop("error");
      } else {
            sendForm();
            gotoAndStop("correct");
      }
            

}


      
      
ASKER CERTIFIED SOLUTION
Avatar of blue-genie
blue-genie
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vicker Leung
Do try a highlight (i.e. selecting) the text that you have typed
If you see them, then it shouldn't be the embedded font problem

Is it because of these scripts pathing problem?
_global.style.setStyle("fontFamily", "Helvetica-Narrow");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("embedFonts", true);
_global.style.setStyle("fontSize", 14);
_global.style.setStyle("color", 0x000000);
Avatar of billyvandergaw
billyvandergaw

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!
Avatar of dween

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_form.swf");

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>.text) to see that the textfield object instance is there.

:B
Avatar of dween

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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial