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




[I] Wicked Problem With OnPress & Google Toolbar...



Wicked...

I have a Google Toolbar turned on to block the popup windows...

Flash movie #1

There are two buttons on the stage and one of them is

ActionScript Code:
on (press){    getURL(_level0.clickTAG, "_blank");}
and another one is

ActionScript Code:
on (release){    getURL(_level0.clickTAG, "_blank");}

Flash movie #2
The same thing in the frame script...

ActionScript Code:
this.btn1.onPress = function (){    getURL(_level0.clickTAG, "_blank");}this.btn2.onRelease = function (){    getURL(_level0.clickTAG, "_blank");}
In the HTML file, I have

HTML Code:
<param name="wmode" value="transparent" />
and
<param name="wmode" value="opaque" />
That's just to show you that it does not matter what value we have for the WMODE...


NOW, this is what happens... If you click on the ON PRESS button with the Google Toolbar turned on, every click gets trapped and the new page gets zapped, but that does not happen with the ON REPLEASE button... Wicked, eh???

See it here...
http://cyanblue.flashvacuum.com/AWS/...ssRelease.html



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 03-08-2005, 08:10 PM


View Complete Forum Thread with Replies

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

Google Toolbar ?
Don't know where else to post this message so here it is:

Does anyone know what language/software would have been used to make the Google Toolbar (http://toolbar.google.com/) you can download and install in your browser ?

Thanks,
Stephen.

Google Toolbar ?
Don't know where else to post this message so here it is:

Does anyone know what language/software would have been used to make the Google Toolbar (http://toolbar.google.com/) you can download and install in your browser ?

Thanks,
Stephen.

Drive By Google Toolbar Installs
I upgraded the flash player for my browser today. It appears that the Google toolbar was installed without my permission or even any notification that it was going to happen.

Do you guys really HAVE to do that? Life is too short to spend it uninstalling unwanted software.

Not that there's anything wrong with Google - they are my preferred search engine. I just don't want their toolbar.

Google Toolbar With Flash Install
Why do I have to install the Google Toolbar with my beloved Flash? I go to update my Flash player from your site and I have no choice but to install this crap from Google. If I *want* a toolbar, I will elect to install it myself. This is very disappointing. I've been an Adobe/Macromedia customer for many years now and feel you should at least offer an option NOT to install the toolbar during the installation of the player from your web page.

This world is falling apart. First the Sci-fi channel starts showing wrestling, now Flash comes bundled with the Google Toolbar. What next? :(

Wicked NAVIGATION, But HOW?
Hi y´all!

I am trying to do a NAVIGATION for a client, but just can´t figure out HOW to script it!

I have thought of several different ways, all to do with animation, but it´s just too many anims then!

Here is what I desperetaly try to do:

"a robotic arm will come down from the
top and swivel, grab the box that says "about us" and move it to the top of
the stack. When the "about us" button is removed from the number 2
position.....then the "home" button will fall down to the number 2 position
and the "about us" will be at the top of the stack (where the "home" button
was). They will basically change places."

and so on for 5 menu items.

Nevermind the robotic arm, but how can I replace the menu items WITHOUT having to do single MC for all of them?( 5 menu items would be A LOT of MC to do)

You would realy make my day if you could help me out on this one!!

cheers

chris

Wicked NAVIGATION, But How?
Hi y´all!

I am trying to do a NAVIGATION for a client, but just can´t figure out HOW to script it!

I have thought of several different ways, all to do with animation, but it´s just too many anims then!

Here is what I desperetaly try to do:

"a robotic arm will come down from the
top and swivel, grab the box that says "about us" and move it to the top of
the stack. When the "about us" button is removed from the number 2
position.....then the "home" button will fall down to the number 2 position
and the "about us" will be at the top of the stack (where the "home" button
was). They will basically change places."

and so on for 5 menu items.

Nevermind the robotic arm, but how can I replace the menu items WITHOUT having to do single MC for all of them?( 5 menu items would be A LOT of MC to do)

You would realy make my day if you could help me out on this one!!

cheers

chris

Wicked Websites
Does anyone know of any cool flash sites? I have some here you would like:

http://www.2advanced.com/
http://www.blitzds.com/
http://www.klickstudio.com/english/default.asp?s=1
http://www.cruciallimit.com/
http://www.b7ven.com/v3/
http://www.intellipage.com/
http://neostream.com/

Enjoy

Help Me With This Wicked Script Pritty Please :)
Hey there people!
Posted this one afew weeks ago but guess nobody could be bothered to help.So here I am trying again!
Ok attached is a script i would like to modify.At the moment it works just fine.However my problem is this:

I would like to change the dimensions on which it is currently on. The new dimensions would need to be 740 w by 370 h.
What I have noticed is when you change the page dimensions the script no longer functions properly. Im not very smooth when it comes to scripting so if anybody can figure this one out id be greatful as i would like to use it on a new photography site i am doing at the moment.

Many thanks!!Please if you do crack it can you email me the modified FLA to chris@helsinkijazz.co.uk

Cheers!!

cc

Wicked Variable Problem
Hello everyone. I would greatly appreciate some help on this variable problem i am having. I love Flash but am fairly new to using actionscript. I am setting up a proposal system for my company where teh secretary will only have to alter the .txt files to produce a sales proposal. Therefore, everything I do has to be done without her having to open flash other than to simply Publish. To do this, I have set up two external text files:

1). Loads a bunch of customer, salesman, and product option variables (including price,option, etc)

2). Loads a batch of special "descriptions" (approx. 75 of these in paragraph form) with variable names P1 through P75.

