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




Help Dynamic Loading Jpg Files



help!Imade a animation with 8 jpg images & I load them dynamically:_root.myMovieclip.loadMovie("myimage1.jpg");_root.myMovieclip2.loadMovie("myimage2.jpg");_root.myMovieclip3.loadMovie("myimage3.jpg");........................etcbut I"ve a problem to make "loading",my animation start before jpg files are loaded into flash.I've test to do this with myMovieclip.getBytesTotal....,but It check only a first one(but I've 8!!)thanx



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-10-2004, 10:35 AM


View Complete Forum Thread with Replies

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

Dynamic Loading Of Flv Files
Hi everybody,
I need some help with flv files. I'm not a beginners with flash but this is the first time I work with videos.

My problem is:
I have to load dinamically a certain number of flv video. the name of every flv file is associated with a button that passes to the root the name of the file that has to be loaded. this is the code I used in the root level:


Code:
var netConn = new NetConnection();
netConn.connect(null);
var ns = new NetStream(netConn);
myvideo.attachVideo(ns);
ns.setBufferTime(5);// (optional)
ns.play(nome);

// nome is the variable that contains the name of the flv file //
(I just copied this slice of code from the flash help.)

To do that I need to create a video object (myvideo) before. I used a flash component (media playback) but it doesen't work. It works only if I put the name of the flv file in the URL field of the component inspector.

My questions are:
Do I have to use flash components (I don't like them so much) or there is an alternative way?

If there isn't where do I have made mistakes?

every suggestion will be appreciated,

TAL

Loading Dynamic Mp3 Files Via XML
I am reading the xml file with no problem I have questions concerning my actionscript, am I instatantiating the sound object and calling it correctly, when I trace (bsound)it I am pulling the correct mp3 file from the array however I hear no sound, what am I doing wrong.

Any and all help is greatly appreciated




ActionScript Code:
function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        image = [];
        description = [];
        bsound = [];
        total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
           
            bsound[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
        }
        firstSegment();
    } else {
        content = "file not loaded!";
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(showxmlPath);

p = 0;
this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
        preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
        preloader._visible = false;
        if (picture._alpha<100) {
            picture._alpha += 10;
        }
    }
};

function firstSegment() {
    if (loaded == filesize) {
               
        mymusic = new Sound(bsound);
        mymusic.loadSound(bsound[0], true);
       
    }

Help Dynamic Loading Jpg Files
help!Imade a animation with 8 jpg images & I load them dynamically:

_root.myMovieclip.loadMovie("myimage1.jpg");
_root.myMovieclip2.loadMovie("myimage2.jpg");
_root.myMovieclip3.loadMovie("myimage3.jpg");
........................etc
but I"ve a problem to make "loading",my animation start before jpg files are loaded into flash.I've test to

do this with myMovieclip.getBytesTotal....,but It check only a first one(but I've 8!!)
thanx

Please Help With Dynamic Loading Of Jpg Files
help!Imade a animation with 8 jpg images & I load them dynamically:

_root.myMovieclip.loadMovie("myimage1.jpg");
_root.myMovieclip2.loadMovie("myimage2.jpg");
_root.myMovieclip3.loadMovie("myimage3.jpg");
........................etc
but I"ve a problem to make "loading",my animation start before jpg files are loaded into flash.I've test to do this with myMovieclip.getBytesTotal....,but It check only a first one(but I've 8!!)
thanx

Dynamic URL For Loading External Files
hello, all
I have 2 questions here and I will try to be as clear as I can. I'm building several flash movies that will be loading external files such as jpeg, flv, text and etc. Loading them isn't a problem, but allowing the clients to update the files on their own is my concern.
I was hoping they could just rename their files and replace the old ones, so all I need to do is loadMovie("file1.jpg"); but since it's a pretty big site, they want to be able to tell flash where and which files to load.
So, what's the best way to go about doing this?

Thanks a million,
Al

Pls HELP Loading Dynamic HTML Files
First off-hi everyone, this is a great site!

Secondly, I need help on something simple and stupid. Here's my issue:

I'm trying to do something REALLY simple: load an hmtl file into a dynamic, mulitline text file. Here's how I have it/need the scenario set up:

The HTML file will be loaded into a dynamic text box located in, say frame 2. I would like the HTML file to load as soon as the movie enters this frame. However, as of yet, I have not found any tutorials/help on how to "automatically" have this happen. So, I tried a different route shown in the book I have, which is to have a button that loads it. However, unlike in the book, I would need the button to be in a different frame (say, frame 1 or 5, or 8). My current script on the button reads:

on (press) {
myPage = HTMLpage;
}
on (press) {
gotoAndPlay(2);
}

With of course my loadVariablesNum("variables.txt", 0); code in Frame 2 (where the text should be displayed).

This should work fine, no? Well, it doesn't. When I hit my button in frame 1, it does one of two things (it's inconsistent!!!): it either loads the html file and goes back to frame 1 so quickly that i only see the html file for .2 secs, or it doesn't do anything at all. The weird thing is, SOMETIMES, when I play the movie and then rewind it, then press the button, it will load the html file and stop on frame 2 (what it's supposed to do). What the heck is up with this? Could someone help me please????

