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








Tutorial Zip Files?


While we are waiting in great anticipation for Lee's new and improved, I can only imagine in AS 3.0 and Flash CS3 & Flex & WPF & whatever other crazy thing he may be working with, does anyone know where we can go to get the zipped source files of his tutorials until then? The FLV's are great, but sometimes some good old reverse engineering is the best way to learn.

thanks!




General Flash
Posted on: Tue May 15, 2007 8:52 pm


View Complete Forum Thread with Replies

Sponsored Links:

Cannot Use The Fla Files From The Tutorial
Hi,
I am a complete nubie. Last year I discovered a tutorial to create a flash slide show using an external xml file. It might have been kirupa's, but the fla file worked with Flash MX version 6. The tutorial Photo Gallery Using XML and Flash looks similar to the other tutorial.

I lost my .fla file when my hard drive failed as did my back ups. I cannot read the .fla files in the tutorial because I have an earlier version of flash (Flash MX 6). Does anyone know of a product that will allow me to view and save the MX 2004 fla as Flash 6?

Any help would be greatly appreciated.

Thank you.

View Replies !    View Related
Where's The Included Files For This Tutorial?
Where's the included files for this tutorial? Where can I download them?

http://board.flashkit.com/board/show...hreadid=198671

View Replies !    View Related
Using The Tutorial Or Movie Files
Okay, so here's my question. I've been learning Flash 5 for a bit, know all the basics, have made animations, buttons, etc. with no problem. Now, I want to move on to learning how to make navigation, pop-ups, etc.
I had no idea how to use the free files that are offered on here and other sites, so by trial and error I figured out that you had to import the ".fla" text file into the library to use it. What I'm wondering is, what do I do next? To my brain, it's like a horrid puzzle of layers and frames that I don't know what to do with. The way I learn best is to have the complete movie, all in place so's I can take it apart and see how it works. But all I seem to get are the various movie clips, buttons and graphics in the library, and it seems that I'm supposed to put it all together. Does anyone know what I mean? Am I missing something obvious? I'm not dense, I've got good HTML, XHTML, CSS, etc. skills.
How do I use these files?

View Replies !    View Related
Help Downloading Tutorial Files
I'm new to both ActionScript.org and to Macromedia Flash MX. I have been reading the tutorials and attempting to follow their instructions, but would like to download the source (FLA) files to check my work against the tutorials' authors' work.

For some reason, when I attempt to open the source files in Flash MX, an error occurs that states "Unexpected file format." Can anyone offer a reason as to why Flash MX would refuse to open an FLA file?

I appreciate the help!

Matt

View Replies !    View Related
[MX04] Can't Find Tutorial Files
I am attempting to get started with Flash MX 2004. Using the getting started menu I run into a problem almost immediately.


Quote:




browse to <boot drive> Documents and Settings<username>Local SettingApplication Data Macromedia Flash MX 2004<language>ConfigurationHelpPanel HowDoI QuickTasksstart_files and double-click accessibility_start.fla





unfortunately, when following that path, there is no folder called flash MX. All I really need is the accessibility_start.fla file, however it is nowhere on my computer and as of right now I cannot find it on the web either.

Has anybody else had this problem and if so can you tell me where to find the file? If you have it would you be willing to email it to me?

Thanks

View Replies !    View Related
Can't Find Tutorial Files MX 2004
I'm trying to complete the Flash MX Tutorial on the Adobe website but can't seem to find the files that it requires. I have Studio MX 2004 and there is no Tutorials folder in my Macromedia/Flash folder. Does anyone know where I can download them? I'm specifically looking for view1.png, view2.png and view3.png, which are supposed to be located in the Assets folder.

Thanks!

View Replies !    View Related
Flash Tutorial Content Files: Where Are They?
I tried searching the forums about this first, but I kept getting some kind of Cold Fusion-related error...

I'm trying to take advantage of some downtime at work to finally learn how to use Flash. I'm watching the videos on AdobeTV, and the narrator has referred to apparently pre-existing files or folders a couple of times. Specifically, in "Getting Started: 07 Understanding Symbols" video, he refers to a file called "symbols.fla in the Chapter 2 folder".

I can't find this stuff. Anybody know where it is?? I'm using Flash CS4 on a PC (Vista 64-bit).

Thanks

View Replies !    View Related
Transition For Dynamic Files (tutorial)
Hi there,

I used the transition for dynamic files tutorial and it works great.
http://www.kirupa.com/developer/mx/preloader_transition.htm
I only have a problem...
Cause it is dynamic i'm not able to use normal text, bgcolor and scrollable textfields in the external swf's and I want to...
How can I solve that problem??

Thanx a lot!

View Replies !    View Related
Uploading Files Using FileReference Tutorial
I've done the tutorial "Uploading Files using FileReference" , and i think i did all good..the actionscript is this:

import flash.net.FileReference;
var progressBar:MovieClip;
var reference:FileReference = new FileReference();
var referenceListener:Object = {};
var scriptLocation:String = 'uploader.php';
var progressBarHeight:Number = 10;
var progressBarY:Number = 50;
var progressBarColor:Number = 0x66ccff;
uploadButton_mc._visible = false;
reference.addListener(referenceListener);
referenceListener.onSelect = activateUploadButton;
referenceListener.onProgress = updateProgress;
referenceListener.onComplete = restart;
referenceListener.onHTTPError = handleError;
referenceListener.onIOError = handleError;
referenceListener.onSecurityError = handleError;
chooseButton_mc.onRelease = choose;
uploadButton_mc.onRelease = uploadCurrent;
function activateUploadButton():Void {
display_txt.text = reference.name;
uploadButton_mc._visible = true;
}
function choose():Void {
reference.browse([{description:'All Files (*.*)', extension:'*.*'}]);
}
function handleError(errorName:String, detail:Object):Void {
restart();
if (arguments.length === 2) {
if (typeof detail === 'number') {
display_txt.text = 'HTTP Error #'+detail;
} else {
display_txt.text = 'Security Error: '+detail;
}
} else {
display_txt.text = 'IO Error';
}
}
function makeProgressBar(x:Number, y:Number):MovieClip {
var bar:MovieClip = createEmptyMovieClip('progressBar_mc', 0);
bar._visible = false;
bar.beginFill(progressBarColor);
bar.lineTo(Stage.width, 0);
bar.lineTo(Stage.width, progressBarHeight);
bar.lineTo(0, progressBarHeight);
bar.lineTo(0, 0);
bar.endFill();
bar._width = 0;
bar._visible = true;
bar._x = x;
bar._y = y;
return bar;
}
function restart():Void {
removeMovieClip(progressBar);
display_txt.text = '';
uploadButton_mc._visible = false;
chooseButton_mc._visible = true;
}
function updateProgress(fileReference:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
display_txt.text = fileReference.name+' - '+Math.ceil((bytesLoaded/bytesTotal)*100)+'%';
progressBar._width = Math.ceil(Stage.width*(bytesLoaded/bytesTotal));
}
function uploadCurrent():Void {
chooseButton_mc._visible = false;
progressBar = makeProgressBar(0, progressBarY);
reference.upload(scriptLocation);
}


And the uploader.php script is this:

<?php
if ($_FILES['Filedata']['name']) {
move_uploaded_file($_FILES['Filedata']['tmp_name'], 'upload_directory/' . basename($_FILES['Filedata']['name']));
}
?>


I have upload all in my server and create the "upload_directory", and testing it, it seems upload the file, the scrollbar goes to 100%, but after this it gives me back this error: HTTP Error #403 ,but all looks whel done to me, so who can help me?

View Replies !    View Related
Save Down Tutorial Source Files
Can someone save this down to mx2004 for me?
http://www.kirupa.com/developer/flash8/slidingMenu5.htm

View Replies !    View Related
Read / Write Text Files Tutorial?
Hi There--

This appears pretty basic, but I've been searching tutorials for a while and haven't been able to figure this out.

I'm on Flash MX. I want to make a simple form that my client can use that will write text to a text file.

I would like to read the text file into a dynamic text field. I would like to not make the text a variable because I'd like to use the same text as a server side include into a straight html file as well.

Perhaps the form could write two documents? One that has the variable and one that doesn't? Could it write an xml document that could be read by both the html page and the flash page?

I don't want the client to have to type the file more than once.

I'm also confused about whether I need to use PHP or XML or both.

This _has_ to be possible. I'm guessing that the reason that I haven't been able to find any tutorials on it is because it's so obvious to everybody else.

Any help will be greatly appreciated and you'll have terrific luck for a week if you do.

Thanks,

Lee

View Replies !    View Related
Tutorial Section....on Preloading Movie Files
in the intermediate section - tutorial #10
"Preloading Multiple Loaded Movies"

.... he has a main fla, then phase1.fla, and phase 2.fla

the main he uses to load the other two fla.... but I don't understand how it is working.

In phase.fla file, he has a check to see if "Scene 2" is loaded and if "true" goto _level0.nextframe();

but.... here's the thing....

_level0 means the root of the movie (main movie) right?
If so, how is it going to the next frame of "main.fla"?.... b/c
"_level0.nextframe()" .... well.. ... isn't going into it's root frame?

Meaning, it will go to the next frame of "phase 1.fla" and not the next frame of "main.fla"

...anyways....I'm totally confuse....

I'm trying to load up other movies (*.swf) within a movie and its not working right. It loads up the (*.swf) that I want but I is not showing the rest of the content of the main movie.


anyways.... if anyone can help me out, that would be great.

View Replies !    View Related
Creating SWC Files In FlashDevelop (Plugin And Tutorial)
For those of you familiar with FlashDevelop, here's good news: You can now export SWC files. A developer from Sydney published a SWC export plugin for FD. The plugin is available here: http://www.flashdevelop.org/communit...pic.php?t=2987

I put together a tutorial on how to create a SWC component in FlashDevelop:
http://blog.log2e.com/2008/05/07/cre...-flashdevelop/

View Replies !    View Related
I MAY Have Found A Tutorial To Allow Cs3 Users To Run Batch Files
I know there has been a lot of problems with running local files but I recently found this tutorial that says you can do it: http://www.northcode.com/blog.php/20...C-Part-1-Proxy

It seems to have a lot of positive feedback even for CS3 users but I still cant get it working on my XP. Even his example download doesnt work.

I was just wondering if anyone else has tried this and succeeded as it will save people a lot of bother.

So has anyone got this working in CS3 with Windows XP?

Cheers

View Replies !    View Related
Tutorial Needed - Loading And Controlling .swf Files
Hello,

I'm looking for a tutorial that explains how to create a container that loads .swf movies and has interactivity built into it that enables the user to control playback .(i.e. skipping to next .swf file, scrubbing through currently loaded .swf file, volume adjustment, etc.)
I've worked with projects like this before, but since they were built by someone else it's been difficult to understand how they set them up. I'd like to make one from scratch so that I understand all the elements that go into making it work.

thanks!!

bb

View Replies !    View Related
Tutorial: Preloader And Transition For Dynamic Files
Hey Guys, I was working on the Tutorial Preloader and Transition for Dynamic Files , and I got the tutorial to work, but I was trying to apply it with a site I'm working on, it won't work. Any Idea? I have attached the .fla I was working on

http://www.geocities.com/ejbatu1/eNew.fla

View Replies !    View Related
Tutorial: Preloader/transition/dynamic Files
Hello there

I am using a customised version of the preloader and transition for dynamic files to load a 30sec swf animation that I have made.

The preloader looks great and loads the animation.swf. The problem is that it starts playing before it has totally loaded - underneath the transition animation. When the preloader transition clip opens, the movie is already half way through.

I'm sure there is a bit of script that can stop it playing until it has totally loaded or that makes it start when the transition animation opens but I don't know how to do it. Please would you help me to do this?

ps. if you explain it like i'm a 5yr old that would help!

Thanks very much!
manda

View Replies !    View Related
The Preloader And Transition For Dynamic Files Tutorial
how come it the tutorial can not display dynamic or input text can n e 1 help?

View Replies !    View Related
Preloader And Transition For Dynamic Files TUTORIAL
can anyone help me plz...

i want to add a load bar with percentage while preloading the external files with the transition. i guess it will be quite simple i am just new in flash and i m working my way around it.
tnx in advance

tutorial page:
http://www.kirupa.com/developer/mx/p...transition.htm

View Replies !    View Related
Preloader And Transition For Dynamic Files Tutorial
I have followed the tutorial and everything works great, in tutorial fla. When I try to apply the tutorial to a new fla, I cannot get the "opening" to work, the swf's are loading because when I click on a new button, I can see them briefly under the transition, but my transition won't open after load.

Its probably a stupid mistake, I don't know where it could be, I've scoured all the actionscript for typos, I would think it would be in the actions for the content mc, but now I'm just frustrated.

Thanks......

View Replies !    View Related
Tutorial: Preloader And Transition For Dynamic Files
Hey Guys, I was working on the Tutorial Preloader and Transition for Dynamic Files , and I got the tutorial to work, but I was trying to apply it with a site I'm working on, it won't work. Any Idea? I have attached the .fla I was working on

http://www.geocities.com/ejbatu1/eNew.fla

View Replies !    View Related
Preloader/transition/dynamic Files Tutorial - Help Please
Hello there

I am using a customised version of the preloader and transition for dynamic files to load a 30sec swf animation that I have made.

The preloader looks great and loads the animation.swf. The problem is that it starts playing before it has totally loaded - underneath the transition animation. When the preloader transition clip opens, the movie is already half way through.

I'm sure there is a bit of script that can stop it playing until it has totally loaded or that makes it start when the transition animation opens but I don't know how to do it. Please would you help me to do this?

ps. if you explain it like i'm a 5yr old that would help!

Thanks very much!
manda

View Replies !    View Related
The Preloader And Transition For Dynamic Files Tutorial
how come it the tutorial can not display dynamic or input text can n e 1 help?

View Replies !    View Related
A Good Tutorial On Writing .as Files And Packages In 2.0
Was wondering if anyone could point me in the direction of a good tutorial on how to write and import from packages strictly from .as files written in actionscript 2.0

I googled but couldn't find anything of any serious use.

View Replies !    View Related
Todd Lajoie Tutorial Sorce Files...
Is there any one that has the sorce files form this(Todd Lajoie) tutorial? :?

View Replies !    View Related
Claudio - Preloader And Transition For Dynamic Files Tutorial
Hi

I used the 'Preloader and Transition for Dynamic Files' Tutorial from the tutorials section
here is a link
http://www.kirupa.com/developer/mx/p...transition.htm

and have to say, I learned soooo much from it, and encorporated it into my website

www.intotheether.net


I was wondering if you could tell me how to put a percentage preloader for each of the sections when they load. The heavier the .swf file you are loading, the longer it takes, and I've gotten comments about this saying they would like to know how long they have to wait until they see something.



I'd also appriciate any comments you may have for me about the use of this tutorial on my website.


Thanks so much

-Govinda

View Replies !    View Related
Preloader And Transition For Dynamic Files Tutorial Problem
Hey guys I'm having a little difficulty with this tutorial. The preloader works the first time and loads the initial external swf but despite having what I beleive to be the correct code for the buttons (and the correct names for teh files) I can't get my buttons to work.

Also for some reason I can't load the main swf into any browsers - it only half works in the standalone player. Lastly for external swfs do you have to specify the exact right coordinates for the swf to display or is there a way of coding it to figure this out on its own?

I'm going to include the main swf and my first external one. If anyone needs any more files let me know.

http://www.geocities.com/gord_82/Main.fla
http://www.geocities.com/gord_82/news.swf

View Replies !    View Related
Claudio´s Tutorial Preloader And Transition For Dynamic Files
Hi, a newbie here...
Would like to know how to make the first animation loaded (in tute, profile.swf) to begin playing only AFTER the "transition" movie clip reachs the end. I tried a simple if, else statement, conditioning the swf for playing when bytes are totally loaded, but it plays before the transition movieclip reaches the "opening" labeled frame.

I found a thread (by manda) alike, but no answer at all.

Also, I´d like to control it on THIS swf, the other ones are looking good the way they are. Anyone could help?

Claudio, "uma luz por favor??"

View Replies !    View Related
Claudio - Preloader And Transition For Dynamic Files Tutorial
Hi

I used the 'Preloader and Transition for Dynamic Files' Tutorial from the tutorials section
here is a link
http://www.kirupa.com/developer/mx/p...transition.htm

and have to say, I learned soooo much from it, and encorporated it into my website

www.intotheether.net


I was wondering if you could tell me how to put a percentage preloader for each of the sections when they load. The heavier the .swf file you are loading, the longer it takes, and I've gotten comments about this saying they would like to know how long they have to wait until they see something.



I'd also appriciate any comments you may have for me about the use of this tutorial on my website.


Thanks so much

-Govinda

View Replies !    View Related
Preloader And Transition For Dynamic Files Tutorial Problem
Hey guys I'm having a little difficulty with this tutorial. The preloader works the first time and loads the initial external swf but despite having what I beleive to be the correct code for the buttons (and the correct names for teh files) I can't get my buttons to work.

Also for some reason I can't load the main swf into any browsers - it only half works in the standalone player. Lastly for external swfs do you have to specify the exact right coordinates for the swf to display or is there a way of coding it to figure this out on its own?

I'm going to include the main swf and my first external one. If anyone needs any more files let me know.

http://www.geocities.com/gord_82/Main.fla
http://www.geocities.com/gord_82/news.swf

View Replies !    View Related
Preloader & Transitions For Dynamic Files Tutorial (For Advance Flash MX)
Attn:claudio

Dear All,

I am interesting in Preloader & Transitions for Dynamic Files tutorial.My problem is the preload can't stop (in your tutorial is preload stop untill we click mouse) Please explain to me in detail I don't understand as follow;

ii.Click the content layer. Click on the content movie clip. Then press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box: I can't see content movie clip on the layer.

iii.Click the transition layer. Double Click on the transition movie clip. Then select the frame 1 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box:
_root.section = "profile.swf";
I can't see transition movie clip on the layer and can't duble click it.

iv. Click on the frame 9 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box:
loadMovie(_root.section, _root.content);
stop();
I see code in action layer frame 1 put already follow items i when I click at frame 9 and press F9.
v.Click on the frame 24 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box:

stop();
I still see code in action layer frame 1 why ?
When I test movies I get this message "Scene=Scene 1, Layer=content, Frame=1: Line 1: Clip events are permitted only for movie clip instances onClipEvent (enterFrame) { "

Please help me solve this problem Thank you very much.

Best Regards,
Nisarat

View Replies !    View Related
Fading Grid Tutorial HELP TO LOAD FILES FROM EXTERNAL FILE
Hi there,

I've done the Fading grind tutorial from Voetsjoeba and it was well done.
But i'm trying to load the images from an external file, for example from an xml file, or other way that it was possible, but i'm not figuring out how...

I've added this line code into the AS, but it didn't work when i upload the file and try to access online:

Code:
_root.createEmptyMovieClip("image", 999);
for (i=1; i<11; i++) {
image.loadMovie("/Imagens/I"+random(i)+".jpg", i);
}
If some one could help me i'll be very glad!!
And sorry about my english...

Thanks in advance
see ya

View Replies !    View Related
Tutorial Problem? Flash MX Preloader And Transition For Dynamic Files
I was trying to recreate the tutorial with the above title, and could not get my version to work correctly. If anyone has walked through this one and had the same problem, please let me know. I'm fairly new to actionscript, but I believe the problem is occuring with the reference to "_root.section," and I can't seem to find this "section" object in the original tutorial movie. But it loads in the initial swf, which shouldn't work if this was the case. You can download the fla file from here.
http://members.cox.net/thompsonml/Main.fla
or use the link below.

Thanks in advance for any help!

View Replies !    View Related
Claudio's "Preloader And Transition For Dynamic Files" Tutorial
The tutorial itself is good and works fine, but I am using it as part of a website and it does not seem to work then.
All the necessary files are in the remote site's folder, but for some reason the clip is not playing the "closing" frame nor showing the content that comes after.
The movie works fine when exported in Flash, just not on the web....HELP!

View Replies !    View Related
Preloader And Transition For Dynamic Files Tutorial "problem"
Hi everyone, i'm trying to build my site using the Preloader and Transition for dynamic files tutorial, but i got a problem. When it loads a movie clip it will resize the width of the movie clip. The container i'm using where the MC should be loaded is w:688 H:257 then i've made the movie clips the at the same size. When it loads the movie clips, the height it's ok, but the width becomes bigger. I tried many times but i just can't solve it out.

Some help please!

Thanks in advance.

View Replies !    View Related
Claudio's "Preloader And Transition For Dynamic Files" Tutorial
The tutorial itself is good and works fine, but I am using it as part of a website and it does not seem to work then.
All the necessary files are in the remote site's folder, but for some reason the clip is not playing the "closing" frame nor showing the content that comes after.
The movie works fine when exported in Flash, just not on the web....HELP!

View Replies !    View Related
Help Regarding To "Preloader And Transition For Dynamic Files" Tutorial
Hi there,

I made a flash movie following the tutorial by Claudio, but thereis someting wrong with it, the button doesnt seem to be working, can anybody help, I am alos attaching all the files to look at, any help would be much appreciated.

Regards,

rothkodesign

View Replies !    View Related
Importing Files/ Opening Files In Files/ Adding Files Into Scenes.
Alright Here is the deal.
I got some movies, which are seperate FLA. files, and I want to eventually add all these 4 seperate files, into scenes in one main FLA. file. How do I do this so that I have the symbols ect. I am pretty sure you can't just copy/paste.

Which FLASH** guru out there can lead me in the right direction?


greatly appreciated...

*g.guru.

View Replies !    View Related
To The Tutorial Writing Staff: XML Portfolio Tutorial
Hi guys!

I'm a basic actionscript user which knows the basics of xml and actionscript. I've been seaching for a tutorial for a long time now how to make a portfolio which is dynamic and loads info from an external .xml file.

Since i couldn't find any tutorial like this i've tryed to make my own script out from this xml file:


Code:
<portfolio thumburl="thumbs/" imgurl="images/">
<project hdline="my first project" client="none" date="2007-01-02" category="website" weburl="http://website.com">
<image url="image1.jpg"/>
<image url="image2.jpg"/>
<image url="image3.jpg"/>
<description><![CDATA[This describes my first project]]></description>
</project>
</portfolio>
I have hade in mind that you should see a bunch of thumbnails first in a table format (like 6 cols and 3 rows) on each page, then you should be able to select page with next and prev buttons. When you press on a thumnail a box with the bigger image shuld pop-up and you should be able to read the other information in the xml file (such as client, date etc etc).

I've tryed to make this but it's to advanced. And my version is very buggy, aswell.

Here is what i've done sofar:
www.vmgcomputers.com/xml/portfolio3.swf

I don't know if this helps but here is a "multiple loader" i found:
http://www.johnnyslack.com/content/d...der_jslack.zip


I think there are many guys who are looking for a tutorial about this so please consider to make one, all professionals out there!

View Replies !    View Related
Tutorial For Making A Flash Tutorial
I would like to find a tutorial on how to make a Flash Tutorial like this one or something similar.

Any help would be greatly appreciated!

View Replies !    View Related
XML - Mix The Squirrel Tutorial And The Portofolio Tutorial
Hello,

I'm trying to mix 2 tutorials: the Squirrel Finder (http://www.kirupa.com/web/xml/exampl...rrelfinder.htm )and the Portfolio ( http://www.kirupa.com/web/xml/examples/portfolio.htm ).

Actually i want to create a list of buttons based on loaded xml and when the buttons are cliked i want to displays information obtained from the xml
associated with that button (this part is ok).Now the things is that i also want to add to each "squirrel" a portofolio but i can 't figure out how to write the AS.

here are my codes

the xml


Code:
<?xml version="1.0" ?>
<menu>
<menuitems sourceurl="http://spot.colorado.edu/~halloran/sqrl.html">
<item type="squirrel">
<species>Abert Squirrels</species>
<location>
<![CDATA[Abert squirrels (Sciurus aberti) are only found in mountain regions of North America. In the United States their range extends from extreme south-central Wyoming to New Mexico and Arizona. There are six valid subspecies including S.a. ferreus, True, the subspecies that is found along the Front Range of the Rocky Mountains in Colorado. Abert squirrels are limited to Ponderosa pine (Pinus ponderosa) forests in which they feed and build their nests.]]>
</location>
<portfolio>
<picturetitle= "Tiny Disk"
thumb= "portfolio_images/thumbs/tinydisk.jpg"
description= "portfolio_text/tinydisk.txt"
image= "portfolio_images/tinydisk.jpg" />

<picturetitle= "Plug"
thumb= "portfolio_images/thumbs/plug.jpg"
description= "portfolio_text/plug.txt"
image= "portfolio_images/plug.jpg" />

<picturetitle= "Disk Collection"
thumb= "portfolio_images/thumbs/diskcollection.jpg"
description= "portfolio_text/diskcollection.txt"
image= "portfolio_images/diskcollection.jpg" />
</portfolio>
</item type="squirrel">

<item type="squirrel">
<species>Douglas Squirrels</species>
<location>
<![CDATA[Douglas squirrels (Tamiasciurus douglasii) are found throughout the coniferous forests of Southwestern British Columbia, western Washington, western Oregon, and western California.]]>
</location>
<picturetitle= "Tiny Disk"
thumb= "portfolio_images/thumbs/tinydisk.jpg"
description= "portfolio_text/tinydisk.txt"
image= "portfolio_images/tinydisk.jpg" />

<picturetitle= "Plug"
thumb= "portfolio_images/thumbs/plug.jpg"
description= "portfolio_text/plug.txt"
image= "portfolio_images/plug.jpg" />
</portfolio>
</item>
<item type="squirrel">
<species>Eastern Grey Squirrels</species>
<location>
<![CDATA[Eastern gray squirrels are found throughout the eastern United States; their natural range extends from Florida, north to Canada, and west to where the deciduous forests meet the great plains grasslands. There are 5 subspecies of eastern grey squirrels, S. carolinensis carolinensis is the subspecies found in most of the south from northern Florida, to North Carolina, west to Missouri, and eastern Texas.]]>
</location>
</item>
</menuitems>
</menu>
the as


Code:
function DisplayInfo(){
menu_mc._visible = false;
infobox_mc._visible = true;
infobox_mc.content_txt.text = this.location_text;
}

infobox_mc.close_btn.onRelease = function(){
menu_mc._visible = true;
infobox_mc._visible = false;
infobox_mc.content_txt.text = "";
}
infobox_mc._visible = false; // start the info box hidden


// define basic variables for setting up the menu
var item_spacing = 28; // how far menu items are spaced veritcally
var item_count = 0; // counts menu items as they are added from the XML
// var for the portofolio
var thumb_spacing = 40;

// load variables object to handle loading of text
var description_lv = new LoadVars();
description_lv.onData = function(raw_text){
description_txt.text = raw_text;
}


// CreateMenu creates a menu based on the XML object passed.
// It loops through all the items with a for loop adding clips to the menu_mc
// movieclip on the timeline, defining the appropriate text where needed
function CreateMenu(menu_xml){
// start with the first item in the XML
var items = menu_xml.firstChild.firstChild.childNodes; // menu -> menuitems -> child nodes array
for (var i=0; i<items.length; i++) {
// only continue if the type of this item is a squirrel
if (items[i].attributes.type == "squirrel") {
// create variables for our elements
var species = items[i].firstChild; // same as items[i].childNodes[0]
var location = items[i].childNodes[1]; // second child node

//function GeneratePortfolio(portfolio_xml){
//var portfolioPictures = portfolio_xml.firstChild.childNodes;
//for (var i = 0; i < portfolioPictures.length; i++){
var currentPicture = portfolioPictures[i];

var currentThumb_mc = menu_mc.createEmptyMovieClip("thumbnail_mc"+i,i);
currentThumb_mc._x = i * thumb_spacing;

currentThumb_mc.createEmptyMovieClip("thumb_container",0);
currentThumb_mc.thumb_container.loadMovie(currentPicture.attributes.thumb);

currentThumb_mc.title = currentPicture.attributes.title;
currentThumb_mc.image = currentPicture.attributes.image;
currentThumb_mc.description = currentPicture.attributes.description;


currentThumb_mc.onRollOver = currentThumb_mc.onDragOver = function(){
info_txt.text = this.title;
}
currentThumb_mc.onRollOut = currentThumb_mc.onDragOut = function(){
info_txt.text = "";
}
currentThumb_mc.onRelease = function(){
image_mc.loadMovie(this.image);
description_lv.load(this.description);
}
}
}

// Create a menu item movie clip in the menu_mc instance on the main timeline
// for each item element offsetting each additional further down the screen
var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc._y = item_count * item_spacing;
item_count++;

// assign text using nodeValue to get the text
// from the text nodes and CDATA sections
item_mc.species_txt.text = species.firstChild.nodeValue;
item_mc.main_btn.location_text = location.firstChild.nodeValue;
// set the onRelease of the item button to the DisplayInfo function
item_mc.main_btn.onRelease = DisplayInfo;
}
}
}



