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




Overlaying Buttons



can you turn buttons on and off
or mask them so they completely dissapear?



FlashKit > Flash Help > Flash General Help
Posted on: 05-21-2004, 06:22 AM


View Complete Forum Thread with Replies

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

Overlaying Png
Hey,

I've got a mostly transparent png overlaying some buttons and movieclips. Even though the buttons are visible, the png above them seems to be hogging all the mouse input and the buttons can't be clicked. Is there any way to get the buttons under the png to register mouse events?


thanks

Overlaying Graphics
I was asked to create a CD & website that does the following. There are 10 graphics, say different boxes. Then they have 8 categories with 25 label overlays per category.

They want to allow the user to pick a box style from the 10 and then be allow them to choose a category and overlay different label styles on the box to see how they would look.

How difficult is this and how would you set it up?

Any help appreciated.
Thanks

Overlaying Two MC To Produce An
Hi,

I'm having trouble trying to get a MC to go transparent when I drag & drop another movie clip to certain x/y coordinates. I have initially tried using a simple series of If/If else statements to accomplish this. The problem w/ this option seems to be I can't check both the x and y position in 1 If statement...sigh. Are there any options I'm missing to check both the x and y position simultaneously and get only one statement to execute? Thanks for any help.

Overlaying Flash
I'm looking for a way to hide flash beyond an iframe. I'm working on a plugin for firefox that will work similar to Greased Lightbox, if anyone has seen that, where you bring up an iframe in the middle of the screen and sort of darken the page behind it.

The problem comes when there are flash elements on the page, they refuse to stay behind the iframe. I've already tried setting wmode=transparent on the embed tags and <param name="wmode" value="transparent"> for the object tags, to no avail. Is there something I'm missing?

I've also read that setting wmode to opaque will force the element to respect z-index, but I haven't found this to help either. Can somebody please clarify this?

Any information would be helpful. Thanks in advance...

Overlaying Images...
Evenin'. Less of a flash question here, more common sense. I've got 10 images that are piled up on the stage. One on top of the other. I want them all to be as visible as each other, so I need to alpha some down. What i cant do is work out how much by. I know they cant all be 10% as the one at the bottom of the pile would be hidden by 9 x 10%s, so I thought 100% for the bottome, 90% for the one on top of that, 80% etc etc. But the ones at the bottom still seem to get lost under the top of the pile with the lowest alphas. Am i just being paranoid, or are my maths all wrong?! Thanks in advance, this is driving me crazy!

Overlaying Images...
Evenin'. Less of a flash question here, more common sense. I've got 10 images that are piled up on the stage. One on top of the other. I want them all to be as visible as each other, so I need to alpha some down. What i cant do is work out how much by. I know they cant all be 10% as the one at the bottom of the pile would be hidden by 9 x 10%s, so I thought 100% for the bottome, 90% for the one on top of that, 80% etc etc. But the ones at the bottom still seem to get lost under the top of the pile with the lowest alphas. Am i just being paranoid, or are my maths all wrong?! Thanks in advance, this is driving me crazy!

Overlaying MCs And Rollovers
Hi,

I have a large background MC that has an event triggered onRollover, and I am placing other smaller MCs on top of that which also uses rollovers. Obviously whenever a rollover is triggered on the overlaying MCs, the larger background MC treats that as a Rollout. Which is the best method to get round this? Is it a HitTest on the background MC? Any help would be greatly appreciated.

Overlaying External Swf With Preload MC
Hello all,

I have a main movie that loads external swf into a blank movie clip. Everything is just fine. So now i want to play a preloader movie clip on top of the blank movie clip until the external movie clip loaded. What I am trying to do is have 3 buttons on my main movie, BUTTON A, BUTTON B, BUTTON C, where they would load external swf files, exta.swf, extb.swf, extc.swf accordingly. I have a blank movie clip called "loader" on my main timeline. this part works fine. But i want preloaders to load a Movie clip of some sliding doors on top of the "loader" movie clip so that it looks like the sliding doors are covering up the external swf files, and when it's closed, it waits until the underlying external swf file is loaded and while in the process diplays a progress bar, once the underlying external swf files is loaded, they movie clip proceeds with fade out to display the underlying swf file. Anyone know how to do this?

Thanks for all your help,
SES

Flash Overlaying HTML
Recently there was a banner on FlashKit for Microsoft Visual Basic .net and when you clicked on a button, the content would sort of jump out of the movie and onto the HTML. I'm making a small movie with a combo box in it and it's too small to display all the items in the box; it cuts off. I was wondering how you get your Flash content to come out of the flash movie like that. Is this done with layers?

Thank you,

Overlaying Sound Problems.
In my project, I have a bunch of sounds in frames. Every other frame has a sound. The ones that dont have scripts saying to stop the script beforehand.

At least this is how I planned it.


Code:
firstSound=new Sound();
_root.narrate.firstSound.attachSound("firstSound01");
_root.firstSound.stop("firstSound01") ;
Thats what I used to define the sound.

Then on the next frame I have
Code:
_root.narrate.firstSound.stop("firstSound01")

Overlaying XParent SWF In HTML
Is it possible to overlay a Xparent SWF over an html table with a DIV tag?

If so how do I get the file background xparent?

Thanks,

Flash Overlaying HTML
If the answer is here, I couldn't find it. On www.espn.com (at the very top) there's a banner that expands overtop of the HTML. You can click a button to shrink it back up and the same one again to open back over the HTML. I was wondering if anyone knows how this was done.....

What technologies were involved (DHTML maybe?)
Know of any tutues out there for this?
Know of any drawbacks, browser issues, os issues, etc?

Thanks all.

Overlaying Event Listeners
Hi,

I am reposting my question since i probably didn't explain myself very well the first time.

I have to Sprites with mouse listeners that overlap.

I'll try illustrating it:

_____________
| | - Big Sprite behind
| _______|____
| | | |
| | | | - Small sprite on top
| |_______|____|
|_____________|

Now my question is when i'm over both sprites with my mouse
is it possible for both of them to recieve a MOUSE_OVER event
at the same time?

Thank you,

tamagorci

Overlaying Audio In Flash
Is it possible I can overlay my audio from a video i imported with another audio file?

DHTML Overlaying Flash?
I'm trying to get a DHTML drop down menu to work with a page that has flash movies in it. My problem is that when the menu meets up with the flash movies, it always appears behind them.

Is it possible to have DHTML appear on a layer above flash??

Overlaying Swf On Html Pages
I remember seeing a post ages ago about overlaying swf files (particularly adverts) onto html pages.

I did a search, but couldn't find it so forgive me for asking again. Does anyone know where to find tutorials on overlaying swf adverts onto a html page?

Overlaying Audio In Flash
Is it possible I can overlay my audio from a video i imported with another audio file?

DHTML Overlaying Flash?
I'm trying to get a DHTML drop down menu to work with a page that has flash movies in it. My problem is that when the menu meets up with the flash movies, it always appears behind them.

Is it possible to have DHTML appear on a layer above flash??

Help With Overlaying Movie Clips...
I am working on a project for school in which I need to control two overlaying movie files.  The .fla file is on the following address for you to work with and download.  Any help is greatly appreciated.

http://web.mac.com/ryankirk/iWeb/Flash/Blank.html

Thanks,

-rk-

Video With Overlaying Movieclips
I have video footage being played on my stage using AS3 entirely, just as Lee's tutorial demonstrates. When I try to add graphics, such as a drop down window on top of it, the video always plays on top of it.

How can I get the video into a layer so I can put graphics over the top of it?

Pull-down-menu Overlaying HTML?
hi guys

let's say I have a pull-down-button.
if I go over it, it will pull down, but only if it is still in a flash environment.
Can a SWF file go over a html file????

hope you understand what I mean.

probably using <PARAM NAME=...>
but I don't know how

thnx
RookY

Overlaying Transparent Flash Movies
I'm trying to create a demo for a site by using a transparent flash movie. I have created the movie and it is transparent. The problem is how do I get it to be on top off all content? If I place it at the top of the page, it displaces the content down. I have seen overlaid ads on yahoo so I know it's possible. Any suggestions would be appreciated.
Chris

Flash Movies Overlaying A Frame?
I know that I've seen Flash floating over a site with layers, but is it possible to have a flash menu float over a main frame? In a setup such as; a left frame with the menu bar, and a main frame with the content. Is it possible to have the left menu bar popup with more selections to its right over the content frame?? Please help if you can! Would be lots of help.
~chris

Overlaying Hidden Swf Over Html Image
Hello,
I'm designing a site that is mainly in html but with a few swf's in. I have a flash menu and the rest is just images placed in html. The menu has currently got one drop down which is visible out of the swf document border. I'd like this drop down to be visible over the top of the image below it. Anyone know how to do this? Here's a link to the test site. The drop down is actually under 'ourservices' but is not currently visible.
Thanks!

Overlaying Graphics On Flash Video
I've created a .flv and embedded a couple of cue points. In Flash I'd
like to be able to display a graphic at cue point 1, then hide it again
at cue point 2.

Can anyone tell me how I can do this, or point me to a tutorial please?
I'm using Flash 8 Pro.

(there seems to be a template on the adobe site, but it's only for CS3
and i can't open the downloaded files)

Thanks
Vicky

Overlaying Movie Clips Using GetNextHighestDepth
hi all,

I am trying to load movie clips into a movie clip within a Main swf stage triggered by the standard OnRelease from symbols - For eg, there are four buttons (page 1, page 2, ...etc) and they must load in each movie clip (page_1_mc, page_2_mc) into container_mc.

For what i am doing i need to be able to see the clip below the one thats just been loaded, hence trying to use the getNextHighestDepth command.

I have been trying with createEmptyMovieClip in conjunction with the getNextHighestDepth but can't seem to make it work - the clips just replace each other rather than load visibly over each other. For what i am doing i need to be able to see the clip below the one thats just been loaded, hence trying to use the getNextHighestDepth command.


In the Main swf file, which contains the buttons, they each have :

//
on (release) {
_root.container.loadMovie("page1.swf", this.getNextHighestDepth());
}
//


The buttons load the external movie files page1, page2, etc, into a movie clip within the Main swf, called 'container'. I need the external swfs to load in at successively higher depths within that container such that the previously loaded one is still visible. The reason they go into that container is that I would like that container to appear below other graphics and symbols in the main swf. Am I totally off track here?

Thanks!

Alex

Overlaying Movie Clips Using GetNextHighestDepth
hi all,

I am trying to load movie clips into a movie clip within a Main swf stage triggered by the standard OnRelease from symbols - For eg, there are four buttons (page 1, page 2, ...etc) and they must load in each movie clip (page_1_mc, page_2_mc) into container_mc.

For what i am doing i need to be able to see the clip below the one thats just been loaded, hence trying to use the getNextHighestDepth command.

I have been trying with createEmptyMovieClip in conjunction with the getNextHighestDepth but can't seem to make it work - the clips just replace each other rather than load visibly over each other. For what i am doing i need to be able to see the clip below the one thats just been loaded, hence trying to use the getNextHighestDepth command.


In the Main swf file, which contains the buttons, they each have :

//
on (release) {
_root.container.loadMovie("page1.swf", this.getNextHighestDepth());
}
//


The buttons load the external movie files page1, page2, etc, into a movie clip within the Main swf, called 'container'. I need the external swfs to load in at successively higher depths within that container such that the previously loaded one is still visible. The reason they go into that container is that I would like that container to appear below other graphics and symbols in the main swf. Am I totally off track here?

Thanks!

Alex

Overlaying A FREE HTML Website
My buddy has a free domain name:

http://www.rupintattoo.worldbreak.com/

I want to overlay a flash element over the entire page so nothing is html and it is all flash interactive.

Does anybody know how I would go about doing this?

Flash 8: Overlaying Sequential Pictures
Hello all. I am attempting to create a series of overlapping pictures through the means of ActionScript. My goal is to overlap 12 pictures sequentially to get the effect of a flowing stream. The stream images are titled "stream#.jpg." So far, here is what I have:

- Frame 1 sets up 4 variables:

var prev:Number = 0;
var curr:Number = 1;
var nextPic:Number = 2;
var mcLoader:MovieClipLoader = new MovieClipLoader();

- Frame 2 includes a blank MC that tweens over 7 frames. The alpha goes from 100 to 0, and the instance name is "container_mc." I also have another blank MC underneath it called "bg_mc," which is supposed to include the next image in the sequences (i.e. Image 1 would fade and Image 2 would be directly underneath it). Here is the code I have:

mcLoader.loadClip("images/stream"+curr+".jpg", container_mc);
mcLoader.loadClip("images/stream"+nextPic+".jpg", bg_mc);

prev = curr;
curr = nextPic;

if (curr == 12) {
nextPic = 1;
} else {
nextPic++;
}

As you can see, I have a MovieClipLoader load each picture to their respective blank MC. The tween lasts for 7 frames, and at the end I have the movie clip go back to Frame 2. Here is the problem I am having: Flash is loading each picture in perfectly, but at the beginning of each loop the two blank MC's do not load the images right away (background flashes). I have uploaded my swf file, so to see what I'm talking about visit http://mpfurtado.250free.com/tidalyarn/header.html

Overlaying Movie Clips Using GetNextHighestDepth
hi all,

I am trying to load movie clips into a movie clip within a Main swf stage triggered by the standard OnRelease from symbols - For eg, there are four buttons (page 1, page 2, ...etc) and they must load in each movie clip (page_1_mc, page_2_mc) into container_mc.

For what i am doing i need to be able to see the clip below the one thats just been loaded, hence trying to use the getNextHighestDepth command.

I have been trying with createEmptyMovieClip in conjunction with the getNextHighestDepth but can't seem to make it work - the clips just replace each other rather than load visibly over each other. For what i am doing i need to be able to see the clip below the one thats just been loaded, hence trying to use the getNextHighestDepth command.


In the Main swf file, which contains the buttons, they each have :

//
on (release) {
_root.container.loadMovie("page1.swf", this.getNextHighestDepth());
}
//


The buttons load the external movie files page1, page2, etc, into a movie clip within the Main swf, called 'container'. I need the external swfs to load in at successively higher depths within that container such that the previously loaded one is still visible. The reason they go into that container is that I would like that container to appear below other graphics and symbols in the main swf. Am I totally off track here?

Thanks!

Alex

Ignoring Overlaying Sprite MouseEvent Problem
I tried mouseEnabled = false, but as long as I add bottom before top the MouseEvent.CLICK never registers. Why is mouseEnabled = false not working?

bottom= new DrawRectangle();
bottom.addEventListener(MouseEvent.CLICK, onMouseClick);
addChild(bottom);

top= new DrawGradient();
top.mouseEnabled = false;
addChild(top);

Flash As Background Element, Or Overlaying And Transparent?
hello,

i looked into doing this with flash about 5 years ago -- wasn't possible then, haven't been following the progress of flash at all and i'm wondering if it is possible now or if it's still not possible?:

have a normal web page (html, css, images etc) and have a flash movie either behind or infront (and if infront transparent where white) the normal html?

so a bit like background images with css are, or on top of things but showing what's under them.

still not possible or now possible?

thanks.

Overlaying Other Objects In Flash 9 Full Screen Video
Is there a way to overlay other objects on top of fullscreen video in Flash CS3? I have tried the general tutorial and full screen video is unbelievable, but the next question is how to brand that with graphics, etc. that scale as the video goes full screen...

Creating Green Screen Vids And Overlaying Them On Flash Sites
I've heard of a thing where I can record a video in front of a green screen and create a flash movie to overlay on a flash website. It almost looks like the person is living and walking around on the site. Can some one please give me more info on this and the tools I need to make this. I feel like I'd need the Media Server to serve this, but I'd use Premiere to edit video, right?

Thanks in advance.

Exporting Image Created With Flash.. Overlaying Image With Text Then Exporting As Jpg
Is this possible? Say I have a user insert certain text onto a image using flash which would not be hard, but then is it possible to export the image as a jpeg for the user to download? The seems impossible but I figured it might be possible.

Buttons, Buttons, And More Buttons...oh And Movie Clips Too
MY QUESTION IS AT THE END and UNTIL THEN IS A BACKGROUND... PLEASE HELP!

moving along...
Ive now made several .fla files for my hour long movie. each .fla file ranges from 2-20mb. not too shabby... Ive done the load movie thing and it ran fine... i havent put any sound yet.. but i'll ask about that question later...

okay.. so the whole thing has about 30 slides... i have 5 .fla files which has 3-5 movie clips in each... each movie clip has about 1-3 slides.

everything is fine so far... (no audio, but im not there yet)

Since i dont have sound cutting software currently... i thought id make movie controls for this video....

originally i put the controls in the original timeline.. not the movie clips.. but my pause didnt work and my play acted like a fast forward... my fast forward would go to the next movie clip(which i anticipated)... but I wanted the fast forward to jump every 12frames..

so here comes the problem....

i copy pasted the buttons in the same exact place in every movie clip.... so it should ,in theory,work like it was on one timeline.. but it wont export.. the file is still the same size.. (insignificantly larger ,less than a mb)..

my question is:

does having buttons on every movie clip ( which frames length range from 400-2000, avg.1000) have a problem with flash...??????????not allowing me to export.. or maybe it's just having so many errors it wont run... in fact... when i close it down (because it wont let me cancel..) it wont let me re open the .fla again.. unless i restart the computer

[F8]Buttons, Buttons, Buttons Dynamic Text?
Hi

I've got a set buttons that are different instances of the same mc. I'd like to make labels for each button but I don't want to have to duplicate all the buttons in the library and add the labels separately.

I think I need to to this with Dynamic text but that as far as I've got with the searches I've done on Google.

Thanks in advance for any help.

ActionScript In Buttons To Reference Movie Clips Inside Buttons
I want to reference a movie clip inside a button, to use tell target on the button. Is there a way to use something like:

tellTarget (this.movieclipname) {
}

that way i can use multiple instances of one object, rather then having to make a different action for every single time i want to use it.

Hiding Buttons Or Movie Clips With Buttons With Actionscripting
Greetings,

I really need someone's help. I am trying to hide buttons from screen when certain conditions are set. For example, I have a variable called Amount. Now, I have a textfield that displays the value of Amount. Three buttons are visible. Each button has actionscript so when click each button would subtract some amount from the variable Amount. Button 5 will subtract 5 from Amount and button 10,20 accordingly. Now, when Amount is less than 20. I wanted to make the 20 button disappear from the screen (not using timeline, object oriented actionscripting). Then when Amount is less than 10 the 10 button will disappear.

I tried making the button disappear with "five._visible=false;" However, I was told I could not do that with buttons. So, i created a movie with button inside. It disappears with "moviefive._visible=false;" But the button does not work when visible. I can see the little hand when I place the mouse over the button, but it does not work. It does not subtract from the variable Amount.

When someone clicks the five button, five button has code that will subtract 5 from Amount and if statements that will "twenty._visible=false;" if the Amount is now less than 20.


Could someone please help me. Thank you very much. I really appreciate any assistance you could provide.

Thanks again

Multiple Buttons Loading MC Buttons On Single Stage
Hello,
I need three buttons , working independent of each other, to "turn on" the MC in three seperate boxes, all on the same timeline- further, I want these MCs once "turned on" to actually be buttons that can then send the user to a different page. I can make this work if it's only one button, using two frames (by "hiding" the already launch MC over the top of it- then sending the link to frame two etc) but I need ALL three buttons visible, in whatever order the viewer clicks them! (Think of a wall with three windows and the MCs are the window images!) SO: the viewer clicks a button (any or all three) that turns on the movie clip and the movie clip can then be clicked to launch to a new page. Is this even possible?
-sorry for the long explanation- thanks for any help!
ras.

Dynamic Text For Multiple Buttons W/ Scroll Buttons/bar
HELP! I know a similar question to this has appeared multiple times before, but here is my situation:

i have four buttons, each of which will load a a separate text file into a dynamic text field (ie: button A to textfield 1, button B to textfield 1).

The other trick is, this also has a custom scroll bar. (I would rather just use an up and down arrow, but if i have to use a bar as well, I will not be too distraught.)

Is there a way that I can have all the text files loads in a dynamic text field PLUS have a scroll bar to aid with scrolling.

Any help would be greatly appriciated. I have been trying to figure this out for about a week now, and am still no where.

peter /slqu.net

ps: i am a designer, and for some reason, programming, even of the most simple nature, still eludes me. so please take pity me

Avoiding Paypal Shopping Cart Buttons - Need A Way Around Buttons
Hi - I'm on MX; my client wants a VERY minimal site. I'm using his Paypal business account to sell merch, and the process is pretty easy to set up...EXCEPT that he wants to avoid the buttons provided by Paypal. They provide the HTML to paste in for said buttons; I'm using dynamic scrolling text, pulling from an external .txt file. I know how to HTML format for links, etc. - is there a way to bypass the use of an actual button, and just use text links for the "add to cart" and "view cart" buttons? I know that if I upgraded to MX 2004, I would be able to place images (buttons) in my dynamic text - but that is a moot point, as he wants to avoid buttons altogether. I'm copying the HTML code Paypal offers for the add to cart button below:

------------------------
form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
input type="hidden" name="add" value="1">
input type="hidden" name="cmd" value="_cart">
input type="hidden" name="business" value="willyt14@aol.com">
input type="hidden" name="item_name" value="Hilarity and Despair">
input type="hidden" name="item_number" value="001">
input type="hidden" name="amount" value="10.00">
input type="hidden" name="no_note" value="1">
input type="hidden" name="currency_code" value="USD">
input type="hidden" name="lc" value="US">
input type="hidden" name="bn" value="PP-ShopCartBF">
/form>
-------------------------

Thanks so much!

Targetting 'Hit' State On Buttons/immediately Disabling Buttons
Hi,

I have a button which, when clicked on, is set to disable itself. However, when it's clicked, the mouse is obviously still over the button and so the 'Over' state is shown - which implies that the button is still active. I don't want this - I want the button to be completely disabled as soon as it is clicked. If I move the mouse away from the button then it becomes completely disabled.

See here:

http://www.russellgillman.co.uk/testmenu.swf

When you hover over the buttons the text becomes yellow. When I click on a button, the green block moves to the selected button and the button is disabled, and yet the text remains yellow. I want it to become white immediately.

Code on the button:


Code:
on (release) {
services_btn.enabled = false;
getURL("www.site.com", "mainFrame");
slider.xMove = services_btn._x;
about_btn.enabled = true;
rates_btn.enabled = true;
rental_btn.enabled = true;
sales_btn.enabled = true;
coverage_btn.enabled = true;
contact_btn.enabled = true;
}
What I'd like to do is to target a specific frame in the button - eg:

services_btn.gotoAndStop("Hit");

but this doesn't work.

Can some help please!? Thanks...

Buttons Whos Actions Depend On States Of Other Buttons -HOW?
Hi,

I’ve made a 3D animation as a background to my homepage, and have imported it into Flash CS3 as a series of still TIFF images (one image on each frame).

Now I am looking to control this animation using a series of 9 buttons. At the moment each button does the following:

Button1: Play frames 01 – 20. Stop.
Button2: Play frames 21 – 30. Stop.
Button3: Play frames 31 – 40. Stop.
…etc.

However, I want to make each button’s action dependant on the states of the other buttons:

When the user presses any of the 8 buttons other than the one that is currently engaged, I want the animation relating to the button that is currently engaged to be played in reverse, and then the animation belonging to the button that has just been pressed to be played!

For example, if Button 1 has been pressed, then the user presses Button 2, I want frames 20 – 01 and then frames 21 – 30 to be played. Another example; Button 3 is engaged, user presses Button 1 – frames 40 – 31 should be played and then frames 01 – 20.

If anyone could help me with the ActionScript to perform this (ideally AS3 but AS2 is fine) then I would be extremely, extremely grateful.

Thanks in advance for any comments.
Ben.

Buttons Whos Actions Depend On States Of Other Buttons -HOW?
Hi,

I’ve made a 3D animation as a background to my homepage, and have imported it into Flash CS3 as a series of still TIFF images (one image on each frame).

Now I am looking to control this animation using a series of 9 buttons. At the moment each button does the following:

Button1: Play frames 01 – 20. Stop.
Button2: Play frames 21 – 30. Stop.
Button3: Play frames 31 – 40. Stop.
…etc.

However, I want to make each button’s action dependant on the states of the other buttons:

When the user presses any of the 8 buttons other than the one that is currently engaged, I want the animation relating to the button that is currently engaged to be played in reverse, and then the animation belonging to the button that has just been pressed to be played!

For example, if Button 1 has been pressed, then the user presses Button 2, I want frames 20 – 01 and then frames 21 – 30 to be played. Another example; Button 3 is engaged, user presses Button 1 – frames 40 – 31 should be played and then frames 01 – 20.

If anyone could help me with the ActionScript to perform this (ideally AS3 but AS2 is fine) then I would be extremely, extremely grateful.

Thanks in advance for any comments.
Ben.

Replacing Dedicated Gallery Buttons For Next/prev Buttons
Hey all, I could use some help with this. It's probably something simple but it beyond my current abilities - any assistance would be aprreciated.

Well I'm using the code from one of the XML gallery tutorials. Currently the code has dedicated buttons for each individual gallery, however I'd like to change it so it only uses next/prev buttons and perhaps use an XML file to establish how many galleries there are, that way it would be easier to add additional galleries later on without cluttering the screen with a whole bunch of buttons.

here's the code...


PHP Code:



function loadXML(loaded) { if (loaded) {  xmlNode = this.firstChild;  image = [];  description = [];  thumbnails = [];   total = xmlNode.childNodes.length;  for (i=0; i<total; i++) {   image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;   description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;   thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;    thumbnails_fn(i);  }  firstImage(); } else {  content = "file not loaded!"; }}xmlData = new XML();xmlData.ignoreWhite = true;xmlData.onLoad = loadXML;xmlData.load("images1.xml");gallery_txt.text = "Gallery 1";// gallery buttonsbtngal1. onRelease = function(){ xmlData.onLoad = loadXML; xmlData.load("images1.xml"); gallery_txt.text = "Gallery 1"; thumbnail_mc.unloadMovie(); p = 0; thumbnail_mc._x = +1;}btngal2. onRelease = function(){ xmlData.onLoad = loadXML; xmlData.load("images2.xml"); gallery_txt.text = "Gallery 2"; thumbnail_mc.unloadMovie(); p = 0; thumbnail_mc._x = +1;}btngal3. onRelease = function(){ xmlData.onLoad = loadXML; xmlData.load("images3.xml"); gallery_txt.text = "Gallery 3"; thumbnail_mc.unloadMovie(); p = 0; thumbnail_mc._x = +1;}///////////////////////////////////// listen = new Object();listen.onKeyDown = function() { if (Key.getCode() == Key.LEFT) {  prevImage(); } else if (Key.getCode() == Key.RIGHT) {  nextImage(); }};Key.addListener(listen);previous_btn.onRelease = function() { prevImage();};next_btn.onRelease = function() { nextImage();};///////////////////////////////////// p = 0;this.onEnterFrame = function() { filesize = picture.getBytesTotal(); loaded = picture.getBytesLoaded(); preloader._visible = true; if (loaded != filesize) {  preloader.preload_bar._xscale = 100*loaded/filesize;  preloader.loadText = Math.round(100*loaded/filesize)+"%"; } else {  preloader._visible = false;  if (picture._alpha<100) {   picture._alpha += 10;  } }};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();  } }}function prevImage() { if (p>0) {  p--;  picture._alpha = 0;  picture.loadMovie(image[p], 1);  desc_txt.text = description[p];  picture_num(); }}function firstImage() { if (loaded == filesize) {  picture._alpha = 0;  picture.loadMovie(image[0], 1);  desc_txt.text = description[0];  picture_num(); }}function picture_num() { current_pos = p+1; pos_txt.text = current_pos+" of "+total;}function thumbNailScroller() { // thumbnail code! this.createEmptyMovieClip("tscroller", 1000); scroll_speed = 30; tscroller.onEnterFrame = function() { if ((this._ymouse>=thumbnail_mc._y) && (this._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) { if ((this._xmouse>=(hit_right._x-3)) && (thumbnail_mc.hitTest(hit_right))) { thumbnail_mc._x -= scroll_speed; } else if ((this._xmouse<=30) && (thumbnail_mc.hitTest(hit_left))) { thumbnail_mc._x += scroll_speed; } } else { delete tscroller.onEnterFrame; } }; } function thumbnails_fn(k) { thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth()); tlistener = new Object(); tlistener.onLoadInit = function(target_mc) { target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k; target_mc.pictureValue = k; target_mc.onRelease = function() { p = this.pictureValue-1; nextImage(); };target_mc._alpha = 50;target_mc.onRollOver = function() { this._alpha = 200; thumbNailScroller(); }; target_mc.onRollOut = function() { this._alpha = 50; };}; image_mcl = new MovieClipLoader(); image_mcl.addListener(tlistener); image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k); } stop(); 






Thanks

Creating Animated Buttons Tut-Linking The Buttons To Content
I followed Lee's excellent tut on creating buttons using movies clips.

I am rather confused as to how the buttons can be linked to content -

ie Portfolio button to portfolio page - Contact button to contact page.

Im rather new to flash 8 however from my understanding of MX2004 I know
how to create a behaviour on a button symbol to play a certain page. After playing about with Flash this evening I was unable to get any button created using the tut to link to another page.

Can someone point me in the right direction, code or otherwise.

Thanks

Chris

Mx04: Any Idea How To Deal With Buttons On Top Of Buttons?
Hello fellow flashers.

Just a quickie hopefully; i have a rollover mc that when rolls over darkens a banner and as such shows the text more clearly when the mouse rolls over it (when its not rolled over you can see the pic clearer unedrneath) anyway ontop of this rollover mc i have a button now when you roll over that button the mc dissapears as if you've rollout of it again because the button is obviuosly taking priority.

Here's the question: Is there any way of getting both the mc to play its role and the button to have its over state at the same time?

dean!!

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