Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-12-2004, 03:39 PM   #1
Registered User
Join Date: Oct 2004
Posts: 2
Default Dynamic javascript parameter

Hey, is there anyone who could help me with a difficult issue ( for me ).

I have a arrow as a graphic symbol, and i want to make it move up and down on the Y-axies. Unfortuantly i get the parameter that changes the value, from an dynamic Javascript query. Something like this:

var mCounter = "14";

It changes every time the user changes the value in a form, but not via an refresh on the htmlpage.

My question is:
- How can i take a dynamic value from a javascript into my .FLA

My best regards
Niels Kristiansen
niller2000 is offline   Reply With Quote
Old 10-12-2004, 07:09 PM   #2
Ruben's Avatar
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben

call this function when the button in the html-file is pressed:
HTML Code:
<script language="JavaScript">
  function setVars(){
then put something like this in the swf:
ActionScript Code:
// the coming 3 lines of code define the value for someVar in case the user hasn't inserted anything if (_root.someVar == undefined){   _root.someVar = 14; } // the following line of code makes the object move on the Y-axis someClip._y += _root.someVar;

- Ruben
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:30 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.