Flex :: Can Add Scrollbars To A SkinnableContainer Created Runtime?

May 18, 2011

I 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 Replies


Similar Posts:


ActionScript 3.0 :: Activate ScrollPane Scrollbars At Runtime?

Sep 9, 2009

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"; }

View 2 Replies

Flex :: Dynamically Bind Properties Of Components Created At Runtime?

May 27, 2007

I need to dynamically bind properties of components created at runtime. In this particular case please assume I need to use bindProperty. I don't quite understand why the following simplistic test is failing (see code). When I click the button, the label text does not change.

I realize that there are simpler ways to go about this particular example using traditional non-dynamic binding, but I need to understand it in terms of using bindProperty.

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="Tools.*" minWidth="684" minHeight="484" xmlns:ns2="*" creationComplete="Init();">

[code]....

View 1 Replies

Flex - Cannot Focus Children Of SkinnableContainer?

May 25, 2011

I have a custom component extends from skinnableContainer and only has two NumericSteppers.I explicitly set focus to my component like myComponent.setFocus(). It sets focus to first stepper which is correct, but when I press TAB to move focus to next stepper it moves focus to the next Component.

I set tabEnabled = true and tabChildren=true of the component, still no luck. How could I set focus to next stepper on pressing TAB?

View 1 Replies

Flex :: Group - SkinnableContainer As HGroup?

Nov 30, 2011

I have a SkinnableContainer class called: 'GroupNavCustomContainer' that uses a skinClass called 'GroupNavCustomSkin'. The GroupNavCustomSkin is the default one Flex creates for you: (The default skin class for a Spark SkinnableContainer container). Now, I have to add buttons to the GroupNavCustomContainer dynamically from outside the class which is not a problem. However, I can't seem to figure out out to make my skin behave as a HGroup so the buttons are spaced evenly. I tried: modifying the Group container to no avail:

[Code]....

View 1 Replies

Flex :: Drag And Drop An Object Across The SkinnableContainer

Apr 14, 2011

I am trying to drag and drop an object across the SkinnableContainer- am coming across a very strange issue

The drop occurs only at a few places- elsewhere it just shows the "X" sign and on dropping there, reverts to original position. I have used very standard commands... from function 2 to function 3, the call occurs very rarely as seen in trace statements- any guidance on why this happens?

I added the following code to SkinnableContainer: dragEnter="dragEnterHandler(event);" dragDrop="dragDropHandler(event);

(1):

