View Full Version : getting input from swf file
cmbarsotti
02-18-2008, 02:16 PM
I've written a command that uses an swf file for input. I can't figure out how to get the values from the swf to the jsfl script. Does the swf need a submit button or can I use the XML submit button?
if you can offer a line of script that would be most helpful.
Thanks.
hangalot
02-18-2008, 05:41 PM
mmexecute. can't remember if it can send args, otherwise you use it to write a file and then pick that up. it sucks
cmbarsotti
02-18-2008, 09:34 PM
Thanks for responding, I'm not finding very good documentation about this at all. Maybe I'm missing the point. According to the Flash help file I'm supposed to be able to call jsfl functions.
Let's say I have a function in my jsfl file like this:
function showMe(){
fl.outputPanel.trace("Hello");
}
I have the jsfl xml dialog open input.swf which contains a text field called txtInput and a button called btnSubmit. I get the impression I can have
btnSubmit.onPress = function() {
MMExecute("showMe();");
}; in my fla file, but I get an error.
I'd love to pass the text from txtInput back to jsfl.
Does anyone know how (or if) I can send the text in my text field back to jsfl?
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.