Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Automated Function Execution


hi-

is there anyway to run a function every preset number of sections (e.g 20)

i know i could do it using a timeline but i want to keep the file size down as its for a client.

many thanks in advanced,

dom




FlashKit > Flash Help > Flash MX
Posted on: 07-30-2004, 09:53 AM


View Complete Forum Thread with Replies

Sponsored Links:

How To Control Execution Of Function
I have this funtion which I want to have some control over depending on input.

Like if input is 2 it should execute two time and if input is 3 than three times.

Can someone please guide me how I can do that.

Thanks




this.onMouseDown=function(){
.....................

....................

...................

}

View Replies !    View Related
Problem With Function After 1 Execution
I have a site that is controlled bij arrow keys. No Mouse. The first time it works perfectly. Then you hit save and it restarts all over. Then the navigation skips when ik use arrow keys. this is the code for navigation:
code:
var velden:Array = new Array(anaam_txt, vnaam_txt, straat_txt, nr_txt, pc_txt, plaats_txt, email_txt, v1_ja, v2_ja, v3_ja, submit);
var selectionCounter:Number = 0;
Selection.setFocus(velden[selectionCounter]);
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(Key.DOWN) && selectionCounter<10) {
selectionCounter++;
Selection.setFocus(velden[selectionCounter]);
} else if (Key.isDown(Key.UP) && selectionCounter>0) {
selectionCounter--;
Selection.setFocus(velden[selectionCounter]);
}
};
Key.addListener(keyListener);

Any Ideas..
thank you..
Seba

View Replies !    View Related
How To Control Execution Of Function
I have this funtion which I want to have some control over depending on input.

Like if input is 2 it should execute two time and if input is 3 than three times.

Can someone please guide me how I can do that.

Thanks




this.onMouseDown=function(){
.....................

....................

...................

}

View Replies !    View Related
Stopping Execution Of A Function?
This is a stupid question I know. But how do you stop the execution of a function?

View Replies !    View Related
Function Execution Order
Ok, a simple situation: say I have five fairly complicated functions on one frame. I define all my functions, what they do, etc. After all that, I call all five functions in a row like

functionOne();
functionTwo();
functionThree();
etc

so that they all run. Now my question is does the first one start running then the second one starts running whether the first is complete or not, OR does the first function run, complete, and then the second function run, complete, and then the third function run, complete, and so forth? Does it execute all the functions at about the same time or does it process one function at a time before moving on to the next?

Any help would be appreciated. Thanks.

View Replies !    View Related
Delaying A Function Or The Execution Of A Script
Hi,

Is it possible to delay the execution of a function in actioncscript?

For example, I have an "on (release) gotoandStop" function placed on a button. I want to delay the execution of the command so that there is a few second delay between the release and the action...

thanks

p.

View Replies !    View Related
Function Fails To Work After One Execution
Hi,
I have made a flash file that doesn't need mouse to use. This is the code for the movement by arrow keys:
[as]
var velden:Array = new Array(anaam_txt, vnaam_txt, straat_txt, nr_txt, pc_txt, plaats_txt, email_txt, v1_ja, v2_ja, v3_ja, submit);
var selectionCounter:Number = 0;
Selection.setFocus(velden[selectionCounter]);
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(Key.DOWN) && selectionCounter<10) {
selectionCounter++;
Selection.setFocus(velden[selectionCounter]);
} else if (Key.isDown(Key.UP) && selectionCounter>0) {
selectionCounter--;
Selection.setFocus(velden[selectionCounter]);
}
};
Key.addListener(keyListener);
[/as]
However the first time it works perfectly.. the second time he skips when navigating trough my textfields.. I tried deleting some vars if clicked on OK but it doens't help? HELP! I need to put this online by tommorow!!
I tried delteing this
[as]
delete keyListener;
delete focusListener;
delete selectionCounter;
delete velden;
[/as]
Thnx
Seba

PS Complete code attached







Attach Code

stop();
txtkader1_mc._visible = false;
txtkader2_mc._visible = false;
txtkader3_mc._visible = false;
a1._visible = false;
a2._visible = false;
a3._visible = false;
a4._visible = false;
/*anaam_txt.tabIndex = 1;
vnaam_txt.tabIndex = 2;
straat_txt.tabIndex = 3;
nr_txt.tabIndex = 4;
pc_txt.tabIndex = 5;
plaats_txt.tabIndex = 6;
email_txt.tabIndex = 7;
//v1_nee.tabIndex = 8;
v1_ja.tabIndex = 8;
//v2_nee.tabIndex = 10;
v2_ja.tabIndex = 9;
//v3_nee.tabIndex = 12;
v3_ja.tabIndex = 10;
//v4_nee.tabIndex = 14;
//v4_ja.tabIndex = 11;
submit.tabIndex = 11;*/
stat = "Gebruik de pijltjes om te navigeren!<br>Utiliser les flêches pour naviguer!";