var squirrel_xml = new XML();
squirrel_xml.ignoreWhite = true;
squirrel_xml.onLoad = function(success){
if (success) CreateMenu(this);
else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
squirrel_xml.load("squirrel_finder.xml");
Thanks for the help

View Replies !    View Related
.bat Files Start From .swf Files But Not From .html Files ?
I tried to use fscommand to execute certain batch files on my system. It worked fine while I tested the swf file, but didn't do anything when I published the movie and tried the same in the .html file ?
Any clues ?

-Shreeram

View Replies !    View Related
Save Information From Flash Files Into Text Files For Later Retrival..?
so i can load information from textfiles which is all very well, but can i save information into text files from flash? Please help me on this one!!! Thanks!

View Replies !    View Related
Retaining Order Of Files Loaded Externally From Large XML Files
Hi everyone,
I was messing around with some old examples, and I ran into an unfinished example where several 30k-100k XML files are loaded and stored as a string into an Array. The code looks basically like:

Code:
//example input: foo.xml%zeeb.xml%blarg.xml
function loadXML(filePaths:String) {
filesArray = filePaths.split('%');
for (var i:Number = 0; i<filesArray.length; i++) {
var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = function(success) {
if (success) {
//order of files loaded is messed up here!
parseXMLData(this, filesArray.length);
} else {
//trace(filesArray[1]+" failed to load!");
}
};
xmlData.load(filesArray[i]);
}
}
Basically, when I trace the 'this', the order of the files that are loaded is off. Out of about 10 tries, about 3 times the order is perfect. The remaining 7 times, the order is a bit off. Does anybody have a suggestion on how to ensure the files are loaded prior to the next file being loaded?

I tried placing a while loop that basically delays the clock for a few milliseconds, and that didn't work either. Besides, that is not really a good solution to arbitrarily waste clock cycles. I am guessing some sort of a listener might be needed, but that is where I've hit a wall

Thanks!
Kirupa

View Replies !    View Related
Targeting External Files To Text Files In Flash
Gooday all

I am developing a flash site for a movie company and it needs to be 100% dynamic! and must be flash 5 compatible

To put things as simply as I can here goes.

I have a directors page - on this page I have two text fields.
The first text field pulls all the directors names from an external file called directors.html, In this external file I have html hyperlinks which link to each directors bio text (in another external text file), what I want to do is basically target the second text field in flash. i.e. when you are in flash and click one of the directors names his info must appear in the adjacent text field.

you follow?

THIS DOESNT LOOK LIKE A COW!

View Replies !    View Related
Loading External Text Files With Links To .swf Files
i am loading a external text file with html links. I would like to know if anyone out there know how to make those links load .swf files, that would work with the levels hierarchy of the original level0 file. I tried passing a variable that would be detected by a movie clip on EnterFrame but no success, maybe I had written something wrong. Loading just the swf file will replace the html page on the browser.

View Replies !    View Related
Reading From Files, Manipulating Strings, Writing To Files....
Thanks for your time, if you know anything please help me with the following:

1) I have my movie www.web.com/web.swf that reads the contents of the file www.web.com/news.txt. The file is supposed to contain different notes referring to updates of a site (just an example)

2) Flash loads the text in a variable, right? How can i split it, considering i use as a splitting string something like "|splithere|"

3) How can i hold each update-note in a variable, like when i`m duplicating movie clipes, for example update1 should be held in u1, update 2 in u2 and so on... (or as visual basic used - i`m and ex vb'er - u(1) u(2) and so on)

View Replies !    View Related
Explorer Type View Of Files Sending Files
I'm building a website to enable a kind of online music jam session. The user will choose music files stored on their computer to be uploaded to other users' "shared folder" (eg. c:mysharedfolder on user1 to c:mysharedfolder on user2 - similar principle to Kazaa I guess).

How do I display a list of the files contained within the users "shared folder" (like windows explorer)?

Secondly, is it possible to send someone a file directly to their "shared folder"?

Many thanks,
Simon

View Replies !    View Related
Problem Importing Flash Files Or Captivate Files
I have Flash MX and am having problems importing Captivate files or flash files that I have exported from Captivate. When I import a flash file from Captivate it will fill in the keyframes but there is nothing on the stage. Everything is in the library but it kind of defeats the purpose for it to not be on the screen.

The other option is to export from Captivate to Flash; however, when I try to do that it tells me I need Flash MX 2004. I do...it's just not seeing it for some reason.

Anyone have any ideas?

Thanks,
Bonnie

View Replies !    View Related
Adding Midi Files Or Small Music Files To Swf's?
Hey just wondering if it is possible to add midi files or small music files like them into flash? Just wondering because my music files are taking like 2/3s of the swf space.

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