ActionScript 2.0 :: Making Scrollbars With The Enertia Effect On Them?
May 18, 2004does anyone know the AS for making scrollbars with the enertia effect on them, i have seen them in a few places
View 6 Repliesdoes anyone know the AS for making scrollbars with the enertia effect on them, i have seen them in a few places
View 6 RepliesHow do you change the html scrollbar (the one that you see in the far right of your browser) with your own images? I know it's possible because i've seen it before.
P.S.: I am aware of and I know how to change the color of the scrollbar. That is not what's expected. Also i think it's made possible by Javascript.
First create a new flash document, make it 300x60 pixels, make the background #009933, so we have a nice christmassy green.
Now press ctrl+F8 to create a new symbol, make it 3x3 pixels.Add the snow symbol to the top of the stage. Drag it about 20 pixels above the stage so the snow doesn't all collect on the top of the stage. Now give it this code:
[AS]onClipEvent (load) {
this._width = random(5);
speed = _width;
_height = _width;
[code]....
Then play your movie and watch the 3d snow! Next post I will explain the code and post a source file!
I have text which I have created to vibrate using this code
onClipEvent (load) {
// movie width/height
height = 150;
width = 500;
this._xscale = this._yscale=temp;
[Code] ....
How to get vibration becomes more violent over time?
I have created one static movieclip and in that movieclip i have created "i" dynamic movieclips.On the dynamically created movieclip i am loading swf(Swf consists of a Preloader and then image appears).All these swf values and link(url) values i get by parsing an xml string in the FLA itself...Now the problem starts here...There are links on these dynamically loaded swf's....And I have given static rollover effect on the swf by making image as a button..Now what happens is that i have written onRelease Function in code and in that i m getting link on images(SWF) using getURL in on EnterFrame function and i am not gettin the rollover effects that i have created in static.
View 2 RepliesI published a Flash file with the html wrapper.
Flash publish settings-
Size - %
Height- 100%
Width 100%[code]....
All good but there are no scroll bars on the browser when I make the browser window smaller? Search took me to this thread- http: [url]....The solution there is "find the parameter in your CSS that states "overflow: auto" or "overflow: hidden" and change it to "overflow: scroll".I did that and now I see a white scroll track in the browser but no actual scroll bar? LOL What do you think is going on?This is the page code-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>[code]......
know the AS for making scrollbars with the enertia effect on them, i have seen them in a few places,
View 6 RepliesI'm trying to create several pop-up windows that will initiate when buttons within flash are pressed. I've tried using this tutorial... [URL] However, when I try setting scrollbars=no so that the pop-up windows I'm making wont have any scrollbars, I find they appear anyway, and obscures part of the total html file which is trying to open. I've also tried this tutorial... [URL]. and find the same thing happens. Even though I switch scrollbars to "no" or "0", they still appear.
View 8 RepliesI have a button inside of a movie clip and need to call up a URL.
webbsiteButton.onRelease = function () {
getURL("javascript:launch('http://www.somewebsite.com')");
}
If you go here:and view my flash site at a resolution of 1024x768 in Firefox it has a vertical scroll bar in the browser but not a horizontal scroll bar (is there a way to make it have a horizontal scroll also) because you can't see all the copyright into at the bottom right. Also, Internet Explorer opens the page with NO scrollbars at all (you can't even scroll down to see the content)
View 2 RepliesIn Flash 8 with AS 2, how to customize the crollbars of ScrollPane component? For example, change the default color of the scrollbars of the component.
View 3 RepliesI have a swf which is 1700px wide.I want to embed it to a page so it won't have scrollbars even if the browser window is smaller then 1700.But I need it not to be resized down
View 8 RepliesHaving some problems adding the default spark.components.VScrollBar scrollbar. All I'm doing is creating a new VScrollBar, setting it's coordinates, a width and height and doing an addChild but it's not showing up. I'm adding other components too that do show up in the same code so that shouldn't not be the problem.What might I be missing?
var a:VScrollBar = new VScrollBar();
a.x = 100;
a.y = 100;[code].....
I'm using an iFrame in a Flex 3 project. The problem is that if the user opens my site in a small browser window, they don't get scrollbars. How can I solve this problem? Is there a way to force the browser to put up scrollbars?
If I set the main app to horizontalScrollPolicy="on" verticalScrollPolicy="on" or to "auto", then as you scroll down, the iFrame is stuck to the top of the browser window and obscures the content.
In the main app:
[Code].....
It's going to be used to view complicated scenes in 3D, but to make it work on laptops it's instead showing pre-rendered 360 degree renders of the objects.When you load an object, it first buffers 360 frames into memory, so that you can rotate around this object smoothly. When you release the mouse button, it loads in the high-res image of that frame.
Then, you should be able to zoom in and move around to inspect the model closer.Problem here is when I have the scrollbars enabled it wont work properly.Firstly, I had a problem where the vertical scrollbar moved out of the picture when I was scrolling the horizontal scrollbar.
Then after some more testing, they now stay where they should, but when I zoom in (will post code below) the horizontal scrollbar is not able to go far enough to the left to show the whole image.What happens is, when I zoom in, the scrollbar remains at it's left position, but I zoom in on the center of the image (zooming, by scaling the container. The image fill the container).
My problem is probably just a result of me overlooking some basic understanding. And sorry if the code is a bit messy, I've only done a little bit of clean up. The code I post below is without any scrollbars visible.
You can see that I've tried using scrollbar components too, and it works somehow. But I'm not able to scale the scrollbar depending on the content, so if I zoom in or out, the handle you drag on the scrollbar will be the same...
Image of app running if needed:
Code:
<mx:Panel x="0" y="0" width="100%" height="100%" titleIcon="@Embed('assets/img/cog_01.png')" title="vCog Subsea - Draugen Project">
[code].....
Here is the code for using the UIScrollbar component with the HtmlLoader:
Code:
import flash.html.*;
import flash.net.URLRequest;
import fl.controls.UIScrollBar;
[Code].....
I'm having an issue here trying to make scrollPane scrollbars to apear and work
I'm creating one scrollPane at runtime with
var sp_veiculos:ScrollPane = new ScrollPane(); sp_veiculos.name = "sp_veiculos"; addChild(sp_veiculos);
then I want to have an if statmento to make the scrollbars apear if I need like
if (numero_veiculos < 3) { sp_veiculos.verticalScrollPolicy = "OFF"; sp_veiculos.horizontalScrollPolicy = "OFF"; } else { sp_veiculos.verticalScrollPolicy = "ON"; sp_veiculos.horizontalScrollPolicy = "OFF"; }
I have an application that has a dynamic text area that pulls in XML content and i would like to have the text area grow, rather than use a scrollbar and i am wondering if anyone has done this or can point me in the right direction? I have dont quite a few searches and only find examples on how to do this in AS3, and i am using AS2 and CS3.
View 5 RepliesI am using 2 swf movies to comminicate text like in the following example[URL]it all works well, accept, the text dosn't scroll up in the recieving movie. How would i make it do that?
View 1 RepliesI can take snapshot of a component. But the problem is the component is lil bigger with scroll bars. The saved image has scrollbars (only the visible area is getting saved). What i need is I want the entire component to be saved as an image.
This exact functionality is available while we print the component using FlexPrintJob, where by setting the FlexPrintJobScaleType.NONE.
I'm creating a container and it's content at runtime. Here's a rough structure:
--VBox
----Form
-------FormItem
[Code]...
I've tried also validateNowand other similar methods. What I have here:
1. The HScrollBar is being added.
2. We increase a bit the width of container, so it disappears.
3. When it disappears, the validating throws the null-pointer exception when it tries to measure the non-existing scrollbar. I've also tried to add validateProperties before validation, but it didn't worked either.
im rendering html in a dynamic textfield.. is it possible to have scrollbars for my content that extends beyond the view.
View 2 RepliesI created a SkinnableContainer runtime because I want to set some style properties to it, then based on some external data I need to create a new SkinnableContainer and add it as children of the first one. This children height can be greater than the parent container.How can I create a SkinnableContainer runtime with some scrollbars?I read in the documentation that I need] to create a new Skin. [code
View 1 Replieswhat is the actual height of a container in Flex without scrollbars? Height and measuredheight seem to tell me what the visual height of a container is, but I want to know that number plus any height that is being 'hidden" below a scrollbar.
View 2 RepliesI'm using Adobe FLEX 4.5.1 for Mobile.I have a List that displays some images:
<s:List id="imageList" initialize="init()" verticalScrollPolicy="off" itemRenderer="skins.CustomIconItemRenderer" width="100" height="32" verticalCenter="0" horizontalCenter="0">
[code]......
I made this simple application to demonstrate my problem. It has:
An image A button that launchess a popup window Scroll bars on the side
[Code]...
Is there a way to make everything "modal" except the main scroll bars? I know that I could put a scrollbar on the Panel but I would prefer to avoid this.
I'm looking for a way to disable the scrolling of the vertical and horizontal scrollbars when scrolling the mouse. I use the mouse scroll to zoom in and out, and I don't want the scrollbars to scroll while scrolling the mouse wheel.. (But I do need the scrollbars to be visible).
View 2 RepliesI am trying to catch the scrollEvent or any other event which is fired when a canvas starts to show either horizontal scrollbar or vertical one. The following code
this.addEventListener(Event.SCROLL, handleScroll);
Did not succeed in my canvas. Also how can I limit the scrollable size of my canvas? I would like to allow max 1600*1200 scrollable area.
I am working on a site that shows a .swf logo inside of other .swf files (it's a as3 xml template from activeden) and it works with several other swf logos and it doesn't do it, however with my logo it takes focus away from the scroll bars for the content whenever my logo reaches the end of the animation to loop.I have been trying for over 2 weeks to fix this and I'm finally breaking down and starting to get discouraged.
View 0 RepliesI have my flash at %100 width and height, and have three else statements which dictate the placement of the mc on my stage. What i would like to have is the user changes the screen width to anything smaller than 1024 that it initiates the browser to activate the scrollbars. The layout of my site really needs the user to be able to scroll if they resize the browser smaller than 1024 but have no idea wheather this can be achived through actionscript or if this is something that needs or can be done in the Html. One side note is also that if the browser is resized to a height less than a percentage of the landscape width that the scrollbars would also be toggled on. Here is the site address for perspective: [URL]
[Code]...