ScrollPane component's border
Hi guys,
I am having a problem with scrollPane component, i want to
remove it's border entirely but i can't succeed. I tried with
myscrollpane.setStyle("borderStyle", "none");
which removes border but only until I scroll or click
anywhere inside scrollPane and then that green highligh border
appears. I search everywhere but i just can't find solution for
removing this
Can anyone help me on this please?
thank you very much
myscroll.border_mc._visible = false;
Similar Messages
-
Display Arabic text in ScrollPane Component ?
hello,
i have RSS reader it's work fine with english but the problem
is arabic text don't display in RSS reader just english and help
about to display arabic text in ScrollPane component that component
reader info from xml file and display it ?
Regard,
Crimsonany idea ?
-
Controlling content height in the scrollpane component
I'm using the scrollpane component to display content, within
the content movie clips, are swf animations that are being imported
using targets. Some of the animation's parts go far beyond the
height of the stage, causing the scrollpane to adjust for the
height of the imported swf, as opposed to the height of the content
movie clip. How can I fix this?The content clip's size is determined dynamically by what
it's content is at any given time. If you change the content, there
is every reason to expect the content clip's size to change as
well.
If you do change the content of the scrollpane, you need to
redraw (Flash 7+) or refresh (Flash 6) the pane after the new
content is loaded. -
ScrollPane component smooth scrolling
Hello. I just started working with AS 3.0 and I'm yet
learning basics. I searched google and couldnt find the answer to
my question; How to make scrolling on ScrollPane component smooth
with AS 3.0? Please help.Hello. I just started working with AS 3.0 and I'm yet
learning basics. I searched google and couldnt find the answer to
my question; How to make scrolling on ScrollPane component smooth
with AS 3.0? Please help. -
ScrollPane Component - content alignment
Hi everyone,
I'm using the ScrollPane component to scroll a movie clip. I
understand that the ScrollPane aligns the movie from the top left
of the centre point. Is there anyway to change where the ScrollPane
aligns the movie?
The problem is, my movie clip is vertically long and I have
run out of space at the bottom of the actual document and so I need
to move the entire content of the movie clip vertically; but this
obviously means the ScrollPane currently displayes the moving clip
from about a third of the way down.
Thanks kindly for your help.
Lyletry hPosition & vPosition properties, e.g:
myscrollpane.hPosition=50;
myscrollpane.vPosition=50; -
Control over the scrollPane component.
Gidday
I've got some moveieClips in container in a scrollpane component.
The movieClips are draggable.
I'd like to add extra functionality where if an item is dragged and touches the bottom of the scrollpane, it automatically scrolls up, and the reverse if you touch the top with a dragged object.
I tried the scrollDrag, but I only want it to scroll once the dragged item touches the bottom or top.
So I wrote this and put it in the drag function:
if ((this.hitTestObject(MovieClip(this.root).rowsHolderTopLine)) && MovieClip(this.root).rowsHolder.y < 200)
trace(MovieClip(this.root).rowsHolder.y);
MovieClip(this.root).rowsHolder.y = MovieClip(this.root).rowsHolder.y+10;
this.y = this.y-10;
It needs a bit of work, and I think I can get it working, but the one thing I'm stumped on is how to make the scrollbar move too. Is there a way to communicate with the component using code (I created this component from the component inspector)?
Thanks
ShaunOK - I think I've got it:
MovieClip(this.root).playlistScrollPane.verticalScrollPosition = MovieClip(this.root).playlistScrollPane.verticalScrollPosition-10
this.y = this.y-10;
Needs a bit of work, but it's on the right track.
Cheers
Shaun -
Hello All,
I have a scrollPane component set up with a long form in it. When a user gets to the bottom he can submit the form, the button then navigates him away from the scrollPane. If the user comes back to the scrollPane, the content in the scrollPane is scrolled all the way to the bottom where they clicked away. How do I reset the content so if they return to the form, the top of the form is visible in the scrollPane instead of the bottom of the form?Check out the verticalScrollPosition property of the ScrollPane class.
-
Scrollpane gets green border when loaded
Hey i need help on this one..
ive created some files for you to watch.. its easier than
start explaining too much..
its very simple.. when the movie containing the scrollPane
compoenent gets loaded into the "main" swf.. it suddently gets this
green border on usage.. i want to get rid of it..for good!
here the component in its own movie:
http://www.jotbot.dk/stuff/flashStuff/bug/loadMe.html
Here the same file has been loaded into another movie: (mark
that when you use the scrollPane it gets a green border)
http://www.jotbot.dk/stuff/flashStuff/bug/main.html
source:
http://www.jotbot.dk/stuff/flashStuff/bug/main.fla
http://www.jotbot.dk/stuff/flashStuff/bug/loadMe.fla
any help would be very much apreciated.. i promise to post if
i find out elsewehre.
myScrollPane._focusrect = false; does not seem to solve my
problem.the last solution you posted worked.. i HAD tried
this._lockroot = true; in the loadMe.swf.. but if the component is
loaded before frame 1..i guess it makes some kind of sense =P
thanks alot -
Is there a way to unload content from a scrollpane componant?
Hello,
There's is probably an easy answer to this but i'm new to web design and probably took the hard road with using Flash CS4.
My problem is that i have text imported from Photoshop as a movieclip loading into a scrollpane which works the way i want it. However when i click another button which loads content into a UIlLoader componant the text in the scrollpane stays onscreen. How do i get the scrollpane content to unload? The content needs to display in the same space so scrollpane and UILoader are basically ontop of eachother.
Could someone provide a solution?
Many thanksI can't find anything that unloads, though maybe you could load in an empty movieclip instead trying to unload the current one.
Or you could make the scrollpane invisible by setting its visible property to false if that's an option.
Another option would be to use the removeChildAt() method and target the numChildren-1 value of the scrollpane (otherwise you start removing pieces of the scrollpane). -
I need help regarding ScrollPane tool in Flash CS4. As i need to display a image in it. I have a "zoom" effect set up to where when the user pushes
the + button,the x and y scale is increased
But when I does so Scroll bar doesnot get resized automatically.... nd thus due to increased size only half of the image remain visible. Plz help me out..I tried using validateNow() method but it still dint solved my problem.....
aSp.setSize(300, 200);
inc_btn.addEventListener(MouseEvent.CLICK,zoom);
aSp.source = "IMG_0640.jpg";
function zoom(event:MouseEvent)
aSp.content.scaleX+=2;
aSp.content.scaleY+=2;
aSp.validateNow()
Can u plz suggest where I m getting it wrong... -
Actionscript to control scrollPane component
I am trying to control a scrollpane "my_sp" with a couple of
buttons "down_bt" and "up_bt"
I am pretty new to coding. Anyone see any errors. Thanks for
the help.
my_sp.setStyle("borderStyle", "none");
my_sp.setSize(300, 300);
down_bt.onPress = function() {my_sp.scroll += 1;};
up_bt.onPress = function() {my_sp.scroll -= 1;};
stop();I am trying to control a scrollpane "my_sp" with a couple of
buttons "down_bt" and "up_bt"
I am pretty new to coding. Anyone see any errors. Thanks for
the help.
my_sp.setStyle("borderStyle", "none");
my_sp.setSize(300, 300);
down_bt.onPress = function() {my_sp.scroll += 1;};
up_bt.onPress = function() {my_sp.scroll -= 1;};
stop(); -
Should I build my own component, or is there a solution to my built-in ScrollPane woes?
"I am desperate. I am going insane. Please, please help me."
That is how my last post ended. And no one replied, which I
suppose means that there is no solution to the problem I have with
the ScrollPane component in flash 8.
I just want to put both of the scroll arrows of the
ScrollPane's scroll bar together on the same end of the scroll
track, instead of at opposite ends of the track.
I have customized everything else about the ScrollPane with
HaloThemes and setStyle, etc, but cannot seem to re-position the
arrows.
So, I am wondering if I should just make my own scroll pane.
I have been cautioned against using too much actionscript in flash,
though, so I am wary. Anyone know of a reliable method for making a
scroll pane for images with scroll arrows that can be positioned
together?
Or should I stick it out with the built-in ScrollPane?No, what you ask is not possible with the standard
components.
I don't understand why you would be cautioned against using
"too much actionscript" in Flash....
Everything I do is built entirely with AS these days. I even
draw out all of my elements at runtime, and this makes my
interfaces faster, both in loading and in processing. So there is
nothing wrong with using a ton of AS in Flash. However, if you do
not know AS very well, these things are fairly difficult to do.
If you do know AS fairly well, then go ahead and make your
own Scroll Pane. Best-case scenario, you make a component that fits
your needs, and is much smaller (file-size) than the ScrollPane.
The built-in components tend to be a bit bloated. Worst-case
scenario: Over too much time, you make something that is bigger
than the ScrollPane component, and pretty much does the job you
want, but is a bit buggy, and you have quite a few headaches on the
way.
Personally, I do not understand why Adobe hasn't given us the
ability to rearrange the arrows on the UIScrollBar, or even simply
turn the track off completely. These seem like simple things that
should be easy for Adobe to add. I really need to compile a list of
things to submit through the wish list page.
So, you can stick with the ScrollPane, have it easy and done,
but with a sub-ideal scrollbar. Or you can work at building your
own ScrollPane component. If you build your own, you may spend a
bit of time in development, but you will be able to get your
scroller to display the way you want. -
Please help with the action script code to change the Color
default on the Scroll Pane from the Componets window. Need to
change it to a different color, I can only find code in CSS for
HTML scroll bars but not for FLASH.
Thanks for your help
DeniseThe scrollPane has several styles you can set using
setStyle("property", "value")
the styles you can set are themeColor, border styles,
scrollTrackColor, symbolColor, symbolDisabledColor. The first two
you pass strings as the value and the last 3 you pass the
hexadecimal value of the color you would like to set it to.
themeColor accepts "haloGreen", "haloBlue", "haloOrange" as
possible values with a default of "haloGreen"
so to set the themeColor to orange you would do something
like:
myScrollPane_mc.setStyle("themeColor", "haloOrange");
Search for customizing the scrollpane component in the flash
help for more information.
mark C -
How to get rid of a thin gray border of SkinnableContainer in design mode
I'm learning skinning techniques for flex 4 and spark. For an example project I've created custom component derived from SkinnableContainer. It is simple container with surrounding frame and a title.
Everything works just fine when I run test project with a component on it. But at design time my component's border is not visible - it is covered with a thin gray border.
Disadvantages of this behavior is that developer using the component can not see some changes made at design time (e.g. border color).
I've searched through SkinnableContainer's code, but I couldn't find if the thin gray border is drawn by this class.
see illustration
My component's code:
package dtg.components
import dtg.skins.BorderContainerWithTitleSkin;
import spark.components.SkinnableContainer;
public class BorderContainerWithTitle extends SkinnableContainer
[SkinPart]
public var title:Label;
private var _text:String;
public function BorderContainerWithTitle()
super();
setStyle("skinClass", dtg.skins.BorderContainerWithTitleSkin);
[Inspectable(category="Common",name="Group_Title",type="String",defaultValue="Data Group")]
public function get groupTitle():String
return _text;
public function set groupTitle(text:String):void
if (_text != text)
_text = text;
if (title != null)
title.text = _text;
[Bindable]
[Inspectable(category="Common", type="Color",format="Color")]
public var lineColor:uint;
[Bindable]
[Inspectable(category="Common", type="Color",format="Color")]
public var textColor:uint;
override protected function partAdded(partName:String, instance:Object):void
super.partAdded(partName, instance);
if (partName == "title")
(instance as Label).text = _text;
override protected function partRemoved(partName:String, instance:Object):void
super.partRemoved(partName, instance);
and skin:
<?xml version="1.0" encoding="utf-8"?>
<!--- The default skin class for a Spark SkinnableContainer container.
@see spark.components.SkinnableContainer
@langversion 3.0
@playerversion Flash 10
@playerversion AIR 1.5
@productversion Flex 4
-->
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5"
creationComplete="skin1_creationCompleteHandler(event)" xmlns:local="*" xmlns:components="dtg.components.*"
>
<fx:Metadata>[HostComponent("dtg.components.BorderContainerWithTitle")]</fx:Metadata>
<fx:Script fb:purpose="styling">
<![CDATA[
import mx.states.OverrideBase;
* @private
/* Define the skin elements that should not be colorized. */
static private const exclusions:Array = ["background", "title"];
* @private
override public function get colorizeExclusions():Array {return exclusions;}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
// Push backgroundColor and backgroundAlpha directly.
// Handle undefined backgroundColor by hiding the background object.
if (isNaN(getStyle("backgroundColor")))
background.visible = false;
else
background.visible = true;
background.left = background.top = background.right = background.bottom = 1;
bgFill.color = getStyle("backgroundColor");
bgFill.alpha = getStyle("backgroundAlpha");
super.updateDisplayList(unscaledWidth, unscaledHeight);
]]>
</fx:Script>
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
[Bindable]
private var _bMargin:uint;
[Bindable]
private var _titleWidth:uint;
protected function skin1_creationCompleteHandler(event:FlexEvent):void
_titleWidth = title.width;
_bMargin = title.height/2;
title.addEventListener(Event.CHANGE, onTitleChange);
protected function updateLayout():void
var tlm:TextLineMetrics = title.measureText(title.text);
_titleWidth = tlm.width;
_bMargin = (tlm.ascent)/2;
protected function onTitleChange(e:Event):void
updateLayout();
]]>
</fx:Script>
<fx:Declarations>
<s:SolidColorStroke id="lineStroke" weight="1" color="{hostComponent.lineColor}" alpha="1.0"/>
</fx:Declarations>
<s:states>
<s:State name="normal"/>
<s:State name="disabled" />
</s:states>
<!--- Defines the appearance of the SkinnableContainer class's background. -->
<s:Rect id="background" left="1" right="1" top="1" bottom="1">
<s:fill>
<!--- @private -->
<s:SolidColor id="bgFill"/>
</s:fill>
</s:Rect>
<!--
Note: setting the minimum size to 0 here so that changes to the host component's
size will not be thwarted by this skin part's minimum size. This is a compromise,
more about it here: http://bugs.adobe.com/jira/browse/SDK-21143
-->
<!--- @copy spark.components.SkinnableContainer#contentGroup -->
<s:Group id="contentGroup" left="1" right="1" top="1" bottom="1" minWidth="0" minHeight="0">
</s:Group>
<s:Label id="title"
left="{_bMargin*2}"
top="{-_bMargin}"
color="{hostComponent.textColor}"
/>
<!--Top left line-->
<s:Line xFrom="0" yFrom="0" xTo="{_bMargin}" yTo="0" stroke="{lineStroke}"/>
<!--Top rigth line-->
<s:Line xFrom="{_titleWidth + _bMargin*3}" yFrom="0" xTo="{width-1}" yTo="0" stroke="{lineStroke}"/>
<!--Rigth line-->
<s:Line xFrom="{width-1}" yFrom="0" xTo="{width-1}" yTo="{height-1}" stroke="{lineStroke}"/>
<!--Bottom line-->
<s:Line xFrom="{width-1}" yFrom="{height-1}" xTo="0" yTo="{height-1}" stroke="{lineStroke}"/>
<!--Left line-->
<s:Line xFrom="0" yFrom="{height-1}" xTo="0" yTo="0" stroke="{lineStroke}"/>
</s:SparkSkin>This appears to be a Flex question. Please try the Flex forums here
http://forums.adobe.com/community/flex/flex_general_discussion. -
I have a scrollpane component with a movie clip of some
thumbnail images.
I just want to have its scrollbar arrows together on one end
of the track (or together ANYwhere) instead of having them at
opposite ends of the scroll track.
I have been able to customize the appearance of the
scrollpane and its scrollbar using the HaloTheme library, but that
approach has so far been of no use in getting the arrows together.
I cannot tell you how deeply any help will be appreciated. I
will probably sob and mewl with gratitude, the way I imagine
someone lost in a vast rain forest for many weeks mewls when
rescued. I am desperate. I am going insane. Please, please help me.Cherrylanenc are you on a managed network? If not then I would recommend reviewing the steps listed in Sign in, activation, or connection errors | CC, CS6, CS5.5 - http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html.
Maybe you are looking for
-
I am facing a problem with smartform. I am creating a smartform for good issue This is the smartform Z_SMB40_MMGI1_L and this is the print program Z_SMB40_M07DR For ME application i have assigned the output type wlb1 and the above said form in nace.
-
Help! Audio is working but video is not!
Hi. I've recently started using iChat AV 3.1.8 (v445) and I'm on a white macbook - Mac OS X version 10.4.11 processor: 2 GHz intel Core 2 duo Memory: 1 GB 667 MHz DDR2 SDRAM My friend and I have been trying to video chat on ichat we are both using ma
-
Error in Gateway service after transport
Hello All, Currently I am facing issues in the quality gateway server with the Services. The services are running fine in the development server , but when it is transported in the quality server and trying to run the service it is giving an error M
-
Adding text as hidden layer in PDF's
Hi, I have some hand written documents (Old genealogy letters) which I would like to be made searchable. Can I scan the documents as PDF's, then manually word process the documents and add this text as a hidden text layer? Thanks Doctor Keo
-
in http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_8004.htm The view must not contain any of the following constructs: A subquery in a SELECT list. but this works "UPDATE (SELECT employee_id, salary, (SELECT 'sub' FROM DUAL) sub FROM