private function mouseMoveHandler(event:MouseEvent):void
{
var dragInitiator:Image = Image(event.currentTarget);
var ds:DragSource = new DragSource();

[Code]....

View 1 Replies

Flex :: Custom SkinnableContainer Skin Border?

May 2, 2011

I have a SkinnableContainer that I would like to add a border to. I have already created a skin class that creates a 1 pixel border around all four sides of the container successfully, however, I would like the border to only be for the top and bottom of the container, not the sides (left, right). How can I achieve such a thing? I have attached my current skin class.

<?xml version="1.0" encoding="utf-8"?>
<!-- containerssparkmySkinsMyBorderSkin.mxml -->
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"

[code]....

View 1 Replies

Flex :: Wrong Element Order When Using SkinnableContainer And States

Aug 10, 2011

When I use a descendant of the SkinnableContainer (eg BorderContainer) which itself is included or excluded in a state, the child elements in the default state appears in incorrect order. This problem disappears when using a Group instead of BorderContainer, or when the container itself is not included or excluded in a state, or when states changes forth and back. What is going on here? Am I missing something or is this a bug in Flex?

[Code]...

View 1 Replies

Javascript :: Flex: Children Components Disapear When SkinnableContainer Is Skinned

Apr 10, 2012

I have a few Skinnable Containers that have children components, such as an image component or a button bar etc. It seems that when I add the skin, the Skinnable container looks great, but all my children components of that container seem to disappear.

Example:
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">

[Code]....

In the above example, the Skin works just fine, but the image contained within the SkinnableContainer will disappear.

View 1 Replies

Javascript - Change Scrollbars Into Image Scrollbars

Jan 5, 2004

How 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.

View 9 Replies

ActionScript 1/2 :: Removing Movieclips Created At Runtime?

Mar 9, 2009

I'm trying to remove movieclips created at run time using "createEmptyMovieClip" but I'm having a problem calling the "removeMovieClip" function. The difficulty seems to be that the string that I assign as the instance name of the new movie clip doesn't actually refer to the created clip when I try to call"removeMovieClip".

So the "removeMovieClip" function doesn't work if the target name is pulled from the array. My guess is that this has something to do with the values of the array being strings...and it does when I manually type Apple.removeMovieClip(); in because Apple is the movieclip object name. How do call the "removeMovieClip"function using a var as the target?

View 3 Replies

ActionScript 3.0 :: Clone A DisplayObject Created At Runtime?

May 14, 2010

I do not know how to copy a DisplayObject can anyone can help me on this one? I've downloaded an image from a website at runtime and putting it into a DisplayObject and now I'd like to create a completely separate copy of it so I do not have to make another request to download it again.

View 3 Replies

ActionScript 3.0 :: Add Textfields Created At Runtime Into Flash Combobox?

Aug 26, 2009

How can I add textfields created at runtime into flash combobox?

View 1 Replies

ActionScript 3.0 :: Depth Management Of Instances Created At Runtime?

Dec 16, 2009

im develloping an application for  create a layout of advertising newspaper. the user can set the number of pages, and create rectangles represanting the adverts, then drag them and place them into the the representation of the page.the display list is as follow:  on the main stage there is inputs textfields and a button that create the pages according to the number that the user typed.Then instances of the pages are created (MC Page in the lybrary exported for AS as Page and i have a class Page as well). Inside this clip Page i have my tools for create the rectangles and drag and place.....As well as the instances of my pages are created, button(1 for each Page)  are also created. NOTE that Page and button are in the main stage My probleme is that i want my button to change the  depth of is related page for it can be on top or alpha at 100% or the visibilty to true, but my button doesnt find the instance name of the pages at the export because they are not yet created.

View 9 Replies

Flash :: Resize The Drawings Objects Created In Runtime?

Jan 21, 2012

I am new in flash so this question can sound stupid

I am about to create my first drawing in the adobe flash of some creature.

The problem is CAN i resize it when the flash is running (in runtime) by the end user.

Example: I want to increase the height of the creature.

View 1 Replies

ActionScript 3.0 :: Getting Dynamically Created MovieClip Names During Runtime?

Nov 8, 2010

Is there a way to obtain a reference name of each item on the stage. A reference name that can be then used to manipulate the object? (and how would one do that if successful in obtaining the name?)

As an example that is not working for me, if I drag to stage two movie clips and dynamically include 5 additional movie clips at runtime, this [code]...

View 2 Replies

ActionScript 3.0 :: Accessing Movieclip Properties Which Are Created During Runtime?

Mar 9, 2011

how to access the properties of the movieclips which are created during runtime.

Ex:
var dotCount:uint = 0;
for(var i:uint = 0; i<=10;i++)
{
var circle:MovieClip = new MovieClip();

[Code]....

How can I access a property (say .alpha or any other property) of "circle6"??

View 2 Replies

Flex :: Choose Which Component Gets Scrollbars In Nested Flex Containers?

Aug 19, 2011

I have several nested VBoxes in flex, and I'm aiming for one of them to get scrollbars if the total content is larger than the window height. However, when I grow the container, it doesn't get scrollbars at all (vertical scroll policy is AUTO), and the outer container stretches past the bottom of the screen, causing the entire app to get scrollbars. So it looks something like this:

[Code]...

View 2 Replies

ActionScript 3.0 :: Embed Fonts In Dynamic TLF Textfied Which Is Created During Runtime?

Jul 15, 2011

I have two TLF textfileds in my application. The first TLF textfield is on the stage and the second one is created dynamically during runtime. Now I am able to embed the fonts in the first TLF textfield by using "use device fonts" since it is on stage. The flash player the rendering the data absolutely fine. I want to get the same look and feel for the second TLF textfield which is created dynamically during runtime. I tried so many ways.

Here is the code I am trying.
 
[Code]....

View 7 Replies

Flash - What's The Definition Name For Fonts Loaded At Runtime Created With Fontswf

Apr 11, 2011

I ran into the 'fontswf' utility to embed TTF fonts into SWF and I am struggling to load them at runtime from my app. All the examples I find online refer to loading the font via [Embed] but I am actually loading them with a flash.display.Loader and from what I gather, once the Loader.contentLoaderInfo fires an Event.INIT I need to register the font, like so:

public function handleLoaderComplete( event:Event ):void {
var FontClass:Class = event.target.applicationDomain.getDefinition( fontName );
Font.registerFont( FontClass );
}

The problem is I don't know what to pass in as fontName. I am generating my SWF through:

$ fontswf -a belshaw -o belshaw.swf belshaw.ttf

But when I try to call getDefinition( 'belshaw' ), I get an error saying 'Variable belshaw is not defined'. Any suggestions on how to accomplish this?The alternative is to generate my on SWF files through templating an .as file and compiling them, but I would rather use a built in tool like fontswf if it's already there.

View 2 Replies

Flex :: Force The Browser To Put Up Scrollbars?

Jan 28, 2011

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].....

View 1 Replies

Actionscript 3 :: FLEX - Scrollbars And Zooming?

Jan 24, 2012

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].....

View 1 Replies

ActionScript 2.0 :: Apply Actions To An Attached/created Movie Clip At Runtime?

Sep 12, 2004

apply actions to an attached/created movie clip at runtime? I.E. You use attachMovieClip to attach a clip, and then you add a startDrag/stopDrag system to it dynamically.

View 3 Replies

ActionScript 2.0 :: Way To Apply Actions To Attached / Created Movie Clip At Runtime?

Sep 12, 2004

Does anyone know a way to apply actions to an attached/created movie clip at runtime? I.E. You use attachMovieClip to attach a clip, and then you add a startDrag/stopDrag system to it dynamically. Is it possible?

View 3 Replies

Flex :: Get An Imagesnapshot Of Entire Component Without Scrollbars?

Mar 15, 2010

I 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.

View 1 Replies

Flex :: Dealing With Automatic Adding Scrollbars?

Sep 3, 2010

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.

View 1 Replies

Flex :: What Is The Actual Height Of A Container Without Scrollbars

Jun 29, 2011

what 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 Replies

Flex :: Make Scrollbars In List Invisible?

Sep 1, 2011

I'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]......

View 1 Replies

Flex :: CreatePopUp Make Everything Modal Except Scrollbars?

Sep 28, 2011

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.

View 1 Replies

Flash :: FLEX - Disable Mousescroll For Scrollbars?

Jan 12, 2012

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 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved