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




Making A Crazy Xml Gallery



http://www.kirupa.com/web/xml/examples/portfolio.htm
into
www.crashmedia.com


Im just wondering roughly how this can be done.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-16-2005, 10:16 PM


View Complete Forum Thread with Replies

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

Making A Crazy Xml Gallery
http://www.kirupa.com/web/xml/examples/portfolio.htm
into
www.crashmedia.com


Im just wondering roughly how this can be done.

This Is Making Me CRAZY
I made a flash web site with preloader and everything.
I tested the movie and It works fine on my hard drive...
but when I ftp it to my web server it hangs up as soon as it gets to 1/3 of the page loading??
that's the part that I don't understand. Do I need to convert the swf to some other codes like java or something else??
does any one has any suggestion?????

thanks........

This Is Making Me Crazy
here is the URL where I posted the files for now:

http://lmc3.tv/Movie1.swf

http://lmc3.tv/Movie1.html

This Sound Is Making Me CRAZY
Making a simple sound control. On and off thats it.

movieclip named sounds contains two more movieclips soundControl and bgsound, also initializes the sound object with the following:
sound1 = new Sound();
sound1.attachSound( bgsound );
stop();

from soundControl there are two buttons with the following (this clip is two frames long with a stop(); in each frame:
on(release) {
_parent.sound1.stop();
gotoAndStop(2);
}

and

on(release) {
_parent.sound1.start();
gotoAndStop(1);
}

The buttons change from on to off visually and the mute button kills the sound. But the play button doesn't bring it back. Any help on this would be truly appreciated!! Hopefully before I tear out all of my hair.

Bad Mask Making Me Crazy
Hi all,


Never used masks before but.....Now I know why!
Whats wrong with the masking in flash, why do I see stuff that's supposed to be Masked??

any suggestions on solving this??

thanks

Help Me This Form Is Making Me Crazy
I've got this code on the "send" button

on (release) {
subject = teste;
recipient = "iaeferreira@hotmail.com";
redirect = "http://www.eportifolio.com";
loadVariablesNum ("http://www.hpg.com.br/scripts/cgi-bin/FormMail.pl", 0, "POST");
}

take a look at the swf file

http://www.mygraphicworksdsign.hpg.ig.com.br/form.htm

But no e-mail is sent. what should I do?

Map With Buttons (making Me Crazy)
Hello,

i've been messing about with senocular's map ( http://www.senocular.com/downloads/...at=2&kind=2 )

and have got quite far. but ive got a PROBLEM.

As you can see there are some place names that do not resize. I've also added some building markers to it. i wanted them to act as buttons which could load some information.

but if i put buttons on the layer they would scale with the map and would not be clickable, the roll-over effect did not even work.

I got one stage further by putting the button inside a movie cip of it own and them placing that on the map and that solved the problem of it scaling with the map.

but the buttins were still not interactive!
I'm guessing that maybe this has something to do with the code that lets you draw a box/area in the large map zoom into and maybe because flash it concentrating on that that?

the url for the origonal is at the top of this post and i have included an example of mine with a button.

If anyone can shed any light on way to solve this i'd be very very happy, and a lot less stressed.

cheers

Caching Making Me Crazy
i am using swf files that i did not create but am using on a test site..the swf files are reading in an xml file and they seem to be caching...i added meta tags and they still cache, i added

<cfset temp=RandRange(1,99999999)>

<cfoutput>
<!--- GRAPH 1 --->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,0,0"
        width="475"
        height="350"
        id="Column"
        align="middle">
    <param name=movie value="graphs/Column.swf?temp=#temp#&IsLocal=1&data=occ.xml">
    <param name=quality value=high>
    <param name=bgcolor value=##FFFFFF>
    <embed src="graphs/Column.swf?temp=#temp#&IsLocal=1&data=occ.xml
           quality=high
           bgcolor=##FFFFFF
           width="475"
           height="350"
           name="Column"
           align="middle"
           type="application/x-shockwave-flash"
           pluginspage="http://www.macromedia.com/go/getflashplayer">
    </embed>
</object>
so it is calling a "new" swf file each time and the browser still does not show the upcdated info when you hit refresh, if you close the browser and then open the new data is there...

Tweening A Shape Is Making Me Crazy ;o)
I have got Flash 5 and I was trying to change a shape using two images with no luck.

I followed the help and it worked like a charm (by drawing simple "boring" shape in Flash).

What I was trying to do is:
1- a basketball comes up on the screen.
2- it changes shape.....
3- the final result is a logo (looks like a badge)


The two images (a basketball and basketball club logo) were already created and both saved as gifs.

The "tweening shapes" only works for shapes created in Flash? Or can it handle any images including imported ones?

Help would be greatly appreciated!!!

Thanks in advance
Tony.

Actionscript Question Thatīs Making Me Go Crazy
hello I have a fla counter with the following script

_root.createTextField("counter_txt",12369,5,6,100, 30);
counter_txt.border = false;
counter_txt.text = _root.counter;

the question is... how can i tell the actionscript to use a certain font (verdana 9pt) for example.

Thank you

[CS3] Please Help Before I Go Crazy - Gallery Problem
This site - http://www.dddesignco.com/html&swf - is slowly driving me mad.

The gallery is the last remaining issue that I just can NOT seem to resolve. All I want to do is add extra images. There are five in the template, but clearly, others can be added.

When I try to add new frames/keyframes/move everything forward the number of required space, the extra images flow over into the next gallery.

Seriously. This HAS to be a simple fix! I have tried everything I can think of.

Please please please help. My head is about to explode from the frustration!

Oh, the fla file is here - http://dddesignco.com/html&swf/pp9.fla

No Sound With Flash In Firefox - Making Me Crazy
No sound plays from any flash objects in Firefox (so, that includes sites with flash videos like youtube or other sites like homestarrunner.com, etc). Here's what I've tried:

--I can play music from my hard drive (so it's not a problem with my speakers or audio settings). Also, Flash works fine (video AND audio) in IE.
--Disabled and then uninstalled all extensions (so it's not a problem with an add-on)
--Uninstalled and then reinstalled FF
--Emptied all temp files, recycle bin, cleared cache, etc.
--Ran CCleaner and cleared cache of Flash
--Searched this forum for potential causes of the problem ("no audio" and "no sound")--looks like a lot of people have had this problem, and there isn't a consensus regarding the cause or the best solution.
--Note: I don't have Audacity installed, and the setting on my sound card is set at 48000 Hz.

I'm using FF 2.0.0.4, Flash version 9.0.45.0 (the most recent version), and Vista. The problem started suddenly about a week ago; I can't think what could have triggered it. I wasn't downloading crap, not surfing sketchy sites, I don't know.

Anyone have any ideas? I don't spend a lot of time on sites like youtube, but it's the principle of it... it "should" work, and it's making me crazy that I can't figure out why it's not working. I would be really grateful if anyone could give me suggestions about what else to try. Give it your best shot... it's a brainteaser :-) I'm willing to try pretty much anything, save reinstalling the OS.

Thanks so much!

[F8] Please Help With Photo Gallery Tutorial...It's Driving Me Crazy
Hi. I recently made a photo gallery following this tutorial
http://www.kirupa.com/developer/mx20...otogallery.htm

I have the gallery in a mc in my flash document. The gallery itself works fine. What I am trying to do is have a page with all thumbnails of the pics and when you press each on, it will make the mc visible with the appropriate picture showing. So far I have make a few pages of thumbnails and I have managed to make it so when you press on each thumnail, the mc with the gallery becomes visible. now, on the mc with the gallery, if I change the value of "p" it will change the picture that is first displayed. So, how can I make the value of "p" change depending on which thumbnail I click? I tried making p = to a variable, then I defined the variable on the first frame of the move, but I can't get the value of that variable to change when I click the thumbnail. If Iset a value for the variable on the first frame when I define it, it works. The gallery will open to the picture number I defined, but I still can't get that value to change when I click on the thumbnails. I tried so many different ways I saw on the internet. I tried with global variables too. I'm completely lost here. Please someone help me out because I'm tearing my hair out over here. Here's the flash file incase anybody wants to look at it.

http://www.mypcmechanics.com/lost/8919.zip

also, when the mc opens with the gallery I can still hear all the buttons being activated that are behind the gallery when I move the mouse over the picture. Is there anyway to stop that?

Hope I made sense and thanks for the help

Please Help With Photo Gallery Tutorial...It's Driving Me Crazy
Hi. I recently made a photo gallery following this tutorial
http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

I have the gallery in a mc in my flash document. The gallery itself works fine. What I am trying to do is have a page with all thumbnails of the pics and when you press each on, it will make the mc visible with the appropriate picture showing. So far I have make a few pages of thumbnails and I have managed to make it so when you press on each thumnail, the mc with the gallery becomes visible. now, on the mc with the gallery, if I change the value of "p" it will change the picture that is first displayed. So, how can I make the value of "p" change depending on which thumbnail I click? I tried making p = to a variable, then I defined the variable on the first frame of the move, but I can't get the value of that variable to change when I click the thumbnail. If Iset a value for the variable on the first frame when I define it, it works. The gallery will open to the picture number I defined, but I still can't get that value to change when I click on the thumbnails. I tried so many different ways I saw on the internet. I tried with global variables too. I'm completely lost here. Please someone help me out because I'm tearing my hair out over here. Here's the flash file incase anybody wants to look at it.

http://www.mypcmechanics.com/lost/8919.zip

also, when the mc opens with the gallery I can still hear all the buttons being activated that are behind the gallery when I move the mouse over the picture. Is there anyway to stop that?

Hope I made sense and thanks for the help

Duplicate MovieClip With Loaded Image... Making A Crazy Photo Slider
I wanted to make a image sliding effect like this: http://www.eccentris.com/ecce.htm


So far what I am thinking of doing is making about 5 movieclips with a mask, and loading an image into a clip, then moving the image to a certain _x position so that 5 clips all have the photo with the _x position so they can all fit together. Then I'll have them tween from the center outward to fit.

I got that to work, now I want to do it while loading an image. So I was thinking: make a movieclip with the mask and empty container being masked. Then load the photo into that container, and copy that clip with the mask and container, then move the photo's x position for each duplicated clip and have them tween into position.

Would this work? And if so, how do I duplicate a movieclip with a loaded photo? because right now it's not working. I can duplicate the movieclip if there's just a rectangle in it, but not when there's a photo.

Gallery Tut: End Of Gallery, Making NEXT Button Disabled
Hi all,

i've been looking at the XML photogallery tutorial and was thinking, is there a way to set the PREVIOUS and NEXT buttons to be disabled/invisible on the FIRST and LAST images in the gallery respectively?

This would be fantastic if I could do it, but I can't, so I'm crying for some help now!

Gallery Tut: End Of Gallery, Making NEXT Button Disabled
Hi all,

i've been looking at the XML photogallery tutorial and was thinking, is there a way to set the PREVIOUS and NEXT buttons to be disabled/invisible on the FIRST and LAST images in the gallery respectively?

This would be fantastic if I could do it, but I can't, so I'm crying for some help now!

Crazy Easy If/else Script Drive Me Crazy
Hello new Kirupa friend! I am jakartaguy from jakarta indonesia with crazy simple question...

code below is okay IF people put in only number... but if they put in LETTER... result is NaN (non number)....

the code i use (from tutorial here) is:

if (ques1 > 100 || ques1 < 0 || ques1 == undefined) {
ValidationMessage = "For statement 1 please insert a number between 0 and 100%";
}

But question - how do I add if/else for Letter??? The script below NOT WORK... can someone please help??

if (ques1 > 100 || ques1 < 0 || ques = NaN || ques1 == undefined) {
ValidationMessage = "For statement 1 please insert a number between 0 and 100%";
}

thankyou(terima kasih)

jakartaguy

Making A Gallery
could somebody give me a little help please

the easiest way to see my problem is to go www.thenewpotato.co.uk and choose level one and photography from the comboboxes, the site is to have a number of galleries but this is the only one present currently. i want to use the scroller to choose the image on display, the method used for each part is as follows

the scroller is from a tutorial on this site

http://www.flashkit.com/tutorials/I...m-909/index.php

and the image loader comes with MX as a sample. I have been able to make the buttons in the scroller change the variable that influences which jpg is loaded, but the picture doesnt actually then load. I have been able to make a button outside of the scroller that will load a specific image, but i really would like to be able to select each image from their thumnail in the scroller.

Any ideas greatly appreciated.

Making A Web Gallery
I really want to create a web gallery....I am not sure how to create one does anyone have any suggestions on readings or tutorials..........

On Making A Flash Art Gallery
I'm just wondering, are there any comprehensive tutorials online that teach you the basics of making a webpage using flash 5 for newbies? I've been trying to play around with it, but I just seem to be such a dunce at it >< Could anyone please help? Thanks a bunch.
Waelinh.

Making A Very Bespoke Xml Gallery
Hello people :-)

Having come up with a new design for my friend's jewellery website that I'm building in xhtml and CSS, I've decided to go for flash for the gallery in order to keep it fully updatable.

Mock up design here

There are eventually going to be many categories and new items of jewellery added on a fairly regular basis, hence the need for scrolling on both the categories and the thumbnails sections. Each section, sub section etc would need to be infinitely updatable (within reason!)

Now I've built really simple xml galleries before, nothing on this scale. Perhaps someone could point me in the direction of a tutorial for a gallery similar to this one? It would have to be almost identical for me to be able to be able to adapt it to my design as I just don't have the in depth knowledge of this stuff to make massive additions or changes and i'm really pushed for time. Was thinking maybe there's some kind of template around I could adapt - I've done countless searches on this type of thing but can't find anything similar enough! Or maybe even someone here could have a go at it for a fee?!!

Hopefully it's clear enough from the jpg what needs to happen and where...

Any suggestions very much appreciated!

Pat

Help Making A Picture Gallery With Discription
What Im tring to do is make a picture gallery that loads a dynamic text file for every picture (.jpg). I can get the viewer to load a Text file and a picture But I cant get it to load the txt file that goes with the picture. Example of what I would like to do. If you open image1.jpg I would like it to open text1.txt also. IT will have 2 dynamic windows 1 for txt and one for images. If you could help me with the script I would be thankful

Making Thumbnail Gallery Getting Error
Hey Guru's,

I have a little problem, I created a thumbnail loading image (via frame labels inside of movies) for someone, and now I am creating one for a friend the exact same way so I copied the code and just changed the name of the frame and movie labels... its giving me a syntax error with this new one however, the one i copied from works fine.. here is what I have...

on (press){

_root.2000_Movie.gotoAndPlay("2000_image1");
}



the only things I changed were the name of the movie and the frame label! why isnt it working on the new one...

What I did is created a movie insdie the scene with 10 images (1 image per frame) and put a stop and a frame label of "2000_image#" Therefore when I roll over my button on the root timeline it will load the image from the movie (that is also sitting on the root timeline) the correct image would appear.. I am using flash mx 2004.. any ideas?

Thanks,
Andy

Real Newb - Making A Gallery
Hi everyone
I've been a browser here for a while but this is the first time i've needed some desperate help for a project.
What i am doing is making a gallery for a shockwave presentation. I want the thumb nail as black and white, when you roll over i want it to fade to colour and then when you click on the thumb it will enlarge to fill the page.
I have made - The mc of black to coloured
- The mc of coloured to enlarged coloured.
- Have all related images converted to the graphic symbols i need.
I've tried putting the mc's into a button but when i test the movie it has no rollover or click effects. I have a feeling i will need to action script to make it stay enlarged after click but i'm no good at scripting (i usually stick to just making buttons in flash )
I hope i have made my issue clear. I am using Flash CS3 and i have it set to Actionscript 2.
Any help would be appreciated

Help Making Photo Gallery Random
Hi All,

I'm trying to figure out how to make my photo gallery load the images randomly each time. I'm a beginner at flash so don't know too much about actionscript. If someone could take a look at my code and tell me how to modify it to do this, that would be great! Thanks so much!

my actionscript:


Code:

this.pathToPics = "http://www2.cybergolf.com/sites/images/347/";
this.pArray = ["winchester.jpg", "aliante.jpg", "angelpark.jpg", "dalhousie.jpg", "theduke.jpg", "highmeadowranch.jpg", "indianwells.jpg", "lagunadelmar.jpg", "thelegacy.jpg", "lincolnhills.jpg", "longbow.jpg", "phantomhills.jpg", "sandia.jpg", "somerby.jpg", "threecrowns.jpg", "tijerascreek.jpg", "wekopa.jpg"];
this.fadeSpeed = 20;
this.pIndex = 0;

MovieClip.prototype.changePhoto = function(d) {

clearInterval(id);
this.pIndex = (this.pIndex+d)%this.pArray.length;
if (this.pIndex<0) {
this.pIndex += this.pArray.length;
}
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
MovieClip.prototype.loadPhoto = function() {
var p = this.photo;
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha<100-this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
id = setInterval(this, "changePhoto", 10000, 1);
this.onEnterFrame = null;
}
};
//start everything
changePhoto(0);

Making The Gallery Loop Through Images?
Does anyone know how to make the gallery go back to the first image when the last one is reached?

Making A Gallery With Descriptions Xml Driven
is there a tutorial on making a gallery of buttons with titles and then once you click on them you will get details about that specific item.. i am playing around and i got 50% of it working but its taking forever

Crazy Client Came With Crazy Idea.
I met my client two weeks ago.
Thay want to do some multimedia like Karaokae

but that Karaokae thay want not like the other

like hmm... I want to type some words and then it will speak(TTS)

AND SPEAK OUT LIKE SINGING..

If my job is english or other language I will think about it...

but my language is harding to do this.


Question is can we do this?
base on Text to speech?

Need A Little Help Making A Flash Xml Photo Gallery With Thumbnails
Right I need a lot of help with this. I'm trying to make an xml photo gallery in Flash CS3 and I'm getting nowhere fast. Hears what I have http://thedesignport.com/Portfolio_Page_One.html
You'll see an orange dot on the right hand side roll over it and you'll see the menu pop out. Now I need all the thumbs and the big images to load dynamically and have a image counter working ie click the right arrow to move to the next image and so on. Anyone got any ideas?

Thanks all!

Making Kirupa's Scrolling XML Gal Multi Gallery
Hi everyone,

I would like to know how difficult it is to adapt the XML gallery below into a multi gallery.
http://www.kirupa.com/developer/mx2004/thumbnails.htm

I have tried to adapt some of the other galleries posted here but I keep getting stuck as the actionscript is beyond me.

I can follow along with this one but I would like to adapt it for my portfolio site so that I can have different buttons that when clicked on will load in new thumbnails.

Is there a tutorial I can follow? preferable nothing which involves to much actionscript. Just something simple that I can attach to every new button to bring in new thumbnails. Or can someone please explain.

Thanks

Making A Photo Gallery Inside A Flash Interface
To anyone who can help:

I currently have a website that has over 75 photos in 5 different categories. I can design the interface and buttons etc., but I don't know how to go about displaying each picture without loading all of them into the movie. That seems a bit excessive. Is there a way that I can just call the .jpg file into the interface's "window"?

Essentially it would be layed out as such:
Initial interface with buttons to each category
Click on category to get thumbnails
Click on thumbnail to see larger image
Have a forward and back button to go to next photo instead of going back to the thumbnails.

Is there a way to do this without overloading the movie?

Any help is appreciated since it seems there are virtually no resources for this type of thing anywhere on the web.

Thank you in advance.

dnotenshi

PS I have Flash 5

[F8] Making Dynamic Image Gallery Masking Problem
I am making a basic gallery. Loads x amount of images into a certain size of frame. The problem is the way I did it now is I made a movieclip inside my frame and named it masker and size it to the size I wanted the objects masked. Then each time I add a new movieClip to the gallery I call the setMask function. Now this works perfect for the first one that goes over the edge, half is in the frame, the other half you can't see. The problem comes when I add the next one, it removes the mask from the previous one so you can see all of the previous one. I am sure this is just an amature bug, please let me know the correct way to approach this situation.

Making Actionscript Photo Gallery Fade Automatically
Hey all,

Hopefully this hasn't been covered a lot here... I'm a newbie when it comes to ActionScript so hopefully someone here can help me out.

I've been using this kirupa designed flash photo gallery because it's far more efficent size wise than just creating the tweens in flash:

http://www.kirupa.com/developer/mx/photogallery.htm

My question is this:

What is the best way to change this photogallery so that rather than manually changing the photos with a button, it will fade them in and out automatically?

(i.e. on (release) {
_root.changePhoto(1);
} )

I tried wiring it up using "onEnterFrame" as a function to change _root.changePhoto but maybe I'm placing the code in the wrong place because I can't seem to get that to work.

Any help with this would be greatly appreciated.

[flash8]Making XML Photo Gallery Full Screen
I've mixed and matched the xml photi and slideshow galleries, along with adding a slideshow on/off button and another button to hide/show the thumbnail bar.

I'm struggling with 2 things:

1) Full Screen.

