Solved

Control flash from javascript

Posted on 2000-02-24
1
142 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

786 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