"floating Links" Navigation
Need help with some scripting for sub-section navigation. I really like the "floating links" idea used on http://www.davidbowie.com/freebowie2/.
The links seem to float freely unitl they collide and then float away from each other. I have some knowledge of "collision detection" but would like to learn more. tx
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-27-2001, 05:49 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Clicking Links Under Floating Ads
I've designed a few test floating (transparent / interstitial) ads. Anyone know how to enable web page links under the transparent parts of the ad? I've seen it done, but am not sure why I can't get links underneath to activate.
Is it something with layers or z-index?
Thanks!
Floating Navigation
Hi,
I'm trying to create a navigation menu similar to one previously found on www.beingchrisjones.com
The navigation bar will consist of a simple row of buttons containing words. Each button will have brackets around it on the rollover state. The idea is that as the user rolls over each of the other categories, the brackets float across to the relevant button and change width to fit the text they contain. Hope this is clear? If anyone knows of any decent examples or tutorials on how to achive this I'd really appreciate the help.
Thanks in advance.
[F8] Flash Floating On Top Of Site Hides Links Below
Using Flash 8 ...
In a website where I've created a 30 second Flash .swf that floats above the site using
div align="center" style="position: absolute; top: 0px; width: 100%; margin: 0px auto;"
I've found that even after the video is done playing and the .swf is nothing but a blank, transparent file, it still prevents the viewer from clicking on anything that's a link beneath it, as if it's a clear piece of glass blocking access.
The flash file itself is quite simple, a single frame that calls in an external .flv
Is there ActionScript that can clear the movie away so that the links beneath are accessible once the movie is done? I believe there might be a JavaScript solution to this, but (without getting into the entire nature of the project here) adding a lot of JavaScript to the client's page isn't an ideal solution.
I'm not terribly familiar with how event listeners work, but am hoping there's some way there can be a listener that checks when the movie is done and then clears things away so that the links below are clickable.
thanks
Floating Navigation - OnMouseMove ?
Hi, I am trying to simulate a 3D navigation which changes the movement depending of the x and y mouse position.
What I am trying to achieve is:
http://www.chromazone-imaging.co.uk/flashindex.html
http://www.nokia.co.uk/link?cid=PLAIN_TEXT_29686
Code:
//define number of layer.
var layer = 10;
//number of items in a layer
var items = 25;
//create the bg that holds the layers
this.createEmptyMovieClip("bgHolder", this.getNextHighestDepth());
//this function will update the layers current position
function updateMovies() {
//easingStrenth
d = 50;
this.x = _root._xmouse;
this.y = _root._ymouse;
//get the linear relation fo x.
var coef = (Stage.width-this._width)/Stage.width;
//update x with easing.
this._x -= (this._x-coef*this.x)/d;
//get the linear relation fo y.
coef = (Stage.height-this._height)/Stage.height;
//update y with easing.
this._y -= (this._y-coef*this.y)/d;
}
//init function for the layers
function init() {
for (i=0; i<layer; i++) {
//create a layer
temp = this.bgHolder.createEmptyMovieClip("bg"+i, this.bgHolder.getNextHighestDepth());
depth = temp.getNextHighestDepth();
//create a virtual bag for the layer to define it height and width.
virtual_mc = temp.attachMovie("virtual", "virtual"+depth, depth, {_visible:false, _width:(i+2)*Stage.width, _height:(i+2)*Stage.height});
//put the items into the layer
for (j=0; j<items; j++) {
depth = temp.getNextHighestDepth();
//attach an item
temp1 = temp.attachMovie("float1", "float"+depth, depth);
//position it randomly in the current layer
temp1._x = Math.random()*(i+2)*Stage.width;
temp1._y = Math.random()*(i+2)*Stage.height;
//scale it randomly
rand = Math.random();
temp1._xscale *= .5+rand;
temp1._yscale *= .5+rand;
//put is opacity randomly
temp1._alpha = random(80)+20;
}
//each layer share the same updating function.
temp.onEnterFrame = this.updateMovies;
}
}
init();
Actually a found this piece of code in a tutorial and with this I can achieve almost half what I want.
The code is duplicating the same MC in diferent levels but I don't want that. Basically I would like to create a loop for 3 or for diferents MCs each one in diferent levels with diferent quantities.
I tried to duplicate the code with diferent instances for the 3 diferent MCs. What happens is just the last MC will be duplicated and the previous lines of codes will not work. Why?
So the solution I think is to create a loop for these 3 diferent MC and create parameters for adjustments separately. Am I right?
How should I do this looping? So dawn dificult for me break this code.
Cheers,
Diego
Floating Navigation - OnMouseMove ?
Hi, I am trying to simulate a 3D navigation which changes the movement depending of the x and y mouse position.
What I am trying to achieve is:
http://www.chromazone-imaging.co.uk/flashindex.html
http://www.nokia.co.uk/link?cid=PLAIN_TEXT_29686
Does anyone know where I can find a tutorial step by step for it or something similar?
Cheers,
Diego
Floating Line Navigation
Hello,
Does anyone know how Ingo managed to create this type of navigation for his sister Saskia on http://www.saskiaramin.com/ ?
I'm working on a project that needs this type of effect.
Thanks,
-Neverrain
On Click - Zoom / Floating Navigation
I absolutley love sites like this.... the movenent / layers
http://www.matthewmahon.com/
This is general, but hows it done? Tutorials, source file movies ... anyone?
ANY INFO WOULD BE GREATLY APPRECIATED!
TW
Template/Resource FLA For Floating Navigation
Hi,
Can anyone help me find a template or some resource that can make a scrolling background, with buttons floating. Example here: http://www.chromazone-imaging.co.uk/flashindex.html
I want to make something similar, but I am told by my coder that its a big job to code it from scratch, is there anything already made out there, that I can use as a template?
Thanks
Ali
That Wicked Cool 'Levitated' Floating Text: How To Add Real Navigation?
The amazing floating text seen by many:
http://www.levitated.net/daily/levTextSpace.html
With this code:
// register root as environment
Object.environment = this;
// create camera object
this.cam = {x:0, y:0, z:500, dx:0, dy:0, dz:-500};
// set environmental constants
this.fl = 1000;
// create 'space' to which all words will be attached
this.createEmptyMovieClip("space", 1);
// center 'space' on the stage
space._x = 300;
space._y = 169;
// a string of words related to the wind
this.somewords = "wind breeze storm stormy tornado text space three dimensional infinite recursive instance object distort environmental atmospheric blow gush whoosh thrash whirl push roar rush caress flow swoop";
// convert the string of words into an array of words
this.wordList = new Array();
this.wordList = this.somewords.split(" ");
// create one instance for each word in the list
for (n=0; n<this.wordList.length; n++) {
// pick a word from the list
var word = Object.environment.wordList[n];
var x = random(600)-300;
var y = random(337)-169;
var z = random(Object.environment.fl*2)-Object.environment.fl;
// create an instance of the SpaceWord object
nombre = "word"+String(depth++);
initialization = {txtword:word, x:x, y:y, z:z};
space.attachMovie("spaceWord", nombre, depth, initialization);
//The code I have added to utilise the words as links
if (_root.spaceWord.txtword == "breeze") {
with (_root.box) {
gotoAndStop("test");
}
}
}
this.onEnterFrame = function() {
this.cam.dz += .5;
// move the camera to its destination
this.cam.x += (this.cam.dx-this.cam.x)/10;
this.cam.y += (this.cam.dy-this.cam.y)/10;
this.cam.z += (this.cam.dz-this.cam.z)/30;
};
stop();
I've been searching endlessly for ways to actually make the buttons float a bit once you've clicked on one, then have a new movie load - depending on which bit of text you've selected. I believe the solution lies in adding variables to the array string, but exactly how to go from there I've not a clue!
Here's another thread on this:
http://board.flashkit.com/board/show...ight=levitated
Any help would be much appreciated. I've been dying to work this out.
3d Navigation Links
I came across a real cool navigation at www.muse.mu
please check this out. notice the 3d tree menu on the left. How is it done? It looks like intensive scripting. There must be a 3d engine behind it. Are there any tutorials of this nature online?
Flash Navigation Links
I have been messing around with flash and made a navigation bar for my site in which I use frames(top and left)...but when I put in a link for a button it opens in the top frame(where I have the nav bar)...is there a way to change it so when I click the button it opens up in the bottom frame(main frame)...not the top?
Can't Add Links To Navigation Menu
Hi,
Please kindly help to insert the links to the menu,
i've tried getURL
but it just seems to ignore me,
I really need this thing working,
please check the file here,
http://dalerlife.net/dfn007.fla
greatly appreciate help
Animated Navigation Links
I'm a rookie at flash and need some help to get started. On my index page I have 2 links (one a picture of a camera and the other a picture of a cocktail. I want the 2 images or buttons to be linked on an axis, with the axis being in the middel of the 2 images. So if you imagine a camera and a cocktail on a invisible tray. When you rotate the tray, the camera gets bigger and comes towards the viewer, and the cocktail rotates away from the viewer becoming smaller. And when rotate the other way, the camera goes smaller to the back and the cocktail rotes closer to the viewer. So when the cursor is over the camera it will rotate closer and, well you get the idea.
I want it to look realistic with the perspective changes as well so i will photography the items myself in the different states.
Where do I begin? Is this a simple motion tweening thing or do i use actionscript? Any help is much appreciated, thank you...
Edited: 12/30/2007 at 02:41:51 PM by djmalaka
Navigation Bar... Assigning Links (URLs)
Version: Flash 5
I'm making a nav bar with 6 links. I have them set up, I have the mouseover images set up and everything. All 6 of the links are in a single Flash movie (file). I can assign the "stop" and "getURL" actions to each button in the timeline, but I also need an "On Mouse Event" action so the button links to the URL only when it is pressed. For some unknown reason, the "On Mouse Event" action is grayed out and I can't select it. Any ideas on why this might be?
[F8] Dynamic URL Links In A Flash Navigation Bar?
Hello all, I'm new here... and haven't done any Flash work beyond simple animations.
I found a template & hacked it to make my sliding menu. Good! BUT... now I'd like to have the buttons' URLs dynamicallly generated according to the URL of the page they're on.
I hope that makes sense. Basically, if the page is "whatever.aspx?username=tom" (somethign like that) then the link inside Flash (let's say "site.com/user?=") needs to grab the username and include it (something like "site.com/user?=tom").
A million thanks to any links or help that can be provided!!!
Navigation Button Status With Sub Links
I created a navigation based off of the code from the thread http://www.actionscript.org/forums/s...d.php3?t=95114.
The Action Script provided by Flashead was great and far superior than my previous version. Before my navigational pop ups would stick up and not change on rollout so smoothly.
Action Script with other user input:
------------------
//////////////////////////////////////////
// USAGE:
// myButton.onRelease = onClick;
// myButton.onRollOver = overOut;
// myButton.onRollOut = overOut;
var lastClicked = null;
function onClick() //execute onRelease of a button
{
if ( this.select = !this.select ) { //if a new button is selected...
this.gotoAndStop( "released" ); //move to solid square of this button and stop
lastClicked.gotoAndPlay( "out" ); //and fade out the last clicked button
lastClicked.select = false; //mark the last button as not selected
lastClicked = this; //mark this button as last clicked
} else { //if a new button is not selected
this.gotoAndPlay( "out" ); //toggle off by fading this button
lastClicked = null; //and mark last selected as null
}
}
function overOut() //executes on rollOver, rollOut, or releaseOutside
{
this.over = !this.over; //if you are rolling over a new button...
if (!this.select ) this.gotoAndPlay( ( this.over ) ? "over" : "out" ); //and it has not been selected, then if you are over it, go to and play frame "over" ; otherwise play "out"
}
//////////////////////////////////////////
for (var i=1; i<10; i++) //for each of the 9 buttons...
{
var curBtn = this[ "b" + i ]; //set the value of the current button to this.b<button number>
curBtn.over = false; //initially we are not over the button
curBtn.select = false; //nor is it selected
curBtn.onRelease = onClick; //if the button is released, run function onClick
curBtn.onRollOver = curBtn.onRollOut = curBtn.onReleaseOutside = overOut; //or run function overOut on other events.
}
-----------------------------
My problem that I'm having is linking to the my sub page links. I guess that the action script only lets you link to the one place on the "released" marker. This does not do the job for me. I need the roll overs to work the way that they do, only take me to the right corresponding page. I think that I need to change the onClick function in some way but my experiments have not succeeded. Any one out there able to assist this in happening? TIA!
page link example:
http://www.u-honda.com/home.php?page_id=2
(Try the Company button over the About Us button as an example. If you dig into other sub pages the links will really not work as the About header on this page is the most updated version.)
Navigation Links Read From XML File.
I am setting up a website that has a main navigation menu in a horizontal curved area. The links right now are simply static text with the URL to the file entered in the Properties panel. I need to have the links read from an external XML file instead. Do I need to use Dynamic text or Button actions? I need to know what Actionscript to attach to the links to read the URL to that particular website page from an XML file. I would appreciate any assistance with this matter.
Thanks,
Kevinet.
Flash 8 Pro Losing Links To Navigation Buttons
I have created a web site with multiple scenes but now the main nav bar keeps loosing its link and restarts the movie instead of going to the correct scene, i re link the code with the 'script assitant' then after a couple of adjustmenst in other areas (not touching the nav bar) it looses its link for no reason. Why is this? is it a glitch with Flash Pro 8.0? should i go back to MX? whats going on?
Edited: 04/18/2007 at 04:32:21 AM by Zippoloko
Loaded Navigation Menu Via MovieClipLoader But When Tween Is Applied, Links Cannot.
I have been at it for the past two days and cannot seem to get this going, I would highly appreciate your help with this. I have movie called "menus.swf" within it, I have four nav buttons: LINK 1, LINK 2, LINK 3, LINK4.
I load this movie via MovieClipLoader on to the stage and initialize it via onLoadInit. Once it is loaded, I am able to click the links and all works well. I want to be able to use dynamic mask and show only the top part of the loaded movie so when user rolls the mouse over it, it pops up with ease and use can then click the desired link, and as soon as the mouse is not over it, movie eases back into its original position. I have tried tons of strategies such:
hitTest(), time driven event.....and so on.
I am able to load the movie without any issue but once I place an ease tween on it, Tween works but an not able to click on any nav links. I have spent hours and hours but cannot seem to get this functionality going. I would highly appreciate all your help. I am also including my files as well.
Code: ....
Adding Email Links And Web Links To My Flash Website
hey all im new to flash and cant work out how to add a email link to my flash website ... also i would like to know how to add a weblink to my site .... sorry if this a real newbie question but i cant seam to find the email link tool or url link tool in adobe flash pro cs3
please help
pic attatched bellow
Graphic Links Or Text Links On Your Index Page?
The search engines recommend text links obviously.
Is anyone here doing ok with Google using graphics links (graphic buttons etc) as opposed to plain clickable text links on their index page?
Just like to see some examples and see for myself the search engine results.
(While you are at it. Is Google listing you ok if you are using the flash detection kit.
I'm wondering if I should maybe just forget the FDK and have a clickable button to macromedia instead.)
cheers.
Problem With Links - All Pages Show All Links
I'm a Flash newbie and having problems with a site I am working on. I could sure use some help if anyone knows what I'm doing wrong.
If you hover your mouse over the pages of my site, you can link to things are on other pages. To see what I'm talking about go to MY SITE
Example...if you are on the "Main" page, hover over the right side of the big townhome. There should not be ANY links on the picture of the townhome, however, there are links to different floor plans that should be on the Floor Plans page...go to that page to see how it's laid out...each tab should have a link to a different floor plan.
Now go to the "Imenities" page. You should only be able to link to a downloadable PDF of the amenities list. But you can link to the floor plans there also...not supposed to happen.
I probably have a lot screwed up here, but sure could use some help. Please don't laugh too much. It actually works pretty good except for the linking.
If needed, you can download my .fla file at Deauxmain.
Any help would be appreciated.
Thanks,
Deauxmain
XML Photo Gallery With Links, Lots Of Links
Need to add links to:
http://www.kirupa.com/developer/mx20...otogallery.htm
Basicly I'm trying to get it to load a url on click of the image and have multiple text fields with links.
Sounds simple enough and probably is for you guys.
Here's what I've got so far.
Danke.
Scroll Images With Links And Text With Links
Im trying to create a page on my flash site(http://www.swytchk.com) so that users are able to download.... I wanted to have text so they can download music,and a image preview of the wallpaper they want to download. But both type of links must be able to scroll.
PLEASE HELP
Floating Ads
I have recently noticed that many sites are having ads, such as yahoo, where say like a lemon from the pepsi twist goes around the screen and disappears. How do they do this. I don't know how they make the lemon go around the screen like that.
Please help me out here. Thanks
3d -- Floating
I want to make an MC look like its floating in 3d space... just minor movements, almost like it was a bubble in water but not floating up. Does anyone have any sample code, examples, places to go for such??
thnx
<---((
Floating
Sorry i have to be brief, but...
I want to have my floating flash menu to be able to go all over my Html page is this possible?
so i have to have the swf in the backgorund?
Thanx bye
Floating AD
I have seen a floating ad of "PepsiBlues" on the homepage of yahoo.com which starts animating after u click it. Can anybody tell me how it is done?
Floating Ads
Does anyone know jow to do the foating
ads that are being used on sites more and more
is it a software thing or fscommand?
L
Floating Ads
Where is a good source to find a tutorial for DHTML or JavaScript to create a floating flash banner or advertisement.
Floating Ads
Where is a good source to find a tutorial for DHTML or JavaScript to create a floating flash banner or advertisement.
Floating Ads
Where is a good source to find a tutorial for DHTML or JavaScript to create a floating flash banner or advertisement.
Floating
is there a way to make separate movie clips "float" upwards, randomly? or is it best just to make separate tweens and tell them to play from the root timeline?
Floating Ad
It's my first time creating a floating ad for a client and I'm not sure if I need to make my background transparent in flash or if that's something that's done elsewhere? Any thoughts would be greatly appreciated.
Floating
I'm not the greatest person ever to use actionscript, but i'm not that bad.. I know a good deal about physics and a good deal about math, but for some reason i'm having the hardest time making something look like it's just floating around, it doesn't even have to be random, can some just point in the right direction, I feel like an idiot asking but i'm at a point where I have no other choice.
-Michael
Floating Ads
How do you create those floating flash ads in html like eyeblaster.com. I wanted to generate something like those ads for a project im working on. I need to know how tey float the objects over the html pages...If anyone knows thank you
Floating Mc's
Hello
I am making my own portofolio and I want some mc's "float" on the stage so I can move them around with the mouse.
Can anyone help me with this?
Floating
I'm not the greatest person ever to use actionscript, but i'm not that bad.. I know a good deal about physics and a good deal about math, but for some reason i'm having the hardest time making something look like it's just floating around, it doesn't even have to be random, can some just point in the right direction, I feel like an idiot asking but i'm at a point where I have no other choice.
-Michael
Floating Swf
sometimes when i'm at a website i get a flash advert appear over the top of the rest of the things there - as if part of another window; but not. how can i do this?
____________________________________________________
If you like a post, show you care by giving it a star.
Floating A Mc
Hello. Does anyone know a good way to make a movie clip seem like its floating in water? Right now I'm just using tweens that loop and it bogs down a lot when all 3 objects are on screen. I checked out some of Penner's scripts but they don't seem to look right in my particular situation.
Thanks
rulive
Floating Objects
Wondered if anyone out there can help.
I need some actionscript which will move an object gently and smoothly from one position to another. The intention is to have a few objects hovering and swaying gently in a random way so an onClipEvent block of code that could just be dropped in to each would be cool. It would be best also if this movement could be constrained to within a certain distance from an original position.
I wanted to avoid having to have multiple timeline animations hence the above request. So far my efforts have not yielded a smooth gentle movement only fast jerky movements.
Thanks for any help offered.
Floating Object
ok heres the deal...i made a 3d space man in swift, i impoted it into flash jsut fine, but i want to know if theres a way to make him float around the page and bump into object with out using motion guide, the whole hting has to be small in size and im not a master action scripter yet, but am willing to try anything, PLEASE HELP!!!!
Floating In Space
ok heres the deal...i made a 3d space man in swift, i impoted it into flash jsut fine, but i want to know if theres a way to make him float around the page and bump into object with out using motion guide, the whole hting has to be small in size and im not a master action scripter yet, but am willing to try anything, PLEASE HELP!!!!
Floating NavBar
Hi folks, I have built a 'floating' navbar with a bit of friction added. It is a movie clip with embedded buttons. Wierd thing is, when I constrain the drag to a rectangle the buttons become inactive, i.e. they arent seen as buttons anymore. If you move the mouse and catch the buttons b4 they settle (because of the friction) they do work!
Confused.
Simon
Floating Menu
I was wondering if anyone could point me to some sort of tutorial on how to achieve this floating rotating menu that can be seen at this agencies site.
http://www.milla.de/
click on the flash.... really organic ... really cool.
Floating Menu
Is there a way without having two browser windows open, to have a menu that can be moving around the screen and say minimized.
For moving I would like it to move around and over a standard HTML page.
|