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




Load Image In Flash MX 2004



I am able to load xml into my textBox just fine, but I am not getting my image to load. What I have done so far: Created MC to hold image: gave it instance name img_hldr; but how do I tell it in the xml source below to load the image?function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; headline = []; publisher = []; body = []; total = xmlNode.childNodes.length; for (i=0; i<total; i++) { headline[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue; publisher[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue; body[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue; } firstImage(); } else { content = "file not loaded!"; }}// Initialize the TextArea componentstory_details.html=true;story_details.wordWrap = true;story_details.multiline = true;story_details.label.condenseWhite =true;// Load xml contentfullstory = new XML ();fullstory.ignoreWhite = true;fullstory.load("fullstory.xml");fullstory.onLoad = function (success) { if (success) { story_details.text = fullstory; } }



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 07-24-2005, 12:42 PM


View Complete Forum Thread with Replies

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

How I Can Load A Image In Flash Mx 2004
hello everybody

i have prob in flash mx 2004. prob is "How i can load a image in falsh mx 2004" using action script.

plz give me the best solution.

thanx

regards
sandeep

Flash Mx 2004 Move Image
Hi,

I have a problem with this code:

//stop();
function moveimage (movex, movey) {
if (_root.photo._x < 200) {
_root.photo._x += movex;
_root.photo._y += movey;
}
else {
clearInterval (intervalID)
}
}
function zoomimage (xfactor, yfactor) {
_root.photo._xscale += xfactor;
_root.photo._yscale += yfactor;
}

function helloworld (){
trace ("helloworld");
}

When I move the image it stops at 200pixlar. But when I than try to move it back again (or in any other direction) the image is frozen....how can I make the image move again?

/Emma

Image Ready Vs Flash MX 2004
I found one downfall in Flash MX 2004 Pro and all previous versions, it only export gif file in 256 colors which isn't good, As Image ready saves gif as it is in full colors. Is there any way to optimize Flash animated gif with full colors ?

Load XML In Flash MX 2004 Vs MX
Hi all

I read tutorial 'Loading External XML formatted Content into Flash MX 2004',
then I try the code in Flash MX but XML tag still appeared. So what part of code I have to change that I can use it in Flash MX not in Flash MX 2004.



many thanks

Flash MX 2004 -- Image/Text Wrap
From what I read before I got MX 2004, it had the ability to add an image into a text field so that words would wrap around it (and very easily at that)..

The help portion of MX 2004 is nearly useless currently and the macromedia site has no information that I could find..

Anyone know how this is accomplished?

Currently all text on the site loads into text boxes from external text files. However, this page has "Executive Profiles" which will include a portrait.. can I still do this externally or do I have to have it directly in the SWF for it to wrap around the image?

Thank you in advance.

Flash MX 2004 Want To Create An Image Scorller
Hi Guys

I am using Flash MX 2004 and I want to create an image scroller which will scroll on my main page from left to right countiniously and when I mouse over on any image it stop on that image and when I click on that image it will take me to its movie clip or its scene.


any idea or know any link or tutorial

I try to find so hard on the net but didnt find any

Please help me
I am attaching one fla file which i found on the net it is like what I require but in this I want to to stop the scroller when I mouse over it and when i click on that image it will show me its big image on separeate window or any other scene some thing like that

a quick reply shall be highly appriciated

Thanks & Regards


Atif ur Rahim
www.atifrahim.com

Load Movie In Flash 2004?
Wow this is frustrating! I'm using 2004 and trying to just do a simple load into a movie clip. in mx, you could just do:

loadmovie(mymovie.swf, holder)

i just want it to pop open, it wont be triggered by a button.

in flash mx 2004, its asking for an onclipevent statement, but i'm clueless - can anyone give me a hand?

Gregory

Need Script For Flash Mx 2004 Image Navigation Scroll
I have went through sites, downloaded the samples for scrolls. I have copied and paste the scripts, even typed in the scripts and nothing works. Can ya help me?

Using XML/Actionscript To Show An Image In Flash MX 2004 (What Am I Doing Wrong?)
Heya,

I was wondering if someone could look at this coding that I am using to display XML data. Currently everything loads perfectly except for the thumbnails and I really cannot figure out why or how to make it work. All thumbnails are .jpg's so that's not the issue, I know it has to do something with the coding.



Quote:




if (items[i].attributes.type == "article") {
// create variables for our elements
var article_title = items[i].firstChild; //
var thumb = items[i].childNodes[1]; // second child node

var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc._y = item_count * item_spacing;
item_count++;

//
item_mc.title_txt.text = article_title.firstChild.nodeValue;
item_mc.picture.MovieClip = thumb.firstChild.nodeValue;




Any help would be greatly appreciated as is this problem is the only one left I need to solve. If there's anything else you need to help further, please let me know and I'll reply ASAP.

-Ind

Adding A Preloader To Image Panning In Flash Mx 2004
Hello,
Does anyone know how to add a preloader to the image panning tutorial????
http://www.kirupa.com/forum/showthread.php?t=225637
I'm only a beginner with flash and would really appreciate your help.
Thanks

Flash MX 2004 Dynamically Load Movies
Hello,

I'm trying to concantenate the code below. It works fine using the attachedMovie function.

The error below is returned...
Error opening URL

But NOTICE the extra spaces between the screen3 AND .swf? Looks almost like 2 full lines.

How do I dynamically load movie using the loadMovie function?

"file:///C|/Documents%20and%20Settings/iaustin1/Desktop/projects%5Fl/cs%5Fcoor/contents/screen3

"


//bkmk return
function fbkmkreturn(){
vpath = _root.ibkmk1.vpage;
trace("vpath==" + vpath);
for (i=0; i<=arrcount.length; i++) {
if (vpage = array[i]) {
loadMovie(["contents/screen"+vpath+".swf"], "itarget");
//trace("bkmk field here" +vpath);
break;
}
}
}

iaustin

Load Html Into Flash Question.(MX 2004)
I made a flash movie that load an html file into a textbox. This is what I got :

text.multiline = true;
text.wordWrap = true;
text.html = true;
message = new XML();
message.ignoreWhite = true;
message.load(loadthis.html");
message.onLoad = function() {
text.htmlText = (message);
};

If the html file was not exist(the movie failed to load the file), I want it to go to and stop at frame 2. I have no idea how to do this. Can anyone help me?

Load Binary File In Flash MX 2004?
I've been animating with Flash MX 2004 for about nine months, and am preparing to tackle a project that involves some more serious programming.

I'm hitting a roadblock early on - I need to be able to read a binary file of arbitrary format, either into an array or byte-by-byte from the file. The file will be stored at a URL.

I know Flash MX 2004 has built-in handlers for specific input types, but is there a way to work with a raw binary file in a non-standard format with no meaningful extension in the filename? I looked at the Item class a bit but didn't see an obvious way to pull this off.

I'm wondering if I'm trying to push Flash in a direction it's not intended to go. Any insights will be much appreciated - thanks!

Flash MX/MX 2004 Pro Load Movie Problems
I have a movie that loads other flash movies on toher layers in certain frames. The pages don't load all of the time and some of my button actions don't load other moveis. Anyone got a reason for this happening??

Flash MX 2004 Won't Load Photoshop Docs
Had to reformat my comp and now my Flash MX 2004 won't import Photoshop 7 docs. Says "unexpected error occured." I have Quicktime 6.4 installed but it still won't load it. Now i'm forced(not really though) to work on my laptop which actually will import photoshop docs. Do i need importers or anything, help!

How To Load All HTML File Into Flash MX 2004 ?
How to load all HTML File into Flash MX 2004 ?

Hi,

I am using Flash MX 2004 as new as today.

I heard that it can load your HTML into Flash environment.

Well, in my mind, it means, if this is true, I can skip those irritating HTML IFRAME IFRAME methods.

But so far I don't know how.

And I don't even know whether the loading target should be into the Text Field or into the Dummy Movie Box.

And I don't even know the correct Actionscript to perform such task.

I try loadMovie("test.html",_root.targetmovie);
and loadVariables("test.html",somevar);

But it doesn't work at all.

Please kindly help me. Thank you.

- me IGX Akiko

I Need To Load A Image(jpg) Into Flash With A Text File With The Url For The Image
As the name says it all.

I need to add some AS in my flash site, so that the image (banner) is dynamic, meaning when I want to make a change to it, or make it look different, i dont want to go into flash to do it. So I want it so that when I change the jpg itself it changes inside of flash.

I would like flash to look up a txt file I give it, and inside the txt file it will have a URL to which jpg to load up in the movieclip.

If not this way, another similar way would be great

Thanks!

Load A Binary Data File In Flash MX 2004?
I've been animating in Flash for about 9 months and am now looking at a more serious programming project in Flash MX 2004.

My question is - is there a way to load a binary file of arbitrary content into Flash? I know Flash recognizes certain types of media files, but I just want to access a URL with a raw binary bytestream and interpret the data directly. I looked at the Item class but didn't see an obvious way to do this.

Am I trying to push Flash in a direction it's not meant to go?

How To Load Dynamically Generated Images Into Flash MX 2004
Hi, I have a problem that I can't seem to get rid of...

I am working on making a tile-based RPG in Flash.

For the tiles, I have written a php file that generates tile images using GD, depending on what is specified in the URL. The generated images are PNG's. (I can change that if that's necissary, but I prefer to use PNG).


Code:
"image.php?srcx=0&srcy=0&srctile=1"
/ This, for instance, generates a grass tile.

Code:
"image.php?srcx=1&srcy=0&srctile=1"
/ This would be a water tile.

The script works perfectly if I open it in IE.

However, I wish to load the generated images into Flash, but I'm stuck at this.

I tried this:

GrassTile.contentPath = "image.php?srcx=0&srcy=0&srctile=1".
WaterTile.contentPath = "image.php?srcx=1&srcy=0&srctile=1".

But it doesn't work.

It seems that the contentPath property only accepts JPEG's and SWF's. So I tried changing the header in the PHP file to JPEG. The generated images were JPEG, but they still wouldn't load into Flash.

I think that you can't specify a php script in contentPath, but I was wondering if there is a different way.

Also, I was wondering if it is possible to have a piece of code import a PNG image to the libary, at run-time. I don't want to import all of 'em while creating the flash movie, because there are too many tiles (about 11k). Secondly, importing all these images to Flash, makes the flash file very big, and not all tiles are used during the game.

Please help me out, thanks in advance.

Load Dynamic Text Flash MX 2004 Problem
Okay, this is a little difficult to explain so I am going to provide URLs for samples.

I am having difficulties viewing dynamically loaded text. When I goto the swf with the dynamically loaded text in its own window the dynamic text loads just fine and is visible.

(e.g. http://www.goodarchitecture.com/temp2004/swf/intro.swf)

Although I am trying to load this swf into another movie. Here is the swf that will not load the dynamic text. This is strange because I can copy and select the text, but it's not viewable... please help..

http://www.goodarchitecture.com/temp2004/swf/

Thanks.

Load Dynamic Text Flash MX 2004 Problem
Okay, this is a little difficult to explain so I am going to provide URLs for samples.

I am having difficulties viewing dynamically loaded text. When I goto the swf with the dynamically loaded text in its own window the dynamic text loads just fine and is visible.

(e.g. http://www.goodarchitecture.com/temp2004/swf/intro.swf)

Although I am trying to load this swf into another movie. Here is the swf that will not load the dynamic text. This is strange because I can copy and select the text, but it's not viewable... please help..

http://www.goodarchitecture.com/temp2004/swf/

Thanks.

Flash MX 2004 Wont Load Flash MX Files?
Hi, i was wondering, why wont flash MX 2004 load flash mx files? i get a popup window("unexpected file format")

Any ideas?

Is ther a setting u can change to allow you to load MX files?

Thanx

Martin

How To Load Data Dynamically Using Xml On Tree Component In Flash Mx 2004
HAI FRIENDS
i wanna know how to load data dynamically using XML in flash TREE UI COMPONENT. I WANNA load text and image files dynamically on the same scene when the user pressees the node. IS IT POSSIBLE?? IF SO PLS RESPOND TO THIS IMMEDIATELY
THANKS FOR UR REPLY.
PLS GIVE THE CODE ACTION SCRIPT PART AND XML FILE TOO.

Flash Mx Load Image
hi can anyone help

I would like to convert the flash mx load image example to flash 5
is this possible.

I knew that i will need to change the load jpg to seperate swf's
and have changed the functions to be accessed via button presses
but unsure about the rest

also would ther be a way to preload the swf's if needed

cheers

heres the code so far

//initialize variables and properties
square._alpha = 0;
whichPic = 1;
totalimages= 5;
location="movie";
//initiate change to new image when buttons are clicked
function next() {
if (whichPic<totalimages && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
function back() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie(location+whichPic+".swf", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
// limit input field
if (input>totalimages) {
input = totalimages;
}

};

Flash + Asp = Load Image From DB
Ok guys, I promisse this will be the last question about this specific project (if you check my history of questions, youll realize people tend to hire me to do the weirdest mix of flash capabilities in one, awarding me weeks of headache).

To enlighten those who didnt follow the previous question or who dont remember, Im working on a project that integrates a database for text and flash link storage and filing in an specific order and showing that information on flash. To cut to the chase, we had first some problem with flash reading the variables sent by asp. That problem was fixed, and now we have text (weeee!)... BUT we cant see the animations when using variables :P

We have tries lots of things, both in actionscript, xml and asp. The last attent used the loader component (I confess I had never before used components.. so I like to do it the hard way, so what? ). The fact is, as we proved by adding a dynamic text, flash manages to receive the variable, but the script that tells the movieclip or loader to load the swf doesnt work!

Here the current code (we went thru so many variations that I confess I dont remember where we've already been to).

System.useCodepage = true;
var strUrl = "pagina_var.asp?IT_ID=" + _root.IT_ID;
loadVariables(strUrl, "_root", "POST");
texto.text = _root.IT_ID;
myLoaderComponent.content._lockroot = true;
myLoader.load(image1);
stop();


pagina_var.asp is the one who says the variables. IT_ID is the id of the specific code (that holds all the varibles for that scene).
texto is the textfield I display the variable (correctly). currently it displays the ID, but earlier versions displayed the path to the swf perfectly.
myLoader is the name of the loader component. image1 is the variable with the url of the swf or jpg.

I guess my immediate question, to follow the current situation is, how can I use a variable to give a loader component its contentPath?

Anyone? PLEASE

- K

[FLASH] Load Image Help
I am writing an xml file, with php. This file is then parsed by flash, and the image url is loaded into a movie clip using "loadMovie".

My problem is, I have a function that is reloaded every 10 seconds, but everytime the function runs the image is reloaded. I am trying to write something that checks the url of the movie and if it is the same as the old one, don't reload the image. Can this be accomplished? If so, how?

Thanks in advance for your help!

-matt

Load Image From XML Into Flash
I have a very simple question: How do I load one image from an XML file into a flash movie. Thats it, nothing fancy, just one image. Here is my XML


Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>

<news>
<pic>http://www.mc2.com.ky/beta/cisc/images/navbar/spinnakers.jpg</pic>
</news>

</images>
I have a basic flash movie with an empty movie clip on the stage labeled picture.

[FLASH] Load Image Help
I am writing an xml file, with php. This file is then parsed by flash, and the image url is loaded into a movie clip using "loadMovie".

My problem is, I have a function that is reloaded every 10 seconds, but everytime the function runs the image is reloaded. I am trying to write something that checks the url of the movie and if it is the same as the old one, don't reload the image. Can this be accomplished? If so, how?

Thanks in advance for your help!

-matt

Load Image And Flash MX
What is wrong with this code?



pink.onPress = function() {
    loadMovie('sushi.gif', '_root.currentpict');
};



I want to load an image from a file that is in the same folder as the .swf.  The target is "currentpict" which is the instance name of a movie clip (with one frame) that is located in the  main timeline.

Something happens when I press the "pink" button,  the movie clip "currentpict" disappears, but the image "sushi.jpg" does not take its  place

kim

Can Flash Load An Image While Playing?
I was wondering if it is possible that my flash movie load or import an image(let say a jpeg) each time is playing.
Then if we change the image in our folder, our flash movie load the new one!??
I know I can do that with text but what about IMAGES!!!!

How Do I Load An Image From Xml File Into Flash
Hi!!

I am trying to make a businesscard . Apart from the text details i also need to have an image placed in the extreme top left corner of it. What i know is that :
mymoviecliip.loadMovie("ab.jpg");
mymovieclip.onData=function()
{
mymovieclip._x=30;
mymovieclip._y=40;
}
helps in loading an image.

But i am not getting the desired results. Help!!

Flash Check.. Else Load Image
hello


i'd like to check for the existence of the flash plugin, and then load a graphic in its place if flash does not exist.

any links to tutorials or whatever?

many thanks,

adam

[F8] Load TIFF Image In Flash
How the hell can I load a TIFF image from an external URL in Flash?

Is this even possible? I need to load TIFF and BMP images into a Image Editor I am currently developing, and I have no idea how to do it.

Can someone please help?

Thanks,
Horea

Flash & PHP To Load External Image?
Does anyone know how I can use PHP to load an image into flash? I know how to load text into a dynamic textbox via flashvars, but I can not get an image to display this way. I do not know much about actionscripts, but I do know a little bit about PHP. I am not using any Adobe/Macomedia products, I am using a cheaper piece of flash software.

Any help or info would be great.

Flash 8 Image Load/reload
hi

We are currently trying to create a map of manila city using flash, so far we have created the centre of the city to a high standard but want to extend and do the full city. the problem is the size of the map is about 20 times the size of the one we have already made meaning that it may need to be broken up into seperate images. Does anyone know the best way to do this? and also the code required for loading/unloading images that are in-use/not in-use.

Cheer
Russell

Load Image From Another Domain Using Flash Cs3
Hi there, absolutly newbie here

I made this flash-actionscript3 wich calls an php genarated xml wich has 3 text fields and one image name. I works as desired if the image is stored in the same server, but fails if it's not.

Wokring example :

<xml>
<title>Title</title>
<description>Description</description>
<url>http://www.example.com</url>
<image>image.jpg</image>
</xml>

Not working example :

<xml>
<title>Title</title>
<description>Description</description>
<url>http://www.example.com</url>
<image>http://www.anotherdomain.com/image.jpg</image>
</xml>

Any hints?

Thank you very much in advance.

How To Load Tiff Image In Flash 8
hi all
Is it possible to load a tiff image in flash 8. i am creating a flash image viewer using ASPX and Flash ... and i need to load a tiff images but flash is not supporting to load a tiff images. is there is any way to do this...

thanks in advance
Sankar

How Do I SIMPLY Load An Image Into Flash Via XML?
I tried this thread under Server-Side and no one replied. I think it is more applicable here.

I am having a tough time simply trying to load an image into flash via XML. I am not trying the whole slide show thing...

Just simply, loading a JPEG into Flash, via XML.

I might be missing something obvious, but still, I am at a loss.

Here is my existing XML:


Code:
<FrunderMenu1>
<titles>
<title>
<text>Frunder Studios</text>
<img>frunder.jpg</img>
</title>
</titles>
</FrunderMenu1>
And my current Action Script:


Code:
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {

item = _root.attachMovie("menutitle", "menutitle", 0);
item._x = 90;
item._y = 15;
item.menutitletxt.text = this.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes;
}
}
menuXml.load("FrunderMenuTest.xml?dummyVar=" add getTimer(),"POST");
Any help would be phenominal! For some reason this little problem as stumped me.

Thanks again!

How To Create A Flash To Load The Image
Hi all,
I'm new in flash totally no have basic, now I want to create a flash with 2 image and 2 button. When I click on next button one of the image will change to other new image and click on the previose button the first image will show. I unable to make it, can anyone of you give me some example with step by step? Thanks.

How Do I SIMPLY Load An Image Into Flash Via XML?
I tried this thread under Server-Side and no one replied. I think it is more applicable here.

I am having a tough time simply trying to load an image into flash via XML. I am not trying the whole slide show thing...

Just simply, loading a JPEG into Flash, via XML.

I might be missing something obvious, but still, I am at a loss.

Here is my existing XML:


Code:
<FrunderMenu1>
<titles>
<title>
<text>Frunder Studios</text>
<img>frunder.jpg</img>
</title>
</titles>
</FrunderMenu1>
And my current Action Script:


Code:
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {

item = _root.attachMovie("menutitle", "menutitle", 0);
item._x = 90;
item._y = 15;
item.menutitletxt.text = this.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes;
}
}
menuXml.load("FrunderMenuTest.xml?dummyVar=" add getTimer(),"POST");
Any help would be phenominal! For some reason this little problem as stumped me.

Thanks again!

Help With Flash And MySQL For Image Load
I have been trying to create a flash movie that displays images loaded from a MySQL database.

See a lot of tutorial for doing this with text, but not with imgaes.

I'm no expert, but have my php file pulling the information from the database
This is the output:

&mtClip0=17916_csunlo-klogo-nl-scust.jpg&mtClip1=600_caaanl-klogo-npyd-scust.jpg&mtClip2=656_image8841.jpg&mtClip3=692_sailtitle.jpg&mtClip4=725_Fina l+Logo+70x70.jpg&mtClip5=752_ydws2d.gif&mtClip6=802_img46.gif&mtClip7=887_ydws 2d.gif&mtClip8=899_14972_caaanl-klogo-nabekig-scust.jpg&mtClip9=logo.jpg&mtClip10=17856_caaanl-klogo-nviamare-scust.gif&

Oufff!!

Now I also have the fla that can load an image file that is external to the movie
This is the action in frame one:


Code:
_root.mtClip.loadMovie("panim01.jpg");

Tried several loadVariables methods but none seam to work


Code:
mtClip.loadVariables("http://www.nauti-links.com/html/pic_gal.php");
where mtClip is the name of the Instance of the MovieClip holder

Any idea where ther is a tutorial or some clues if I am worn in this aproach?

Also - is there a way to change the folder in the server where the images are stored so that I can separate the php and fla from the images

Cheers

Mauricio

Help - If Flash Not Installed, Load Image Instead?
Hi guys,

Is there a way to display a GIF instead of a flash movie, if the user doesn't have flash installed? (Preferably without resorting to javascript-based browser detection, as not everyone has javascript enabled)

Thanks in advance
Mark

Load *single* Image In Flash With XML
I've found a lot of useful examples of how to create flash galleries using XML, but I've had a difficult time simplifying the code for my needs.

Basically, I have a flash header that includes an image. Once a month I'd like to replace that current image in the flash header with a new one. My XML file, therefore, would only contain one image URL and every month I'd just update the URL. So, rather than a gallery that could have multiple images added/deleted, I just need to be able to swap out this one image.

I need help with the ActionScript for this - the code I've found out there are a little too complicated for me to strip down.

Thanks everyone,
Manoj T

Load External GIF Or PNG Image To Flash ?
Hi,
I heard that Flash can not load external image except image in JPG format. Is that correct ?
a work-around solution is putting the image ( in GIF ) into another flash, then the main Flash will load the GIF files from that swf.
But I still wonder if theres another solution for that !
if you got any idea or a solution, please help me through !

thanks,

Thang.

How To Load Image File To The Flash Movie
Hi

Anyone know how to load the image file into the flash movie dynamically. (Like loading the text file into the dynamic text field)

tks

Flash Image Viewer No Load In Netscape
Hi Guys, I hope some one can help, I may be in the wrong forum for this.
I'm haveing a problem with a flash file .swf loading in Netscape 7.1
I used Dreamweaver MX 2004 for a flash component - image viewer to make a 6 picture slide that plays automaticly and loops.
In IE6 on my PC it works and on the test web site it works fine.
but testing withe Netscape 7.1 on my PC it will not work and on the web site it will not work ether.

the web site is www.secondwindstudios.net

When viewed in netscape it just comes up with a white square box.
there are other flash file on the same page, the header and 3 flash bottons at the bottom that work just fine. I hope some one can help, this is driving me crazy.

Thanks Mark.

Flash Image Gallery Load Problem
This a familiar problem that has been put up here a thousand times I'm sure but as yet I haven't been able to find a solution for it. I've put together a simple image gallery using Flash and an XML file. It works perfectly on my system but there are issues with the images loading properly when I put them onto my site. I know very little Flash, I've been using a pre-made gallery that I downloaded but since it works on my computer I assume I should be able to get it to work online too. The thumbnails for the file seem to work fine and the information from the XML file is obviously being accessed, however the main images are not loading. I've included all the code below (Actionscript, XML and the Web coding), if someone could help me before I put my fist through a wall that would be great:

Actionscript
stop();
//specify the url where folder is located below (if applicable)
toadd="";
t = 0;
l = 0;
theside = 1;
galxml = new XML();
galxml.load(toadd+"flash/fashion/easy-xml-gallery-2.xml");
galxml.ignoreWhite = true;
galxml.onLoad = function(success) {
if (success) {
maxnum = galxml.firstChild.childNodes.length;
for (n=0; n<maxnum; n++) {
specs = galxml.firstChild.childNodes[n];
//TEXT FOR SIDE NAV
duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
thumbclip = eval("side.thumbs.thumbs"+n);
thumbclip._x = n*100;
thumbclip.thetitle = specs.attributes.name;
thumbclip.theurl = specs.attributes.theurl;
thumbclip.thecaption = specs.attributes.caption;
thumbclip.thenum = n+1;
thumbclip._alpha = 100;
loadMovie(toadd+"/flash/fashion/images/"+(n+1)+"b.jpg", thumbclip.thumbload.thumbload2);
play();
side.thumbs.thumbsb._visible = false;
}
}
};
mainperc.onEnterFrame = function() {
if (mainperc.perc<98) {
mainperc._alpha += 5;
}
mainperc.perc = Math.round(l/t*100);
mainperc.perctext = mainperc.perc+"%";
mainperc.ltext = "OF THUMBNAILS LOADED ("+Math.round(t/1024)+"kb)";
if (mainperc.perc>98) {
//mainperc._alpha -= 5;
}
if (mainperc._alpha<-50) {
delete mainperc.onEnterFrame;
}
};

XML
<gallery>

<pic1 name="ONE">
<pic2 name="TWO"/>
<pic3 name="THREE"/>
<pic4 name="FOUR"/>
<pic5 name="FIVE"/>
<pic6 name="SIX"/>
<pic7 name="SEVEN"/>
<pic8 name="EIGHT"/>
<pic9 name="NINE"/>
<pic10 name="TEN"/>

</gallery>

Webpage coding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "

Flash Image Gallery Load Problem
This a familiar problem that has been put up here a thousand times I'm sure but as yet I haven't been able to find a solution for it. I've put together a simple image gallery using Flash and an XML file. It works perfectly on my system but there are issues with the images loading properly when I put them onto my site. I know very little Flash, I've been using a pre-made gallery that I downloaded but since it works on my computer I assume I should be able to get it to work online too. The thumbnails for the file seem to work fine and the information from the XML file is obviously being accessed, however the main images are not loading. I've included all the code below (Actionscript, XML and the Web coding), if someone could help me before I put my fist through a wall that would be great:

Actionscript

stop();
//specify the url where folder is located below (if applicable)
toadd="";
t = 0;
l = 0;
theside = 1;
galxml = new XML();
galxml.load(toadd+"flash/fashion/easy-xml-gallery-2.xml");
galxml.ignoreWhite = true;
galxml.onLoad = function(success) {
if (success) {
maxnum = galxml.firstChild.childNodes.length;
for (n=0; n<maxnum; n++) {
specs = galxml.firstChild.childNodes[n];
//TEXT FOR SIDE NAV
duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
thumbclip = eval("side.thumbs.thumbs"+n);
thumbclip._x = n*100;
thumbclip.thetitle = specs.attributes.name;
thumbclip.theurl = specs.attributes.theurl;
thumbclip.thecaption = specs.attributes.caption;
thumbclip.thenum = n+1;
thumbclip._alpha = 100;
loadMovie(toadd+"/flash/fashion/images/"+(n+1)+"b.jpg", thumbclip.thumbload.thumbload2);
play();
side.thumbs.thumbsb._visible = false;
}
}
};
mainperc.onEnterFrame = function() {
if (mainperc.perc<98) {
mainperc._alpha += 5;
}
mainperc.perc = Math.round(l/t*100);
mainperc.perctext = mainperc.perc+"%";
mainperc.ltext = "OF THUMBNAILS LOADED ("+Math.round(t/1024)+"kb)";
if (mainperc.perc>98) {
//mainperc._alpha -= 5;
}
if (mainperc._alpha<-50) {
delete mainperc.onEnterFrame;
}
};


XML

<gallery>

<pic1 name="ONE">
<pic2 name="TWO"/>
<pic3 name="THREE"/>
<pic4 name="FOUR"/>
<pic5 name="FIVE"/>
<pic6 name="SIX"/>
<pic7 name="SEVEN"/>
<pic8 name="EIGHT"/>
<pic9 name="NINE"/>
<pic10 name="TEN"/>

</gallery>


Webpage coding

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "

Can I Load Gif-file In Flash And Center Image?
Fotogallery. I tried to load *.gif -files (web-optimized) for my image gallery and it was a problem. The next problem is the place of image... many images are different and i can set loadposition only for left corner... is it possible load pictures in the middle?

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