border1 = 0x000000;
border2 = 0xFF0000;
bgKleur1 = 0xFFFFFF;
bgKleur2 = 0xFFFFFF;
fontKleur1 = 0x000000;
fontKleur2 = 0x000000;

function kleurkill(wat) {
wat.onKillFocus = function() {
wat.borderColor = border1;
wat.backgroundColor = bgKleur1;
wat.textColor = fontKleur1;
};
}

function kleurset(wat1) {
wat1.onSetFocus = function() {
wat1.borderColor = border2;
wat1.backgroundColor = bgKleur2;
wat1.textColor = fontKleur2;
};
}
v1_ja.setStyle("themeColor","haloOrange");
v2_ja.setStyle("themeColor","haloOrange");
v3_ja.setStyle("themeColor","haloOrange");
v4_ja.setStyle("themeColor","haloOrange");

submit.setRGB(0xFF0000);
kleurkill(anaam_txt);
kleurset(anaam_txt);
kleurkill(vnaam_txt);
kleurset(vnaam_txt);
kleurkill(straat_txt);
kleurset(straat_txt);
kleurkill(nr_txt);
kleurset(nr_txt);
kleurkill(pc_txt);
kleurset(pc_txt);
kleurkill(plaats_txt);
kleurset(plaats_txt);
kleurkill(email_txt);
kleurset(email_txt);

var velden:Array = new Array(anaam_txt, vnaam_txt, straat_txt, nr_txt, pc_txt, plaats_txt, email_txt, v1_ja, v2_ja, v3_ja, submit);
var selectionCounter:Number = 0;
Selection.setFocus(velden[selectionCounter]);
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(Key.DOWN) && selectionCounter<10) {
selectionCounter++;
Selection.setFocus(velden[selectionCounter]);
} else if (Key.isDown(Key.UP) && selectionCounter>0) {
selectionCounter--;
Selection.setFocus(velden[selectionCounter]);
}
};
Key.addListener(keyListener);

var focusListener:Object = new Object();
focusListener.onSetFocus = function(oudeFocus, nieuweFocus) {
trace("oudeFocus: "+oudeFocus+", "+"nieuweFocus :"+nieuweFocus);
if (nieuweFocus == submit) {
stat = "Druk op spatiebalk om te bewaren.<br><i>Presser barre d'espacement pour sauvegarder.</i>";
txtkader1_mc._visible = false;
txtkader2_mc._visible = false;
txtkader3_mc._visible = false;
} else {
if (nieuweFocus == null) {
stat = "U kan enkel nog naar boven voor wijzigingen.<br><i>Vous ppuvez seulement monter avec les touches flêches pour changer.</i>";
} else {
stat = "Gebruik de pijltjes om te navigeren!<br><i>Utiliser les flêches pour naviguer!</i>";
}
if (nieuweFocus == v1_ja) {
stat = "Druk op spatiebalk om aan te vinken<br><i>Presser barre d'espacement pour marquer.</i>";
txtkader1_mc._visible = true;
} else {
txtkader1_mc._visible = false;
}
if (nieuweFocus == v2_ja) {
stat = "Druk op spatiebalk om aan te vinken<br><i>Presser barre d'espacement pour marquer.</i>";
txtkader2_mc._visible = true;
} else {
txtkader2_mc._visible = false;
}
if (nieuweFocus == v3_ja) {
stat = "Druk op spatiebalk om aan te vinken<br><i>Presser barre d'espacement pour marquer.</i>";
txtkader3_mc._visible = true;
} else {
txtkader3_mc._visible = false;
}
}
};
Selection.addListener(focusListener);