I've used the code from here to create a button to go to full screen:http://www.bezzmedia.com/swfspot/tut...een_Flash_Mode

Code:
//Don't scale the movie when the stage size changes
Stage.scaleMode="noScale";
//Align the stage to the top left
Stage.align = "TL";
//Function to toggle between fullscreen and normal size
//the toggle fullscreen button calls this function when pressed
function toggleFullScreen(){
//if normal size, go to fullscreen, else go to normal size
if(Stage["displayState"]=="normal"){
Stage["displayState"]="fullScreen";
}else{
Stage["displayState"]="normal";
}
}
//Create a listener for each time the Stage is resized
var resizeListener:Object = new Object();
//Called each time the stage is resized
resizeListener.onResize = function () {
//Move the button to the center of the screen
toggleFullScreenButton._x=Stage.width/2;
toggleFullScreenButton._y=Stage.height/2;
}
//Add the listener to Stage
Stage.addListener(resizeListener);
Now toggleFullScreenButton._x etc are applied to the (full screen) button to center it, but obviously I want to center everything. This really just centers a movie clip that is the button.
Any ideas on the way forward? I could try just generating my SWF and then loading it in a new MC and centering that (although I'm not 100% certain how to do it). I'd prefer to do it in the original file if possible.

2) Borders. Try as I might I can't get the borders tutorial to mix into this one. Any good links greatly appreciated.