I will only use 5 of these descriptions in the movie but it will change upon each use. My idea is to have a variable in the first text file that will call a specific description from the second text file. As you know, when I perform the loadVariables off the text files I cannot just assign description1 to equal my variable in the second text box.
(Example-- &description1=P10&)

So far my dynamic text box just reads P10.

How can I convert the P10 from a string to a variable name that matches one of teh descriptions to send the appropriate paragraph to a dynamic text box?

Thanks for your help, look forward to the what people can come up with.

UKFAN001

Wicked Variable Problem
Hello everyone. I would greatly appreciate some help on this variable problem i am having. I love Flash but am fairly new to using actionscript. I am setting up a proposal system for my company where teh secretary will only have to alter the .txt files to produce a sales proposal. Therefore, everything I do has to be done without her having to open flash other than to simply Publish. To do this, I have set up two external text files:

1). Loads a bunch of customer, salesman, and product option variables (including price,option, etc)

2). Loads a batch of special "descriptions" (approx. 75 of these in paragraph form) with variable names P1 through P75.

I will only use 5 of these descriptions in the movie but it will change upon each use. My idea is to have a variable in the first text file that will call a specific description from the second text file. As you know, when I perform the loadVariables off the text files I cannot just assign description1 to equal my variable in the second text box.
(Example-- &description1=P10&)

So far my dynamic text box just reads P10.

How can I convert the P10 from a string to a variable name that matches one of teh descriptions to send the appropriate paragraph to a dynamic text box?

Thanks for your help, look forward to the what people can come up with.

UKFAN001

[F8] Wicked Human Movement In Flash
Hi.

I have a question regarding the innovative flash movie: http://www.wkd.co.uk/home/default.asp (you have to input an age over 18 - to view the movie - it's an alcoholic beverage promotion site)

How did they do the human figures? - would that be film capture and then conversion to flash or through various photo shots and then pieced together in frames?

Any advice on best how to replicate this kind of human movement in flash would be greatly appreciated !

Thanks.

Wicked Long Image Scrolling
OK, sorry, this is driving me nuts.

I have about 20,000 px wide of content I want to be able to scroll from left to right and back again at the viewer's discretion as a scrolling porftolio basically.

Recently I found out the limitations of about 2880px wide for a MC being masked in flash, and obviously this causes some issues. (the entire 20,000px will have a revealing mask over it)

I have the points of the image in an array so the next and previous buttons take you to appropriate places to view the appropriate image, but i can only fit 3 images within the limitations flash gives me, and I will want probably 20 or so. I now have 10 posts, so here's the example of what I'm doing, and it works fine, I just need it to have about 15 more images in it.

Use the following link and go to the stills page:

http://www.nickhand.net/DMA/alpha.html


Thanks!!

Nick

Wicked Filter Effect Explanation
I recently stumbled across this wicked filter effect found here
and was hoping you guys might know how I too can achieve such an effect.

Thanks in advanced.

Wicked And Sophisticated Mask Effect
Can anyone please guide me on how they they did this mask effect. It looks so cool I want to try it out. The link COOL MASK EFFECT
Thanks

Wicked Long Image Scrolling
OK, sorry I've posted so much lately, but this issue is slightly urgent, and is making me nuts.

I have about 20,000 px wide of content I want to be able to scroll from left to right and back again at the viewer's discretion as a scrolling porftolio basically.

Recently I found out the limitations of about 2880px wide for a MC being masked in flash, and obviously this causes some issues. (the entire 20,000px will have a revealing mask over it)

I have the points of the image in an array so the next and previous buttons take you to appropriate places to view the appropriate image, but i can only fit 3 images within the limitations flash gives me, and I will want probably 20 or so. I now have 10 posts, so here's the example of what I'm doing, and it works fine, I just need it to have about 15 more images in it.

Use the following link and go to the stills page:

http://www.nickhand.net/DMA/alpha.html

Tann, this is also the deal of the other issues we were working on... now you can at least see what I'm trying to work with, and where the preloader would be (as you click on stills)

Thanks!!

Nick

Wicked Flash File Reduction Trick
well this just came outta no where.

everytime you finished your .fla file, simply Save As it to another file name.

it'll reduce your file size significantly, it reduced mine to almost 30%.

and it works for SWF too!

i'm sure it's pretty old, but just so you other guys know

Anyone Kind Enuff To Gimme A Hand With This Wicked Script :)
Hey there people!
Posted this one afew weeks ago but guess nobody could be bothered to help.So here I am trying again!
Ok attached is a script i would like to modify.At the moment it works just fine.However my problem is this:

I would like to change the dimensions on which it is currently on. The new dimensions would need to be 740 w by 370 h.
What I have noticed is when you change the page dimensions the script no longer functions properly. Im not very smooth when it comes to scripting so if anybody can figure this one out id be greatful as i would like to use it on a new photography site i am doing at the moment.

Many thanks!!Please if you do crack it can you email me the modified FLA to chris@helsinkijazz.co.uk

Cheers!!

cc

Switching Back To Flash On This Apple Is WICKED Slow...
This isn't an AS issue, but this forum is so smart i am sure someone can help.

I am assisting on a big (massive) flash project. We are working on a number of Apple machines. the primary one i am working on is a Apple Tower, dual core, g5, 3 gigs of RAM. A VERY plucky machine by all accounts. EXCEPT for when i switch between another program that is running (say this browser window) and i try to go BACK to flash - which is already open - there is a good 20 seconds of looking at the beach ball of lag.

It is Flash 8.

Switching into the rest of the macromedia suite is instant.

Switching between all other programs is fine.

What gives?

This is REALLY slowing down our workflow.

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.

Developing Wicked Site Stuck On Image Panning Action Script.
Hi friends. i'm stuck on some AS and i need someone's expertise.
Here's a link to the site: http://www.invisioncreative.ca/v04/index2.html
Click on the top portfolio button and a portfolio section will slide in (load ext swf.)
I've used the code from http://www.kirupa.com/developer/flas..._image_pan.htm
The problem is I need to specify where the left and right edges of my scrollable area is - right now it is scrolling with regards to X = 0 and Y = 0. and the scrolling is way off.

Here's the As from the portfolio scrolling movie: ( I've got the AS pasted on to a hot spot so it only works in that window - but the X and Y values are messed as you'll see)

on (rollOver) {
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1);
};
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _xmouse/Stage.width;
var mSpeed:Number;
if (dir == 1) {
mSpeed = 1-mousePercent;
} else {
mSpeed = mousePercent;
}
target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
target.onEnterFrame = function() {
if (target._x == target.destX) {
delete target.onEnterFrame;
} else {
target._x += Math.ceil((target.destX-target._x)*(speed/100));
}
};
}
}
on (rollOut) {
this.onMouseMove = function() {
this.onMouseMove = false()
};
}


I totally appreciate any one who could point me in the right direction.
The Fla files are here: download portfolio.fla

http://www.invisioncreative.ca/source/

Onpress But Not Visible Before The Onpress...
I'm gonna try and make this as simple as possible.

I have a button.


What i want to have happen is that when I click on the button, another movie clip appears and does its thing.

What I'm confused about is how to get the movie clip to be on the stage but not be visible until the click. Thanks

Mc With OnPress Within Another Mc With OnPress - Issue
Hi Guys,

I am wondering if I am going nuts but I have an Mc within another mc.
I would like both of them to ba able to have an onpress event.

here is the code

container.onPress = function(){
trace('contaienr');
}
container.scroller.onPress = function(){
trace('scroller');
}

The scroller movie is smaller than the main movie.

Why when I click on the scroller movie - does it not pick up the trace('scroller');??

Thanks

Mani

Getting Rid Of The Toolbar In *.exe
Hey!


If i publish as an EXE file, it comes up in a window and what not but it has those File | View | Control | Help option at the top left of the window.

i know that there is a way of getting rid of that but how?
thanks. in advance.

l8r.

Toolbar-less....*you Know What I Mean :)
how do you make a swf..with out the toolbar, address and scrollers... I've seen it done..how is it done? where can I learn....*sigh....to many questions... I wish someone could help me

Why Am I Still Getting The Toolbar..
Hello all I did a pop up and I'm still getting the tool bar can y6ou check my code and let me know why the tool bar is still on top.

on (release) {
getURL("javascript:NewWindow=window.open('http://www.turtalgraphics.com/5.html','newWin','width=735,height=340,left=0,top= 0,toolbar=No,location=No,scrollbars=No,status=No,r esizable=No,fullscreen=No'); NewWindow.focus(); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(700/2); top_point = parseInt(screen_height/2)-(300/2); setTimeout('NewWindow.moveTo(left_point,top_point) ',100); void(0);");
}

Toolbar Help
Hi everyone,
I'm having trouble setting up my toolbar in adobe flash cs3... Back when I used to use Flash 6 (the first MX), there were 20 buttons starting from:

Black arrow / White arrow
Line tool / Lasso
Pen tool / Type tool
Ellipse tool / Square tool
Pencil / Paintbrush
Free transform / Gradient transform
Ink bottle / Paint bucket
Eye dropper / Eraser
Hand tool / Magnifying glass
--------------------------
Color (stroke)
Color (Fill)

In the CS3 version theres only 18...

Black arrow / white arrow
Line tool / Lasso
Pen tool / Type tool
Ellipse tool / Square tool
Pencil / Paintbrush
Free transform / Gradient transform
NO Ink bottle / Paint bucket
Eye dropper / Eraser
Hand tool / Magnifying glass
--------------------------
Color (stroke)
Color (fill)



