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




Preloder Headache - Dynamic Preloader



OK, What I`m doing is,this:
I have a movie which creates serval movieclips which then will be used by a controller Movieclip to load other external swfs into them.
This controller movieclip is itself effectively a preloader. Actually everything works fine, save one problem:

The preloader pops up, doesen`t show any loadingprogress, the target movie in whom the external swf is being loaded disapers, there is nothing for a moment. Then according to connection time the requested movie appears.

What might be the reason of this ? All suggestions / ideas / Xtremly welcome !!!

You might watch the effect at spade-trading.com

Unfortunately I'm not at Work (it`s 1 O Clock in the Morning in Germany) right now, but rather keept from sleep by this Problem.
This Is why I can`t post any code right now...



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-04-2002, 07:37 PM


View Complete Forum Thread with Replies

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

Dynamic Preloader Headache
OK, What I`m doing is,this:
I have a movie which creates serval movieclips which then will be used by a controller Movieclip to load other external swfs into them.
This controller movieclip is itself effectively a preloader. Actually everything works fine, save one problem:

The preloader pops up, doesen`t show any loadingprogress, the target movie in whom the external swf is being loaded disapers, there is nothing for a moment. Then according to connection time the requested movie appears.

What might be the reason of this ? All suggestions / ideas / Xtremly welcome !!!

Unfortunately I'm not at Work (it`s 1 O Clock in the Morning in Germany) right now, but rather keept from sleep by this Problem.
This Is why I can`t post any code right now...

You might watch the effect at
spade-trading.com , chose one of the categorys for the preloader disaster

Preloader Headache
this should be simple! but it's driving me crazy. when launching my main flash swf movie from my server, the preloader isn't appearing as the main content loads! it's flashes breifly prior to the main movie appearing. It is the only thing in frame 1 w/the stop action. and the only other things loading are a couple substantial images and an audio file. It just seems like it's loading all the other stuff first, then starting the preloader MC.
any ideas?

Preloader Headache
Could somebody please show me what's wrong with this darn preloader of mine before I go totaly bezerk. It loops and generally shows proof of bad behaviour.

Here's the code:

Scene 1

Script

frame 1
actions for frame 1
total_bytes = _parent.getBytesTotal();
loaded_bytes = _parent.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);;
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 2", 1) {
gotoAndPlay ("Scene 2", 1);
}

frame 2
actions for frame 2
gotoAndPlay (1);

Visuall
frame 1
laddar..., (_sans, 11 pts)
(empty), (percent_done)
%, (_sans, 11 pts)

Symbol Definition(s)
bar
Ram
frame 1
actions for frame 1
bar.stop();
Layer 5
frame 1
frame 100
Underlaget
frame 1
actions for frame 1
bar.stop();
Symbol 37
Layer 1
frame 1


Thank's in advance.


PS
What's up with the attachments. When I try to attach a file all I get is: "Document contains no data"

Preloader Headache
Hello Community,

Any ideas as to why my preloaders (created similar to the myriad of tutorials out there and triggered when loading various SWFs into my main timeline via "Loader") work as expected when I test my movie in Flash and use "Simulate Download" but when I publish them on a server and view it through either the latest FireFox or IE they do not work as expected.

The behaviour for the not expected scenario is as such: the preloader appears as usual, but there is a significant pause before the bar starts to show the progress. Almost like the SWF is nearly completely loaded then, suddenly, the preloader suddenly does its thing (from 0 to 100%) in a time that is impossibly short.

Any known problems with the ProgressEvent misfiring in certain server/browser configurations? Alternatively, can anyone point me to a tuorial that provides a bombproof preloader?

Frustrating, since it works like a charm within the "Simulate Download" environment.

Any input is greatly appreciated.

Regards,

-john

Preloader Headache
I'm sure this is a very simple problem, but I'm not terribly well-versed in preloaders.

The preloader I have on my site right now works perfectly on the main page, but not on my portfolio page. I broke down my site into 2 parts because the portfolio is large.

Basically, on the first site, it loads 100% before moving on. On the portfolio, it loads about 45kb and then bounces you right into the following frames.

The preloader is a one-frame movie clip in frame 1 of my first scene. I looked at the actions on the 3 layers inside it - text, bar, background. On the preloader's "background":

onClipEvent (enterFrame) {
if (_parent.doneLoading == 760) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100*(isLoaded/total);
_parent.bytes = int(isloaded/1000) add " KB of " add int(total/1000) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
if (Number(p)>Number(95)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off")
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}

On the preloader's "text":

doneLoading = 0
stop()

To see it in perfect action, check out:
http://www.daramoss.com

To see it #*$& up every time it preloads, check out:
http://www.daramoss.com/portfolio.html

THANKS SO MUCH!

Preloader Headache
I'm sure this is a very simple problem, but I'm not terribly well-versed in preloaders.

The preloader I have on my site right now works perfectly on the main page, but not on my portfolio page. I broke down my site into 2 parts because the portfolio is large.

Basically, on the first site, it loads 100% before moving on. On the portfolio, it loads about 45kb and then bounces you right into the following frames.

The preloader is a one-frame movie clip in frame 1 of my first scene. I looked at the actions on the 3 layers inside it - text, bar, background. On the preloader's "background":

onClipEvent (enterFrame) {
if (_parent.doneLoading == 760) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100*(isLoaded/total);
_parent.bytes = int(isloaded/1000) add " KB of " add int(total/1000) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
if (Number(p)>Number(95)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off")
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}

On the preloader's "text":

doneLoading = 0
stop()

To see it in perfect action, check out:
http://www.daramoss.com

To see it #*$& up every time it preloads, check out:
http://www.daramoss.com/portfolio.html

THANKS SO MUCH!

Preloader Headache And Frame 0
I am using a pretty basic preloader taken from http://www.moock.org/webdesign/artic...of-preloading/

It's the one that shows the percentage loaded and the status bar.

When I preview the movie in test mode and turn on streaming it sits there at frame 0 and loads until it finishes loading the total kilobytes of the swf, then flashes the preloader movie for split second, showing 99% loaded and jumps into the main movie.

The main timeline, after the preloader consists of 3 frames, the third frame being a empty movieclip that attaches other movies based on passed parameters. So the main timeline is fairly short. But the swf file is fairly large in total. The preloader script does this conditional check:

var loadAmount = _root._totalframes;

if (_root._framesloaded == loadAmount) {
// ...start the movie
_root.gotoAndPlay("beginMovie");
} else {
// play the main timeline

since my movie is only 3 frames, I wonder if it wouldn't make sense to base the condition on the number of kilobytes loaded instead of frames loaded...? Has anyone else tried this or had this type of problem?

Any help is appreciated

Preloader Complex Headache
Hi guys,

I have my main .swf file which has a movie clip which holds .swf's which are loaded when you click a button on the menu.

When you click on the button, a movie clip covers the area in which in the .swf will be loaded into, then fades out when the movie clip is loaded...

However...

When the area is covered, i was wondering if there is any possibility that I would be able to add a preloader bar or percentage to show how much of the .swf in the movieclip has been loaded.

Anyone catch my drift??

I know how to add a preloader to a normal .swf, but have never tried to show how much is loaded of the movie clip .swf in the main.swf.

Cheers guys.

Preloader Complex Headache
Hi guys,

I have my main .swf file which has a movie clip which holds .swf's which are loaded when you click a button on the menu.

When you click on the button, a movie clip covers the area in which in the .swf will be loaded into, then fades out when the movie clip is loaded...

However...

When the area is covered, i was wondering if there is any possibility that I would be able to add a preloader bar or percentage to show how much of the .swf in the movieclip has been loaded.

Anyone catch my drift??

I know how to add a preloader to a normal .swf, but have never tried to show how much is loaded of the movie clip .swf in the main.swf.

Cheers guys.

Combobox + Preloader Component = Headache
This is rather annoying, hopefully someone knows why.

I create a form that has a bunch of checkbox and combobox components. It all works perfect, and I was really happy with it until this point.

I added a preloader using the preloader component. The preloader works great, here's the problem.

The combobox's don't work anymore, meaning they don't drop down. Of course this is a huge problem. What's odd is that the checkbox's still work.

You can see for yourself here
http://www.digitalosophy.com/beta/pricequote/

Now I really have no clue what's causing this, and oddly enough I can't find anything on this matter anywhere.

My preloader is a .swf file in itsself. It loads quote.swf - Can this be it?

Thanks

Combobox + Preloader Component = Headache
This is rather annoying, hopefully someone knows why.

I create a form that has a bunch of checkbox and combobox components. It all works perfect, and I was really happy with it until this point.

I added a preloader using the preloader component. The preloader works great, here's the problem.

The combobox's don't work anymore, meaning they don't drop down. Of course this is a huge problem. What's odd is that the checkbox's still work.

You can see for yourself here
http://www.digitalosophy.com/beta/pricequote/

Now I really have no clue what's causing this, and oddly enough I can't find anything on this matter anywhere.

My preloader is a .swf file in itsself. It loads quote.swf - Can this be it?

Thanks

Serious Headache With Dynamic Pathing
oi, i've been using this technique before so i'm just completely clueless as to why it wont work this time!

heres the as on my buttons:


Code:

on (press) {
_root.nav_anim1.gotoAndStop("1");
//_root.navback1.gotoAndPlay("play");
for (i=0; i<_root.navigation.length; i++) {
_root[_root.navigation[i]].gotoAndStop(1);
trace("[_root.navigation[i]]");
}
}

//and the array on the 90th frame on my timeline:

stop();
navigation = ["navback1", "navback2", "navback3", "navback4", "navback5", "navback6"];



why wont it work?

when i trace+debug it all i get back is:
[_root.navigation[i]]
[_root.navigation[i]]
[_root.navigation[i]]
[_root.navigation[i]]
[_root.navigation[i]]
[_root.navigation[i]]
[_root.navigation[i]]


so it sees that the array has 6 entries but it just wont grab it!

all the MC's are on the root and have the names that are in the array...

do you need a fla or is this enuff?

MX Dynamic Menu Giving Me A Headache ?
Hi there... thanks for taking a look at this post !!

Ok my problem is simple.... Using code I found in the Actionscript.org library I made a dynamic menu with arrays to name my menu items and a loop to intialize them and position the instances on stage. easy !!
What I would like to happen is that when one of these menu items are selected a menuItem1.onPress() does whatever and then the selected item is removed from the menu list. And so the remaining menu items reposition to fill the gap.
I've tried to splice the array to delete the selected item, which doesn't really work......also something else I found is; say there are 5 items on the menu the button functions are menuItem5.onPress(), menuItem4.onPress() etc etc.. when one is deleted this messes up my button functions because menuItem5(or whatever) is now menuItem4 etc..
I hope you understand where I'm going with this....
Any ideas on how to code this would be great...cheers guys !!

Dynamic Scroll + Zoom (what A Headache)
If any body can help me get through this it would be much appreciated.

What I'm trying to do is create a dynamic map that scrolls with movements of the mouse and if you click on the map it zooms in. This I have managed to do but the problem is the map borders scroll off the page. I have no idea can to stop the scrolling when the map gets to the borders.

Do anybody have examples of this or links they can direct me to.

Thanks in advance.
M.

Preloder
needhelp with setting for preloder to go directly to amin page, I have everything working in my flash movie, the only part i'm having trouble with is when it says accesing site in my movie - I can't get to go to main page smothley. Can anyone help??????

Preloder Like This...
hey, just wondering if anyone can direct me to a tutorial or paste in some script on how to do a preloader like on this site:

http://www.gridplane.com

basically i'm after a really smooth preloader, as i'm having problems with mine being too clunky and also my loadbar doesn't reach 100% properly—i've just fudged it for now.

http://www.atype.com.au

here's the currect script i'm using:


Quote:




onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per*9.43;
if (percent>99) {
_parent.gotoAndPlay(2);
}
}




cheers
iota.

Preloder
does any one know how to add a swf movie after a preloder loads if you can tell me the action script that would be cool and where to place it thank you

Preloder
whats up everyone i had a problem with some preloders not playing the movie right and i was asked to put the swf files here . one has the preloder and the other has the movie it is supposed to plane any help would be great thanks

Please Help With A Preloder
Preloader
Hi!
I wonder why this code don't work?
Here's the code:

Code:
onClipEvent (enterFrame) {
_height+=_root.getBytesLoaded()/_root.getBytesTotal()*79;
}

Can it be something with that that the code is in a movieClip in a mask?

thanks Albert
Love this smiles

How 2 Add A Preloder ?
hies
my prob is simple but i can't get itz ans anywhere
okies so hope i get it here
i don't know how to add a preloader into my movie
i used to make a loadin' sequence and then the main page comes
but tatz not right
i want people 2 see the loadin' clip while the site is loadin'
plz iif u know do reply
thanx

A Recursion Headache Is Worse Than An Ice Cream Headache Because There's No Ice Cream
Can you spot how to prevent a self hitTest? I'm trying to check if there is room to extend the width of a rectangular block. My recursive function 'roomToRight" returns true if there is empty space to the right. If there is another block in the way, it calls itself to see if there is empty space to ITS right. If there is, it moves that block right, creating space for the previous block, and returning true.

It creates a temporary test area on the right to see if there's empty space. One problem is that I can't think how to prevent it from a hitTest on itself which of course returns true. Think I have to create a variable & add subtract somewhere but not bright enough to figure out where... Please also let me know if you see any redundant checking - this is just an isolated instance of a check that'd run multiple times for multiple blocks in 4 directions, so efficiency will become important. For now I just want to figure out this smaller problem:

code: numBlocks = 2; //only blocks "b0" & "b1" for now
GROWSIZE = 20;
XBOUNDS = 550;//right wall position
function roomToRight(blockName) {
for (i=0;i<numBlocks;i++){//BROKEN HERE MAYBE-> should this not be set to zero?
if (blockName.hitTest((XBOUNDS-GROWSIZE), blockName._y+1, false)){ //block would hit wall, so false;
return(false);
}else{
var answer = true;//will be true if nothinig is hit
blockName.attachMovie("testArea", "testArea1", this.getNextHighestDepth(),{_x:blockName._width, _width:GROWSIZE, _height:blockName._height});
for (j=0;j<numBlocks;j++){
if ((i!=j)&&(blockName.testArea1.hitTest(this["b"+j]))){ //HERE it shouldn't check against itself
if (roomToRight(this["b"+j])){//if THIS one has room to the right
["b"+j]_x +=GROWSIZE; //move it right
}else{
answer = false;//if no space, return false
}
}
}
blockName.testArea1.removeMovieClip();
return(answer);
}
}
}
if(roomToRight(b0)){//room to grow so grow
b0._width+=GROWSIZE;
};


Thanks!

Really Simple Preloder
is there a really easy preloder script which takes up about 2 frames? ill put an MC in for the animation, i just want somethin simple cos its only for a web page, not the entire site.

Thanks

How Would It Be Possible To Make A Preloder Appear....
How would it be possible to make a preloder appear before the rest of the movie, and have it show loading.... or something so that the people waiting to see it know that it is loading?

Preloder 3 Movies
I've got on one page 3 different movies, now I want to have 1 preloder in front of that page because it takes an different amount of time to load the movies.

How can I create a preloder that doesn't stop before all other 3 are loaded?

External .Jpg Preloder
Hey, the tutorials and other question i have found here haven't really helped. I want to create a preloader that can be duplicated (not necessary yet) and loads an external images.

Can any one get me of the ground with this one?

any help would be greatly appreciated, thanks.

Preloder Question
hi,
I want to do a preloader and are a bit confused. some use different scenes and some place the preloader in the first keyframe. some use a own swf-file for the preloader. I wonder whats the difference? Is one solution better than the other?

I really want to know what you think before I decide in what way I do my preloader.
I also wonder if you have to use ifFrameLoaded because all in my mainmovie is in one frame. it must be possible to load the movie without counting the frames.

/vicky

Percentege Preloder
Could somebody please point me to a percentege preloader component? without a loadbar etc, only the percentege preloder.

Percentege Preloder
Could somebody please point me to a percentege preloader component? without a loadbar etc, only the percentege preloder.

Preloder Problems( Not Showing)
I made a prealoder, my code is pretty simple and it works perfect with the file were I have a static image in second scene. But when I place the prealoder into more complicated file were I also have two scenes (all my second scene movie clips sitting in library and actions calling them to play) Preloder not showing up.The movie plays (after download completed) but ignores the preloader... there is some conflict.
Here is my preloder:
first frame action-

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 2", 60) {
gotoAndPlay ("Scene 2", 1);
}

and my next frame, same scene:

gotoAndPlay (1);

and in second scene there is no actions in the Timeline( only "stop()" at the last frame were it has to be anyway.


Do you thing I'm missing something?Maybe You know anybody who could help.
Thanks in advance
Irina

Preloder Works In Simulation But On The Web
A while ago I found on another board a nice piece of preloading code for multiple images. It seemed to be working great until I've actually posted the swf on the web. The text field displaying the loading progress in % started showing NaN until about 85-90% of the totalbytes were loaded. This would coincide with the first image actually popping up. This does not happen in a simulation mode: the first image shows up at the same point but the percentage is displayed correctly way beforehand and grows steadily from ~5 to 100%. I think the reson behind this behavior are dynamically created emptyMovieClips that are being used for loading images. Preloader must be getting confused every time the new one pops up and resets itself to NaN. I tried to include a line of code that would correct it but it doesn't seem to be doing anything. I'm not emotionally attached to this script so if anyone has suggestions for a preloader that would grab images from the external folder while displaying the progress in percentage I would appreciate.




code:
//number of images to be displayed:
srcL = 10;
//source of Images for a gallery:
imageFolder = "Graphics/Gallery_1";
var Images = new Array();
for (i=0; i<=srcL; i++) {
Images[i] = [imageFolder+"/image"+i+".jpg"];
}
// create one clip for each movie
// and load the movie into each one.
for (var i = 0; i<Images.length; i++) {
var tmp = this.createEmptyMovieClip("clip"+i, i);
tmp.loadMovie(Images[i]);
}
// now set up an onEnterFrame event
// to continually check the load progress
// and update the bar clip
this.onEnterFrame = function() {
var stat = 0;
// initial status
for (var i = 0; i<Images.length; i++) {
var tmp = this["clip"+i];
stat += (tmp.getBytesLoaded()/tmp.getBytesTotal())*100;
}
stat /= Images.length;
// get the average status value
if (isNan(Stat) || tmp.getBytesTotal()<8) {
return;
} else {
this.bar._xscale = stat;
// set the width of the bar to reflect the load status
this.txt.text = Math.round(stat)+"%";
trace(stat);
// if the load is complete, cancel the onEnterFrame
if (stat == 100) {
delete this.onEnterFrame;
}
}
};
stop();

Preloder - Macromedia Style
hi all,

i'm looking for a preloader like the one macromedia have (or used to have?) - the arrow circling around with a slight fade in it's tale end.

i'm wondering if anybody has ever come across one like this?

thanks!
jose

Preloder, Cartoon, Home
hey!

well i got an annoying prob:

there are 3 swf datas preloader, intro cartoon and the actual homesite.
i´d like the preloader keep on going till the cartoon (not that small) is fully loaded.

has anybody an idea?

greetz from germany!

preloader swf-->cartoon swf--> homesite swf

How To Get The Flv Files In Preloder Method?
please how to get the flv files in preloder method?

any example given to me urgent requirement?

with example for coding ..........

Help With Second Preloder Inside Main Movie
Hi guys.
Ive followed some tutorials and got my main preloader running correctly, still needs a tidy up but works.
There is a movie in the root folder of the site that is called by the spec sheets button...it is a big ish movie so ive used the identical preloader for it with some taxt changes.......it works fine on my system but when online the bix of the preloader appears but it runs incorrectly.....im realy puzzled....??
If any one can help the site is located at

http://www.deveronside.co.uk/staffy/
and the button in question is the one for spec sheets
Thanks in advance fpr any suggestions
Les

How To Make A Preloder Inside Of A MovieHolder
Hi,
all pro..in flash. im a newbie and want to explore the capability of
flash MX .i want to learn how to create a preloder inside of MovieClip. like when you make a loadmovie inside of MovieClip instead of level. hope for your respond.
and thanks a lot .q^_^p

Preloder For Multiple Movie Clips
Hello there.
I'm building a website where i have 9 thumbnails on the main time line
What i want to achieve is to press on the thumbnail which will redirect to
a movie clip each time fairly big in size and have a preloader for each thumb. Load the content before it enters the first frame of each movie clip since the content is fairly big in size.(3d animation)
Can you suggest something please

Thx:)

Attach Sound, Export In First Frame And Preloder
Hello. i use MX (6) ver. of Flash and I am working on slide show with sound background. I use attache sound method to play sounds. But.

Attached sound work only when i allocate
-Export for ActionSript and
-Export in first Frame.
And problem is all lincked sounds starts loading in very begin. So my preloader doesnot work well. Cuz preloader starts work only when sounds are loaded. To escape this problem i could not allocate -Export in first Frame. But in this case attache sound method doesnot work.

I see only one exit now. Create preloader and main movie in different swf but it is not i really want. How to use attach sound method with linked sounds but do not allow them load in first frame?

Thanks

.JPG HEADACHE...
Hi all

I desperatly need some help with dynamically loading .jpg files into my .swf, it works fine on my local system but not from my server, here is the code i have used...


//frame 1//


_root.createEmptyMovieClip("holder", 1000);
setProperty("holder",_x,405);
setProperty("holder",_y,220);

//button on frame 6//

on (press) {
holder.loadMovie("1a.jpg");}

the html.swf & mypic.jpg files are all located in the same file on my server at docspriory...

Why is this not loading in my .jpg file any help would be thankfully recieved!

XML Headache #2
Okay, so now I need to take specific XML nodes & turn them into an array, & after 4 hours of trying, I'm totally clueless.

here's the Idea:

index
node name="red"/
node name="blue"/
node name="green"/
/index

So how do I take red, blue, & green and place them into an array?, I want the final product comes out like this:

obj1 = red
obj2 = blue
obj3 = green

My problem is that I don't know how to iterate through "node name" & have my code apply a number to each "name" attribute.
Help.

XML Headache #3
Ho-kay,
So now, let's say I've got an XML set up like this:

index

images id="1"
pic src ="img1.jpg
pic src ="img2.jpg
/images

images id="2"
pic src ="img1.jpg
pic src ="img2.jpg
/images

/index

I'm having trouble trying to create a main array that cycles first through the "images" tags & then every time it hits one, it starts a sub-loop that pulls out the "pic" tags that it contains and stores them in a personal mini-array, so that when an item from the main array gets called, it will automatically call up only the "pic" names contained within it's mini-array.

I know how to do the first part, but I've only been able to set up an array that calls ALL the "pic" tags & stores them in one long single array.

I'm dyin' heah.

Can anyone help?

Headache
ok,i created a flash movie consisting of 5 seperate .swf files linked together through buttons (semi-interactive). everything works fine through the flash player. the problem is getting it to work on the web (using dreamweaver). i inserted the .swf file and the first movie plays fine, but when the button is clicked to go to the next movie, nothing happens. (using flash 5) pwease help

Headache
I have a question from all of you.....I am sure i will get some good responses from this site.


Can we grab dynamic data from other websites....
For Example
http://bluepages.com.sa/DirectoryEn....toryEn&DirID=2
search for A and Search in Comapny Name

This webpage is showing company records and when we click on company name ..... the next page is showing details of that company in a pop up window .....

So, can we grab data dynamically from popup windows without clicking or opening them ..... and save it in a database .... I mean to say any software or script through which we can grab data automatically....

waiting for some good solutions.......

thanx

[F8] Headache With AS... Pls Help.
Yeap...
After 15 aspirines, i still have a headache cause of this stupid code.
I am trying to send values between swf.
But something weird is happening... in one of the swf, the code seem to not work, but looks ok...
The idea is that after clicking on the red square, it will send a new value to the OTHER flash movie that is inside of a html.
I will upload both of them so u guys can give me a hand, pls...
Just change the actuall addresses of the files...
Thanks.
Leo.

GET/SET Headache
Hi.
Here's the code and a question after it... I'm just lost and can not figure why does this happens =(

Code:
class Foo {
private var f:String = "";
function Foo(){
f = "old value";
}
public function set _f(s:String):Void {
trace("Was it really changed?");
//No, this trace will never get to the output... wonder why :confused:
f = s;
}
public function get _f():String {
return f;
}
}

Code:
var __foo:Foo = new Foo();
function __func(v){
trace("trying to change value");
trace(_arr[0].a);
trace(v);
_arr[0].a = v;
}
var _arr:Array = [{a:__foo._f, b:__func, c:__foo}];
_arr[0].b.apply(_arr[0].c, ["value changed"]);
So, here's an explanation:
I need to define some of the properties of my class in this way. I.e. to store the linkage to the properties, and than to call upon the function to redefine those properties. But, in fact, it doesn't do it, even though where's nothing to prevent it from doing it... just
Any suggestion welcomed

Xml Headache
hi,
im new to xml. i am using a template and wondering how i put a text link to another website to show up in flash. below is the code. id like the link to show up in the caption tag

<pic>
<image>images/1.jpg</image>
<caption>August 2008. designed a website</caption>
</pic>

XML Headache
Hi All

I am trying to store values in an Array called titles. While inside the onLoad function I can store attributes from the XML tree to the Array 'titles'. My problem is, when I access the titles Array from outside the onLoad function the array is empty. The ActionScript and and the stripped down XML is below, if anybody could please help!

regards

John
www.javono.com

// ACTIONSCRIPT
var jbx:XML = new XML();
jbx.ignoreWhite = true;
jbx.load("../XML/glossary.xml");

var termArray:Array = new Array();
var titles:Array = new Array();
var p:Number = new Number();
var names:Array = new Array();

// Listener that retrieves data from XML file
jbx.onLoad = function(success)
{
if (success)
{
termArray = jbx.firstChild.childNodes;
for (p=0;p<termArray.length;p++)
{
titles.push(termArray[p].attributes.name);
}
}
else
{
title_txt.text = "OOP's not working! Try again later.";
}
}

// XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<glossary>
<term name="amplitude" ref="" content="The amplitude is the magnitude of sound pressure change within a waveform(volume), or basically, the maximum amount of pressure at any point in a sound wave. Amplitude is often referred to as sound pressure level and measured in decibels."/>
<term name="automation" ref="" content="Automation is when the methods of editing are pre-programmed by a user. An example would be changing the volume or pan settings or certain devices are activated according to when a user wishes to deploy them."/>
<term name="attack" ref="" content="Attack is the moment the sample starts, changing the attack settings will determine where in the sample a device will start to play the sample."/>
</glossary>

Xml Headache..
Please let there be someone out there that can help me .. I'm trying to set up a html formatted xml document that is called into flash. I'll give you my code so you can see what I have done. Each slide represents a different content page - each will be called from a corresponding swf movie.

<?xml version="1.0" encoding="UTF-8"?>
<slides>
<slide>
<title>Introduction </title>
<content>
<![CDATA[<b>BOLD</b>]]>content page 1
</content>
</slide>

<slide>
<title>Introduction 2</title>
<content>content page 2
</content>
</slide>
</slides>

Here's whats on the first frame of the flash movie (content page 1)

function loadXML(loaded) {
if (loaded) {
_root.title = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.content = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
title_txt.text = _root.title;
content_txt.text = _root.content;
} else {
trace("file not loaded!");
}
}
var xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = parseIt;
xmlData.onLoad = loadXML;
xmlData.load("module1.xml");
xmlDoc.onLoad = function(success){
if(success) parseIt(this);
else trace("****XML Document failed to load properly****");
};
parseIt = functions(doc);{
_root.content_txt.html = true;
_root.content_txt.htmlText = xmlData;
//here's where you parse out your XML document.
};

The content is loading into the flash movie, but I can't figure out how to get words bold .. I tried some CDATA as you can see but all that displays in the flash movie is <b>BOLD</b> and the rest of the content after it is just gone ...I need to be able to place the html text straight into the xml file and have it display the formatted text in the flash movie .. no clue how to achieve this .. I'm using Flash MX

Please help me and thanks!

Xml Headache..
Please let there be someone out there that can help me .. I'm trying to set up a html formatted xml document that is called into flash. I'll give you my code so you can see what I have done. Each slide represents a different content page - each will be called from a corresponding swf movie.

<?xml version="1.0" encoding="UTF-8"?>
<slides>
<slide>
<title>Introduction </title>
<content>
<![CDATA[<b>BOLD</b>]]>content page 1
</content>
</slide>

<slide>
<title>Introduction 2</title>
<content>content page 2
</content>
</slide>
</slides>

Here's whats on the first frame of the flash movie (content page 1)

function loadXML(loaded) {
if (loaded) {
_root.title = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.content = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
title_txt.text = _root.title;
content_txt.text = _root.content;
} else {
trace("file not loaded!");
}
}
var xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = parseIt;
xmlData.onLoad = loadXML;
xmlData.load("module1.xml");
xmlDoc.onLoad = function(success){
if(success) parseIt(this);
else trace("****XML Document failed to load properly****");
};
parseIt = functions(doc);{
_root.content_txt.html = true;
_root.content_txt.htmlText = xmlData;
//here's where you parse out your XML document.
};

The content is loading into the flash movie, but I can't figure out how to get words bold .. I tried some CDATA as you can see but all that displays in the flash movie is <b>BOLD</b> and the rest of the content after it is just gone ...I need to be able to place the html text straight into the xml file and have it display the formatted text in the flash movie .. no clue how to achieve this .. I'm using Flash MX

Please help me and thanks!

New Window Headache
Hi there and help,

I am have a new window that opens from the index page. The window opens perfectly when pressing the "enter" button. However once the window opens the flash movie does not play. It works when I try to open the from off of the desktop, it works when I open the window by itself from IE. It just doesn't work when I upload it onto the domain. The window displays white space where the movie is supposed to be, it even says the movie title across the banner. What am I not doing?(It also works when I link to the swf. version of the flash file but not the html version)

all assistance is welcome...

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