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




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?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 06-16-2006, 12:29 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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!

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>

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

Slideshow Navigation Buttons In AS3
Can anyone help. I want to create the same slideshow that ships with Flash CS3 but in actionscript 3. The one shipped is actionscript 2 and useless if you are creating a project in actionscript 3. I am having particular trouble with how to do a play/pause/stop button. Not sure how to use the timer class.

Help
Christine

Slideshow/screen Navigation
is there a way to make a button navigate to a certain screen? not just nextslide/prevslide

XML Slideshow - Thumbnail Navigation Jog Function
I have adapted an xml slideshow tutorial (see attached zip).

However, instead of the existing scroll function I would like to create up and down buttons that jog the thumbnails + or - 3 thumb images at a time.

Is this a case of creating an on (release) action that tells the slider to advance a specified distance??

Here's the actionscript:


Code:
function loadPhotoXML(filename)
{
PhotoXML.ignoreWhite = true;
PhotoXML.load(filename);
PhotoXML.onLoad = function (success)
{
if (success)
{
PhotoNumber = 0;
RootNode = this.firstChild;
TotalPhotos = RootNode.childNodes.length;
thumbnails = [];
for (i = 0; i < TotalPhotos; i++)
{
thumbnails[i] = RootNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails_fn(i);
} // end of for
showPhoto(PhotoNumber);
} // end if
};
} // End of the function
function showPhoto(PhotoNum)
{
if (PhotoNum == TotalPhotos - 1)
{
next_btn.enabled = false;
}
else
{
next_btn.enabled = true;
} // end else if
if (PhotoNum == 0)
{
previous_btn.enabled = false;
}
else
{
previous_btn.enabled = true;
} // end else if
if (loaded == filesize)
{
var _loc2 = RootNode.childNodes[PhotoNum].attributes.filename;
var _loc3 = RootNode.childNodes[PhotoNum].firstChild.nodeValue;
empty_mc.loadMovie("gallery/images/" + _loc2);
caption_txt.text = _loc3;
} // end if
} // End of the function
function nextImage()
{
if (p < TotalPhotos - 1)
{
PhotoNumber = PhotoNumber + 1;
if (loaded == filesize)
{
empty_mc._alpha = 0;
showPhoto(PhotoNumber);
} // end if
} // end if
} // End of the function
function prevImage()
{
PhotoNumber = PhotoNumber - 1;
showPhoto(PhotoNumber);
} // End of the function
function thumbNailScroller()
{
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 5;
tscroller.onEnterFrame = function ()
{
if (_root._xmouse >= thumbnail_mc._x && _root._xmouse <= thumbnail_mc._x + thumbnail_mc._width)
{
if (_root._ymouse >= hit_right._y - 40 && thumbnail_mc.hitTest(hit_right))
{
thumbnail_mc._y = thumbnail_mc._y - scroll_speed;
}
else if (_root._ymouse <= hit_left._y + 40 && thumbnail_mc.hitTest(hit_left))
{
thumbnail_mc._y = thumbnail_mc._y + scroll_speed;
} // end else if
}
else
{
delete tscroller.onEnterFrame;
} // end else if
};
} // End of the function
function thumbnails_fn(k)
{
thumbnail_mc.createEmptyMovieClip("t" + k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function (target_mc)
{
target_mc._y = hit_left._y + (
eval("thumbnail_mc.t" + k)._height + 8) * k;
target_mc.pictureValue = k;
target_mc.onRelease = function ()
{
PhotoNumber = this.pictureValue - 1;
nextImage();
};
target_mc.onRollOver = function ()
{
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function ()
{
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t" + k);
} // End of the function
p = 0;
var PhotoXML = new XML();
var PhotoNumber;
var TotalPhotos;
var RootNode;
loadPhotoXML("images_SS07.xml");
listen = new Object();
listen.onKeyDown = function ()
{
if (Key.getCode() == 37)
{
prevImage();
}
else if (Key.getCode() == 39)
{
nextImage();
} // end else if
};
this.onEnterFrame = function ()
{
filesize = empty_mc.getBytesTotal();
loaded = empty_mc.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize)
{
preloader.preload_bar._xscale = 100 * loaded / filesize;
}
else
{
preloader._visible = false;
if (empty_mc._alpha < 100)
{
empty_mc._alpha = empty_mc._alpha + 10;
} // end if
} // end else if
};
Key.addListener(listen);
previous_btn.onRelease = function ()
{
prevImage();
};
next_btn.onRelease = function ()
{
nextImage();
};
Thanks

Please Help: Slideshow With Navigation Control With Rollover
Hello--I promise I've done a very thorough search. I've been away from Flash for a while and I'm at a loss. I'm hoping someone will be able to guide me in the right direction.

I'm making a slideshow consisting of 25-33 images. The slideshow needs to "auto-launch,"--begin as soon as the user visits the URL. We will be adding or replacing images in the future, so I need to make something flexible in this regard. I'd like to accomplish the following:

1) Each image will display for a set duration of time (e.g., 2 seconds)
2) At the end of the slideshow, it will return to the first image and cycle through indefinitely.
3) Upon rollover (over an image), the slideshow will pause;

And...
*Only* upon rolling over the image that's currently showing, a navigation control will appear beneath the image, showing:
a) the name of image;
b) where they are in the slideshow [e.g., 1 of 33];
c) previous and next controls; and
d) static text [contact info].

Finally, when one clicks a "close" button or something or another (or, just roll off the "navigation control" area...whichever is easiest and/or more intuitive), the slideshow will resume where it was last paused.

I was working with Kirupa's XML slideshow tutorial, when I (belatedly) realized that one cannot implement rollOver actions using XML. (This is the extent of my familiarity with XML. )

I'm wondering what method I should take to achieve the above criteria--putting each image and description in external swfs that loads one after another, somehow using XML, or keeping the entire slideshow in one big swf, or some other cleaner and smarter method that I'm unable to come up with.

I greatly appreciate your input in advance. I'm at a complete loss at this point, and I'm grateful for any guidance.

Thank you so much!
macgirl

[F8] Glitch In Flash Navigation With Photo Slideshow - HELP
Hello everyone!

Though I'm not a COMPLETE newbie to Flash, I'm currently working on my first major development project for a client using Flash.

The application is a Flash-based photo gallery, and the working movie can be seen here:

http://www.kasia-gawlak.com/testing/gallery

The top level of the movie contains the background and the text at the top of the window. Within that, there is a movie clip which contains the sidebar navigation menu options. When a user clicks an option, the sidebar adjusts and thumbails for each section appear. This movie clip controls the animation where the menu options slide up and down and the thumbnails fade in accordingly.

The thumbnails and the full-sized photos that correspond to each option are each contained in a separate movie clip that allows the user to click a thumbnail and have the full-sized picture appear. The way this works is each full sized picture is displayed in a separate keyframe and clicking on the thumbnail button advances to that frame and then stops, waiting for their next action.

There is also an option for the user to view all the pictures in the category as a slideshow. Clicking this option takes them to a further set of keyframes later in that movie clip's timeline where each frame is on an automatic timer.

If the user chooses "view as slideshow" option, as long as they wait until the slidehsow has finished playing all the way through, everyone works fine. But if they are in the middle of viewing a slideshow and interrupt it by clicking on one of the thumbnails within that category, it will take them to that picture's frame but then automatically advance to the next frame before pausing.

Worse, if they interrupt the slideshow in the middle of playing it by clicking on one of the OTHER categories, after a few seconds the movie automatically reloads from the beginning (including the preloader screen) and gets stuck in some kind of glitch loop where it plays the first few frames and then reloads them over and over again.

Before I added the preloader screen as a separate scene at the beginning of the movie, I didn't notice this issue. It was only after I added the preloader that this became a problem.

Any help, advice or assistance at this stage would be much appreciated. I'm not sure what's causing this problem, and the only solution I can think of at this point is to remove the "view as slideshow" option, which my client is really not keen on.

I'm happy to send over the source .fla file to anyone who thinks they can help.

Slideshow, Hiding Captions And Navigation Until Rollover
Hello, I'm new on this forum. I was relatively familiar with Flash (for a designer...) at one point, but now that I'd been away from it for a while, I've lost my footing.

I'm wondering if someone could point me in the right direction in achieving the below slideshow requirements. I'm just at a loss regarding how I should put this together--putting each image and description in external swfs that loads one after another, somehow using XML, or keeping the entire slideshow in one big swf, or some other cleaner and smarter method that I'm unable to come up with.

I'm making a slideshow consisting of 25-33 images. The slideshow needs to "auto-launch,"--begin as soon as the user visits the URL. We will be adding or replacing images in the future, so I need to make something flexible in this regard. I'd like to accomplish the following:

1) Each image will display for a set duration of time (e.g., 2 seconds)
2) At the end of the slideshow, it will return to the first image and cycle through indefinitely.
3) Upon rollover (over an image), the slideshow will pause;

And...
*Only* upon rolling over the image that's currently showing, a navigation control will appear beneath the image, showing:
a) the name of image;
b) where they are in the slideshow [e.g., 1 of 33];
c) previous and next controls; and
d) static text [contact info].

Finally, when one clicks a "close" button or something or another (or, just rollout of the "navigation control" area...whichever is easiest and/or more intuitive), the slideshow will resume where it was last paused.

I was working with a XML slideshow tutorial, when I (belatedly) realized that one cannot implement rollOver actions using XML. (This is the extent of my familiarity with XML.

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

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

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

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__

[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?

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.

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

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

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.

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

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

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?

[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..

[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

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!

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.

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.

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

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!

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.

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!

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.

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

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

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.

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*

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

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!

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

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

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

Does Flash Have Any Fully Automated Features?
Like reading An Imported Fireworks Page And Suggesting to the user(me) some of its most powerful cool features its noted for, and putting them in to action for me, sorry; I know that sounds lazy, but Im not a programmer, Im just a designer.

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

[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);

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

I Got The Automated Slide Show W/ Xml-also Full Screen Mode
If you would look herehttp://kansaslighting.com/bobs_stuff/FLASH/flash.htm I've cut the slide show down to 3 images and displayed the original images along side so you can compare.....

Why is FlashMX2004 zooming in on the images rather than displaying the full image? The movie and the images are the same size....although I did use a previous fla file w/ the correct action script and modified the display area and swf size.

Also in I.E.7 if I go direct to the swf file, apparently what ever size my browser window is....is the size displayed for the movie. Is there anyway to get rid of the full screen mode? Thanks Cyn

(Upcoming Events) Automated (Date Oriented) Loadmovie
For my website http://www.294air.org/ I have an "Upcoming events" tab on the side. I have external swf's loadmovie into the tab on the side and than the user can click and see the events, I would like to make it so that I do not need to edit the tab on the side everytime I want to add an event.

the external swf's are named after the date E.G. if the date were January 2, 2009 it would be named "20090102.swf"

Is there a way to make them automatically load if the date were less than 31 days away from the current date?

Can I Tweak This Photo Gallery Script Into An Automated Slide Show?
I downloaded this cool code that was written to used as a photo gallery, works really well too.

What I would like to do it is use it as an automated slide show. I'd like to add this in my time like so when it comes time to run, it just starts fading the images in and out without having to press a button. Eventually, I wanto have four of these photo objects on the screen automatically presenting a large number of images at the same time.

It know how to create buttons to make it go forward or backward but, I don't know the code to make this run on its own without a button prompting it to go forward.

Any help would be greatly appreciated!

Thanks!
Stephen

This is the gallery code:

//Code written by sbeener (suprabeener)
/*
i wrote this code, but you can use and abuse it however you like.
the methods are defined in the order which they occur to make it
easier to understand.
*/
// variables ------------------------------------------
// put the path to your pics here, include the slashes (ie. "pics/")
// leave it blank if they're in the same directory
this.pathToPics = "";
// fill this array with your pics
this.pArray = ["small8-05-1.jpg", "small8-05-2.jpg", "small8-05-3.jpg", "small8-05-4.jpg", "small8-05-5.jpg", "small8-05-6.jpg", "small8-05-7.jpg", "small8-05-8.jpg", "small8-05-9.jpg", "small8-05-10.jpg","small8-05-11.jpg","small12-22-05-12.jpg","small12-22-05-13.jpg","small12-22-05-14.jpg","small12-22-05-15.jpg","small12-22-05-16.jpg","small12-22-05-17.jpg","small12-22-05-18.jpg","smallCommonEntrance-19.jpg"];
this.fadeSpeed = 50;
this.pIndex = 0;
// MovieClip methods ----------------------------------
// d=direction; should 1 or -1 but can be any number
//loads an image automatically when you run animation
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
this.pIndex = (this.pIndex+d)%this.pArray.length;
if (this.pIndex<0) {
this.pIndex += this.pArray.length;
}
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
MovieClip.prototype.loadPhoto = function() {
// specify the movieclip to load images into
var p = _root.photo;
//------------------------------------------
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha<100-this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
this.onEnterFrame = null;
}
};
// Actions -----------------------------------------
// these aren't necessary, just an example implementation
this.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
this.changePhoto(-1);
} else if (Key.getCode() == Key.RIGHT) {
this.changePhoto(1);
}
};
Key.addListener(this);

Fixing Dubbelclick, But Keeping Automated Download Of Flash Player If Not Installed..
Hello i have a problem with a certain website. I wanted to solve the click to activate problem in internet explorer. I've done this with the use of the tutorial on kirupa and it works fine now. However the problem is that not all computers have installed flash player. When you let flash publish a html-file i recieve the following code, which includes a automated link to download flash player if not installed yet:


Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Lion</title>
</head>
<body bgcolor="#f5ffee">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub...ersion=8,0,0,0" width="800" height="640" id="Lion" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Lion.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#f5ffee" /><embed src="Lion.swf" quality="high" bgcolor="#f5ffee" width="800" height="640" name="Lion" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
From this code I think the following is responsible for the automated download, however i'm not completely sure about this:


Code:

codebase="http://fpdownload.macromedia.com/pub...ersion=8,0,0,0"
The output generated with the tutorial to solve the "click to activate" problem is as following:


Code:

<script type="text/javascript" src="flashobject.js"></script>
<center><div id="flashcontent" style="width: 800px; height: 640px"></div><center>
<script type="text/javascript">
var fo = new FlashObject("http://www.massagepraktijkhands.nl/Hands.swf", "animationName", "800", "640", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>
The question now is: Where must I put the code for the downloadling for flash player?

This is a very serious problem because some people now dont see the site, and might think the site is not online. So if any knows how I can solve this problem, i'm very happy

thanks in advance...

Copyright © 2005-08 www.BigResource.com, All rights reserved