submit.onPress = function() {
var emailadres:String = email;
var v1:String;
var v2:String;
var v3:String;
var v4:String;
if (vnaam == null || vnaam == "") {
stat = "Geef uw voornaam in aub.<br><i>Votre prénom svp?</i>";
} else if (anaam == null || anaam == "") {
stat = "Geef uw achternaam in aub.<br>Votre nom svp?";
} else if (straat == null || straat == "") {
stat = "Geef uw straat in aub.<br>Votre rue svp?";
} else if (nr == null || nr == "") {
stat = "Geef uw straatnr in aub.<br>Votre numéro de rue svp?";
} else if (postcode == null || postcode == "") {
stat = "Geef uw postcode in aub.<br>Votre code postal svp?";
} else if (plaats == null || plaats == "") {
stat = "Geef uw woonplaats in aub.<br>Votre ville svp?";
} else if ((emailadres.indexOf('@') == -1) || (emailadres.indexOf('.') == -1)) {
stat = "Geef uw emailadres in aub.<br>Votre Email svp?";
} else {
if (v1_ja.selected == true) {
a1._visible = false;
a1.text = "ja";
var anta:String = a1.text;
} else {
a1._visible = false;
a1.text = "nee";
var anta:String = a1.text;
}
if (v2_ja.selected == true) {
a2._visible = false;
a2.text = "ja";
var antb:String = a2.text;
} else {
a2._visible = false;
a2.text = "nee";
var antb:String = a2.text;
}
if (v3_ja.selected == true) {
a3._visible = false;
a3.text = "ja";
var antc:String = a3.text;
} else {
a3._visible = false;
a3.text = "nee";
var antc:String = a3.text;
}
if (v4_ja.selected == true) {
a4._visible = false;
a4.text = "ja";
var antd:String = a4.text;
} else {
a4._visible = false;
a4.text = "nee";
var antd:String = a4.text;
}
//loadVariablesNum("processForm.asp",0,"post");
delete keyListener;
delete focusListener;
delete selectionCounter;
delete velden;
anaam = "";
vnaam = "";
email = "";
straat = "";
nr = "";
postcode = "";
plaats = "";
v1_nee.selected = true;
v1_ja.selected = false;
v2_nee.selected = true;
v2_ja.selected = false;
v3_nee.selected = true;
v3_ja.selected = false;
v4_nee.selected = true;
v4_ja.selected = false;
gotoAndPlay(14);
}
};
Selection.setFocus("anaam_txt");
//var lengte:Number = anaam_txt.text.length;
//Selection.setSelection(lengte,lengte);

View Replies !    View Related
SetInterval: Execution Scope Of A Function
This is a setInterval question. Let's say I have this:

Code:
class{
functionA{
var variable=1;
var nInterval = setInterval(functionB, 1000);
}
functionB{
trace(variable);
variable = 3;
trace(variable);
clearInterval(nInterval);
}
}
Clearly, this won't work as it is because functionB needs to be executed from within functionA, having access to functionA's variables.

Is there a way to get this done?

View Replies !    View Related
Order Of Execution Nested Function?
Hi

whats the order of execution of a nested function? Does all the code in the nested function, always completely execute before the code after the nested function? Like my experiment below.


ActionScript Code:
function one() {
    trace("one");
    trace("one");
    two();
    trace("one");
    trace("one");
}
 
function two() {
    trace("two");
    trace("two");
    trace("two");
}
 
one();


the output of the above is

one
one
two
two
two
one
one

thanks

View Replies !    View Related
Is It Possible To Create A Wait Function Pausing AS Execution?
What the title says. Sometimes AS just doesn't register when two function calls or loadMovies or whatnot are executed in quick succession. This is my problem right now - I'm calling loadMovie and in the very next code line checking how much has loaded. The flash player doesn't realize so soon that it has in fact been told to load the movie, so it reports getBytesTotal() as nada. It's not a big deal to circumvent this problem so I'm not asking for your help in that respect - I can fix that. However, I would love if I could just tell the AS interpreter to pause 10ms at will. It would just be handy (even though it could prove somewhat unstable in this very scenario).

I tried this code:

ActionScript Code:
function wait(time) {
    delayInterval = setInterval(delayFunc, time);
    function delayFunc() {
        clearInterval(delayInterval);
        return;
    }
}

but the AS interpreter keeps executing the subsequent code lines while waiting for the interval. Is there a way of "trapping" the interpreter inside a function and making this work?

Any advice would be most welcome

Terpentine

View Replies !    View Related
How Can A Listener Function Broadcast That It Has Completed Execution
I have a Listener function that executes on ENTER_FRAME, but I want two other methods to follow when this function completes. If I call these methods after the removeEventListener which is inside the Listener it works, but then I can't
access the variables that have been changed inside these methods. Do I need to create a custom event?

View Replies !    View Related
[F8] Pausing Execution Until A Newly Called Function Completes?
I'm using the Tween class a lot and am really enamored with onMotionFinished.

