Flash scrollPane component
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.
Similar Messages
-
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. -
Flash 8 component not working in flash cs3
Hi, I have a flash 8 component (well, it was written for
flash 8 but it claims to be compatible with flash 7+).... which I
am trying to get to show up in the components panel in Flash CS3
trial version. I have the flash CS3 extension manager, it shows up
in there, but it doesn't show up in my components window in flash
cs3. What do I need to do to get the flash 8 component to show up
in flash CS3??Hi,
When you open a new file in Flash CS3, you got the option to
choose either AS2 file or AS3 file, the components are different on
each one. -
Create Flash Professional component in Flash Builder 4.7
Hello,
I would like to make a Flash Professional Component in Flash Builder.
This is a lot easier for code hinting and you don't have to use a FLA file.
Also you don't have to right click the component in the library and "export component SWC"
The ONLY difference i've seen in the swc file files between a Flash Professional Component and a Actionscript Library Project (created in Flash Builder), is 3 lines of code in the catalog.xml file.
<components>
<component className="centomedia.components:CvPlayerComponent" name="CvPlayerComponent" icon="CvPlayerComponent_IconFile.png" />
</components>
Is this in any way possible?
Thanks for the help!Come on, someone must have an answer? no?
even if the answer is, impossible -
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 muchmyscroll.border_mc._visible = false;
-
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 ?
-
Hi,
There is great and easy way to create flash based component
in flash cs3 using action script 3.0.
I am going to make a simple My button component which will
behave likely same as flash native button component.
You can modify this according your requirement this is just
you give an idea about how we can go for creating a component in
flash cs3.
Follow these steps…
1. Create a fla file and save this file with any name
2. Create a movieClip and draw a rectangle shape on first
frame.
3. Right click on movieclip in library, select linkage
4. Provide class name in text field area [MyButton] (you can
use any name here which should matched with your class)
5. Click Ok button
6. Write class [MyButton]
(you can copy and use this)
* author @ sanjeev rajput
* [email protected]
* A flash action script 3.0 based component without extending
UIComponent class
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.events.MouseEvent;
import flash.events.Event;
import fl.motion.Color;
public class MyButton extends Sprite{
private var _tf:TextField;
private var _Label:String="My Button";
private var _bgColor:uint=0xCCCCCC;
private var _rollOverColor:uint=0xFFCCCC;
private var _borderColor:uint=0x000000;
private var _borderThickness:int=1;
private var _width:Number = 100;
private var _height:Number =100;
private var _background:Sprite;
public function MyButton() {
init();
createChildren();
initEventListeners();
draw();
//-------------property section [Start]
[Inspectable]
public function set Label(lbl:String){
_Label=lbl;
draw();
public function get Label(){
return _Label
[Inspectable]
public function set bgColor(color:uint):void{
_bgColor=color;
draw();
[Inspectable]
public function set borderColor(color:uint):void{
_borderColor=color;
draw();
[Inspectable]
public function set borderThickness(thickness:int):void{
_borderThickness=thickness;
[Inspectable]
public function set rollOverColor(color:uint):void{
_rollOverColor=color;
//-------------property section [End]
private function init():void {
trace('welcome');
_width = width;
_height = height;
scaleX = 1;
scaleY = 1;
removeChildAt(0);
private function initEventListeners():void{
addEventListener(MouseEvent.MOUSE_OVER, eventHandler);
addEventListener(MouseEvent.MOUSE_OUT, eventHandler);
private function eventHandler(event:Event):void{
if(event.type == MouseEvent.MOUSE_OVER){
toggleColor(_rollOverColor);
if(event.type == MouseEvent.MOUSE_OUT){
toggleColor(_bgColor)
private function createChildren():void {
_background = new Sprite();
_tf = new TextField();
_tf.autoSize = "center";
_tf.selectable=false;
addChild(_background);
addChild(_tf);
protected function draw():void {
toggleColor(_bgColor);
_tf.text = _Label;
_tf.x = Math.floor((_width - _tf.width)/2);
_tf.y = Math.floor((_height - _tf.height)/2);
//width = _tf.width;
private function toggleColor(color:uint):void{
_background.graphics.clear();
_background.graphics.beginFill(color, 1);
_background.graphics.lineStyle(_borderThickness,
_borderColor, 1);
_background.graphics.drawRoundRect(0, 0, _width, _height,
10, 10);
_background.graphics.endFill();
public function setSize(w:Number, h:Number):void {
_width = w;
_height = h;
draw();
7. Now right click again on your movieclip in library and
select component definition.
8. In class name text field provide same class name
[MyButton]
9. Click on ok button
10. Right click again on movieClip in library and select
Export SWC file.
11. Same your exported SWC file in (For window only)
[c:\Documents and Settings\$user\Local Settings\Application
Data\Adobe\Flash CS3\en\Configuration\Commands\
12. Now just open another new flash file open component
panel/window reload component you will your component in component
panel with MyButton name.
13. Drag your custom component on stage provide inputs form
property window and text it.
Enjoy!Lt.CYX[UGA] wrote:
> if anyone is using Flash CS3, try creating a flash
movie, using the FLVPlayer
> component to play an flv video and make it an executable
projector. Run it
> fullscreen and watch how the screen just stays black
when the video should
> appear. If you stay windowed, it works fine.
>
>
steps to reproduce:
> 1. create flash movie
> 2. put an FLVPlayer component on a frame that's not the
first (for testing
> purposes)
> 3. before the projector reaches the frame with the
FLVPlayer component, change
> it to fullscreen (by script or CTRL+F)
>
>
observed behaviour:
> not only the video doesn't play, but the whole screen is
black until the
> player goes back to windowed mode
>
>
expected behaviour:
> video should play
>
>
remarks:
> if you skip step 3, video plays correctly
>
Works just fine.
Made new movie, on frame 2 places Full screen action, on
frame 5 placed video component
and stop(); action attached to frame. Projector pops large
following by video playing
just fine.
I tried variety, first frame, many frames, all on one. Not
able to reproduce your problem.
Works on first go.
Best Regards
Urami
Beauty is in the eye of the beer holder...
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
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. -
Export Flash CS5 component to Flash Builder
Hello there .
I'm having some troubles exporting a movieClip made in Flash CS5 Professionnal to Flash Builder.
I created a simple movieclip name test : rectangle and textinput inside name "title", then command ->convert symbol for Flex. Everything looks good. I publish the .swc and import it in Flash Builder.
Everything is good when I just add the MovieClip :
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:local="*">
<local:test />
</s:Application>
but when I try to set a value to the title <local:test title="Title" />, I get the following error : (sorry it's in french =O)
Description Resource Path Location Type
Initialiseur pour 'test' : les valeurs du type flash.text.TextField ne peuvent pas être représentées dans le texte. TestComponent.mxml /TestComponent/src line 5 Erreur Flex
Google translate:
Description Resource Path Location Type
Initializer for 'test': values of type flash.text.TextField can not be represented in the text.TestComponent.mxml / TestComponent / src line 5 Error Flex
There are a lot of tutorial showing how to integrate Flash Builder & Flash Cs5 but not so much tutorial about how you can import Flash CS5 component into Flash builder :/
Hope you can help meNevermind stupid question
title points on TextField and not on .text property... of course -.- -
Problem: Custom Flash Professional Component
Hi,
I just installed a copy of Flash Builder 4.5, and am attempting to create a custom "flash professional component" in the Design mode of an mxml project. The documentations mentioned that in order to create this component, I have to press on the 'Create in Flash Professional' button in the properties window.
Here's the problem: clicking on the button brings up a window to name the component, then clicking 'create' brings up Flash Pro, but that's about it. I was told an edit window will show up in Flash Pro, but it doesn't happen. Flash Pro just initializes into the start page and does nothing else.
Am I doing anything wrong? Please help, thanks in advance!As far as I know, it is only Windows or Mac
MINIMUM System requirements for Cloud Programs... scroll down and check each program
-http://helpx.adobe.com/creative-cloud/system-requirements.html -
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 -
I have created a flash window component that pops up, every
thing works ( it moves, it displays the content and closes) but it
disables everything else. is there anyway i can enable the entire
movie aswell as the window?
JakBTW, this also happened with the List component, and in
v10.1.0 aswell.
If you're interested in more about this bug, bowl on over to
http://www.experts-exchange.com/Web_Development/Software/Macromedia_Director_Video_Softwa/ Q_23580077.html#a22076034
As for a solution...
Turns out that the factor that makes this happen is if
backgroundAnimation is off.
Turn it on, and the issue disappears.
I did this in the projectorName.ini file, with the line:
[Settings]
BackgroundAnimation=1
or, if you're creating a projector, and not using a .ini
file, by checking Background Animation in the publishing settings
dialog. -
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). -
Hi all,
I'm now working on a flash website, i need to play a youtube video inside my flash movie.
In this Flash file i have a FLVPlayback component and i tried to link the youtube video into this but did'nt work.
Please help me...You should find what you need here: http://code.google.com/apis/youtube/flash_api_reference.html
Maybe you are looking for
-
BPEL web service is taking long time during first invoke
Hello All, I have a BPEL process where I am calling a webservice which returns invoices. The issue is during first invoke of webservice it is taking 3 minutes to return the data. After that it returned the data for further invokes in 5 – 10 seconds o
-
Spool to PDF - Problems with downloading PDF file when converting with job
Hi all! I've got a problem. I've got a program that writes a smartform into the spool. After that, I am using the function modules RSTS_GET_ATTRIBUTES and CONVERT_OTFSPOOLJOB_2_PDF to convert it into PDF. I retrieve a internal table with the binary c
-
Weird: cannot process atom feed, because server return 200
I submitted an atom feed to newsstand, and the second day I found this in my inbox. Does anyone know what is going on? Server returns 200 should mean "OK"-
-
PowerMac G4 533 Dead - No Start-Up
My trusty dual-processor 533 PowerMac desktop (running OSX Tiger) died while asleep. It won't start from the power button on the front of the desktop or from the Apple studio display. No light comes on, no chime, nothing. The machine is stone cold de
-
RPM_FIN02 taking too long
Hi, RPM_FIN02 is taking too long to execute it actually takes about 10 hours running on the background, How can we resolve this issue. Regards, Siyabonga