ActionScript 3.0 :: Call The SlideShow Function?
Oct 10, 2010how do I call the slideShow function?
Code:
import com.greensock.*;
import com.greensock.easing.*;
var austin:Symbol1 = new Symbol1();
[Code]....
how do I call the slideShow function?
Code:
import com.greensock.*;
import com.greensock.easing.*;
var austin:Symbol1 = new Symbol1();
[Code]....
How do I call the slideShow function without an event listener?[code]...
View 1 RepliesI'm dynamically calling pics in from another folder on my site for a slideshow. And it works up to pic #9. But any number over 9 and it wigs out. The naming convention I'm using is panel1, panel2, panel3, etc. Is there a trick? Do I need to use panel01, etc? If so, would that then be panel010 for #10?
View 3 RepliesI'm trying to use ExternalInterface.Call to call a JavaScript function to launch a lightbox window. So far I have this:
AS3:
flash.external.ExternalInterface.call("launchLB", "" + aUrl + "");
JavaScript:
function launchLB(url) {
alert(url);
[Code]....
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.
Code:
onClipEvent (enterFrame) {
fadeOut();
}
why this is not working.I have an application with a new class I just created. The class loads, but will not call it's own internal function.
package com.parkerandkent.components.classic.photogallery {
import caurina.transitions.Tweener;
import flash.display.MovieClip;[code]....
"Test 2" will not fire here.And I get this error message:
CallTag.as , Line 10 1180: Call to a possibly undefined method init.
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()
AS:
ExternalInterface.call("function(){return window.someVar}", null);
JS:
var someVar = "Test";
This does not work and I suspect it is because the ExternalInterface.call() does not like the anonymous function.
I have a function defined in JavaScript like so:
function fadeBack() {
alert("fadeBack called");
};
I call that function from my Flash file like so:
import flash.external.*;
flash.external.ExternalInterface.call("fadeBack");
This works in both Safari and Chrome, but for some reason Firefox won't ever call the function. Still, I can't figure this out. How can I fix it?
Does anyone know if there is a way to call a dispatchEvent call from inside of a static function?
View 2 Replieshave 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.
View 1 RepliesI am trying to build a flash slideshow that uses XML to call up images and text captions. I 've found a good example of what I am looking for on macromedia's website.found here: http:[url]...
I would like to add the ability to fade between images and have a button that creates a larger jpg version in a popup window for whatever image is being displayed as current in the slideshow.Would I need 2 XML files for this or can I just use one? I prefer one. Sorry I am quite new to XML, this is my first foray into it.I can build this thing w/o XML, but it seems to be so much easier if I did it with XML.
I have a function in Flex which has three function in it.
public function update():void
{
A(); \Dispatches a event with Remote Call
[code].......
is it possible to write a function to move an object and then call that function on a clip event for instance
function (bounce){
script;
script;
}
and then call it by saying
on(mouseOver){
this.bounce;
}
is it possible to store a list of params needed for a function in an array and then use that in a funciton call?
[Code]...
or something like that?? Prob have to iterate the array but how do i get the params into the function call? Is this even possible?
How create baseurl function in flash and how i call that function in button script
View 1 RepliesI have this code but I cannot work out how to fill in function parameters based on an array and it's length, see line 7
[AS]
import com.robertpenner.easing.Cubic;
MovieClip.prototype.framesTimeout = function(func:Function, frames:Number, args:Array) {
[code]....
Is it possible to call a function and fill in the parameters based on an array and it's length?
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?
I'm using this code to call a actionscript 3 function through javascript
[URL}
and I want to call the acrionscript 3 function from a javascript function, but not on a button action.
actionscript code:
//call to javascript
ExternalInterface.call("sendToJavaScript");
//call from javascript
[Code]....
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.
[Code]....
var speed:int = 4;
addEventListener(Event.ENTER_FRAME,MoveRight);
function MoveRight(event:Event):void{
[code]......
How could i call the same function within a function AND when listening for an event?
would something likt this:
[Code]...
I've run into a bit of a snag on this slideshow I'm trying to create. My plan involves adding movie clips from the library by attaching them to an empty movieClip. Then using setInterval and a variable as a counter, it increments in the function. When the number reaches "20" the first movieclip is removed and the next one is displayed. Here is my code:
ActionScript Code:
createEmptyMovieClip("canvas_mc", 1);
canvas_mc._x = 75;[code]....
//How do you bring on the second slide when the first is removed? So, my problem is that I'm thinking that the return value from my function should be 20 but instead I get 0 in the trace statement.My plan was if it equaled 20 to bring the next slide out from the library, thus moving forward with the slideshow.
I added a setinterval function to my slideshow.Prob is when the slideshow reaches the last pic it returns to pic1 goes to pic2,... but after the second loop it starts mixing the wrong pics for the wrong number.I guess I did a mistake in the if statement(if (nextSlideNode == null)...). can someone solve this for me.
See following code below. Also how can I stop this animation. I did something like learinterval(advance); but that did not do the trick.
[Code]...
I have taken variable in one function and want to use that value in another function.
View 2 Replieslet's say I have 3 functions like this.
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.
how can i can call a function only when i enter 1 determineted function?
View 2 RepliesI am trying to create a payment calculator and my final calculation is returning this error code. This is my code...
ActionScript Code:
onEnterFrame = function(){
pay2 = (1+(number3/12));
[code].....
I have a question: How i make (if it's possible to do this) to call a function after another function is finished. I have 4 function:
Code:
function tween1 () {
//some tweens
[code].....
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]....
How can i can call a function only when i enter 1 determineted function?
View 7 Replies