Anyway, I'm curious if there's something like this for other functions. The only way I know of right now is to execute the second function at the end of the first, but there are times when I'd want to pause in the middle of a function's execution and call another, then continue executing the first once the second was completed. I suppose I could do a setInterval, but this would always be a fixed amount of time.

View Replies !    View Related
Error Function: Display Message And Stop Further Execution
How can I stop execution of Actionscript but without exiting the whole application (an AIR app)?

So far I have this function:


ActionScript Code:
function as_error(msg, obj_internal_info = false) {
    var msgHTML = "<b><font color="FF0000">Sorry, an error occured:</font><br><br>"+ msg +"</b>";
    if (typeof obj_internal_info == "object") {
        msgHTML += "<br><br>Extra info:";
        for (var i in obj_internal_info) {
            msgHTML += "<br>"+ i +" : "+ obj_internal_info[i];
        }
    }
    show_pagewide_msg(false, msgHTML);
    throw new Error("An error occured.");
}

This shows a nice error message to the user and then I want it to stop executing any further actionscript until the next event triggers some code. I have managed to make this kind of function in both Javascript and PHP (PHP was simple - as always!) so I hope it can be done in AS as well.

The above example almost works, but I would like to not have it come up with the standard dialog box saying "An ActionScript error has occured: ...blablabla...". I would even like to be able to control if script should continue or not.

How would I do this in AS?

Allan

View Replies !    View Related
Authorize Plugin Notify, On Connection Timeout + Remote Function Execution
When a client application stops the stream I normally get an E_STOP notify. But if a client dies due to network outage or the client computer dies (or something other unforseen that doesnt give a FIN/RST on the TCP connection), then it seems there is no way to get a notification about this..

Or have I missed something?
If not, that is a big feature request for us, and probably other people developing pay-per-view-stuff..

Also, is there some way to catch remote executions? Ie if my client calls a function on my SSAS, can I catch that invocation in my authorize module somehow? (Or in some other way get trigger some code in my plugin, when a client calls a function)

Is there somewhere on the adobe site one can submit feature requests to FMIS?

Thanks!

