Solved

Control flash from javascript

Posted on 2000-02-24
1
141 Views
Last Modified: 2010-04-03
Hello brains,

Here is a hard question for a simple response. I would like to write javascripts that control flash movies (update variables, Telltarget commands)... I can write javascripts that do 'Gotoframe', but i just don't know how to spell to have a variable in my Flash object updated.

Any Idea someone ?
0
Comment
Question by:MaitreTaz
1 Comment
 
LVL 3

Accepted Solution

by:
SuperMario earned 50 total points
ID: 2559734
Two things you need to make sure you're doing:

1) Create a new FlashApi() object - and make sure you include FlashApi.class and all its subclasses.

2) To change a variable's value, just use

MyFlashObject.SetVariable("varName", "value");

I hope this helps you in some way or another!

-Dan
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now