I am developing a photo gallery using an XML file as the structure. As the document class I have a class called PhotoGallery:-
[Code]...
Once the parsing is finished here I want to call a function back in the PhotoGallery class to start setting up the PhotoGallery. Is this possible, or am I even going about this in the right way? I am not sure I am using classes in the correct
I get the alert but I can't get the lightbox window to display. When my as code makes the ExternalInterface call I get what looks like a page refresh and a blank browser window.
I have an enterFrame action that I use on a graphic:
[Code]....
Because I want to use the above code more than a few times, I tried to make it a function.
[Code]....
But for some reason the function call does not work when I call it via an action on a graphic where initially the code worked when it was explicitly written and not called as a function.
I need to get a javascript var in my Flash application. I like to be able to just set a variable in the javascript (client constraints) rather than define a function.
Can this be done? I am trying to use the ExternalInterface.call()
have a node that has an asfunction embedded - won't work. if I change the a href to a web page- it works fine. If I try to call a custom function it doesn't call it at all.
I have an AS3 program that calls a function multiple times. The function must return multiple variables, so I created a class for the function to declare an object containing all of these variables. For example, here's my class:
package { public class PER { [Code].....
Let's say the calling program calls the function, which returns the variables into data_set1 (where data_set1 depends on input variables arg1, arg2, arg3) using:
var data_set1:PER = function_name(arg1, arg2, arg3);
The calling program does some stuff, then calls the function again, but returns the variables into a new variable name, data_set2:
var data_set2:PER = function_name(arg4, arg5, arg6);
My intention is that data_set1 and data_set2 are different (e.g. not linked together).
My question is, given that arrays are passed by reference, will data_set1 be modified to agree with data_set2 upon the 2nd function call? Why or why not?
this is the function i want to turn in to a static function. just dont know how to make it a static function and call it from other classes. i think this would have its own file.
ActionScript Code: function function1(e:event):void{ //code
[Code]....
Can I somehow, stop the enter frame in function 2 with some code in function3? I know that is not the better practice, but in this case is really needful to have a function inside another.
I have made a simply condition calling a constructor of a class. Today I had to add an "else if", what caused the compilator to show me "A function call on a non-function was attempted."...
Code: function loadIt() { if (var1 == "1") {[code]....
I have this class where I have a dynamic function name, but I don't understand how to call it, I'm getting all kinds or errors, but most the Incompatible Override and Duplicate function definition.Here's the class:
I currently have an action that starts with a button click. But I want it to start on frame 1 automatically without a button. How do I need to edit my code to make this work correctly? It's a typewriter effect and I plan on exporting it out as a .MOV and importing it into Adobe Premiere. I also need to figure out how to get the background transparent if possible.[code]
I'm a little new to the AS thing so I need a little help. I need a simple function that will stop an animation on the main timeline for about 10 seconds then restart again.
Sorry to have to post a secondary thread...but i've had responses to the previous one and now a new problem exists. Why am I having to multiple click my button to make this function work? On each release of the button 'SUB' moves that little bit more but I need the function to work in one go after just one click!! Something is obviously working for it to move at all, I just dont understand why it's moving in stages!!