View Replies !    View Related
Automated Man Help
Hi guys,
Was wondering if someone could help? I have created a character that I move around with cursor keys, I have also created a character (an eventual enemy) that walks on the spot, plus I have created "hit test" barriers that prevent my character and hopefully this enemy from walking through. What I have got desperately stuck on is how to get this enemy moving on his own. What I want him to do is walk either up/down/left or right and if he hits a barrier to simply choose a new direction. Does anybody have any idea how to do this or can anyone point me in a direction of a tutorial?I've been on it a week and have found a couple of tutorials but they are all based on snapping charcters to grids like pac man or moving on squares like chess. Whereas the character I have got moving with the cursor keys uses code something like this
onClipEvent (keyDown)
if (Key.isDown(Key.Right)) {
_root.walk.gotoAndStop(4);
_root.walkright.play;

Thanks in advance

View Replies !    View Related
Automated Emailer.
Hi all,

Can someone tell me how to go about setting up an automated emailer. Task manager only allows .exe files. If I set the manager to open a ASP page. It opens it in InterDev rather than executing the script. Am I making it harder than it needs to be or is there an easier way???

Thanks in advance.

Quester

View Replies !    View Related
Automated Printing
I would like to be able to, with the click of a button, allow the user to print the screen they are looking at. Ideally, I would like to have that button to trigger the print screen (control+p) function. I have tried the print command from within flash and the labelling of each frame with #p. That worked to allow the user to print the screens that I predetermine. Now I would like the user to print the other screens 1 by 1.

Thanks,

Eric

View Replies !    View Related
Automated Scripts: Possible?
I want to build a 3D engine based off of the Kirupa tutorials, but expand it to include more complex things like matrix concatenation. To keep it running fast, I want to interconnect alot of the architecture so that it "runs itself" by using listeners.

Is something like this possible or even wise? It would be (perhaps) much faster and more efficient than using for() loops.

Any insight would be appreciated.
+Q__

View Replies !    View Related
[F8] Automated Transitions?
I have a Flash File that automates graphics & text to an audio file. Is there a way I can automate a fade in and fade out to use on symbols that syncs with certain places in the audio file? Currently Im doing the fades manually... a very time consuming process. I assume there must be an easier way. Any ideas?

View Replies !    View Related
AS And Automated FLV Imports
Is there a way to add a .flv to the stage and play it with pure actionscript?None of this Window->Library and then make a new video and then drag the video to the stage. Just pure... acitionscript. this would really help because I am trying to make program that is completely automated and clicking and dragging is just not going to cut it. not to mention its for my animation class and I might get a better grade if my code is a bit more technical. Thanks in advance.

View Replies !    View Related
Automated Gallery
So the project I am working on, is for someone who wants an almost self-sufficient web gallery. (My ActionScript background is fairly limited but growing, which lends to my dilema.)

The "client" (if you want to call him that) wants a basic photo gallery, which I know how to do based on the numerous Kirupa tutorials. Actually I've been using the basic structure and source code provided by the XML-Photo Gallery tutorial found on Kirupa's site.

However, the "client" doesn't even want to mess with an XML file to direct the flash photo gallery. He basically wants the Flash movie to look at the files in a specific folder, populate a list based on the file names (names like "01 - Antartica Morning") and even populate a description of the photo to go below it based on the file name. He even wants if possible the flash file to create a thumbnail of the original file without having to create a seperate thumbnail for the larger image.

Basically I showed him the work I did on another site using the Kirupa tutorial of using a flash photo gallery using an XML file to direct the gallery/container to the files, their descriptions and the thumbnails for those files.

He on the other had doesn't want to even have to write up the XML file for each folder. He just wants to give the photo a proper name and then dump it into a folder on the server and let flash do the rest.

So what you do think? Is this possible? Can someone direct me to a tutorial or some genius that knows how to do something like this or that can give me a heads up or point me in the right direction.

Thanks

View Replies !    View Related
Automated Slide Show
Is there a way or a file out there that will import a bunch of photos (all the same size) and place or replace existing image so I can present them like a slide show. Basicaly I have a bunch of jpg's that are all the same size and I want to make a slide show out of them without having to set up all the details.

Mark

View Replies !    View Related
Automated Component Resizing
I am using Flash MX. I have a scrollable personnel listing. When a user clicks on a name, information about that person is displayed in adjacent text fields. Adding new people to the listing has become tedious because the names are displayed in the listing via actionscript. I have to go in and add another line to the text field and then fidgit with it until I can shrink it back to the scrollable size. If I imported an actionscript file that contained all the necessary code, is there some way I could use code that would automatically resize the textbox to fit the number of entries? If so, I could just edit the actionscript file and not have to worry about continually reworking the whole flash file.

Thanks.

View Replies !    View Related
Automated Password Email Bot
Hi all....

I'm not really sure if this is the right forum to post this type of question, but here goes:
I want to create the ability for users to join my flashsite/forum by submitting their email-address via an inputfield. Then their email-address is sent to a serverside php script, which generates a 6 digit password and sends the password back to the individual users provided email-address. Then the user will use this password to login to the forum. This, of course, means that the php script also has to save the generated password into some sort of .txt document, so that when the user logs in, after the registration process, the password provided is held/checked against the registered password in the .txt document !? I'd guess that this be a quite "easy" forward process to create such a script...? I mean; There must be some sort of standardized way to do this....?

Lookin' forward to reading your responses

View Replies !    View Related
Automated Flash Export
I need to open up and publish as .jpg's around 1300 flash files is there any 'batch' way to do this?

View Replies !    View Related
[MX04] Looking For An Automated Process .doc To .fla
I work making courseware graphics, and the course my team is currently working on is heavily dependent on references to specific areas of multiple Word documents, which for the other artists om my team to use, need to be available as either a mc or gfx object in a fla. I have been looking for a while on a way to automate the tedious task of creating each page of each document, and have since been unsuccessful. Has anyone experienced this dilemma and found a solution? I have looked into flash paper and the like but the other graphic artists need something that they can see to use and animate per the graphic requirements. Any help is appreciated..

View Replies !    View Related
[MX] Automated File Detection?
Hi,

I've been thinking about a project to automatically load pictures from a directory on my website.

I was wondering if there is an ActionScript way of checking files in a directory. I was thinking about counting the files and then looping over each to import as MovieClips.

Is it possible to do this without having to declare them all in either the code or a Var file?

Thanks

Neil

View Replies !    View Related
Askmen.com Automated Slideshow
Hello all,

I'd love to create an automated slideshow like the one on the front page of http://askmen.com. I'd like it to have ALL of the bells and whistles that the one on the site does. Can anyone steer me in the right direction as to how I could accomplish this? I've tried online tutorials before, but they always omit some important detail which leaves me scratching my head for hours, so if you know of some good (and RELEVANT) ones, it would be greatly appreciated if you would post them.

Thanks!

View Replies !    View Related
Automated NextFrame Button
Hello

I'm new to flash and to this forum as well.

Currently I'm working on a flash project, where I have an image sequence imported into flash, and I want to add a button that can be held down for loading the next images at a given fps.

My idea is, that a button should be made something like having a loop that counts a number of frames per second (needs to be adjustable.)

The loop then needs to be called when holding down the button and stopped as soon as the button is realeased.

It's simply the script im looking for, that can be assigned to a button like this - can anybody help me out here?

Thanks in advance!

View Replies !    View Related
Automated Playlist Generator
Hi, I have searched everwhere on the internet for a solution, with no luck, so I am hoping that someone can point me in the right direction.

I am trying to make a kind of interactive tv. I have eight scenes and each scene has four choices of movie clips.

A user picks one clip from each scene, maybe with check boxes. This generates a playlist which is loaded into a flv player which in turn plays the eight clips in order.

Thanks for any help you can give in advance.

View Replies !    View Related
Automated Playlist Generator
Hi, I have searched everwhere on the internet for a solution, with no luck, so I am hoping that someone can point me in the right direction.

I am trying to make a kind of interactive tv. I have eight scenes and each scene has four choices of movie clips.

A user picks one clip from each scene, maybe with check boxes. This generates a playlist which is loaded into a flv player which in turn plays the eight clips in order.

Thanks for any help you can give in advance.

View Replies !    View Related
Automated Flash Testing?
Can anyone recommend any tools for automated testing of Flash applications at the system level; already using ASUnit for unit tests.

Thanks,
Sean

View Replies !    View Related
Automated Growing Lines
How does one create a line that appears to be growing? I want to use the same concept as found here:

http://www.kirupa.com/lab/fractal_tree.htm


However, I would like to use it to create a simple line that appears to be growing. How would I go about doing this? Please be very indepth as I am a beginner..


Thanks in advance!

View Replies !    View Related
Automated Audio Cuepoints?
Hello all,

I'm trying to determine if there is any way that flash MX/2004/2004 Pro can do the following:

-Take 1 long audio file that has specific cuepoints embedded in it (in some fashion)
-Do some specific action at each cuepoint

What I am looking for, ideally, is the ability to bring 1 audio file (possibly up to an hour long) into flash and have it load specific jpeg images at each defined cuepoint, without having to do lots of hand work and hard coding, or extensive chopping up of audio segments.

Any thoughts or ideas?

Thanks everyone.

View Replies !    View Related
Automated Growing Lines
How does one create a line that appears to be growing? I want to use the same concept as found here:

http://www.kirupa.com/lab/fractal_tree.htm


However, I would like to use it to create a simple line that appears to be growing. How would I go about doing this? Please be very indepth as I am a beginner..


Thanks in advance!

View Replies !    View Related
Automated Audio Cuepoints?
Hello all,

I'm trying to determine if there is any way that flash MX/2004/2004 Pro can do the following:

-Take 1 long audio file that has specific cuepoints embedded in it (in some fashion)
-Do some specific action at each cuepoint

What I am looking for, ideally, is the ability to bring 1 audio file (possibly up to an hour long) into flash and have it load specific jpeg images at each defined cuepoint, without having to do lots of hand work and hard coding, or extensive chopping up of audio segments.

Any thoughts or ideas?

Thanks everyone.

View Replies !    View Related
Help With Automated Typing Script
Hey there all

does anyone know if this is possible.

I'm making 'dummy' websites and computer graphics for a children's tv drama and in one scene the main character is sitting typing her homework on her computer.

I'm creating all the stuff in flash as it's so versatile. And with this homework thing, I want the main character to be able to type anything on the keyboard, but for her homework to type out letter by letter on the screen.

Is there a way of doing something like this with actionscript. I don't want to animate it as i can't guarantee my timing will be right. I have all the text needed to appear on screen [a title and two paragraphs] - just need some tips on how to activate each letter etc by pressing any key on the keyboard.

can anyone point me in the right direction.

cheers

e

View Replies !    View Related
Help For Automated Testing Of Flash In A Web Page, Please
Hi,

I am a QA engineer tasked with testing a webpage which uses Flash components, and, more importantly, creating automated tests for this page. Based on searches of the web and of various SW QA forums, I know that there is no commercially available tool that is going to do what I need to do this.

My question is, is it possible to create a Flash component that can interact with the components on my page (push buttons, enter text) and display state information in some way that my automation tools *can* interact with (even if that is just a CLI)?

Thanks for any help you can offer on this!
Denise

View Replies !    View Related
Automated Interactions Between Video Sequences
Hello all. I was recently reading the Flash Video Primer PDF and it said:

"Flash Mx professional also includes a set of behaviors that can be used in conjunction with media components to create automated interactions between video sequences and slides in a project."

Does anyone know where I can find some tutorials on this? I would appreciate it. Thanks much.

View Replies !    View Related
Can Reloading The Components Panel Be Automated?
The general process for compiling components seems pretty kludgy in MX 2004... I was wondering if anyone else out there who does a lot of component development might have caught something I missed?

I've managed to use a JSFL to compile and export all the SWC's I'm developing, and then switch to a document where I can test them out. However, I still have to manually reload the components panel, and drag each modified component to the stage, verifying that I want to replace it. Has anybody figured out a way to automate these last couple steps? I couldn't find anything in the JSFL manual... I can't believe that Macromedia's development team would actually have put up with this kind of nonsense when they were developing the V2 components... *sigh*

View Replies !    View Related
Automated Page Turner Effect
All I want to do is play a swf were it will automatically turn from one page to the next without having to click a button or drag the page. I need to include this in an animation so it needs to run smoothly. Can this be done. If so could someone please help me as I am new at this. Any fla files or tutorials would be much welcome.

Thanks

View Replies !    View Related
Create Automated List With External .txt
I searched and couldnt find the answer to this problem so forgive me if it has been posted before. I have created an automated list:


ActionScript Code:
var buttonNames:Array = ["name1", "name2", "name3"];
dropDownList_mc.item_mc._visible = false;
function populateList () {
    var spacing:Number = dropDownList_mc.item_mc._height + 2;
    var numberOfButtons:Number = buttonNames.length;
    var i:Number = -1;
    while (++i < numberOfButtons) {
        var name:String = "item" + i;
        dropDownList_mc.item_mc.duplicateMovieClip (name, i);
        dropDownList_mc[name].itemName_txt.text = buttonNames[i];
        dropDownList_mc[name]._x = 0;
        dropDownList_mc[name]._y = i * spacing;
        dropDownList_mc[name].pictureID = i + 1;
        dropDownList_mc[name].list_btn.onRelease = function () {
            itemClicked (this._parent.pictureID);
        };
    }
}
dropDownList_mc.menu_btn.onRelease = function () {
    populateList ();
};

The list generates perfectly with the names I have manualy entered here:

ActionScript Code:
var buttonNames:Array = ["name1", "name2", "name3"];

The problem is I want to load the names dynamically through a .txt file. I know how to pull in the .txt file, and I am doing that with this script:

ActionScript Code:
var externalData:LoadVars = new LoadVars();

externalData.onLoad = function(){
    owed_txt.text = externalData.hurricane;
}
externalData.load("names.txt");

I cant get the list I pull in to load in the automated list I created. Please help me, I am stuck. Thanks!

View Replies !    View Related
Automated UI Testing Of Flash Applications
Hi,

I am working on functional testing of a Flash Application. I want to develop an automated test suite to test the UI and functionality of this application. Presently none of the automation tool support Flash automation. I tried a tool called AutoTestFlash, however it does not work with Flash application embedded in a web page. Is there any other way of automating functional/UI testing of Flash Applications? Are there any libraries in ActionScript for testing UI? Please advice.

Thanks in advance,
Unmesh

View Replies !    View Related
Automated But Personalized Xmas Cards
hi,

My Boss wants (isn't that all they every do?):

A Xmas card, that can be sent to our sales staff which they then can in turn customise with their personal message for their personal customers. So the actiual card with its animation, etc is the same for everyone, but the message is different for every card, and customer. Sales perosn X might write on his: 'Happy holidays, Bob, Hope your skiing is fantastic in Banf! X', the next one might write 'Seasons greetings, from your most dedicated sales rep!'

What we need to send to the sales people must be easy to fill in and handle. What goes out to the final customer must be only one link.

Has anyone done something similar before? I can't really think of anything immediate that doesn't involve at least some server side scripting, etc. (which I would not know where to start yet)

At the moment we have the ecard set up so it uses loadvars to load the content of a text file to fill it with a message, but I presume we'd have to start dealing with XML, databases and automated sending back of links?

Might there be a way of sending the text along as part of the link to the xmas card? But that doesn't sound terribly secure or elegant?

ANY ideas (even to say that it is impossible, or a very bad idea) very welcome! (Well,....)

Thanks!

Nik C

View Replies !    View Related
Problem With Navigation And Automated Slideshow Xml
Hi can anyone help us out.

I have done something similar to the photo and xml tutorial on Kirupa. And have found when making the gallery automatic and addingnavigation as well the system collapses and really messes up.

I would think that the setinterval is being messaged up in some way. But cannot see how, as p still have a value despite a mouse click or not.

Anyone?

View Replies !    View Related
Flash, Explorer, Automated Activation
hi, guys, I am back again

could not find a way to describe the topic, as I could not word the wuestion so that our forum could find and answer.

problem is very easy.

if you rememmber, whenever you see the flash in the explorer window, there is like a border around it.

unles you click ONCE inside the flash object is not activated.

about 2-3 months ago I have see a solution for that, but as we all do misplaced it...

it involed something like placing a javascript object or so... please suggest further actions.

thanks

View Replies !    View Related
Preloading Images - Automated Slideshow
Hi, can anyone help me here. I've created a slideshow that runs off a setInterval. Basically I just want the next jpg in the array to load whilst the current slide is on the screen for the specified interval.

///I also tried using this piece of code:
_root.slideTween_mc.t1_mc.loadMovie (pathToPics + counter + ".jpg" || + ".swf", 20);
//not sure why this doesn't work. Any ideas?

//Here's the code
///////////////////////
<code>
_global.counter = 1;
_global.pathToPics = "HTemplates/";
//AUTOMATED SLIDESSHOW//PT1
automated_btn.toggled = true;
automated_btn.onRelease = function(){
if (this.toggled) {
trace(toggleActive)
timer = setInterval(auto, 2500);
} else {
trace(untoggled)
clearInterval(timer);
}
}
//AUTOMATED SLIDESSHOW PT2
function auto(){
this.toggled = false;
if (this.toggled) {
_root.slideTween_mc.gotoAndPlay("next");
} else {
_root.slideTween_mc.gotoAndPlay("nexit");
//
if (counter < 20) {
counter ++;
} else {
counter -= 19;
}
}
}
//Next pic //It would be recommended to use a preloader before the animation can run!!
function changePic(){
_root.slideTween_mc.t1_mc.loadMovie (pathToPics + counter + ".jpg" || + ".swf", 20);
//indicate the number of the slide
screenCounter_txt.text = counter;
}
</code>

View Replies !    View Related
HELP Photo Gallery And Automated Slideshow?
IS there a tutorial on how to create both a photo gallery where there are "next" and previous buttons to manually shift through the photos, but at the same time have a play button to run a slideshow?

thanks

View Replies !    View Related
Automated Method Of Creating/assembling A PNG Sequence?
Hello

I'm looking to make my life a little easier --

I am importing sequences of PNG files into Flash. Each PNG is a new keyframe, strung together in sequence, and exported as a Quicktime. To assemble these, I have been importing all of the PNG files for a sequence into my Library, and then, keyframe by keyframe, dragging each one to the stage. This works, but takes a long time.

Is there a method or a script anyone knows of that I can import all the PNGs to the stage in sequence, where each PNG file gets its own sequential keyframe? Basically, is there any way to automate what I am doing manually?

This would be a HUGE time saver.

Thanks for any ideas or thoughts!
steve

View Replies !    View Related
[F8] Show Automated PlayheadTime On Flash Movie
Code that I found.

1. I need to modify this code but have no idea where to start. First I need this code to update every half second. As it is currently written it only updates when I press a button. I am using it as a running time code for my movie.
2. I also need to be able to display the output to my flash app, it currently only outputs to my output box when testing.


Code:
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.stateChange = function(eventObject:Object):Void {
trace(my_video.state + ": playhead time is: " + my_video.playheadTime);
};
my_video.addEventListener("stateChange", listenerObject);

View Replies !    View Related
Adding An Automated Version Number On Compile
Hi there,

I'm currently working on a Flash based internet application that customers subscribe to. We have been looking into possible ways of adding a version no. to the application at compile time - this way we can track which version people are currently using.

Has anyone got any ideas on how this could be possible? Most things that I have tried change on run-time and we really do need something that will be set in concrete (at least until a developer next compiles a new version).

I'm trying to get away from having to manually add a version number (as most developers will probably forget to change it each time) - keeping it automated would be so much better.

Any suggestions would be great.

cheers

the whippet

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved