-
1. Re: getVariable() stopped working
kglad Mar 22, 2017 7:04 AM (in response to dariuszk32546812)GetVariable != getVariable
-
2. Re: getVariable() stopped working
dariuszk32546812 Mar 22, 2017 7:07 AM (in response to kglad)GetVariable is correct:
TypeError: flashMovie.getVariable is not a function
-
3. Re: getVariable() stopped working
kglad Mar 22, 2017 7:39 AM (in response to dariuszk32546812)actually, i don't see either one as part of the javascript spec, JavaScript methods index - JavaScript | MDN
-
4. Re: getVariable() stopped working
dariuszk32546812 Mar 22, 2017 8:15 AM (in response to kglad)It works still for previous version of my file and can be find in many websites (i.e. Adobe Director * getVariable() ), forums. If you don't know what it is, do not answer.
-
5. Re: getVariable() stopped working
Colin Holgate Mar 22, 2017 8:30 AM (in response to dariuszk32546812)I know what Director is. getVariable is a Lingo command, and when Macromedia added JavaScript support for Director they had to give a JavaScript syntax variation of all Lingo commands and functions. That didn't mean that the JavaScript language gained all of Director's abilities, it was just a matter of syntax.
-
6. Re: getVariable() stopped working
ClayUUID Mar 22, 2017 8:33 AM (in response to dariuszk32546812)1 person found this helpfulDarius, trying to order other forum members what to do never ends well, and makes you look childish.
Kglad, getVariable is a method of the Flash plugin. It's been there for a very, very long time.
However, it's also been deprecated for a very long time. The correct approach for communication between the web page and the Flash plugin is to use externalInterface.
-
7. Re: getVariable() stopped working
kglad Mar 22, 2017 8:50 AM (in response to ClayUUID)thanks.
are those methods case-insensitive?
-
8. Re: getVariable() stopped working
dariuszk32546812 Mar 22, 2017 8:53 AM (in response to ClayUUID)Thank you for the url. But could anyone write JavaScript code getting variable value from a swf file ?
Or maybe it needs very severe programming inside .fla and html file ?
That was so simple but programmers spoiled everything. Not everything what is newer is better. This is not only this method but also many other computer software having nothing to do with Adobe flash. Everything is getting more and more complex and slower.
-
9. Re: getVariable() stopped working
kglad Mar 22, 2017 9:26 AM (in response to dariuszk32546812)use externalinterface to access variables/methods inside the swf, ExternalInterface - Adobe ActionScript® 3 (AS3 ) API Reference
-
10. Re: getVariable() stopped working
dariuszk32546812 Mar 22, 2017 9:36 AM (in response to kglad)Could anybody write code snippet ? Thank you in advance.
-
11. Re: getVariable() stopped working
ClayUUID Mar 22, 2017 9:41 AM (in response to dariuszk32546812)1 person found this helpfulThere are many code snippets in both of the links you've been provided. Just write an AS function that returns the value you need, then call it from JS.
-
12. Re: getVariable() stopped working
dariuszk32546812 Mar 22, 2017 9:48 AM (in response to ClayUUID)Could anybody write an example simple function returning example variable (with explanation where to put such function) and simple javascript code, instead of sending me to urls ? Thank you in advance.