Making An Image Gallery Using Actions Script Insted Of Tweening.
How do i o about making a photographic image gallery using action scripting. Can someone point me in the right direction of a good tutorial or explain the principle.

thanks!

Making His SlideShow Gallery Have Pause, Prev, Next, Play Buttons - Without Skipping
Hi,

I went through a list of post discussing different modifications to the slideshow and photo gallery tutorials but i didn't read of anyone trying to combine slideshow and photo gallery functionality. The slideshow is driven by an onEnterFrame and loops through how ever many number of images (nodes in the xml) and then displays them automatically..but the photo gallery script advances (prev or next) based on onRelease events of the key press or click of the buttons.

However, I was trying to combine both and noticed immediately that while in the onEnterFrame ..if pressing the next button a couple of times...the count gets messed up and the slideshow advances really quickly for however many number of times you have clicked (prev or next)...if once..you may not notice...but if twice...(i.e. on 2 and clicking twice to 4..then it jumps to 6..then 8..etc..)..for larger sequences of clicks..you notice..4..8..12..16..

I was wondering what would be a good fix for this..
considering both prevImage() and nextImage() functions determine how p is controlled before calling the slideshow() function?

//nextImage function

Code:

function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
//Slideshow function

Code:
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}

Making A Grid And Making It Mask Images
Hey guys,
I have this code below and i am trying to make each of these movie clips dynamically mask an image. For some reason it still does not work. I can get the grid to come out correctly but the masking is suspect. Any help would be very much appreciated. Thank you

num=0;

for (i=0; i<12; i++){
for (j=0; j<45; j++){

this.createEmptyMovieClip("a"+num, num)
this.createEmptyMovieClip("b"+num, num+1)
//trace(num);
//trace("IMAGE DEPTH: " + this["b"+num].getDepth());


this["a"+num].attachMovie("thelinked", "thelinked2", num);
this["b"+num].attachMovie("thelinkedimage", "thelinkedimage2", num+1);

mc=this["a"+num]["thelinked2"];
image=this["b"+num]["thelinkedimage2"];

mc._x=i*12;
mc._y=j*12;
image._x=i*12;
image._y=j*12;

image.setMask(mc);




num++;
}
}

I'm Going Crazy
I'm going crazy. I am trying to bring in a quicktime movie that i made in Afftereffects into flash. Everything works beautifully on the stage. However, when i publish, export, or even simply try to preview the movie, the quicktime bit doesn't show. Do i need to embed the clip? if so, how? Can i have a quicktime in flash and still have it be interactive. The frame rate of the quicktime is 12 fps; the same as my FLA. movie. What's going on? how do i solve this?

Url Is Getting Me Crazy Help
Hi,

I want to read into a variable the URL of the html page.

The following code...

myURL = this._url

gives the URL of the flash movie, NOT the URL of the Html page where the flash was loaded.

If you can, help plz.

The result I wana get is:
myURL = "http://www.mysite.com/home.asp?lang=en"

Please Help Me I'm Getting Crazy
Hello,
Maybe someone can help me with my problem, i'm trying whole week now, but i don't get it right.

I made a homepage with frames in html, now I want to load my swf movie in one of the frames.
This is no probem it works perfectly!!
I created only one big scene, the scene is big because it contains JPG pictures.
I thought flash was streaming, but the movie only starts when the whole swf file is loaded?????????

I tried a preloader but that doesn't work beause then he loads the preloader and the whole file and then he starts playing. (he doesn't show the preloader)
I'm pretty sure that te actions of my preloader are right, and without my preloader my movie isn't streaming either.

Maybe you can take a look at my homepage, first you get the intro with a preloader (thats fine), but when you get at the html menu and you press the link "diashow", he first loads the whole movie and then starts to play??
Ans on this moment I don't use a preloader!!!!

I am getting crazy, why doesn,t my movie stream??????

My homepage adress is:
http://members.brabant.chello.nl/~m.martens/

Sorry for my bad Englisch thats because I'm from the Netherlands but , Please Help!!!!!!!!!!!!!

Thanks

Martin

[Edited by Martin974 on 01-24-2002 at 10:31 PM]

Am I Crazy?
I can't import a preloader from one file into another. When I do, it clumps everything in one layer. Is there a way to import a scene easily? Thanks!

HELP....GETTING CRAZY WITH MCīS
this is my problem and I hope U might help me:

I have a scene. inside that scene I have a mc. then in frame 11 of that mc, I put a stop action, so it could play anoother mc I have in that keyframe.

Is it possible that when it finishes playing the second mc it goes back to the first one on frame 12?

basically it is a movie clip inside another movie clip
and what I need is to know how to call the first movie on a specific frame when it finishes playing the second

I really hope U can help....my neck depends on it!


thanks

I've Gone Crazy
Or I've gone crazy ... or I always been.

Got this movie clip, with inside 3 graphics.
Everytime I try to import inside this movie clip another object or another movie clip or whatsoever, the width of the object just decrease...

Please help.
Maybe the coffee is too strong.

Going Crazy
i have been trying to figure out what i am doing wrong for about 4 hrs straight.

Here is my problem:

I have 2 movies (swf)

primary.swf
secondary.swf

In the 2nd swf i have actionscripts with _root
When i load loadmovie to the 1st swf with different scripts, i either have the 2nd swf in the top left corner, or its within a MC BUT the actionscripts do not work.

I cant get it to load in a MC AND have the actionscripts work at the same time.

Here are some of the scripts i have tried to use:

loadMovie("secondary.swf", "_root.MC"); = AS doesnt work, but loads in a MC

loadMovieNum("secondary.swf", _root.MC); = AS works, but 2ns.swf pops up in a new window

loadMovieNum("secondary.swf", 1); = AS works, but loads on the top left corner

please, if anyone has any ideas on how to fix this please reply.

Thanks in advance.

Please Help Going Crazy
I have a main movie. On the bottom of it is this:

Previous 1 2 3 4 5 Next

I've got it so that when you click "next", it goes to the next consecutive page, & the # (which is a MC) gets larger...and when you click "previous", it goes to the previous page & the current # goes back to normal & the # that it is on gets larger, etc...Now I want to also be able to click on the #s themselves & make them go to that specific page. I can do that...the problem is if I click on say 2, then click "next" it doesn't go to 3. Here is the code I have for the "Next" button...(the "previous" button's code is basically the same)...


on(release){
// next one to be loaded
_root.nextLoaded += 1;

// the one that is selected now
_root.lastLoaded = _root.nextLoaded - 1;

// load movie at into level 1
// they should be named consectively like
// mySWF1.swf, mySWF2.swf, mySWF3.swf, etc

_level2.loadMovie("slide" + _root.nextLoaded + ".swf", pageholder);
_level3.loadMovie("text" + _root.nextLoaded + ".swf", pageholder);

// scale the next number movie clip
_root["n" + _root.nextLoaded]._xscale += 50;
_root["n" + _root.nextLoaded]._yscale += 50;
_root["n" + _root.nextLoaded]._y = 387;

// "unscale" the one that was previously selected
_root["n" + _root.lastLoaded]._xscale = 100;
_root["n" + _root.lastLoaded]._yscale = 100;
_root["n" + _root.lastLoaded]._y = 393;

if (_root.nextLoaded != 1){
attachMovie("previous","previous",5);
}
}

How do I get them both to work? I guess what I need to do is put in some script that will tell the movie to know what SWF is currently loaded...but not sure how to do that...

Please Help Going Crazy
I have a movie that has a series of colored boxes that appear on the stage...one appears, stays for a certain amount of seconds, then is replaced by another one that stays for a certain amount of seconds, and so on...I have a pause, start & rewind button that is SUPPOSED to pause & start/resume & rewind the rotation of the boxes...when I press pause, it does pause, but when I press play again, it jumps to the next keyframe, thus ignoring that AS that is telling it to pause...the pausing of each box is done with AS...

I guess what I need is this...I need the movie to know how much time has passed since the image came on the screen, so if the viewer presses the pause button and then presses the play button to resume the movie, it will know how much time has passed, & will then continue to pause until the FULL pause time has elapsed, and THEN, go to the next keyframe...

I can't post the FLA b/c it is too big...(Weird b/c it's only 1K) I can email it to you if you want...PLEASE HELP!!!!

Thanks!

Am I Crazy?
does my text scale along with the size of the text box?
is there any way to avoid this?
i would just like to make my text box dimensions a little more exact, with whole numbers fitting more precisely into the space i've allotted for text.
i can't draw the perfect text box freehand, but when i try to change the text box size, my text starts looking fuzzy and icky
please help!!

Going Crazy - Help
Does anyone know why this actionscript won't work on a button

on (release) {
getURL("java script:NewWindow=window.open('muscle. swf','myWindow','width=800,height=600,left=100,top
=100,toolbar=No,location=No,scrollbars=No,status=N
o,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

I keep getting this Error message:

This program does not support the protocol for accessing
'java%20script:window.open(muscle.swf',win1','wi
dth=800,height=600,top=100,screeny=100,left=100,sc

I've also tried this script to open the file in a new window and I get the same message :

on (release) {
getURL("java script:window.open('muscle. swf','win1','width=800,height=600,top=100,screeny=
100,left=100,screenx=100,toolbar=no,scrollbars=no,
resizable=no,menubar=no,status=no,directories=no,l
ocation=no'); void(0);");
}

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