Help, Please... On A Scrollbar Window.
Hello... I would like to know how can i do a window in flash with a scrollbar. But that's not all, also need to know how i combine the text with the respective part of the scroll so i can push the text up or down. The objective is to insert a flash content in a html web page in this case when i press a hyperlink it will show my flash window with the information. I already have the skin(window and the two scrollbar buttons). So could you give me a hand?! Please.
human_Placebo
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 02-24-2003, 11:26 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Main Window Scrollbar
I got some code here from Iaskway thats gets rid of borders.
It worked great except that it got rid of the scroller on the main window.
Below is whats in my html page
About a third of the way down, I tried to set scroller to "yes". It brought the scroll bar back, but you still cant scroll to see the bottom part of the movie if on 800x600.
Any help would be greatly appreciated, as Im a html and java retard.
Josh
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>tnike</TITLE>
</HEAD>
<BODY bgcolor="#000066" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0" scroll= "no">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="100%" HEIGHT="100%" id="tnike" ALIGN="top">
<PARAM NAME=movie VALUE="tnike.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noscale> <PARAM NAME=salign VALUE=T> <PARAM NAME=bgcolor VALUE=#000066>
<EMBED src="tnike.swf" menu=false quality=high scale=noscale salign=T bgcolor=#000066 WIDTH="100%" HEIGHT="100%" NAME="tnike" ALIGN="top"
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>
</BODY>
</HTML>
Scrollbar Style On A Window
hi... maybe you could help me..
i have seen some pages and on those pages have diferent styles like colors on the scrollbar(not a scrollbar on the flash file i mean on the window--).. see www.soulfly.com .. maybe could be more clear if you see it
thanx anyway
How Can I Do A Scrollbar Window On Flashmx
I would like to know how can i do a scrollbar window in flash to put in a html file?
i already have the window and it's graphic, the scroll buttons up an down, and the text... but i don't know how to connect the text to the buttons, and when i press the up the text goes up and the same with the down button.
Can anyone help me?
Scrollbar For Browser Window Not Showing Up
Hey guys
im sure this is a very easy problem but basically whats happening is when I publish my SWF, depending on the settings I choose in the publish settings meno, my SWF either appears in the top-right corner with a browser scrollbar..OR..its dead center*what I want* without a browser scrollbar what do I have to do to get that browser scrollbar to appear?
In my publish settings for...
Dimensions = Percent (100x100)
Quality = High
Window Mode = Window
HTML Alignment = Default
Scale = No Scale (If I switch this to default I get a browser scrollbar but the SWF is no longer centered )
Flash Alignment = Center, Center
what am I doing wrong? Thanks in advance guys!
Cheers
Scrollbar Auto-resized With Window Size
My first post here! I did a search on this first but didn't find a solution...
I would like to be able to have the bottom button of a scrollbar, remain clickable at the foot of a page. Such that, if the window is resized, the scroll bar will also resize with it (the bottom button of the scroll bar remains there).
To show you exactly what I mean, the following site does exactly what I am trying to achieve: (look bottom right)
http://www.skyworksinc.com/
Many thanks in advance for any help. Please try to keep the instructions relatively clear, I wouldn't consider myself an extreme expert. Many thanks.
Apollo11
New Window Size In Scrollbar Component Text
Greetings,
I have a scrollbar component with dynamic text that I want to add some other functions. I can figure out how to add a URL link to a specific bit of text within the scrollbar. How can I make the linked text:
1. change color when the mouse is over the linked text within the scrollbar component
2. have the URL I'm linking to within the scrollbar component open an html window to specific size.
Thanks!!
Text Window/scrollbar That Gets Its Content From A .html Possible?
I'm looking for the flash equivalent of an I-Frame, something that will scroll up and down and display both formatted text and images that are placed inside a file, like a .html document. The only scrollbars I was able to find on this site only seemed to get their contents from a .txt. Are there any out there that get their content, correctly, from another file that allows formatted text and images?
Flash Scrollbar That Resizes To Browser Window
Hi
Can anyone help me create a scrollbar in flash that would resize to the browser window. Below is part of the script I have. thanks
txt.setMask(mask)
scrollbar.onMouseDown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height>mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height-this._height)
txt.onEnterFrame = scrollThumbs;
dragging = true
}
};
scrollbar.onMouseUp = function() {
stopDrag()
dragging = false
delete this.onEnterFrame;
};
function scrollThumbs() {
var funkyVar = -this._parent.scrollbar._y*(((this._height-this._parent.scrollbar._height)/(this._parent.scrollbarBG._height-this._parent.scrollbar._height))-1)
this.Y = (funkyVar-this._y)*.2;
this._y += this.Y;
if(Math.abs(funkyVar-this._y)<1 && !dragging){
delete this.onEnterFrame
}
}
Scrollbar Deal Bad With Window Focus Loosing...
I have my scrollbar, which is in the bottom of the flash movie.
When I start to scroll a slider across the scrollbar and then move my mouse out of the flash window - slider stops to scroll.
I want my slider to scroll even if I've put my mouse out of the window.
How can I perform it???
Open New Window That Has No Toolbar, Scrollbar, Address Bar Etc
Hey Guys,
I'm working on this website www.gearbox.net.au and i decided that the fonts a bit too small. But the client also said he wanted it so there'd be no scrollbars.
But the amount of content for each section will maybe the site look a bit out of wack if he wants no scrollbars.
So I thought it'd be best to get the buttons to open a new window that has no scrollbar, toolbar, address bar etc.
What code do I need to add to my flash buttons and what code do I need to add to my dreamweaver document that will be opened by this button
I just need the simplest way to do this because with the tutorials I've done I always end up confused or it doesn't work at all.
Please Help!!!!
Max
AS 2: Working With Content, Scrollbar, Window And Update. Hard To Describe 1 Lyn.
Okay... Here goes.
I made my own scrollbar which works with 2 movie clips that are outside of it - mcContent and mcWindow. The mcContent is masked by the mcWindow and the scroll reads the heights x's and y's of both mc to get them to work together.
Normally, it works fine. But the problem is that my content's height may change at runtime. When the mcContent gets longer (taller), I have trouble updating the scroll to fit snuggly.
The first time the program runs, the scroll arranges itself and puts the thumb on the track. (THUMB - the middle part of the scrollbar, TRACK - the bar the thumb can slide through). Furthermore, the thumb becomes as big as it should be, depending on how big the mcContent is in relation to the windowMC (just like the internet explorer scrollbar works). The more content, the smaller the thumb. If all the content fits in the window, then the thumb is as big as the track.
Later on though the user has the option to resize what's inside the content. This is where I have the problem. How can the scrollbar read where the mcContent is in relation to the mcWindow so that the scrollbar stays at the right place?
For example, if I scroll to the bottom, then I make the mcContent longer, the thumb should become shorter, yet stay at the bottom. If I scroll to the middle, and I make the mcContent longer, the thumb should stay in the "center" and resize itself there.
OTHER STUFF:
I had an easier time reading the thumb's position then translating it to the mcContent because it's a single point that I read from. From the the mcContent though, I have a harder time reading it.
Of course, I'm gonna continue working on it. If I come up with a solution I'll let you know. I don't expect replies anyway - this whole thing is too long and it's obscure. I'm afraid my code will make it worse because I haven't cleaned it up yet.
thanks,
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,
I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.
At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.
I am not sure how to do this as I have just used the built in Flash components to get what I have so far.
Any help is appreciated.
Thanks,
Martin
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,
I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.
At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.
I am not sure how to do this as I have just used the built in Flash components to get what I have so far.
Any help is appreciated.
Thanks,
Martin
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,
I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.
At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.
I am not sure how to do this as I have just used the built in Flash components to get what I have so far.
Any help is appreciated.
Thanks,
Martin
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,
I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.
At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.
I am not sure how to do this as I have just used the built in Flash components to get what I have so far.
Any help is appreciated.
Thanks,
Martin
Scrollbar Doesn't Work (tutorial: Object-oriented Scrollbar)
(tutorial --> object-oriented scrollbar: http://www.gotoandlearn.com/play?id=71).
I followed the tutorials instructions and this is the code that i have now:
import caurina.transitions.*;
var yOffset:Number;
var yMin:Number = 0;
var yMax:Number = sb.track.height - sb.thumb.height;
sb.thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbDown);
stage.addEventListener(MouseEvent.MOUSE_DOWN, thumbUp);
function thumbDown(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
yOffset = mouseY - sb.thumb.y;
}
function thumbUp(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
}
function thumbMove(e:MouseEvent):void
{
sb.thumb.y = mouseY - yOffset;
if(sb.thumb.y <= yMin)
sb.thumb.y = yMin;
if(sb.thumb.y >= yMax)
sb.thumb.y = yMax;
var sp:Number = sb.thumb.y / yMax;
Tweener.addTween(content, {y:(-sp*(content.height-masker.height)),
time:1});
e.updateAfterEvent();
}
Does anybody see what's going wrong? I'm a beginner beginner, so all could think of to do is check if everything was typed correct. (i double checked instance names and code). But can't seem te get it to work, nothing happens when i preview swf.
No compilers errors and no syntax error. Tweener class is installed properly. PLEASE help me i've been looking for hours now.
If someone could help me, would be great!!
Sorry for my english, thank you for your time.
[F8] Horizontal Scrollbar Works, But Buttons On The Scrollbar Don't?
I've done a scrollbar like this one:
http://www.kirupa.com/developer/mx/infinite.htm
It works fine.
However, I want the individual buttons (button1, button2, etc.) on the scrollbar to load an image from my library whenever they are pressed. I've loaded an MC (content_mc) above the scrollbar for which the images will be seen, and added the images to each individual frame. I used the actionscript from my last menu which works great, but this one with the scrolling MC menu does not work.
Code:
content_mc.stop();
speed = 3
target = button1._y;
for (var i = 1; i<4; i++) {
this["button"+i].pageNum = i;
this["button"+i].onPress = function() {
target = this._y;
content_mc.gotoAndStop(this.pageNum);
};
}
this.onEnterFrame = function() {
current._y += (tagert-current._y)/speed;
};
Scrollbar (i Already Have It Designed, The Scrollbar Just Don't Know How To Code)
hi guys.
how can i make a scrollbar that slides my movieclip up and down with different drawings i made.
all of the stuff below this sentence will be on top of a movieclip called "portfolio movie clip"
my new movieclip name is "portfoliofill" i masked it because i have like 40 drawings and i don't want it to show on the bottom of the page. (this has all my drawings aligned one after the other below each other. it goes far down the flash program because its 40 drawings.)
i also designed a little line and a bar that slides up and down the line. this movieclip i named "scrollbar". if you open the "scrollbar" movieclip the bar and the line is are on different layers. then i converted the bar into a movieclip and named the movie clip scrollbar.
thanks to anyone who can help
[F8] Help - Scrollbar Appear On The Scene Which Do Not Contain Scrollbar Component
1. I have successfully created multiple scenes with dynamic html text fields and UIscrollbar component.
2. Each scene is a webpage, so I can click on each button to go to corresponding scene.
3. The main page contains no scrollbar component. When I publish on the web, it run perfectly for the first time loading it. However, after I visit other pages (different scene created in F8) and click on "Home" button going back to the main page, the scrollbar component exists on the page which should not contain any scrollbar.
4. I try to give each scrollbar on different scene a unique instance name, and disable it using
Code:
scrollbar0._visible=false;
but it doesn't work. I think maybe I include the actionscript to the wrong place or under the wrong event/action.
5. Any idea of how this happened?
Thanks,
little_poem
Flash Scrollbar Instead Of Browser Scrollbar
Hi all,
What I want to do is replace the browser scrollbar with a flash one when the flash movie is larger than the browser, and I'm using 100% sizes.
I've seen this done, and even when you manually resize the window, the scrollbar adjusts. Any ideas on this? Any tuts? Thanks.
Scrollbar (dynamic Scrollbar Size)
Hi everyone.
I'm making a scroller that scrolls movieclip (text inside). It works quite good but I want to put the final touch on it.
I want that my scrollbar is dynamic in its size (just as browser scrolls or windows scrolls). Then my biggest programming problem comes up, maths
The values that I have is
- How tall is the area there the text shows.
- How tall is the movieclip that the text is shown in
- How tall is the place there my scrollbar is shown.
Someone thats have an idea how to sort this out
Scrollbar (dynamic Scrollbar Size)
Hi everyone.
I'm making a scroller that scrolls movieclip (text inside). It works quite good but I want to put the final touch on it.
I want that my scrollbar is dynamic in its size (just as browser scrolls or windows scrolls). Then my biggest programming problem comes up, maths
The values that I have is
- How tall is the area there the text shows.
- How tall is the movieclip that the text is shown in
- How tall is the place there my scrollbar is shown.
Someone thats have an idea how to sort this out
Close.window Script In Flash Button Quits My Browser Window Or Crashes System
Can somebody please help me?
I have a javascript attached to a button in a .swf file to close the browser window it is in.
The code which was given to me yesterday by senocular is
on(press){
getURL("javascript:window.close()")
}
__
however if you try it IE will unexpectedly quit or bomb my computer.
I tried it in Netscape and it didn't crash.
You can refer to my site http://www.valdesdesign.com
after intro go to print button and then to editorial button.
Editorial opens new window with editorial.swf inside. Click on top right button to close window and see what happens.
Is there something I'm doing wrong? Please help me.
Thanks
Link In Pop-up Window (flash File) Target=parent Window
I have a flash demo that is opened from our web site and spawns a new window. At the end of the demo is a link that directs the user to "get more information." I would like this link to open the "more info" page in the PARENT window rather than the spawned window. Currently I have my Flash link coded with:
on (release) {
getURL ("http://www.hiddenmind.com/materials.html", _parent);
}
This is not working. Do I need to add some code to the parent window and/or the HTML page where the Flash file is embedded?
Thanks for your help! I can't seem to find the solution
AS: Close Current Window And Open Link In Father Window ?
Please, guys, can anyone lead my hand in this?
I have produced a flash movie. the wholw are is an invisible button which
should close the animation and in father window open a link.
The flash movie pops up automatically when page is loaded. I used this:
on (press) {
getURL("javascript:self.close();window.opener.loca tion.href = 'http://www.unibanka.sk/servlet/com.elline.pb.Page?page=alfa_ts'");
}
... but am not sure if this would work exactly how I want it.
Thanx
Passing Variables From Spawned Window To Parent Window
Is it possible to pass a variable from a child to a parent window.
I have one page (Index.html) with a swf (index.swf). A button on the index.swf launches demo.html containing a demo.swf. When the user gets to a certain point in demo.swf, I need to tell index.swf that it has arrived. Is this possible.
Any suggestions are appreciated.
Cordially,
Jason
Pausing After Preload If Browser Window Is Not Active Window
Hi folks,
I'm trying to figure out how to do this, but so far I have had no success. The intention is for anything like a Flash trailer, intro movie or such like which is large to preload and once this is done check to see if the user is still viewing that browser window.
So if during the preloading the user opens/selects a different window and the preloading finishes then the Flash will go to a paused screen, awaiting the user to indicate they want to proceed (eg a play button). If however the user still has, or has returned to, the browser window it will skip the pause screen and play the animation.
For an example the 9th chapter of Ninjai.com seems to do this (I haven't checked the other chapters).
Any help would be appreciated.
Ragnar
webmaster@ragnarkarlsson.com
GetURL - Targetting The Parent Window Of Popup Window?
Hello!
Yet another thread on getURL but I did a search and couldn't find anything related to my question, so here goes...
I have a website which launches a 900x400 popup window which contains an interactive flash movie. From within this movie, I am loading in HTML from a text file which populates a scrolling textfield.
I was pleased to learn that href links within the text file work as links within the flash textfield. What I want to do is have these links open in the parent window that spawned the popup.
If I use target=_blank on these links, the pages open up in a new browser window.
If I use target=_parent on these links, the pages open up in the same popup window and obviously replace the flash movie content (goes to the link instead of launching it in the parent window).
Is it possible to use the _parent target to launch these links into the main website that spawned the popup or is _blank the only one?
If anyone has any tips or experience on this matter it would solve a huge headache for me.
Thank you!
Flash Reload Parent Window + Close Window
Hi i got a quesiton.
I have an asp page that will open a new asp page in a new window that contains a swf file with a button.
When the user clicks the button i want to close that window and reload the parent window. Any ideas on how to achieve this in flash ?
Thanks
Popup Window Doesn't Stop Window.open
Hi,
check out www.adidas.com/1
You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.
Any ideas how thye have done this?
thanks
ash
Loading External SWF's Into A New Flash Window Instead Of A Browser Window?
I have this flash presentation where I have buttons when clicked on, a (_blank) browser window pops-up and begins playing external SWF's.
The problem is that, with windows XP, every time I click the button(s) to have the browser window pop-up, to play my externals, the damn 'virus protection notification' thing pops-up first, asking me if this content is allowed. Is there a way to turn this off? My client does not want to have to "allow" the browser to play the external SWF's everytime. I've tried everything but no luck.
Better yet, is there a way to have the external SWF's pop-up in a totally new flash window, on top of the main (presentation) window? I don't want the external SWF's playing in the same window, but rather show in a new window entirely. Can anyone help me? This project is past-due and it needs to go out today. I'll attach the current scripting I'm using so far, if it helps. Thanks so much!
bottingsAd_mc.onRelease = function() {
getURL("exampleAds/bottingsports2_001.swf", "_blank");
};
Popup Window Doesn't Stop Window.open
Hi,
check out www.adidas.com/1
You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.
Any ideas how thye have done this?
thanks
ash
Window Without Border And The Normal Windows Window
Hi there everybody !!!
I´m a guy from Denmark, who´s using flash as a way to promote my self.
I´m fairly good at using flash, but I have to admit, yhat I´m not very proficient at scripting/programming in flash and neither java. but I´m very eager to learn the art of programming/scripting.
Here´s my quostion for all you "HEAVY PROGRAMMERS" out there:
How do I make a new window, without any borders, as we usually see.
Is it a java thing or a flash ?
In the recent past I´ve discovered many sites using this technic. And I´m very curious about making this window.
A window without any borders
A window, - but not the normal popup window, that Explorer generates.
I´ve seen that Samsung uses it in theire website, and someother companies.
Hope everydody understands my request and will reply as soon as possible.
In forward thanks
Yours sincerely K. M. Egander
Popup Window Closing To Main Window?
I can close the popup window of my flash intro, but I want to go to another html page in the main window of my site.
Can anyone help me? Thanks.
Opening A Mc In A New Window, While Still Showing The Mc In The Main Window
Hi Guy's
Its mike again. Please can you help.
I have designd a mc and in this mc, it has a button to another mc but what I would like is to open the mc in another window without closeing the first mc window where my button is. also I would like it to open at a perticular size.
Then be able to close the second window.
how is this possible please can someone help!
Thanks
Mike
Loading In New Projector Window Not Browser Window
I'm designing a portfolio site and Im sending it out as a projector. Is there a way that I can have images load in a new projector window, and not the default browser. My only succes so far is using the getURL, but this opens the image in a browser or in the same window, and I just want to open a new window with the projector, not an internet browser. PLEASE HELP, I need to get a job with this site.
Open Full Screen Window, Same Window?
I have a 700x300 flash banner. What I want to do is once it's clicked, open the page that it is linked to in the same window but full screen? I can do it with java script, how do I add it in MX?
Mike
|