Stacking Order With FLASH Movies
Hi,
I'm curious to know how they got their menus to stack on top of the flash movie on this page. espn.com/nfl/news/
I tried to do the same once by giving my menus a super high z-index, but to no avail.
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Sep 19, 2006, 00:42
View Complete Forum Thread with Replies
Sponsored Links:
Stacking Order Of Flash Movies In Html
Hi all,
I'm using a dropdown menu (created with NavStudio) on a site that also contains one flash element on the side. One section of the dropdown menu overlaps the flash movie, but the movie seems to have precendence, and covers the dropdown menu where it overlaps.
How can I bring the dropdown menu to the front and send the flash movie to the back? I couldn't see any script in the <object> tags for the swf that affects it's stacking order in html.
Is there a little piece of code to look for in my js files for the dropdown that affects its stacking order?
Thanks
C
View Replies !
View Related
Stacking Order Of Flash Movies In Html
Hi all,
I'm using a dropdown menu (created with NavStudio) on a site that also contains one flash element on the side. One section of the dropdown menu overlaps the flash movie, but the movie seems to have precendence, and covers the dropdown menu where it overlaps.
How can I bring the dropdown menu to the front and send the flash movie to the back? I couldn't see any script in the <object> tags for the swf that affects it's stacking order in html.
Is there a little piece of code to look for in my js files for the dropdown that affects its stacking order?
Thanks
C
View Replies !
View Related
Stacking Order Of Movies
i have two movies that are running at the same time and i want to change the stacking order depending on which one is clicked on. they are obviously both viewable at the same time and i would like one to go on top of the other when clicked. any ideas? i've tried using movieclip.swapDepths(), but with no luck.
View Replies !
View Related
TOP OF STACKING ORDER POP UP
I'm building a Flash Site which makes use of Pop Up html pages to hold the content, however I want the pop up box to remain on top of the stacking order.
See the following:
http://javascript.internet.com/page-...op-window.html
I've tried to implement the script but just can't get it to work!
How do I do this in Flash?
Please help!
Regards
PADDYWALL esq
View Replies !
View Related
Stacking Order...
Hi all,
I have quite a bit of experience with animation, but I'm a total noob when it comes to actionscripts. I'm currently doing a project at work and I want to learn how to change the stacking order of movies. The transition from one page to another involves the previous page being "wiped over" by the selected page. For example, if I'm currently at the "home" page, and selected "about us" page, all the elements on the home page will be covered by the about us page. So the way I want it to work is whatever page is selected should always be on top of the page you are currently on.
Would appreciate any help, tia.
View Replies !
View Related
Stacking Order Issue
Hello, I have a random effect which I need to go BEHIND other elements on the timeline... this actionscript plays infront of everything. How do I get it to play behind other elements? See my problem here: http://www.buzzbbp.com/
amount = 10;
mWidth = Stage.width;
mHeight = Stage.height;
for (var i = 0; i<amount; i++) {
thisFlake = this.attachMovie("flake", "flake"+i, i);
with (thisFlake) {
_x = Math.random()*mWidth;
_y = Math.random()*mHeight;
_xscale = _yscale=_alpha=40+Math.random()*60;
}
thisFlake.yspeed = Math.random()*2+.2;
thisFlake.increment = -0.025+Math.random()*0.05;
thisFlake.radian = 1; //declare for actionscript 2.0
thisFlake.onEnterFrame = function() {
this.radians += this.increment;
//trace(this.radians);
this._x += Math.sin(this.radians);
this._y += this.yspeed;
if (this._y>=mHeight) {
this._y = 0;
this._x = 0+Math.random()*mWidth;
}
if (this._x>=mWidth || this._x<=0) {
this._y = 0;
this._x = 0+Math.random()*mWidth;
}
};
}
View Replies !
View Related
Stacking Order Of Duplicated MCs
I have a Flash piece that duplicates a random number of MovieClips (using duplicateMovieClip) and randomly places them. You can see it here:
http://litmusbox.com/staging2/
Trouble is, the duplicated MCs are being placed on top of other artwork. The duplicates appear on top of the text on the left side of the page. The original MC which is being duplicated resides on a layer that is under this text. However, its duplicates are being placed on top.
See my code attached. I'm not sure how "depth" applies here. From what I can tell, the only time one refers to "depth" is when you're duplicating a movie clip, and that movie clips that have not been duplicated have no way of assigning them depth. I've assigned the new MCs to have a depth of "itr-100". I'm assuming lower depth means lower stacking order. However, these duplicated MCs are clearly appearing on top.
Any ideas?
Attach Code
onEnterFrame = function () {
// create new block
thisName = "block" + itr;
duplicateMovieClip (_root.block, thisName, itr - 100);
// determine location of new block
_root[thisName]._x = (random (19) * 50) + 25;
_root[thisName]._y = (random (5) * 50) + 25;
}
View Replies !
View Related
Changing Stacking Order
Hi there, first time ever on a forum so please forgive me.
I have an FLA with a section in it where I need to swap between images (one over the other and so on, which I have done using swap depth) what I want to know is if there is a way to make the transition from one pic to the other smoother by using alpha from 100% to zero, thus revealing the picture beneath.
Does anybody out there know how this is done.?
View Replies !
View Related
Changing Stacking Order
Hi there, first time ever on a forum so please forgive me.
I have an FLA with a section in it where I need to swap between images (one over the other and so on, which I have done using swap depth) what I want to know is if there is a way to make the transition from one pic to the other smoother by using alpha from 100% to zero, thus revealing the picture beneath.
Does anybody out there know how this is done.?
View Replies !
View Related
[FMX] Help Needed With Stacking Order
Last edited by donaldboer : 2004-05-14 at 23:36.
I have for sub menu's on the stage for which I control the alpha fade with the following code:
ActionScript Code:
function fadeSub(l) {
for (k=0; k<but.length; k++) {
if (k != l) {
this["sub_"+but[k]].onEnterFrame = function() {
this._alpha += (0-this._alpha)/3;
if (this._alpha < 5 ) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
} else {
this["sub_"+but[k]].onEnterFrame = function() {
this._alpha += (99-this._alpha)/12;
if (this._alpha > 98) {
this._alpha = 99;
delete this.onEnterFrame;
}
};
}
}
}
but = new Array();
but = ["agricultural", "industrial", "material", "marine"];
for (i=0; i<but.length; i++) {
this["btn_"+but[i]].i = i;
clip = this["btn_"+but[i]];
clip.onRelease = function() {
fadeSub(this.i);
};
Now I want to integrate a swapDepts in this function. Can somebody please tell me how to do that.
Cheers,
Donald
View Replies !
View Related
AddChild Stacking Order
I know I've had this problem before, but I am trying to leave all my movieClips in the library.
I have 2 movieClips.. one that stretches across the top of the screen, and another that is basically the Background of the entire flash stage.
Here is my code:
Code:
function position()
{
//THIS IS THE TOP PANEL
var bg:Topbg = new Topbg();
addChild(bg);
bg.x = 0;
bg.y = 0;
bg.width = stage.stageWidth;
//THIS IS THE BODY BACKGROUND
var bg2:Bodybg = new Bodybg();
addChild(bg2);
bg2.x = 0;
bg2.y = 75;
bg.width = stage.stageWidth;
bg.height = stage.stageHeight;
}
My problem is the "bg2" is on top of "bg". How would I declare a "stacking order".. or "level" or "z-index" ... make sense?
(sorry, i think level is the correct term here, but im not sure)
Thanks as always!
Lance
ps - I found some free time to finish the 2nd part of my site!!!
View Replies !
View Related
Swapdepth Stacking Order Problem
Hi all,
I'm having a swapdepths nightmare! The user should be able to drag a cylinder around a classroom table and place it any of 5 hit areas. So far they scale in perspective but I need to handle the stacking order so each cylinder scales and then moves to the correct stacking order.
I don't want it to just swap to the top because it will overlap as you'll see if you look at this [27k]:-
http://www.nu-e.co.uk/flash5/depth.html
--Erratum
Thought you campers might like to know I solved the problem and the updated version can now be viewed at the same url above
[Edited by a1digit on 07-24-2001 at 12:14 PM]
View Replies !
View Related
Stacking Order For Floating Menus
I have a floating movie clip idea in my site where many windows can be opened at once. they are all in the same layer. Is there a way to click on one which is covered and it comes to the front. just like the way floating pallets work in aplications. any help would be great
View Replies !
View Related
Loading Swf's And Stacking Order Problem
i was wondering if there was a way to, in effect, erase or stop a _level's exsistence. i am doing a site that is very content-heavy so i have all the main subpages loading as seperate swf's when trigerred by the main menu, which is it's own _level. the problem i have is that when i want to see a _level whose stacking order is below that of the one currently playing, i can't seem to find a way to get rid of the one that is playing so the one that i wan't to see isn't hidden by it. i'm tring to be as articulate as possible. if you have any suggestions i would be greatful.
View Replies !
View Related
Stacking Order - Swap Depths
hey guys, please help me. I have 13 buttons and on rollover they bring up a panel below them, the problem being that the last one is always on top, i have the buttons in movie clips and i'm trying to use the swapdepth command to swap the depth with a empty movie clip that is above everything else, am i way off track? can someone please help or give me come code
thanks
View Replies !
View Related
Yet Another _level/stacking Order Question
In this slideshow I'm doing...
I have a main page with a main menu. There's a link in there that opens the slideshow.
the slideshow is inside a MC and it is opened using attachMovie.
However, I can't seem to be able to get rid of the main menu. I end up with a mixed image of both interface.
How would you fix this problem... I have no idea really.
tks
View Replies !
View Related
Sending MC's To The Back (stacking Order)
Okay, let's see if you guy's can help.
Basically I have a little app where a pop up palette contains dragable movie clips that then are placed on the main stage. However when the palette pops up for a second time it remains behind the placed movie clips.
The clips have to be on top of the palette initially, but something like on release swapDepths?
Anyone got any clue as to how to fix this as it's driving me nuts.
Thanks in advance.
View Replies !
View Related
Stacking Order For Movie Clips
Hi Have have 3 buttons made that when clicked on it loads a movie clip. I have all that done but I want to know if you can change the stacking order so that if you click on button three that will load, and then if you click on button two I want that movie clip to go over the first movie.
And lets say if you want to go back to that first movie, I want the second one to go in the background and the other one to be view able.
this is a preview of what I have done.click
Im not sure if I make any sence :S
View Replies !
View Related
Actionscript Problem Stacking Order
Hi there!
I'm quite new in flash, but i would like to have my flash portfolio website up soon... so I decided to build a site with 'cards' which can be dragged around. The cards should be stacked just at random order on the site as a user enters. By clicking a card it moves to the front for viewing.
Based on the tutorial at Kirupa on 'changing stacking order (swapdepth) http://www.kirupa.com/developer/acti.../swapdepth.htm i started flashing and scripting. I am quite pleased with the results so far, but I have one problem: When clicking a card, it really 'swaps' the order with the card that was up front last. Though when clicking a card, the order (and position) of the other cards should actually not change.
The .fla file can be downloaded here: http://www.basjanson.nl/portfolio.fla
Can anybody help me fixing this?
Thanks a lot in advance!!
View Replies !
View Related
Stacking Order Tutorial Broken - Plz Help
Nevermind, was making a stupid mistake. I would delete this post, but I do not see a way. Following the information on the link listed at the bottom fixed everything.
----------------------------------------------------------------------------
Refering to the stacking order tutorial:
http://www.kirupa.com/developer/acti.../swapdepth.htm
Link to FLA for tutorial: http://www.kirupa.com/developer/actionscript/code/swapwindow_final.zip
If you download the above FLA File, do not forget to change the settings to make it run using Flash 8 and not what it defaults to (6).
First let me say, I did try searching the forums and I was unable to find an answer to my issue. I'm quite new to the programming in flash and while the example works in Flash 6, it does not work in 7 or 8.
When you start clicking them in 8, it will seem like it is working, however you will notice that the depth system dies incredibly fast. Just click through Green, Yellow, Blue and green again (and so forth) and you will see what I am talking about. Other windows start popping to the front along with the one you choose (or even sometimes without the one you even want).
Any help on this matter would be Greatly appreciated!
Because I am new, I would love if someone could post a fixed fla file or email it to me at severon@gmail.com . That way I can open the file and not only read on the forum what to do, but see it first hand. That said, ANY help is very welcomed! Thanks!
P.S.
A link I did find with search was:
http://www.kirupa.com/forum/showthread.php?t=206777
However, I do not know if this fixes the player 8 issue, as I could not get it to work using what I found in that link. I am new though, so it might be my lack of experience.
View Replies !
View Related
Change Stacking Order (swapDepths)
Hi, I was reading an old article about swapDepths and was wondering if you could explain how you'd increase a second panel relative to the panel being dragged.
Quote:
If I want another panel to increase its stacking order in relation to this panel, I can blindly increase the stacking position of that panel, or, I can increase a variable stored on the main timeline by a certain value so all movie clips are in sync.
To describe my project, I have 4 nav movieclips that I want to swap depths on rollover and also bring a movieclip of a opacity fade-in up to one depth below the mc the mouse is over.
So basically I'm looking for this when I rollover MC1:
[MC1]
[OPACITY_MC]
[MC2]
[MC3]
[MC4]
Any help would be sweet. Thanks.
Scott
View Replies !
View Related
Sending MC's To The Back (stacking Order)
Okay, let's see if you guy's can help.
Basically I have a little app where a pop up palette contains dragable movie clips that then are placed on the main stage. However when the palette pops up for a second time it remains behind the placed movie clips.
The clips have to be on top of the palette initially, but something like on release swapDepths?
Anyone got any clue as to how to fix this as it's driving me nuts.
Thanks in advance.
View Replies !
View Related
Stacking Order For Movie Clips
Hi Have have 3 buttons made that when clicked on it loads a movie clip. I have all that done but I want to know if you can change the stacking order so that if you click on button three that will load, and then if you click on button two I want that movie clip to go over the first movie.
And lets say if you want to go back to that first movie, I want the second one to go in the background and the other one to be view able.
this is a preview of what I have done.click
Im not sure if I make any sence :S
View Replies !
View Related
Draggable Menu Stacking Order Query.
I have several draggable/expanding menu mc's in a movie.
I would like the chosen menue to always be on top. At the moment some menus are behind others! Am I on the right track with _level or swapDepths?
Can anyone spare a few minutes and help me?
Thank you,
Ali Foote
View Replies !
View Related
Question About Changing Stacking Order (swapDepths)
I'm fairly new to actionscript so bear with me. I currently have a layer that contains six buttons, each of which on rollOver expands into a panel. I know I need a swapDepths statement bring the currently selected button in front of the other buttons. My problem is, I don't understand how actually define the depth. this is what I have assigned to the actions of each button so far:
on (rollOver){
this.swapDepths()
}
Any help would be greatly appreciated!
View Replies !
View Related
Screens Stacking Order? Levels/Z-Index?
Been designing for years but just started in Flash MX Pro. Totally cool & a lot of new ground.
Have designed a Slide Presentation site where I have Screens Transition/Fly in on the click of a button. Pretty simple.
Problem is that the new screens are flying in on a level above my navigation buttons bar.
I'd like the flying screens to appear as if they're coming from underneath the navigation button bar.
The button bar is on the very top level Presentation screen.
Here's a link to an example of what I'm trying to do:
http://www.templatehelp.com/aff/prev...ash.asp&i=7724
I thought about masking the screens somehow as they fly in but not sure where to put the mask.
I've also researched swapDepths() action but not sure how or where to install it.
Not sure if either of these options are the correct way to acheive my goal.
Any help will be greatly appreciated.
jmitteco
View Replies !
View Related
Problem With Stacking Order Of Dynamic Mxl Data
hi, i've got about twenty images dynamically loaded into my movie from an xml file with this script:
myXML = new XML ();
myXML.ignoreWhite = true;
myXML.load ("objects.xml");
myXML.ref = this;
myXML.onLoad = function (succes) {
if (succes) {
var root = this.firstChild;
nodes = root.childNodes;
for (var i = 0; i < nodes.length; i++) {
this.ref["Title_txt" + i].text = nodes[i].attributes.name;
subnodes = nodes[i].childNodes;
this.ref["Comments_txt" + i].text = subnodes[0].firstChild.toString ();
this.ref["holder_mc" + i].loadMovie (subnodes[1].firstChild.toString ());
}
} else {
trace ("Error loading XML document");
}
};
I manually created 20 holder_mc's each ending on a different number. the first is holder_mc0, the second is holder_mc1, etc. I did that so that I could determine the position of all the pictures on the stage. So now there is 20 images spread out across the stage all in place according to the position of where I put the holder_mc's, right? So far so good....
But! I want these damn little pictures to move to the next highest depth when the user rolls over them. And I cant get it to work.... I actually cant get anything to work with these mc's. I tried a stupid little trace function:
holder_mc0.onRollOver = function () {
trace("some trace text");
};
and that doesnt even work.... for the life of me, I dont understand why!
can someone help me out here? I need to get this stacking order to work properly and I want the user to able to click on these holder_mc's to launch a popup with a bigger picture... HELP PLEASE!
View Replies !
View Related
Screens Stacking Order? Levels/Z-Index?
Been designing web sites for years but just started in Flash MX Pro. Totally cool & a lot of new ground.
Have designed a Slide Presentation site Where I have Screens Transition/Fly in on the click of a button. Pretty simple.
Problem is that the new screens are flying in on a level above my navigation buttons bar.
I'd like the flying screens to appear as if they're coming from underneath the navigation button bar.
The button bar is on the very top level Presentation screen.
Here's a link to an example of what I'm trying to do:
http://www.templatehelp.com/aff/prev...ash.asp&i=7724
I thought about masking the screens somehow as they fly in but not sure where to put the mask.
I've also researched swapDepths() action but not sure how or where to install it.
Not sure if either of these options are the correct way to acheive my goal.
Maybe there's a completely different way of laying this out?
Any help will be greatly appreciated.
jmitteco
View Replies !
View Related
Overlapping Menus In CS3/AS3, Stacking Order Problem?
Hey Everyone,
I've been working with this file for quite some time now.
I have several buttons in this file - for example, general information. From this button (actually mc, using hittest to function as a faux button), another menu springs out.
This menu overlaps the button underneath it.
The problem I've been having is that, when the submenu pops out, the user is still able to activate the buttons beneath the submenu (it overlaps the other "main" buttons).
My solution was to "hide" the movieclips that are overlapped by the submenus, like this:
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.btn_gen.direction = "ff";
_root.btn_cal._visible = false;
_root.btn_foot._visible = false;
_root.btn_inj._visible = false;
} else {
_root.btn_gen.direction = "rr";
_root.btn_cal._visible = true;
_root.btn_foot._visible = true;
_root.btn_inj._visible = true;
}
}
Basically, turning off the movie clips that I know are being
... removing them from the equation until the active mc has been moused off.
However, this only seems to work on the button that is set to be all the way in the back of the stacking order: -16383 (I've achieved this stacking order by setting the mc to "send to back").
once I move it away from the back layer, it no longer functions as I anticipated it would by coding it the way I did.
I'm wondering if there's a way to dynamically change the stacking order (I've been messing with this all day but with no success) or if there's a completely different and better way to set this up.
I've been looking at it for so long, I can no longer see any other way to do it other than the method I've just explained.
An interesting challenge for me... but probably something easy for the lot of you.
Please - I really need help!
- Tom
View Replies !
View Related
[flash8] AS Rollovers And Movie Clips Stacking Order
I used the super helpful tutorial at: http://www.kirupa.com/developer/mx20...ton_effect.htm to answer my question, but now I have another one.
I followed the tutorial exactly to create rollover animations of islands on a map. The islands are all on one layer and have all been converted into movie clips. Each of these movie clips have their own script to run when a user rolls over each one and to disappear when the user rolls out.
The only thing is that when one island does its animation, it is being covered up by an island adjacent to it.
How do you control the stacking arrangement of the movie clips so that if one plays, all the others are behind it and not over it?
To see the swf, go to http://www.tokkisom.com/splash_map2.html
View Replies !
View Related
Stacking Movies
Ok, I have a stack of movies (six, one ontop another) on the stage.
I'm trying to make it that when you mouse over a button elsewhere on the stage it makes #1 the top movie clip- and subsequently if clicked would play that #1 movie clip. THen a second button moused over would bring movie clip #2 to the top and ready to be played.
Any ideas on how to control this?
I've been messing with setProperties til I'm blue in the face, but you can always seem to see one of the clips ontop of the one that is getting played.
I attempted swapDepths- but this didn't seem to work either.
Suggestions appreciated.
-M
View Replies !
View Related
Order For Loading Flash Movies In Website
Glory!
I'm facing a tricky problem.
I have a frameset.. Left, Right & Bottom.
Each frame contains a .swf flash movie. They run fine without any problems. I've used the "Publish" settings and published them properly.
Following are there sizes.. and each one contains a Loader too.
Left frame = 400 KB
Right frame = 65 KB
Bottom frame = 300 KB
The problem is.. the right frame flash movie loads immideately, which is ok. But the Bottom Flash movie doesnt appear at all, UNTIL it is 60% already done.. that is.. the Bottom frame appears blank.
The Left frame also starts loading immideately, and goes on.
But the Bottom Frame appears blank and nothing happens there and suddenly the image appears and you see the Loader at 60% and it goes on from there. Why does this happen?
What i want indeed is the the Bottom Frame.. which is the navigation menu and most important, should start immideately.. otherwise people wont even know something is down there.. it's really stupid.
Can anyone help me?
Thanks.
Rahul
View Replies !
View Related
Textbox/button Tab Order In Flash Movies?
ok... lets says i have a flash movie with a form with text boxes and buttons. how would i go about coding a tab order that it will only tab to certain elements of the movie (just the buttons and text boxes? in the past i was having a problem that it would go to other misc elements in the movie. basically how do i separate or code things so it only tabs on particular buttons/text boxes??
k-fresh
View Replies !
View Related
"test Movie" Z-stacking Order
Hello,
theres one thing bout the new ide wich drives me nuts..
if i click "test movie" the swf is displayed below! all other panels in regards to z-stacking order, is there any way to change this behaviour?
best regards
Martin
View Replies !
View Related
Changing Movies Level/order
Hi. Does anybody knows how to change the level of several movies loaded one over the other?.
The situation is this: a have a base movie (on the root 0 level) which have the main links, scenes, etc; another movie (level 1) with the music; another movie on level 2 that is like another scene of the main movie, but i choosed the load it apart because of it´s size; finally another movie (level 3)wich handles a mouse cursor.
The movie/scene on level 2 contains a simbol with zooming capabilities which, when zoomed enough, covers some buttons wich are placed on the main movie and have to stay there.
The question is: Does exist in Actionscript the possibility to change the level of this movies, so I can place the main movie over the special scene, while this last one is displayed?.
Thanx in advance, and sorry for my english
Marcelo
View Replies !
View Related
Loading External .swf Movies In Order, 1 By 1
Hi
I have 6 diff movies as .swfs and 1 main movie,
any body help me to load the movies one by one in order.
The "main.swf" movie is loading the "movie1.swf" perfectly, but after running all the
movie i want to unnload it and then load the "movie2.swf", the order will oges like this
for all 7 movies....
anybody help me...
- Chary
View Replies !
View Related
Playing 2 Movies In Random Order
Hi friends,
I created two flashes (also two swf).
I want to add these flashes to two seperate frames as movie.
And I want them to play randomly when I open the flash on first time.
Ex. when I enter the page first flash will appear.
two hours later, when I enter the page second flash will appear..
how can ı do this in one swf..
thanks
View Replies !
View Related
Play All Button Launching Many Movies In Order?
Hey all you gurus on this board,
I am in need of a way to have a "Play All" launch three different mini-movies from a menu selection.
The menu selection interface is comprised of four buttons:
movie1, movie2, movie3, and play all.
All of the single movie launcher buttons work fine.
I simply tell the main _root to go to a small cool transition frame label, and launch the new movie on top on _level1. At the end of the presentation, the user clicks the close button, and the mini-presentation goes away with the following code:
unloadMovie(this);
_root.gotoAndPlay("transitionBack");
Is there any way for the movie to flag its completion and/or set a play all flag to true if the user clicks "play all" such that all three movies will, in order:
Open, play, close
Open the next, play, close
Open the third, play, close and return to selection menu using gotoAndPlay("transitionBack);
Let me know if you guys can think of anything...I'm stumped. Thanks!
View Replies !
View Related
Pulling And Playing Movies In Random Order
I want to set up a fairly simple slideshow of movies. Basically, they'll all be similar, fading a photo in, pausing, then fading it out. What I'd like is for it to pull the movies at random, so the slideshow doesn't just play through exactly the same every time you open the page. Is there a way to actionscript that?
Bonus points if there's a way to set it up on two layers so that while one photo is fading out another can be fading in, and we could have each layer pause "X" number of frames before starting a new movie clip, so that they appropriately overlap. I have it in my head how it will work, I'm just not sure how to actionscript it.
Thanks for any help!!! :)
View Replies !
View Related
Nested Loops, Attaching Movies And Load Order
i'm attaching mc's using a nested loop. The mc's which are being attached reference each others position, so that once one mc is attached it looks up the chain to see where the mc attached previously is and moves accordingly. (The master mc is created in the outside loop below.)
When using nested loops like this when is each mc actually put on stage?
i suspect it is a load order thing, because the nested loop mc's do not seem to recognise the master mc when attached this way, although if i place the mc's created in the outside loop onto the stage in the authoring envir. the nested loop works fine.
this is a bit difficult to explain. but if you have understood this and can lend some assistance it'd be cool.
cheers
//---
gSections = ["Hotels", "Reception", "Wedding Party"];
_global.gDepths = 0;
for (var j = 0; j<gSections.length; j++) {
//attach 'leader' mc
_root.attachMovie("heart", _root.gSections[j], gDepths);
_root[gSections[j]]._x = Stage.width/2;
_root[gSections[j]]._y = Stage.height;
gDepths++;
for (var i = 0; i<gSections[j].length; i++) {
//attach 'trails'
tempTrailName = gSections[j]+"_";
_root.attachMovie("trail", tempTrailName+(i+1), gDepths);
currLetter = gSections[j].substr(i, 1);
_root[tempTrailName+(i+1)]._x = _root[tempTrailName+i]._x;
_root[tempTrailName+(i+1)]._y = _root[tempTrailName+i]._y;
_root[tempTrailName+(i+1)].letter.text = currLetter;
gDepths++;
}
}
View Replies !
View Related
Problem With Next And Previous Buttons. Movies Donot Get Displayed In Order.
Hi All,
I have written the code below. I want to use the previous and next buttons for selecting the movies to be played. This is the selection part of the code. I have another button in my main code which i use to shuffle between the videos. I can get random videos displayed and the program works fine.
Now here, when I go next --> i sometimes dont get videos in sequence, and same problem in previous. If i go previous from a video and click next, the video last displays changes to some other video.
I think there is some problem in the codes for previous and next. can anyone please help me out? I want all videos in order, i.e to be displayed from vid1 ..to vid n.
Can anyone give me a clue??
Code:
var nextplay:Number = 0;
var maxplay:Number = 23;
var minplay:Number = 0;
previous_btn.onRelease = function() {
vid.contentPath = "C:/RANDOM/VIDEOS/vid"+nextplay+".flv";
vid.stop();
nextplay -= 1;
if (nextplay<minplay) {
nextplay = maxplay;
}
};
next_btn.onRelease = function() {
vid.contentPath = "C:/RANDOM/VIDEOS/vid"+nextplay+".flv";
vid.stop();
nextplay += 1;
if (nextplay>maxplay) {
nextplay = minplay;
}
};
Thanks in advance...
Regards
Roshan Kolar
View Replies !
View Related
Stacking Div Over A Flash
hi are there any new ways of stacking a div over another div that has a flash movie in it. so the movie will be running under a div.
i know there is a way to do it with iframes but just wondering if there are any new developments for this issue that comes up a few times a year for me.
-best
kvn
View Replies !
View Related
Stacking Flash Layers
I want to display a text layer over 2 flash layers, i've set the first flash layer to transparent, so the second flash layer displays fine, i now want to put a 3rd layer that contains just text on top of this, does anybody know if this is possible?
View Replies !
View Related
Stacking Thumbnails In From XML In Flash?
I have this simple xml photogallery script. I have 6 thumbnails and want to stack them 2 thumbnails in each row - giving me a stack of three rows (two thumbnails in each row).
Can somebody tell me how I can do this? I'm kind of stuck....
Here is my code in the flash piece ------ //
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
numimages = this.firstChild.childNodes.length;
spacing = 70;
for (i=0; i<numimages; i++) {
this.picHolder = this.firstChild.childNodes[i];
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
this.thumbHolder._x = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_i mage", 0);
this.thumbLoader.loadMovie(this.picHolder.attribut es.thmb);
this.thumbHolder.title = this.picHolder.attributes.title;
this.thumbHolder.main = this.picHolder.attributes.main;
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
myPhoto.load("xmlphoto.xml");
------------------------------------- //
Any guidance would be great. Thanks in advance.
_G
View Replies !
View Related
3D In Flash - Animatee Stacking Boxes - Where To Start?
Hello all -
I have been assigned to create a flash animation for a website that animates 3d boxes stacking together to make the client's logo. I have very BASIC flash knowledge so I'm wondering where would be the best to start. For example, would it be easier to just animate this frame by frame, or to download a 3D program to use and export for flash? I looked into Swift 3D but the issue is...this is a volunteer project and I don't have a budget to download software. I was thinking about trying to learn Blender...
Anyway, I've found myself super overwhelmed and I'm wondering if anyone here can provide some help!
View Replies !
View Related
FLASH Transparency-stacking + CLICKABLE Links Behind It
Greetings guys...
i have been playing around with the wmode transparency attribute of our beloved flash player and i have reached the following conclusions:
1. it's supported under IE5+ and Mozilla 1.0+ (Win32 family) in terms of transparency (meaning that the html content actually shows through-behind the stacked-by-means-of-css FLASH MOVIE) yet...
2. only under IE6 (Win32) can you click links behind the flash movie, links that you can see through the movie. i have tried clicking links under IE5+ and Mozilla and i can't do it...When i approach the links the mouse pointer doesn't transform into a hand, as it is suppored to, and i cannot click the links, or any html content that is behind the space occupied by the flash animation
how can i have both transparent-stacked above all flash movie AND clickable links behind it under IE5+ and Mozilla....???
any help would be greatly appreciated....
View Replies !
View Related
|