Solved

Control flash from javascript

Posted on 2000-02-24
1
145 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

734 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