My question is how can i add those two additional buttons?

Thanks for the help!

Pop Up With No Toolbar
Hi everyone
I need to open a page by clicking a button in a flash swf file which has no toolbars (Standard buttons,Address bar, Links etc.)
(it is done with a javascript code( window.open) in a html file but i don't know how to do it in Flash.)

Special Thanks
M.Sharifkhani

Getting Rid Of The Toolbar In Projector?
hey everyone
could someone give me the code for getting rid of the toolbar in projector files (*.exe) i know its possible i used to have it but it seems to have vanished

thanks a lot
- you know... just the part that says file | control | and some other stuff along those lines

thanks again
~chika.

Hiding The Toolbar
I've done this before, but can't for the life of me remember how..

I'm creating a .exe file from a .swf and I don't want anyone fiddling with the control/view/file settings etc.. how do i turn em off?

Many thanks!

Sven

How To Remove The Toolbar
i was wondering how to remove the toolbar at the top of flash mx applications. the one which has the menus; file, view, control and help

thanks in advance,

Hide The Toolbar .. How ? Pls Pls Pls Help ..
i was wondering how to hide the toolbar at the top of flash mx applications. the one which has the menus; file, view, control and help..
fyi, i'm not intent to put my flash app to view in full screen ..
so is there any way for me to get this .. ? pls guide ..

thanks in advance

Toolbar Disappears?
I am primarily a PC user but at work they've now got me set up with a Mac running OS X. The toolbar has disappeared in Flash MX and I can't get it back. Not the one with the fill bucket etc. but the one with the magnet that controls the lines attaching to the grid that you usually turn on and off fronm the "window" menu. There doesn't seem to be a way to turn that palette on and off in OS X like there is in Windows. Any thoughts how to get it back?

Toolbar Went Missing Help
Hi there!

This seems like a really dumb question, but the toolbar has disappeared! I have Flash MX Professional 2004 and I can't figure out how to get it back. (I'm referring the tool bar with the pointing arrows, text tool, etc... you know, the one that is critical to doing any work!) I've read in the help section about how to customize that toolbar, but can't find out how to retrieve it!
ANy help out there would be greatly appreciated!
THANK you very much!!

On a different note, what's up with that annoying pop-up ad for some MS sticky-note product in the top right corner of my screen whenever I go onto flashkit? I can't get it to go away! Is anyone else seeing that?
thanks!

Toolbar Screwed....
I know it's something stupid, but toolbar went from 2 columns to 1 column stretched down the screen.

I can't get it back to the other way. I thought you could grab it at the sides or corners but no luck.

Toolbar Customize Help In CS3
In CS3 is there any way possible to yank the ellipse tool out from under the rectangle drop down menu and put it somewhere on the tool bar all by itself?

