ActionScript 2.0 :: Scrollbar That Hides Until Overflow?
Sep 8, 2010tutorial on custom scrollbars that remain hidden until the text is in overflow - I use either a text file or XML file to externalise the text.
View 2 Repliestutorial on custom scrollbars that remain hidden until the text is in overflow - I use either a text file or XML file to externalise the text.
View 2 RepliesI have an application control bar at the bottom of my Flex application (with attributes width="100%", dock="false", left="0", bottom="0", height="50"). It contains a lot of elements (like buttons and labels). The width of the SWF is the width of the browser.When the user makes the width of the browser window smaller, after a certain point, thecomponents on the application control bar gets "squished": they are forced on top of each other. And so, it becomes confusing and ugly. To ensure that that doesn't happen, I've set the minWidth attribute to a value so that it'll always display the components without them overlapping each other.
But then, a horizontal scrollbar appears and hides the bottom half of the application control bar.I've googled and I found this article: flex verticalscrollpolicy bug (referenced by this SO question: Flex: Prevent scrollbar from covering content when automatically displayed).But that seems to apply only to a fixed size component. My component's width is a percentage. how to have the horizontal scrollbar appear and have it not cover up the application control bar?
I have a swf file (as3) that is in a header of a page. When I run the page the content below it is hidden. It's in the source code but the browser doesn't display it. If I put the swf below the content everything shows up fine. It does this in both chrome and IE. If I take out the swf from the header all of the content shows up fine also.
View 3 RepliesI have tried several navigation scripts and z-index all over the place but no matter what I try the sub-folders of my navigation on my homepage always gets hidden by the slideshow. Can someone tell me how to correct this? If you need to see it go to this site and move your mouse over the 3rd link down (home services) to have the sub-folder come out:
[Code]...
I have a swf file (as3) that is in a header of a page. When I run the page the content below it is hidden. It's in the source code but the browser doesn't display it. If I put the swf below the content everything shows up fine. It does this in both chrome and IE. If I take out the swf from the header all of the content shows up fine also.
View 4 RepliesI have a portfolio gallery that I can browse. I click on a thumb and it opens an image. Then, if I want, I can "zoom it", by loading a larger image, that is not necessary equal.At the first time I "zoom" an image it all looks fine. I create a black rectangle, a loader and add them to stage covering everything.When I'm done seeing the image, I click on any off them and supposelly they are removed. They even desappear from stage.
But when I try again with a diferent image the same code, it actually loads the previous image and square, plus the nem desired items.This errors increments everytime I click and zoom. All of the previous appear and I have to close them again.
ActionScript Code:
portfolio_mc.aberto.botaoZoom.addEventListener(MouseEvent.CLICK, ZoomFuncImg)
function ZoomFuncImg(event:MouseEvent)
{
[code]...
I have a M4V video file embedded in a Flash movie, and I need to play the Flash movie at full screen using the Macintosh Projector format. When the Flash file is done in Actionscript 2, everything appears as it should, but if the Flash file is done in Actionscript 3 (which this particular needs, since it uses armatures), then the video fills up the whole screen and hides everything else. I figured out how to prevent the video from scaling to fit the screen (set the scaleMode parameter to "noScale"), but it still shows the video in the center of a black screen. How can I get it to stop messing with the file and just play the @#$! video where I put it?
View 7 RepliesWe have a Flex application which is build against the 3.3 SDK. It has been in production for more than a year without any problems, till yesterday. We got a bug report yesterday that some content is invisible which prevents the user from completing an assignment. I looked into the problem and I have narrowed it down to Flash Player 11. Unfortunately it got me no closer to solving the problem.The part of the application that is giving problems is a separate .SWC which is loaded in a SWFLoader object. This is placed on a Canvas which in turn is shown to the user via the PopupManager.This is what it looks like when I view it in FireFox 10.0.2 with Flash Player 10,0,45,2 (click for image).
And this is what it looks like when I view it with Flash Player 11,1,102,62 in Chrome 17.0.963.56 (click for image)As you can see I am missing the checkboxes, two buttons and the checkpoint in the middle. The checkpoints drops in from the top of the screen and sometimes you can see parts of it. It looks like there is something invisible on top of this. In the Flash Player 11 version I am able to click on the checkboxes that are invisible and this does trigger the expected behavior so I know the mouse clicks are handles properly. Same goes for the buttons 'Vorige' (previous) and 'Volgende' (next), even though you can't see them I can still navigate between states.I have check if disabling the hard acceleration in Flash Player 11 made a difference but unfortunately it didn't. I also thought it could be the preloader that is blocking out part of the screen but the position seems all wrong and I am not having any problems with other external .SWC files that are presented to the user.
While running a Flash app, if I open a new or existing Facebook chat window, my Flash content disappears. I can continue to hear music playing from the app and when I close/minimize the Facebook chat window, my Flash content reappears. Is this a known issue? This is happening in Google Chrome 15 and Internet Explorer 9 on Windows 7 with Flash Player 11.
I checked this on my own Flash app as well as on another Flash app made by someone else and the same behaviour is occurring. It does not however hide non-Flash content. It seems to be a bug with Facebook chat and Flash content.
actually i have an image gallery in a seperate HTML page, I want to embed it into the main html page containing the menu, but even after using the code <param name="wmode" value="transparent"> or <param name="wmode" value="opaque"> the submenu is still hiding behind the flash. I also tried by changing z-index values, still didn't work.
View 2 RepliesI found this strange bug while coding, and wrote it in the simplest way to be sure it was true. Try opening a new AS3 FLA file, and write this code in the Actions Panel:
function someFunc(x1:String, x2:String, x3:Number=0):String
{
var my_result:String = "result";
return my_result;
}
someFunc("someVal1", "someVal2");
Calling someFunc will call a #1023 stack overflow error!The only way not to have it is to remove the "x3" Parameter. That'sso strange (and annoying, 'cause before realizing this was a bug i was getting crazy trying to find an error in my original code, which was much more complex).
I recently downloaded the Stack Overflow XML dump, and began playing around with the files. I plan to develop some visualisations of the data, for the community of course, but I am wondering does anybody have any suggestions on how they would like to view or indeed interact with this data? Social Network Analysis springs to mind, and maybe some Flex interactive charts...
View 3 RepliesI am wanting to take some xml content that I have in a text box and have it overflow into a second text box.
View 3 RepliesI have some problem with gradient fill in Flash Pro CS5 For example I want to fill some rectangle with reflected gradient. When I click on one of the buttons in ColorMixer Panel (Extend, Reflect, or Repeat) nothing is changed - Reflect and Repeat options seems to doesn't work.
View 6 RepliesIs there a way to detect text box overflow that has dynamic text?
I am looking to "scroll" the text left if the text overflows the box.
I will be looking to do this by having a MouseOver function that removes the first character of the string in intervals so that the whole text shifts left, and on MouseOut the original text will be re-inserted.
However to do this i need to detect if the text overflows the box as otherwise it will be pointless.
Is there any way to have a movieclip displayed only when there is text overflow in a dynamic text field? (This movieclip would be the scroller for the dynamic text field).
View 1 RepliesI'm binding two AutoCompleteModified objects to one another; meaning you type in one and it selects the correct object in the other. It works fine when I define it in MXML: However, a user can add a new row to a Grid and then I set up the binding and objects via actionscript and it gives an 'undefined' error:
ChangeWatcher line 427/wrapHandler.
var innerHBox:HBox = new HBox();
var dtc_acm:AutoCompleteModified = new AutoCompleteModified();
dtc_acm.dataProvider = data2;
dtc_acm.labelField = 'id';
var cp_acm:AutoCompleteModified = new AutoCompleteModified();
[Code] .....
If I only keep it 1-way binding then it works fine. But both throw this error. Is there something about not only doing it 2-way in actionscript, but adding components that aren't on the stage yet?
I am trying to create a sprite in Actionscript 3 using Flash Professional with fixed width and height that contains a list of TextFields that scrolls up and down. I want the highlighted textfield to be fixed focus with the text that goes out of the sprites bounds to be invisible. I am new to AS3 and tried to set the width and height of the sprite but it did not work. I would do this with CSS by having a with a fixed width and height and setting the overflow property to hidden.
View 2 RepliesI have imported movieclip on my stage. But this movieclip has objects which lay out of borders of this movieclip, so I've got part of objects on stage which must be invisible, but they are not invisible.
View 1 RepliesI'm having problems with addChild() from a class.I have a Ball class:
package {
import flash.display.Sprite;
import flash.display.MovieClip;
[code].....
I'm having a strange problem w/ stack overflow errors after instantiating a simple class only 4 times. The strange thing is that when I put a trace statement where the classes are instantiated, it clears up the problem.
[Code]...
how I would convert this vertical scrollbar into a horizontal scrollbar
heres the code:
onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);
[code]....
I'm having a strange problem w/ stack overflow errors after instantiating a simple class only 4 timesThe strange thing is that when I put a trace statement where the classes are instantiated, it clears up the problemHere's the classes:
Code:
package com.foundationflash.example.game.characters
{
[code]....
I am trying to add a MC using an external AS file.my AS file is in the same place as my FLA and SWF.I am trying to use the AS class file to do this but I keep getting class path as wrong.I am also getting this ERROR ON OUTPUT
OUTPUT ERROR
Error: Error #1023: Stack overflow occurred.
at mc_redBox()
at Wayward()
at mc_redBox()
[code]....
If I have two sibling canvases displayed next to each other, can I have a child Label (or any child component for that matter) in the left canvas overflow outside of that canvas and on top of the next?
Something like this:
______________ ______________
| ----------------------------- |
| | Label overflow test | |
| ----------------------------- |
| | | |
| | | |
|______________| |______________|
wondering if there's any way to make it so that a list I have will not scroll to show the horizontal end of the items. Very few items go long enough to require it and the horizontal scrollbar is distracting.
I don't see any property to control that, though, so not sure how to achieve this.
I have two display objects dispObj1, dispObj2. dispObj2.stage is null. (i.e. it is not added to stage anyhow)What should be the output of dispObj1.getBounds(dispObj2)?Is it well defined, or could it be arbitrary?Once I got x of boundingRectangle close to 6710785, which I guess is a symptom of an integer overflow somewhere.
But other times I got a reasonable value for x,y,width,height.
I'm having issues with a YouTube video breaking a jQuery slider when viewed on an Apple mobile device. The slider uses a set width & height window that uses the overflow:hidden property. It looks great in all browsers except for Apple devices where all of the slides are visible in a row as if the overflow:hidden property did not take effect.
Link to site: [URL]
Embedded video code:
[Code]....
I created an ajax jQuery featured content slider that will automatically navigate through each tab. Each tab has some basic html. The one I used is this one: [URL]. For some reason, when I embed a flash video in it, the flash video overflows the div. It looks fine in Chrome and Safari but not the latest version of Firefox (3.6) on the PC. Is it not handling overflow or z-indexes correctly?
View 1 RepliesI'm attempting to make a Textfield that is a fixed size and that replaces the overflow text that an ellipse (...). Has anyone found any clever ways to do this?
View 6 Replies