Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

have HTML/JAVA dictate the frame to goto

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
So I have an HTML page calling a SWF to load in it. That's fine. But now for some reason I want the HTML to tell the SWF to Goto Frame #5 and Play.

My thoughts are that I set a Variable in the HTML and have Flash look for that Var. -but how does that work?
OR I just have a few lines of JAVA with the GotoFrame(5) line in it, but that doesn't seem to work either.

I've been foolin' around with Java and Such, but I can't seem to get the HTML and the SWF to talk... or the SWF just won't listen.
 
If you're Punchman, why are you loging in as a visitor?
If not... I really don't understand this current trend of unregistered visitors!

Using the Flash method GotoFrame should be able to handle it for you:

Regards,
mywink2.gif
ldnewbie
 
"conspiracy" ah, my 3 favorite words... I just didn't log in before I posted... not sure why, I just didn't... thanks for the help... is it me or doesn't "oldnewuser" answer 99% of these questions?
I'm sure to be right back with more questions about this post as soon as I mess up any directions I'm given.
 
OK- For those of you tunin' in...
The answer for the Java section was:

Syntax GotoFrame( frameNumber )

Example movie.GotoFrame(24);

And for those of us who need an "Introduction to Java" class what would it look like in the HTML?

I'm guessin'

<script Language=&quot;JavaScript&quot;>

myswffilename.GotoFrame(24);

</script>

Right or wrong?
What do I do on the Flash side? It doesn't look like I do anything. Yes, I love it when strangers hold my hand and walk me through stuff. &quot;Is that candy in your van?&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top