No Toolbar At Startup...
Well I dunno how it happened but somehow now whenever I open Flash MX 2004 It loads without the main toolbar (paintbrush ect). I know how to get it to appear (that's easy) ctrl+F2 but it always appears in the middle of the screen and I'm using Vista. For those who don't know Flash MX 2004 is not supposed to be compatible with vista and whenever you attempt to move the toolbar Flash immediately crashes!
Is there any way I can get Flash to load with the toolbar at the side of the screen again without having to move it manually?

[F8] Customized Toolbar
Hi,

I was wondering is ti possible and how to make my own toolbar with chosen commands to put it instead of Standard main toolbar because there are some commands that i use much more often then open and save

Thank you.

POP UP Window With NO Toolbar
Good day all

This may be in the forums somewhere but I am a bit new at this and am not sure which thread is right for me. Please reply here or point me in the right direction.
- - - - -
Basically what I want to acheive is similar to http://www.kabookaboo.com

Where you have the first page.. then you click "enter" and then you have a pop up that shows the flash file to SIZE with NO toolbar. It is small enough where it does not need to be resized and it is just there... nice and neat.

How do I get this pop up as is?

How do I do this? I have a moderate grasp of HTML and Flash and am using Dreamweaver & Flash 8. I have the first page set up but I just dont know the coding for that type of pop up.
Is it a flash code or an HTML code?... where does it get assigned.

Any pointers would be greatly appreciated. Thank you

PS - I just noted something The first page is an image file with this property and the flash site has the same feature. I guess this is the same code but applied to a HTML button as well as a FLASH button. HELP!!!


UPDATE - Found a link that shows how to do it through Dreamwaever:

http://lts.ncsu.edu/instruction/guid...ew_window.html

How about flash?

Properties Toolbar.....
I find that sometimes my properties/library/actions toolbar is fixed to the bottom with the anchor bar on the left meaning that when I bring it up and then collapse it... it fixes to the bottom of the screen.
Then other times the anchor bar is on the top and it doesn't fix anywhere. When I collapse it, it just stays in the middle of the screen. Does anyone know how I can fix the anchor bar to the left? It is really annoying when I'm using those toolbars and collapse them and it just stays in the middle of the screen.

Does anyone know what I mean?

Toolbar Woes
My main tool bar keeps locking my copy of Flash up. I have to swap focus to another application and back to unfreeze it... then the toolbar appears somewhere else in my Flash window.

I've had this ever since I've used flash and it happens with both installations here at work.

Does anyone else get this or is it just our PCs here? If you have it did you find a fix?

[ rant ]

Thanks for any info.. this really annoys me. I get increasingly frustrated with this flash version layout... it's all toolbars, seperators and window titlebars and not enough workspace... I'ts never really bothered me before but it's beginning to bug me now that I use Flash more and more.

[ /rant ]

Flash Toolbar For IE
hey Guys,

Does anyone know of a toolbar that you can attach to the IE toolbar that will display the current Version of Flash Player that is installed?

I find myself constantly testing and checking my Flash Version, this would make it easier right inside the Browser!

Here is a picture of what I invision:

Clicky

OSX Toolbar Effect
Does anyone know if Flash can create the Mac OSX toolbar effect? That is, when you rollover the icon, it grows, but the ones next to it stretch up a little bit too, so that when you roll back and forth the bulge follows your cursor like a wave.

Getting Rid Of Browser Toolbar?
Hey. Seems most Flash developers choose to publish their movies in a window where the browser toolbar is removed. Seems clever since as far as I know it only messes things up if the user tries to navigage by using the back and forward buts on the browser.. but how do you do to remove it? Thought it was fscommand("fullscreen","true"); but seems that was wrong :S

OSX Toolbar Effect
Does anyone know if Flash can create the Mac OSX toolbar effect? That is, when you rollover the icon, it grows, but the ones next to it stretch up a little bit too, so that when you roll back and forth the bulge follows your cursor like a wave.

I've Lost My Toolbar?
Can anyone one help me,

I'm using flash 5 and I've lost my drawing toolbar...(the toolbar which allows you to draw squares, fill objects etc).

I was drawing a line and there must have been a bug or something because all my panels dissapeared and my toolbar aswell.

Now I can get my panels back but for some reason I can't find my drawing toolbar. I can't find any place where I can bring it up again.

When I start it up I can see it behind the flash logo but when flash kicks in its not there...

Anyone got any ideas...can't really do much with out it!!

Thanks

Paul
Postatomic

Getting Rid Of Browser Toolbar?
Hey. Seems most Flash developers choose to publish their movies in a window where the browser toolbar is removed. Seems clever since as far as I know it only messes things up if the user tries to navigage by using the back and forward buts on the browser.. but how do you do to remove it? Thought it was fscommand("fullscreen","true"); but seems that was wrong :S

How To Lose The Toolbar
Hi,

Another post i read earlier refered to this site (for a different discussion) http://www.braingiants.com/v5/welcome.html

1. How did the creator lose the toolbar?
2. Is he loading the content after the windows resize or before?
3. When you scroll quickly in the news section it has like an inertia effect so that the scrolling content carries on for a bit. (When you scroll slowly this doesn't happen).

I don't wish to recreate this style. I'd simply love to know how all these effects are done.

Thanks.

ps. This site rocks. After spending a fair while on and off here tonight (this morning) i can't believe what a great and thorough resource this place is. Thanks whoever is responsible. Is this site like a joint behind the scenes venture with Macromedia or what? I don't have much cash but i would enthusiastically pay 10 bucks subscription a year to help with the upkeep of this site. Then maybe all the subscribers could somehow get a members (bulk) discount on 8ball when that comes our way.

Button OnPress Calls Another Button's OnPress?
I've run into a problem that's driving me crazy. I'd really appreciate it if someone could take a look at this and help me out.

You can see a working example of the file at: http://www.benekdesign.com/ILRE/map.php

Here is the problem:

First, click on the Abaco island shape on the map. You'll see on rollOver there is a glow around the island. Now click on that island and the glow remains for the zoomed-in detailed view. When you return to map and zoom back out, the glow is removed.

Now, compare this with clicking on the island name "Abaco" from the list on the right, instead of clicking directly on the island from the map. It zooms in and shows the details fine, but the glow that should be there is not.

The reason this problem is very perplexing for me, is that the onPress action of the list button in the right column calls the onPress function of the map button. So, theoretically they should do the EXACT same thing when pushed. But clearly they don't.

Here is the code for the button from the list on the right panel:


Code:
listAbaco_mc.onRollOver = function() {
_root.map_mc.abaco_mc.button_btn.onRollOver();
};
listAbaco_mc.onRollOut = function() {
_root.map_mc.abaco_mc.button_btn.onRollOut();
};
listAbaco_mc.onPress = function() {
_root.map_mc.abaco_mc.button_btn.onPress();
};
And here is the related code from the root that includes the onPress referenced above plus all functions called as a result of that (some areas to note are bolded):


Code:
//++++++++++++++++++++++++++++++++++++++++++++++
// functions
//++++++++++++++++++++++++++++++++++++++++++++++
// function to open/close side menu
openPanel = function (island) {
panel_mc.alphaTo(20, .001, "linear", 1.4, function () {
panel_mc.gotoAndStop(island);
});
panel_mc.xSlideTo(603, .7, "easeOutQuint", 1.5);
panel_mc.alphaTo(100, .7, "easeOutQuad", 1.5);
};
closePanel = function () {
panel_mc.xSlideTo(925, .7, "easeInQuint", 0);
panel_mc.alphaTo(20, .7, "easeInQuad", 0);
};
// function to fade out unselected islands on zoom
fadeIslands = function (alpha, mapPath) {
map_mc.extraIslands_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.abaco_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.acklins_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.andros_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.bimini_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.berry_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.cat_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.crooked_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.eleuthera_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.exuma_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.grand_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.inagua_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.long_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.mayaguana_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.np_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.rumcay_mc.alphaTo(alpha, 1, "linear", .3);
map_mc.sansalvador_mc.alphaTo(alpha, 1, "linear", .3);
if (alpha < 100) {
mapPath.alphaTo(100, 1, "linear", .3);
}
};
// function to fade labels on zoom
fadeLabels = function (alpha, delay) {
map_mc.labels_mc.alphaTo(alpha, .5, "linear", delay);
if (alpha == 100) {
map_mc.labels_mc.abacoLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.acklinsLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.androsLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.biminiLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.berryLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.catLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.crookedLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.eleutheraLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.exumaLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.grandLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.inaguaLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.longLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.mayaguanaLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.nassauLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.npLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.rumcayLabel_mc._alpha = labelAlpha;
map_mc.labels_mc.sansalvadorLabel_mc._alpha = labelAlpha;
}
};
// disable island buttons when zoomed in
disableButtons = function () {
map_mc.abaco_mc.button_btn.enabled = false;
map_mc.acklins_mc.button_btn.enabled = false;
map_mc.andros_mc.button_btn.enabled = false;
map_mc.bimini_mc.button_btn.enabled = false;
map_mc.berry_mc.button_btn.enabled = false;
map_mc.cat_mc.button_btn.enabled = false;
map_mc.crooked_mc.button_btn.enabled = false;
map_mc.eleuthera_mc.button_btn.enabled = false;
map_mc.exuma_mc.button_btn.enabled = false;
map_mc.grand_mc.button_btn.enabled = false;
map_mc.inagua_mc.button_btn.enabled = false;
map_mc.long_mc.button_btn.enabled = false;
map_mc.mayaguana_mc.button_btn.enabled = false;
map_mc.nassau_mc.button_btn.enabled = false;
map_mc.np_mc.button_btn.enabled = false;
map_mc.rumcay_mc.button_btn.enabled = false;
map_mc.sansalvador_mc.button_btn.enabled = false;
};
enableButtons = function () {
map_mc.abaco_mc.button_btn.enabled = true;
map_mc.acklins_mc.button_btn.enabled = true;
map_mc.andros_mc.button_btn.enabled = true;
map_mc.bimini_mc.button_btn.enabled = true;
map_mc.berry_mc.button_btn.enabled = true;
map_mc.cat_mc.button_btn.enabled = true;
map_mc.crooked_mc.button_btn.enabled = true;
map_mc.eleuthera_mc.button_btn.enabled = true;
map_mc.exuma_mc.button_btn.enabled = true;
map_mc.grand_mc.button_btn.enabled = true;
map_mc.inagua_mc.button_btn.enabled = true;
map_mc.long_mc.button_btn.enabled = true;
map_mc.mayaguana_mc.button_btn.enabled = true;
map_mc.nassau_mc.button_btn.enabled = true;
map_mc.np_mc.button_btn.enabled = true;
map_mc.rumcay_mc.button_btn.enabled = true;
map_mc.sansalvador_mc.button_btn.enabled = true;
};
// function to zoom into map
zoomIsland = function (island) {
// set some vars depending on which island to zoom to
switch (island) {
case "abaco" :
_root.accomLink = _root.abaco[0];
_root.direcLink = _root.abaco[1];
_root.activLink = _root.abaco[2];
_root.propLink = _root.abaco[3];
mapX = 650;
mapY = 750;
mapScale = 300;
mapPath = _root.map_mc[island + "_mc"];
break;
case "acklins" :
_root.accomLink = _root.acklins[0];
_root.direcLink = _root.acklins[1];
_root.activLink = _root.acklins[2];
_root.propLink = _root.acklins[3];
mapX = -420;
mapY = -490;
mapScale = 500;
mapPath = _root.map_mc[island + "_mc"];
break;
case "andros" :
_root.accomLink = _root.andros[0];
_root.direcLink = _root.andros[1];
_root.activLink = _root.andros[2];
_root.propLink = _root.andros[3];
mapX = 675;
mapY = 250;
mapScale = 225;
mapPath = _root.map_mc[island + "_mc"];
break;
case "berry" :
_root.accomLink = _root.berry[0];
_root.direcLink = _root.berry[1];
_root.activLink = _root.berry[2];
_root.propLink = _root.berry[3];
mapX = 1235;
mapY = 1025;
mapScale = 700;
mapPath = _root.map_mc[island + "_mc"];
break;
case "bimini" :
_root.accomLink = _root.bimini[0];
_root.direcLink = _root.bimini[1];
_root.activLink = _root.bimini[2];
_root.propLink = _root.bimini[3];
mapX = 2450;
mapY = 1315;
mapScale = 900;
mapPath = _root.map_mc[island + "_mc"];
break;
case "cat" :
_root.accomLink = _root.cat[0];
_root.direcLink = _root.cat[1];
_root.activLink = _root.cat[2];
_root.propLink = _root.cat[3];
mapX = 150;
mapY = 300;
mapScale = 500;
mapPath = _root.map_mc[island + "_mc"];
break;
case "crooked" :
_root.accomLink = _root.crooked[0];
_root.direcLink = _root.crooked[1];
_root.activLink = _root.crooked[2];
_root.propLink = _root.crooked[3];
mapX = -650;
mapY = -620;
mapScale = 700;
mapPath = _root.map_mc[island + "_mc"];
break;
case "eleuthera" :
_root.accomLink = _root.eleuthera[0];
_root.direcLink = _root.eleuthera[1];
_root.activLink = _root.eleuthera[2];
_root.propLink = _root.eleuthera[3];
mapX = 470;
mapY = 470;
mapScale = 350;
mapPath = _root.map_mc[island + "_mc"];
break;
case "exuma" :
_root.accomLink = _root.exuma[0];
_root.direcLink = _root.exuma[1];
_root.activLink = _root.exuma[2];
_root.propLink = _root.exuma[3];
mapX = 400;
mapY = 190;
mapScale = 275;
mapPath = _root.map_mc[island + "_mc"];
break;
case "grand" :
_root.accomLink = _root.grand[0];
_root.direcLink = _root.grand[1];
_root.activLink = _root.grand[2];
_root.propLink = _root.grand[3];
mapX = 1030;
mapY = 1000;
mapScale = 400;
mapPath = _root.map_mc[island + "_mc"];
break;
case "inagua" :
_root.accomLink = _root.inagua[0];
_root.direcLink = _root.inagua[1];
_root.activLink = _root.inagua[2];
_root.propLink = _root.inagua[3];
mapX = -470;
mapY = -750;
mapScale = 400;
mapPath = _root.map_mc[island + "_mc"];
break;
case "long" :
_root.accomLink = _root.long[0];
_root.direcLink = _root.long[1];
_root.activLink = _root.long[2];
_root.propLink = _root.long[3];
mapX = 80;
mapY = -80;
mapScale = 400;
mapPath = _root.map_mc[island + "_mc"];
break;
case "mayaguana" :
_root.accomLink = _root.mayaguana[0];
_root.direcLink = _root.mayaguana[1];
_root.activLink = _root.mayaguana[2];
_root.propLink = _root.mayaguana[3];
mapX = -1320;
mapY = -770;
mapScale = 700;
mapPath = _root.map_mc[island + "_mc"];
break;
case "np" :
_root.accomLink = _root.np[0];
_root.direcLink = _root.np[1];
_root.activLink = _root.np[2];
_root.propLink = _root.np[3];
mapX = 1250;
mapY = 900;
mapScale = 999;
mapPath = _root.map_mc[island + "_mc"];
break;
case "rumcay" :
_root.accomLink = _root.rumcay[0];
_root.direcLink = _root.rumcay[1];
_root.activLink = _root.rumcay[2];
_root.propLink = _root.rumcay[3];
mapX = -580;
mapY = -160;
mapScale = 999;
mapPath = _root.map_mc[island + "_mc"];
break;
case "sansalvador" :
_root.accomLink = _root.sansalvador[0];
_root.direcLink = _root.sansalvador[1];
_root.activLink = _root.sansalvador[2];
_root.propLink = _root.sansalvador[3];
mapX = -850;
mapY = 140;
mapScale = 999;
mapPath = _root.map_mc[island + "_mc"];
break;
default :
//nothing
}
// begin the rest of the function
// hide stuff before zoom
closePanel();
compass_mc.alphaTo(0, .7, "easeOutQuad", 0, function () {
compass_mc._visible = false;
});
bahamas_mc.alphaTo(0, .7, "easeOutQuad", 0, function () {
bahamas_mc._visible = false;
});
introText_mc.alphaTo(0, .7, "easeOutQuad", 0, function () {
introText_mc._visible = false;
});
// move map
map_mc.scaleTo(mapScale, 1, "easeInOutQuad", .3);
map_mc.xSlideTo(mapX, 1, "easeInOutQuad", .3);
map_mc.ySlideTo(mapY, 1, "easeInOutQuad", .3);
// fade islands and labels
fadeIslands(15, mapPath);
fadeLabels(0, 0);
disableButtons();
// re-open panel
openPanel(island);
// show return button
return_mc.back_btn.enabled = true;
return_mc.gotoAndStop(island);
return_mc.alphaTo(100, 1, "easeOutQuad", 2);
// show towns, dots and glow
mapPath.maskDot_mc.ySlideTo(0, 1, "easeOutQuad", 2);
mapPath.land_mc.glowTo(0x084d86, .5, 8, 1, 2, false, false, .5, "easeOutQuad", .5);
};
// function to return to map
returnMap = function () {
// hide stuff for zoom out
closePanel();
fadeIslands(100);
fadeLabels(100, 1.3);
return_mc.back_btn.enabled = false;
return_mc.alphaTo(0, .7, "easeOutQuad", 0);
// move map
map_mc.scaleTo(_root.initialScale, 1, "easeInOutQuad", .3, enableButtons);
map_mc.xSlideTo(_root.initialX, 1, "easeInOutQuad", .3);
map_mc.ySlideTo(_root.initialY, 1, "easeInOutQuad", .3);
// re-open panel and show extras
openPanel("start");
compass_mc._visible = true;
bahamas_mc._visible = true;
introText_mc._visible = true;
compass_mc._alpha = 0;
bahamas_mc._alpha = 0;
introText_mc._alpha = 0;
compass_mc.alphaTo(100, 1, "easeOutQuad", 1.5);
bahamas_mc.alphaTo(100, 1, "easeOutQuad", 1.8);
introText_mc.alphaTo(100, 1, "easeOutQuad", 2.1);
// hide towns, dots and glow
mapPath.maskDot_mc.ySlideTo(-150, .7, "easeOutQuad", 0);
mapPath.land_mc.glowTo(0x084d86, 0, 3, 0, 2, false, false, 2, "easeOutQuad", .3);
};
//++++++++++++++++++++++++++++++++++++++++++++++
// fade in on start
//++++++++++++++++++++++++++++++++++++++++++++++
water_mc.alphaTo(100, 1, "easeOutQuad", 0);
compass_mc.alphaTo(100, 1, "easeOutQuad", .5);
bahamas_mc.alphaTo(100, 1, "easeOutQuad", .8);
introText_mc.alphaTo(100, 1, "easeOutQuad", 1.1);
map_mc.alphaTo(100, 2, "easeOutQuad", 1);
openPanel("start");
//++++++++++++++++++++++++++++++++++++++++++++++
// check for querystring and load island
//++++++++++++++++++++++++++++++++++++++++++++++
this.onEnterFrame = function() {
if (_root.startIsland != "" && _root.startIsland != undefined && _root.startIsland != "map") {
map_mc[_root.startIsland + "_mc"].button_btn.onPress();
}
delete this.onEnterFrame;
};
//++++++++++++++++++++++++++++++++++++++++++++++
// island buttons
//++++++++++++++++++++++++++++++++++++++++++++++
// abaco
map_mc.abaco_mc.button_btn.onRollOver = function() {
this._parent.land_mc.shape_mc.colorTo(0xffffff, .3, "easeOutQuad", 0);
this._parent.land_mc.glowTo(0x084d86, 1, 3, 1, 2, false, false, .3, "easeOutQuad", 0);
this._parent._parent.labels_mc.abacoLabel_mc.alphaTo(100, .3, "easeOutQuad");
panel_mc.listAbaco_mc.colorTo(0x000000, .3, "easeOutQuad", 0);
panel_mc.leaf2_mc.alphaTo(100, .3, "easeOutQuad", .2);
panel_mc.leaf2_mc.ySlideTo(panel_mc.listAbaco_mc._y, .3, "easeOutQuad", 0);
};
map_mc.abaco_mc.button_btn.onRollOut = function() {
this._parent.land_mc.shape_mc.colorTo(0xd8eefb, .3, "easeOutQuad", 0);
this._parent.land_mc.glowTo(0x084d86, 1, 5, 0, 2, false, false, .3, "easeOutQuad", 0);
this._parent._parent.labels_mc.abacoLabel_mc.alphaTo(labelAlpha, .3, "easeOutQuad");
panel_mc.listAbaco_mc.colorTo(0x0d4a88, .3, "easeOutQuad", 0);
panel_mc.leaf2_mc.alphaTo(0, .3, "easeOutQuad", .2);
};
map_mc.abaco_mc.button_btn.onPress = function() {
zoomIsland("abaco");
this._parent.land_mc.shape_mc.colorTo(0xd8eefb, .3, "easeOutQuad", 0);
};
There is more code, for example rollOver, rollOut, and Press actions for the other island buttons, but they are all of the exact same format as the Abaco island button and they all have the same problem.

So, to recap, the problem is that the list button in the right panel do not function properly onPress, even though they are calling the onPress function of the island buttons directly, and the island button onPress function works perfectly. Strangely, all but one little thing works. So it's obviously getting to the correct functions and going through the code as planned, yet that one part about the glow is being ignored or otherwise messed up.

I'm pulling out my hair on this one and I'd really appreciate some guidance. This project is nearly done except for this one setback.

Thanks kindly in advance for help.
Cheers,
Benek

Create A New Window With No Toolbar
Hi!

I'd like to know how to create a new window without the toolbar of the explorer or navigator by getURL command (if it is possible). Is there any way to make this window to appear on an exact place?

I've tried by FSCommand and JScript and it works with IE but doesn't work properly with NN6. Any good idea?

Thanx!!!

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