Solved

Control flash from javascript

Posted on 2000-02-24
1
140 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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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): …
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…

771 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

16 Experts available now in Live!

Get 1:1 Help Now