Dear people
I m new to action script and i have the following problem.
I have a Flash movie. Where the user can type a number in flash dinamic text field
and depending on what number they type a circle will beging to rotate.
So if the user types 90 the circle should rotate 90 degrees.
Until here all works fine.
But i wanted to embed this to an HTML page which is what i wanted.
I can make HTML and flash to communicate using a bit of Javascript found on macromedia.
So my example contains a HTML page with a text box that as you see communicates with the flash movie to get the number through this HTML text box.
Until here all is fine.
But the problem i have is that once i have the variable in flash i cannot validate it and change the control of my movie:
(
//The following code doesnt work/
if (myVar==""
{ // variable got from HTML, i also tried myVar<> "" and != and "ed" but nothing
((
stop();
} else if (myVar<>""
{
gotoAndPlay(2);
}
I have attached two movies in this.
The first movie that done in Flash everything works fine.
can be found here for demo:
and the full source here:
but my seccond movie doesnt work as i want
and is here for the demo:
and for download here:
The event is activated by a user click.
On the seccond i managed to make HTML and flash to communicate but i cannot make the movie to go on frame 2 when i want.
And what i want is to go on frame two when the HTML number field is in Flash number field.
Sorry for my english i hope somebody will understand what i want.
Please help.
I m new to action script and i have the following problem.
I have a Flash movie. Where the user can type a number in flash dinamic text field
and depending on what number they type a circle will beging to rotate.
So if the user types 90 the circle should rotate 90 degrees.
Until here all works fine.
But i wanted to embed this to an HTML page which is what i wanted.
I can make HTML and flash to communicate using a bit of Javascript found on macromedia.
So my example contains a HTML page with a text box that as you see communicates with the flash movie to get the number through this HTML text box.
Until here all is fine.
But the problem i have is that once i have the variable in flash i cannot validate it and change the control of my movie:
//The following code doesnt work/
if (myVar==""
stop();
} else if (myVar<>""
gotoAndPlay(2);
}
I have attached two movies in this.
The first movie that done in Flash everything works fine.
can be found here for demo:
and the full source here:
but my seccond movie doesnt work as i want
and is here for the demo:
and for download here:
The event is activated by a user click.
On the seccond i managed to make HTML and flash to communicate but i cannot make the movie to go on frame 2 when i want.
And what i want is to go on frame two when the HTML number field is in Flash number field.
Sorry for my english i hope somebody will understand what i want.
Please help.