Dynamic Image Loading Through .txt Files
Hello,

Created an Fla that contains an MC "mov" on the stage. I created an external .txt script that loads variables into the FLA. After testing the movie the variables show on the debugger so it all works and loads. I'm attemting to load an image by loading the directory through variables ie. on .txt &path=images/01.jpg. Debug shows Variable _level0.path = "images/01.jpg" BTW "path" is just an example I have various names and tey all load correctly.

First question- If the variable loaded correctly (and I've run verifications scripts) how can I tell the MC to interpret the variable as a relative path(hope im using term relative path correctly)?

The common script on MC frame works to show the images.
mov.loadMovie("images/01.jpg")
//and the MC shows the image
//If I remain with this option I have to change the graphic in images 01 over and over and over again. My goal is to use txt to interchange images when I want to show image2 and at a later date revert to the original image1 by just changing the txt file. That way I can load 30 files and change with txt when I need to.

The theory is
mov.loadMovie("path")
//if this worked then the image shoud load. Yet I don't know if I have to run a cript that renders the variable "path" as a relative link to images/01.jpg.

Am I thinking in the right direction?
Should I create a global script that defines what the variables mean?

Do any of you know how to parse the variable into a script that will work to load the right image?
I need the missing link here.

Any other options that you can recommend to achieve this goal?

Thanks a bunch in advance.

Nested Dynamic Loading Of Swf Files
I am a beginner in flash. I have an important doubt to ask. Please help. Let me explain to u the matter.I have main course menu (main.swf).From here the Intro.swf will be called.This intro.swf calls another file introsound.swf. This contains all the sounds used in the intro.swf. so I am loading the introsound.swf dynamically from intro.swf before playing the rest.

Independently the intro.swf works with the sound loaded in the beginning.

But when this intro.swf is called from the main .swf, the intro.swf stops at the first frame. This first frame is basically where i have the preloader of the introsound.swf.

Why does this happen when called from the main.swf.
I noticed that the loop movieclip's clipevents are not even been entered.
This are the clipevents in the empty movie clip called loop in the file Intro.swf.. There is another empty movieclip called SoundLoader.

onClipEvent (load) {
doOnce=0;
_root.soundHolder.loadMovie("introsound.swf");
}

onClipEvent (enterFrame) {

soundsBytesTotal = _root.soundHolder.getBytesTotal();
soundsBytesLoaded = _root.soundHolder.getBytesLoaded();
percentLoaded = Math.round((soundsBytesLoaded/soundsBytesTotal)*100);

if (percentLoaded > 99 && doOnce !=1) {
doOnce = 1;
_root.gotoAndPlay("2");
delete this.enterFrame;
}
}

//In frame 2 of Intro.swf, I have the following code
// mySoundPosition=_root.firstSound.position;
//_root.firstSound.start(mySoundPosition,0);
// firstSound is defined in introsound.swf with the following code
//_root.firstSound=new Sound(this); _root.firstSound.attachSound("tr2");
//tr2 is the identifier for the mp3 sound file which i have set the necessary linkage //properties.

Dynamic Loading Random Swf Files
how would I dynamicly load a swf into another swf movie?? is there a way which I could have 3 or 4 diffrent swf files and have them load randomly into the main swf file?

Thanks for any help!!

Loading Txt Files Into Dynamic Text Boxes
Hi everybody,

can anyone please tell me how to load an external txt-file into
my Flash-site (dynamic text box) in order to make updates quicker?
If you got a fla-File, or know where I can download one, it would easier for me to customize it for my purposes.

Thanks in advance

smik

Help With Loading Dynamic Data From Text Files
HELLO,

I familar with the process of loading data from text files. My question is this, Does anyone know how to comment out & and ' symbols from text so that flash sees these symbols as text and not as operators that seperate variables?

Hopefully my question makes sense basically i am using the & symbol to seperate variables but I need to actually use the & symbol in some of the data also ' and " symbols don't display either I am assuming the same process to display & can be used for displaying ' and " symbols.

Thanks for your help.

Problems Loading Dynamic .txt Files Once On Server
Ok, I have an all flash site for a client which has a glossary of terms page. I am dynamically loading a txt file for each letter (GlossaryA.txt, GlossaryB.txt, etc.) and the user can scroll through each letter. When I test this through the flash environment it works fine, but once I upload on the server the txt files don't load. Any ideas??? Is there an issue with me loading multiple txt files in the same mc? I'm about to pull my hair out in frustration so any help would be very appreciated!

Help Loading External Dynamic Text From .txt Files
www.jugalli-racing.com/main.html

As you can see, sometimes the page loads the wrong text source. Can I preload the .txt urls in the "<!-- *** --!>" area of my html or what? I need this text to be easily editable text in .txt format for my client.

Any tips would be great!

Also, on this page, for my scroll buttons, is there a way to make the page roll down by holding the mouse botton or by making it roll on the mouseover???

I know there are some more complicated tutorials on doing this, but are there any quick fixes?

Thanks much!

Loading 4 Txt Files Into 4 Different Dynamic Text Fields... How Can This Be Done?
Hello i was wandering how i can load multiple external txt files into multiple dynamic text fields.,.. the code for loading just one is working fine.... but i am new to AS3 and dont know how to do this....

heres my code,

code: var external_txt:TextField = new TextField();
var externalReq:URLRequest = new URLRequest("external.txt")
var externalLoad:URLLoader = new URLLoader();

externalLoad.load(externalReq)

externalLoad.addEventListener(Event.COMPLETE, textReady);

external_txt.x = 600;
external_txt.y = 100;
external_txt.border = false;
external_txt.width = 50;
external_txt.height = 20;

addChild(external_txt);

function textReady(event:Event):void
{
external_txt.text = event.target.data;
}



any ideas? thanks in advance

Dynamic Text, Loading External Files
I've literally done everything to try and load txt in from file and nothing works (undefined messages)

the simple code:

textboxload = new LoadVars();
textboxload.onLoad = function(){
textbox.text = this.content;
}
textboxload.load("textfile.txt");

textfile.txt

news="this is the news"

Would appreciate it if someone could put me on the write road.

Trouble Loading HTMl Dynamic Text Files
Hello, I hope some clever bugger out there can help me?

I'm trying to have a basic text box load an external text file which contains basic html editing - nothing more than allowed according to the flash help file. This is the action script I'm using...

loadVarsText = new loadVars();
loadVarsText.load("welcome.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
welcomeText.text = this.welText;
} else {
trace("not loaded");
}
};
stop();

...which loads the text file fine but the editing doesn't work, it just appears on the page when I run the movie. In the properties box for the text box I have clicked the html button.

Is there something simple I've missed cos I'm sure this should be an easy thing. Thanks all for any help.

Proudy.

Loading Dynamic Text Fields Using External Files
I'm loading a dynamic text field using an external .txt file on the same folder with the url=htext.txt

When I view the swf file, it works. However if I view the htm page with the swf embedded in the page, the text doesn't show up.

Can anyone tell me why or what did I do wrong?

Thanks,
gw630

Loading Dynamic Text Fields Using External Files
I'm loading a dynamic text field using an external .txt file on the same folder with the url=htext.txt

When I view the swf file, it works. However if I view the htm page with the swf embedded in the page, the text doesn't show up.

Can anyone tell me why or what did I do wrong?

Thanks,
gw630

Loading Multiple Text Files Into One Dynamic Area
Good Afternoon Everyone !
I am making an office calendar that allows text to be loaded when they press a button. I also want them to be able to link to certain html pages....and so forth
I have the calendar done, and everything works....except the html.
I have this embedded in each button

//Flash Script to Load on Button Press
on (release){
var variables_lv:LoadVars = new LoadVars();
variables_lv.load("july_2_event.txt");
variables_lv.onData = function(data) {
event_loader_clip.text=data;
}
}

but the html is not rendering...even if I have the rendering action pressed.
"I am a rookie and this is frustrating"
art-

Problems With Loading .txt Files To Flash Dynamic Text Boxes
Hi,

I can successfuly load external txt files to dynamic text boxes, however i am having some issues when the text loads and appears in the text box.

When i test the movie and the text populates the dynamic field, the text comes out perfect however, any text after a "&" symbol does not appear.

i am using the same font(times new roman) in the note pad and in flash. I also made sure that i imported the font in the movie, just to be sure.

Ne one know how to fix this problem?

thanx

Is There A Problem Loading 2 Or More Dynamic Text Files In A Flash File?
Hello i got a confusing problem here...
I have my code which is...

var myData = new LoadVars();
myData.onLoad = function() {
my_Text.text = this.content;
};
myData.load("title3.txt");

it loads fine....if i have my variable name: content
and a text file with my information like this..

content=
Hello have a nice day


Now what do i do if i want 2 or more dynamic text boxes loading information from varius text files at the same time....?

It doesnt happen! Flash ignores the other text boxes loading just one...
Any ideas?>

Dynamic Loading Of External Text Files + Embeded Fonts
Hi

I am trying to make a flash based inspirational quote box that acts as a holder/container and will pull in txt or xml that is formated to a predefined typeface. I tried to dig up some help and tutorials on the subject and have found documentation on using actionscript to use loadvars with no problem, but is it possible to make the text type specific beyond system fonts?

anyhelp -a yes, a no, a link, is greatly apprecited, i am relatively new to the concept of loading dynamic content, and it seems so cooool.

-j

Loading Text Files With Hyperlinks Into Dynamic Text Field
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:

var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};

var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");

Here is a sample of the text file code:

&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="

Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:

var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};

var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");

Here is a sample of the text file code:

&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="

Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:

var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};

var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");

Here is a sample of the text file code:

&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="

Loading Different Text Files Into A Single Dynamic Text Box... Help
Still suffering a serious confusion here...

I have one dynamic text box and two buttons... and two remote .txt files....

All I want to do is be able to click "info" button.. and have the text from "info.txt" load into the single dynamic text box... and click the "bio" button and have "bio.txt" load into the dynamic box instead.

This may seem so simple.. but other posters talk "variables" etc... and dont really xplain the simple bit!!! so could someone please give me a simple answer!!!

Im stuck.. and Ive only had this one day...!!!

littledannyp™

Loading Dynamic Text Thru External Text Files
Okay, i've looked at the dynamic text questions but am still having a little trouble. I can make dynamic text load if the dynamic text is on the main timeline, but what if it's embeded into a movieClip?
On my main timeline, i have a layer called actions. On a particular frame, i have the following:

loadVariablesNum("about.txt", 0);

A few frames down, i have a movie clip called "placeHolder" that slides in. This movie clip contains a dynamic textbox with both an instance and variable name of "aboutText".

The text file about.txt reads as follows:
aboutText=This is a test

When i test run my movie and it gets to the part where the variable should load, my placeHolder comes across the screen, but the dynamic text box reads:

_level0.instance18.aboutText



I changed something (don't remember what), and it made the actual text from the file show up in a new browser window!!!

How do i get my text to load into the movie clip?

if you need to see the fla and text file, post a request for the files with e-mail address..
Is there a way to attach files here?

Loading Text Files Into Dynamic Text Boxes
hi,

I have created a dynamic text box in flash, and a text file.
I have read the tutorial at http://www.macromedia.com/support/fl...t_scrollmx.htm about loading text into text boxes.

I have decided to have my text file look like this;

Item=This is item 1
Item=This is item 2
Item=This is item 3
Item=This is item 4
Item=This is item 5
Item=This is item 5

What i want it to do is that when it loads the text file into the text box, it should only load the first 3 items (item 1 to item 3).

how do i go about doing that?

thanks

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.

Flash, Loading Files & Temp Internet Files
Hi guys,
I have a problem with files getting stored in the Temp folder of a client's machine.

When I host an SWF file on a site, that swf file gets downloaded to the client's (in this case , my) machine in the Temporary Internet Files. Now, if that same SWF is loading a text file or an XML file stored on the server to read data, using either LoadVars.load() or XML.load() method and a relative URL as path, that text or XML file also gets stored in the Temp files of the client machine.

I wanted to know, is there a way to prevent the text files and XML files from getting downloaded to client machines ? Or is that the way the load method works ?

If the swf files has a need to make repeated loads of the same file, will it read from this downloaded file or will it make repeated calls to the server ?

Please tell me if I can clarify the problem more.
Thanks for your help

~TNE

Dynamic Vars, Dynamic Paths Using Variables And External Text Files
Hi there,

first off, apologies for the long post, but its a tricky problem to explain... and on my first post too! (sorry )
Im have a bit of bother with flash calling variables from a text file, and using them to make paths to other variables, and to control the amount of time a duplicate clip occurs. The first of these 2 problems is this:

Im loading a text file "content.txt" into _root. (this works fine)
it contains the variables:

webclipcount=2
&webhenry=hello hello
&webbutton01=henry

on the main timeline I have this button

on(press){
sectiontitle="web"
clipcount=webclipcount
}

there is a text box on the main timeline with variable name of bodycopy.

on a clip on the main timeline I have this;

onClipEvent (enterFrame) {
if (num< _parent.clipcount) {
duplicateMovieClip(thebutton, "button"+depth, depth);
this["button"+depth].name = _parent[_parent.sectiontitle+"button"+num];

this gives button01 the name henry- this works.

on the duplicated clip I have these actions:

on(mouseDown){
_parent._parent.bodycopy=_parent._parent[_parent._parent.sectiontitle+this.name]
}

so we end up with a path like:

_parent._parent.bodycopy=_parent._parent.webhenry

and it in turn should make the textbox on the main timeline contain "hello hello"

but it doesnt.

also for the duplicating clip, unless i use:

onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>

it wont work either. it seems neither can be dynamic/ pulled from the text file. (well, i can get them to work!)

If I use direct paths like:

on(mouseDown){
_parent._parent.bodycopy="bloody hell it works!"
}

and

onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>

it works, but not if they are dynamicly set from the txt file...
Anyone care to shed some light onto this? its doing my head in!
thanks in advance or the help.

cheers,

chris

Loading .swf Files While Main Movie Clip Is Loading
Hello,

I know How to do a Loadmovie command, but I can only get it to work when I goto the Movie Clip that I have that command in. For ex:

In movie clip B I have a command: loadMovie ("Submovie.swf", "_root.MovieClipB");
Which works fine.

What I want to do is while movie clip A is playing I what a command to Start the Load movie function into MovieClip B.

I have tryed many diff. commands and Cannot get it to work
Any help?
Thanks

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.

XML Loading, Dynamic Buttons, Dynamic Text Fields...
My last thread kind of died, I guess, so here's another one that I hope will get me some help; it has an updated FLA attached and what I think to be some better descriptions of my problems... I know I'm totally indebted to whomever will help, but this is an emergency and I need some timely advice.

so here's the FLA, XML, and some sample images: kirupaTest2.zip

1. I pretty much have the enlarged pictures loading I guess, which was my major problem before, but it doesn't matter because I can't get the code to "know" which of the dynamic thumbnails has been clicked (by "know", I mean return an index value, say 0 through 7 if there are 8 projects, that I can use to access that particular project in the array of 8 projects in the rest of the code)... So if the third movieclip thumbnail were clicked, I'd like "2" to come up somehow... I've tried this code, which is kind of lame, I know, based off of the idea of each of the thumbnail movieclips' names ending in their index number:

ActionScript Code:
//"this" is the button that was pressed; would return a string ending in//thumberMC_<number of whichever movieclip thumb was clicked>var: testString:String = this; //storing how many characters are in the string above...var: stringNumb:Number = testString.length;//using that value to take off the last string (hopefully the number)var: finalString = testString.charAt(stringNumb);


And that didn't work. (The code above was entered around line 71 in the layer "actions"; it's gone now)


2. An even bigger problem is I have some containers being drawn dynamically from height and width values pulled from an XML file. When I test the code that creates the objects using hard-coded values, it works fine; say if I put 481 in for the width and 375 for the height. But if I try to do it (sort of) dynamically like:


ActionScript Code:
var picHeight:Number = projects[5].bigPics[0].picHeightvar picWidth:Number = projects[5].bigPics[0].picWidth


it gets all screwed up; please try it for yourself in the supplied FLA. It's hard to describe what goes wrong; some things are drawn, and others aren't. I think it's because the objects are trying to draw before they have the data to draw with. This can be seen at lines 129 and 130.


3. Lastly, there's a dynamic textfield I'm trying to create that never shows up for some reason. Again, you could see in the FLA (in the "createDrawer" function around line 424).

If I can clarify, please let me know.

Loading Dynamic Textbox While Dynamically Loading Movie
Hi All,

So, I've got a movie on the stage (but offstage) called: Card. Inside this MC is a dynamic textbox called: CardName. I'm using a for loop to create a column of cards w/ their corresponding textboxes.

Here's the code:

for (var j = 1; j<=6; ++j)
{
var name = "Card_"+j;
var y = (j-1)*game.spacingY + game.originY;
game.path.attachMovie("Card", name, ++game.depth);
game.path[name]._x = x;
game.path[name]._y = y;
game.path[name]._width = game.cardSizeX;
game.path[name]._height = game.cardSizeY;
game.path[name].CardName.text = "card #" + j;
}

The cards and the textboxes inside the card MCs load fine but the actual textboxes don't change from the default text I've hard-coded in. How can I reach the dynamic textbox inside the card Movie Clip to manipulate the text.

Thanks.

Dynamic Loading Text File Not Loading Correctly
I am loading info from a text file (noticeBoard.txt) using the following code;


sourceTXT = "noticeBoard/noticeBoard.txt";
nodeSource = new LoadVars();
nodeSource.onload = gotoAndStop(printText);
nodeSource.load(sourceTXT);


Then writing it into a textfield when the timeline moves to the 'printText' frame.

The swf is working when I load my html page (notice.htm), with all my values being displayed. If I then navigate away from this page to one where I write more info to the text file and then return to notice.htm the latest info in the text file does not show in my swf. Even if I refresh the html page the new info does not appear until I shut my browser window then reopen it.

Does anyone have any suggestions to why this info is not coming in on the fly?

Thanks

'Dynamic' Swf Files
Been playing around with the idea of letting a user for make a drawing and then see the playback of the drawing (which has been done 100s of times). But then i wanted the user to be able to download a swf(or projector file) to his desktop which would then allow him to playback his drawing locally...

For testing purposes ive made a simple flash movie in which u can drag a ball. When u then click submit, the info will be sent to the server which then zips up the relevant flash projector and information file, and the user can then download the zip file and (in this case) when he views the flash file, the ball will be where the ball was last dragged...

any feedback/comments appreciated or any better methods/techniques to do this...cheers

http://www.experiments.flashmatics.c...animation.html

Loading .MOV Files
Can someone help me out with a problem I am having loading a quicktime movie upon clicking a button. I want the movie to play in a quicktime video window since this will be on a cd. I also want the movie to stop and have the swf file come back to the top when the clip is finished. Any help would be of great value and appreciated more. THanks Guys.

Loading Txt Files
ok i have this on frame 1:
loadVariables ("songs.txt", "");
songsarray = songlist.split("
");
i = int(0);

in the txt field i need to know what syntax to put songlist in. like simply:
songlist=blah blah blah
blah blah
blah blah

dosent work in the above if you can understand what i mean thanks if not reply and i can fill in what ever im leavin out

Pre-Loading Several .swf Files?
I have a button that will load the main.swf file for a directory on my server, what I would like is to pre-load all the movies in that directory prior to the main.swf file loading, Can that be done??

If so, can you leave me directions as to how to get this done?? It would be greatly appriciated!!

Thanks
Kenny

Loading 3 Swf Files-- Plz Help
you have 3 swf files: first_load.swf, second_load.swf, and main.swf
first_load has a movie clip "second" that loads second_load.swf into it
main has a movie clip "first" that loads first_load.swf into it.

when i run first_load.swf it will load second_load.swf fine
when i run main.swf it will load first_load.swf but not second_load.swf

please help me out.
i've uploaded the .flas as well
thanks!

Loading Txt Files
i am making a standalone projector and im having trouble loading txt files into my movie. can someone tell me which frame i have to load files into. i have loaded 2 files into the first level of the movie (scene 1) but im having trouble getting others loaded into other parts of the movie (symbols and tweens) can anyone tell me how to do this
thanx

Loading Txt Files
I have a problem with a txt files, in local mode, i can load my txt files in my flash movies witohout any problem BUT on the SERVER the flash movie don't load the txt file, may be it's a target problem or i don't know, please help me!!!!!!!!THANK YOU

Loading From Different Ext. Txt Files
I have a problem loading from different txt files. text1.txt, text2.txt,... The all have the variable plaintext=blablabla.

When I try to load these files to different textfields in flash (f.e. text1, text2,..., flash gets confused loadvars doesn't work, he always loads the plaintext and gets mixed.

I enclosed the files. Please help, I'm looking for a sollution for days now.

Not All The Files Are Loading
Hi all,
I have a question about loading variables from external files.

Code:
loadText = new loadVars();
loadText.load("test.txt");
loadText.onLoad =loadVariablesNum("test.txt","0");
I have tried all I can think of to get my movie to work. If I take out the "loadText.onLoad =loadVariablesNum("test.txt","0");" everything loads just fine. Except the dynamic textfields dont load the variables from the .txt file. All my other variables,images etc. load fine. However if I include the last statement. The dynamic textfields do load the variables and the rest of my stuff doesn't load, such and the rest of AS and images. Any suggestions??
Thanks Joey

Loading Swf Files
Hey all,

I've been trying to teach myself some actionscript of late and have been fiddling around with it. Well, I'm making a movie that calls up another .swf file using the loadMovie command. It works fine and loads the movie except for one thing. The .swf file that it loads uses actionscript to duplicate a lot of objects on higher levels. I don't see why that would be a problem, but when the first movie loads the second movie, all of the original movieclips can be seen, but the ones duplicated don't show up. Is there something I'm missing about levels, or is this just something that happens?

Frozley

Loading Jpg Files (V5)
I have seen a lot of galleries, but have not found what I am looking for. No bells and whistles, just a simple way to load jpg files onto their own layers. Have tries load movie, but I have a lot of updating to do and would much rather not have to make an swf out of each jpg.
Appritiate the help.
-Poyla

Loading Swf Files?
I read somewhere that being able to load different SWFs into the main page (or movie) of your site is better because it reduces download time. I have done a google search and found nothing I could understand (the tutorials always seem to leave things out so that nothing ever works)

If anyone here knows of a tutorial that it is possible to follow for someone new to flash like myself, That would be great.

Also, If I do ever learn this technique, How do you know where the loaded SWF will appear on your main movie?

Might sound naive, but I am new and I have done my best to research this.

Thank you

Loading .exe Files
How do you launch an exe from flash at runtime.
ie: clicking on a button within the movie will launch an external exe file.

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