ActionScript 2.0 :: Multiple Rollovers On One Page?
Oct 27, 2011
Basically what I have is a page in Flash AS2 and on the page I have 16 photos. Instead of clicking on each photo, taking you to another page, etc., I wanted to make it so that when you rollover the photo, the photo enlarges. This is easy. I have done this to all 16 photos, however, there's a catch. Whenever you roll over the first one, it looks great and is on the top, however, when you rollover the second photo, the image is now on top of all the thumbnail photos except the first one. Make sense? So basically the first thumbnail is covering the enlarged rollover of the second photo. Is there anyway to make all of the rollover images are placed on "top" of all the other photos? I have tried to arrange them, but it doesn't work like you would think. If you go into the rollover photo and arrange it to the front, it's as if the rollover and the thumbnail are the same picture (which I guess they are).
View 2 Replies
Similar Posts:
Oct 27, 2009
I've got a function to load multiple MovieClips on different rollovers.[code]But this way I can't dynamically change the movieclip instance when I call the function multiple times.
View 7 Replies
Feb 13, 2006
- im creating an interactive piece which requires 100 movie clips to be created which im treating as buttons. Each of these movie clips need a rollover and rolloff command and also need to load an external jpg into a movie clip on press. (along with few other actions)
Code:
_root.eh_2.onPress = function() {
var BGalpha = _root.BG_mc1._alpha;
[code].....
View 3 Replies
Apr 27, 2007
I have been developing an interactive map, part of that has buildings, each is separate movie clip. Each needs to have a bit of stuff happen onrollover and stop onrollout. I have that all working if I code each building separate. Instead of having 60-80 nearly identical blocks of code, is there a way I can consolidate this down to less code. for instance, instead of declaring the name and path of the button I'm rolling over, is there a way for flash to figure that out by getting the name of the current movieclip the mouse is over and then sticking that in the code? here is the code as it is right now:
Code:
var tt2:TooltipBuilding = new TooltipBuilding(0x660000, 0x000000, 0xFFFFFF);
_root.mainMap.mainMap.cateteachingcenter.onRollOver = function() {
[code]......
View 1 Replies
Jan 26, 2009
i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,
function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....
View 0 Replies
Nov 22, 2010
I'd like to use the same music player displayed multiple times on the same page, one for each song. But when songs are played, I want the existing play to stop. For example:
song1
song2
song3
I click to play song1, while it's playing, I decide to play song3 instead. Based on the default setup, song3 will start playing while song1 continues to play. I'd like song1 to stop when song3 starts.
View 2 Replies
Jul 6, 2011
If I've got multiple instances of a swf (a media player that I've created), is there a way to stop one instance if a user starts playing another instance on the page? how to communicate with other swf's on the same page?
View 2 Replies
Jun 28, 2004
Is there any way, using JavaScript or something, to allow me to have 2 seperate kinda pages on the same page? I know that sounds wierd but i basically want to be able to click on one button, lets say on the right, and load a contetn box on the left. Does this make sence?
View 4 Replies
Mar 6, 2009
I have a page that can be seen here: [URL]
As you should be able to see, it seems as though the Flash file on the left is causing the one on the right to reload upon final loading. The one on the right will reload itself once the one on the left finishes loading.
I have tested the flash files by themselves and both load only once when loaded by themselves. It seems as though one is causing the other to re-load which is just mind boggling to me.
View 2 Replies
Mar 4, 2009
im working on a site that uses page flip but i wanted to make multiple flips as well. imagine 2 strips that are independant of eachother that both flip. i was going to make 2 flash files and load them into a container flash file.
View 1 Replies
Mar 3, 2010
What I want to build is a photography site using flash for the thumbnail pages and slideshow, but have the navigation buttons their own separate flash entities. Can these separate flash button entities influence the thumbnail flash entity? The purpose of the multiple flash entities is so that I can embed it in my html and use css to position them so that it stretches or shrinks to fit a browser window depending on screen size. Or is that a bad idea?
View 2 Replies
Nov 24, 2010
Is it common to have issues when there are more than one Recording SWF on an html page?I have 4 SWFs on a page, each with the capability to record, They all use the same FMS application but record and playback different FLV files.Could there be an issue with the NC being shared and then causing grief?
View 2 Replies
Nov 26, 2010
I'm planning to add a page to my site that would have sample music from a variety of artists. There would be several sentances about the musician, then a free Flash mp3 player I'm using. I'm planning at least a dozen of these on the page. I didn't anticipate any problems, but a page where I had done something similar suddenly stopped working. Nothing I've tried will fix it. I don't want to go ahead until I find out if there are details I need to know about having multiple Flash objects on a page. Here's a link to the page that broke ... supposed to be a second instance of the player below the paragraph that talks about Ramblin' Jack Elliott ... instead there's just space ...
[URL]
View 2 Replies
Feb 3, 2011
I'm trying to post multiple .swf objects into one html page. The first .swf object plays fine, but the second one does not load. My page is [URL]
Dreamweaver tells me that swfobject.registerObject does not exist, or something like that, but I see this code being used elsewhere. I have swfobject.js in my main folder, too.
View 18 Replies
Apr 26, 2011
I want a single online web page for my bookmarks. The page should include small windows which opens the following pages:
Fizy, Facebook, Guardian.
There should also be a button for adding a new window with an URL text input.Here's an illustration of how the page should look: http:[url].....I've built a version of this at http:[url]...., but as you may see, it uses iframes under javascript windows, which can not open frame-breaking sites (like fizy.com), or Facebook.
View 2 Replies
Jul 30, 2008
I basically have multiple identical swfs on a html page, each containing an mp3. I need it so that when you play one.. it stops any others that are playing, to prevent the audio from overlapping and creating a mess.
I've tried using 'local Connection' which almost worked.. but just didn't seem to be well suited to this sort of thing.
View 9 Replies
Jul 12, 2005
I basically need to set up an interface in an html page with 3 different swfs in different spots of a table that need to communicate with eachother (basic stuff like going to certain frames within the targeted swf when a button is pressed, etc).
I'm pretty sure i've seen it done, but i can't seem to figure out what kind of approach i need to take. I'm guessing its going to take some javascript, but i'm not sure.
View 14 Replies
Mar 4, 2009
I have a bbq grill animated in flash that opens and closes on rollover and rollout. When the grill opens there are hamburgers and hotdogs. When you rollover the hamburgers and hotdogs a hover menu opens but this causes the grill lid to close because the hover menu is being triggered by the rollover from another button.
View 4 Replies
Jun 24, 2009
I'm a Flash novice and I can't seem to get this menu I'm working on to function just right.
[URL]
The problem I'm having is when you mouse out from one diamond to another, the menu doesn't always go back to normal. I guess it's because of the way my movie clips are positioned... If one clip on top of the other, the rollOut function doesn't work on the bottom element. If that makes sense. Probably best to just download my Flash file to see how it's set up:
[URL]
how to set this menu up so it always fades back to normal when a diamond has been moused out? I've tried setting up rollOut functions on different buttons and can't get it to work...
View 2 Replies
Nov 7, 2009
I am using labels for the pages so they are all on the same timeline. When the user gets to the last page there is a submit button that sends all the variables to a php mailform file. However I keep getting TypeError: Error #1009: Cannot access a property or method of a null object reference. I dont think my variables are not being passed.[code]
View 1 Replies
Jul 26, 2010
I have tried this and it doesn't seem to work. In the example below the movie on the right (boy in the hat) is embedded using this procedure but the two on the left (paws moving on order button and dog animation) had to be installed using Dreamweaver's swf installation methodology. and, consequently the dog animation does not show up in Explorer 8 and some other browsers.
[URL]
View 3 Replies
Oct 27, 2010
I have five buttons on a page. One must link back to a previous scene in the movie. The other four must each launch a window with a unique URL.
Currently the code is this:
stop();
resourcesretoc.addEventListener(MouseEvent.CLICK, btnclickresourcesretoc);
function btnclickresurcesretoc(evt:MouseEvent):void {
gotoAndPlay(120,"Scene 1")
[Code].....
I get an error - "Call to a possibly undefined method navigateToUrl, but I don't know what that means / how to fix it.
View 3 Replies
Jun 15, 2011
I currently embed a swf video on an html page with this script:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
window.onload = function() {
if (swfobject.hasFlashPlayerVersion("9")) {
var att = { data:"player_3982x260_fv4.swf", width:"640", height:"323" };
var par = { menu:"false", allowfullscreen:"true" };
[Code]...
I've attempted a few different ways to embed two SWFs in the html but havent had any luck. Here's the test page I'm working on: [URL]... How would the window.onload = function() be changed to refference two different swfs?
View 1 Replies
Jul 12, 2010
I'm trying to put together a flash portfolio which contains a page with multiple swf files loaded externally, I've managed to follow a tut and works fine..except,
the loaded swf video loop, and as I navigate to other pages the sound plays through. I tried the unloadAndStop technique which helped but didnt stop the loop, i even added a
[Code].....
View 0 Replies
Apr 7, 2011
I'm trying to use one html page to load multiple swf files and I can't figure out the correct code to do it.Basically, each main page in my navigation is a separate swf.I need the swf files to be able to load seamlessly over one another.
View 9 Replies
Apr 19, 2007
Has anyone found a solution to having multiple scrollers work on the same page? I tried applying different instance names on all components but that didn't work either. The AS below only allows for one scroller to work.
[Code]...
View 1 Replies
Jul 10, 2002
Looking for thoughts and ideas on establishing communication between isolated SWFs residing in a single HTML page. Need to place multiple SWFs in a single HTML page and was wondering if there was some way to send commands from one of the movies to the other wihtout reloading the page. (would prefer not to reload the page and all the components and have the page "blink" - go blank before loading new and cached data) Unfortunately cannot build this as a single flash object with multiple MCs.. must be multiple SWFs.
Have an idea or two on how to set this up with HTML framesets and loading subpages ( a cheat certainly and far less than elegant) but would prefer not to deal with the heartache that would entail - especially since areas of the page would still "blink" on loading.
View 2 Replies
Aug 13, 2008
I have an input text field with a movie clip behind it. When you roll over the movie clip it scales up, when you roll out, it scales down.problem is, rolling over the textfield triggers rollOut. which i dont want.
View 7 Replies
Jul 13, 2009
So I'm actually doing something very simple here, but it's my first attempt at tweening things through code rather than on the timeline, so I'm pretty new at this. Basically I have a small image gallery, all the thumbnails are butted up against one another in a grid. When you roll over an image, the title should tween to reveal itself below the image. I have it set up so that both the image and title are in one movie clip, with the image on the top layer.
My code does work when you move your mouse slowly, however when you roll over and out really fast, the whole thing freaks out a little, and the titles don't tween back properly, they actually stay exposed even though they shouldn't. It looks like they kind of tween back, then pop out again, with out a tween. I linked to my current swf file so you can see for yourself. [URL].
Here is an example of my code which is iterated for every image.
MC.addEventListener(MouseEvent.ROLL_OVER,onMC);
MC.addEventListener(MouseEvent.ROLL_OUT,offMC);
var myTween:Tween;
MC.buttonMode = true;
function onMC(event:MouseEvent):void{
myTween = new Tween (MC.title,"y",Strong.easeOut,94.5,138,.65,true);
} function offMC(event:MouseEvent):void{
myTween = new Tween (MC.title,"y",Strong.easeIn,138,94.5,.35,true);
}
View 2 Replies
Nov 19, 2009
I currently have a flash file that has a whole bunch of buttons that are MC's with rollover and out states that open up a PDF when clicked.For each number (12-33) I have the MC with a new instance name and I am calling them with the following code:[code]So for each button I have this huge mess of code. There has to be a cleaner and more efficient way of doing this. Can you guys suggest anything?
View 7 Replies