Flex :: Two Sibling Canvas - Label Overflow Test

Oct 27, 2010

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 | |
| ----------------------------- |
| | | |
| | | |
|______________| |______________|

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Make Part Of The Canvas Label Text As Unerderlined In Flex?

Oct 19, 2011

I need to underline particular character of the tab header(like Account) A has to be underlined. We are using tab navigator and canvas container controls to create the tabs in our screen( Canvas label has to be underlined).

View 1 Replies

Flash :: ArrayCollection Of Data For Label Test In Flex?

Jan 26, 2011

My label text is not showing up after binding the arraycollection to the label text. Could I see an example of how to properly bind an arraycollection to a labels text?

View 2 Replies

Flex :: Dynamically Add Different Items To ThumbContent Canvas And Use Scroller Canvas To Scroll

Jun 5, 2009

I have the following code in my flex project.

[Code]...

I want to dynamically add different items to thumbContent canvas and use scroller canvas to scroll. I see than the height of thumbContent bigger than 7977 it truncate from scrolling. So - I see the scroller canvas with empty space on top. Then I scroll to bottom - I see the content of thumbContent and at bottom scrolling I see empty space too.

View 1 Replies

Flex :: Skin A Canvas With Image And Scale It To Size Of Canvas In It?

Apr 9, 2011

I'm trying to skin a canvas with an image (which is essentially a custom border for the canvas). I've been trying the backgroundImage style as well as the borderSkin style. I can't get the image to scale to the full size of the canvas though. I was wondering what the best way to go about this is.[code]...

View 2 Replies

Flex :: How To Select Sibling Of MXML Tag With AS

Jun 17, 2010

I'm trying to get the sibling of an mxml tag similar to the way siblings are selected in javascript. Is this possible in Actionscript? For example, when I click the TextArea with id textarea1, I need it to tell me that the sibling has an id of rect1 so I can do further processing to it.

<s:Group>
<s:TextArea id="textarea1" click="getSibling(event)" />
<s:Rect id="rect1" />
</s:Group>

View 3 Replies

Flex :: Can Overlapping Sibling Prevent Any Event?

Oct 11, 2009

Below is the code for a simple Flex actionscript project. A sprite is partially covering a hyperlink. What's happening is that when you hover over the sprite, if you're also hovering over the hyperlink, the hyperlink is activated. I want to prevent that. I want the hyperlink to be activated only when the mouse hovers over it -- but not when the mouse hovers over the sprite which covers it.

package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TextEvent;
import flash.text.Font;
[Code] .....

View 3 Replies

Flex :: ParentDomain Of Sibling ApplicationDomains Not Equal?

Dec 17, 2010

How can same be false in the following snippet?

var child1:ApplicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
var child2:ApplicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
var same:Boolean = (child1.parentDomain === child2.parentDomain);
trace(same);

View 1 Replies

Actionscript 3 :: Flex Repeater - Toggle Sibling Component Visibility On Checkbox Change

Jun 2, 2010

I have a Flex repeater that has a complex item template. When a checkbox is clicked, I need to toggle the visibility of a sibling button contained in the same repeater template. Since I can't add binding expressions to event handlers, I can't pass in the repeater item's index.

How can I access sibling components inside a repeater item?

View 1 Replies

ActionScript 3.0 :: Referencing The Root Frame Label In A Switch Test Expression?

Sep 30, 2009

How do I reference the root frame label in a function for event dispatching using a switch statement.

SUMMARY: This is simple, but as I've stepped away from ActionScript for too long, I'm having trouble figuring out the proper test expression to reference the root timeline frame label (e.g., switch(the root frame label)).

Nothing i've tried works:
switch(this.label)://obviously this would look at the button timeline switch(event.root.label)://player says there is no "root" property ...

STRUCTURE: I have five MCs, one on each of five frames. I have a forward button and a back button. I created a switch statement to specify different actions, based on the root frame label. Frame labels are f1, f2, f3, f4, fend.

THE RELEVANT CODE on Frame one ("f1"):

Code:
stop();
nexter.addEventListener(MouseEvent.CLICK, onNexter);
nexter.buttonMode = true;

[Code]...

View 3 Replies

Flex :: Two Way Data Binding In AS Causes Stack Overflow

Jul 21, 2010

I'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?

View 2 Replies

Flex :: Hide The Horizontal Overflow In S:List Component?

Mar 15, 2011

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.

View 1 Replies

Flex :: Test Spark Components In FlexUnits Visual Test Environment

Sep 17, 2011

I'm trying to test a custom Flex 4 skinnable component, using the FlexUnit UIImpersonator class. If I run my tests from a FlashBuilder Spark only project everything works fine. If I try to test from a project with the mx component set on the classpath I get a "getElementIndex not available in non Flex 4 projects" error.Can I unit test spark components in FlexUnits visual test environment while still having the mx component set on the classpath?

UIImpersonator delegates it's method calls to a "testEnvironment".The implementation used for this "testEnvironment" is decided by the VisualTest EnvironmentBuilder class and the FlexEnvironmentBuilder class. If the FlexEnvironmentBuilder class can find the "mx.core.Container" on the classpath it returns a MX environment, else a Spark environment. Only the spark environment has valid implementations for Flex 4 relevant method calls on the UIImpersonator - like the addElement method.

View 1 Replies

Flex :: Access The Test Name Of A FlexUnit 4 Test?

Jan 21, 2010

In FlexUnit 1 it is possible to access the name of the currently-running test using the TestCase.getName() method because all tests subclass TestCase. In FlexUnit 4, however, there's no base class for tests; the tests are identified by annotations. So, how can I replicate the getName() functionality in FlexUnit 4?

View 2 Replies

Test The _root._currentframe Value In An "if" Statement Using The Frame LABEL?

Sep 9, 2010

I'm trying to test the _root._currentframe value in an "if" statement, but I want to test it using the frame LABEL, not the frame NUMBER.

For example:

on(release) {
if(_root._currentframe != "homePage") {
gotoAndPlay("home");
}
}

I know this works if I put the frame NUMBER instead of the label. But is there a way that I can get it to work with the LABEL?

View 2 Replies

AS2 :: Create A Custom ComboBox - Test Movie - Combobox Has Become An Unclickable White Rectangle With No Label?

Aug 7, 2009

I'm using Flash CS3 and want to create a custom ComboBox. I've followed the steps outlined in "Editing component skins in a new document" (http:/[url]...), but every time I get to the step where I drag the ComboBox Assets folder from the HaloTheme.fla library into my library, if I test movie at that point my combobox has become an unclickable white rectangle with no label, button or anything.

View 2 Replies

Xml :: E4X Get Element's Next Sibling

Jan 19, 2010

I have a reference to a XML node which is part of a bigger XML tree. Is there a way to get that elements next/previous sibling without accessing the parent and looking for it? Something like DOM's nextSibling would be what I look for. edit: Given that there is no natural way to do this with E4X, I'll just stick to the following (except that in my case, I'll store the actual index somewhere instead):

[Code]..

View 2 Replies

Actionscript 3 :: Flex - Possible To Have Flex DataTips On Canvas Rather Than Chart Objects

Jan 17, 2010

Flex charts, like AreaChart, have wonderful built-in support for displaying data "tool tips" when a user hovers over a point supplied in the data of a graph. You can hover over any of the bar graph examples on this page for a demonstration. I have a graph situation where I optionally draw in some dots as reference points on CartesianDataCanvases supplied to my AreaChart through it's <mx:annotationElements> and <mx:backgroundElements> tags.

I would like to have the same hover data-tip functionality that the AreaChart has, but applied to these dots. I realize that I am just drawing on canvas, and that no actual dataProvider supports these dots, but if there was a way to supply the CartesianDataCanvas with an array of data values or something to that effect,

View 1 Replies

ActionScript 2.0 :: XML Nodes-next Sibling?

Jul 25, 2006

This is my first time using this forum. What an excellent site. I've learned a lot about using xml with flash through this site. I have expanded upon the example to build an xml menu using flash.The file I have created loads videos dynamically

Loads Sounds Dynamically Includes a title Class to display titles Includes a RollOver class to display on rollover events when you mouse over the titles. ut I would like to build arrows so that you can navigate among each of the individual sub menus using a forward, and back arrow button.I have tried to do this with no success, if anyone can help me, I'm attaching the fla...

View 5 Replies

Actionscript 3.0 :: Communication Between Sibling Classes?

Apr 16, 2009

I had a question on OOP and the best practice for how to communicate between classes. If I have a class (SiblingA) where some one clicks something in it and you need to interact with another Class (SiblingB), what is the best method for doing this?

(option1) Should I have a bunch of event listeners in the Document Class that respond to these events? (I thought you wanted a document class to be as small as possible). (option2) Or should I create a separate 'Utility' class that speaks with both siblings to facilitate communication (event handling) between the two (one class with many public static methods). I have attached a diagram to try and help explain this.

Often times these events are dispatched from children of children in sibling classes (ie childOfSiblingA or even its children) Option1 Scenario: A user does something in SiblingA, that dispatches an event to the doc class which listens for it, fires its listener function which calls a (public) method in SiblingB to handle the interaction.

Option2 Scenario: A user does something in SiblingA which calls a (public static) function in Utility class which calls a (public) function in SiblingB to handle the interaction.

I think I am leaning towards option 1 but that would be a lot of dispatching events (child dispatches to parent, dispatches to its parent, dispatches to doc, doc calls child, which calls its child, which... finally does something)

View 6 Replies

Flex Get Canvas Id?

Jan 20, 2010

I'm developing an engine to generate components.I been wanting to get my xml script that read and create a component to be load into 'content' canvas. I not sure how do I get the addChild work correctly as in 'content'.addChild instead of the one shown below:[code]

View 1 Replies

Actionscript 3 :: Call A Function In A Sibling MovieClip

Feb 26, 2012

On my stage is a MovieClip called Box and a MovieClip called InfoBox. InfoBox has a fucntion called setInfo. Box, when clicked (It is a MovieClip, not a button), wants to call the setInfo function of InfoBox.

I tried using the following code in Box:

MovieClip(this.parent).InfoBox.setInfo();

This produced the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@34a8ef99 to flash.display.MovieClip.
at Box/infoBox()

What is proper way to call a function in a sibling MovieClip?

InfoBox.as looks like this:

package {
import flash.display.MovieClip;
public class InfoBox extends MovieClip {

[Code].....

View 4 Replies

Flex :: Scroll A Canvas Up?

Dec 27, 2009

The basis for the chat window is a canvas. I've got that showing, but how do I make it scroll up? I want to clip the window so only the last 15 lines are shown.[code]...

View 1 Replies

Aligning The Canvas To The Right In Flex?

Dec 8, 2010

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas width="100%" height="100%">
<mx:Canvas backgroundColor="#A8A8A8" height="100%" right="0" top="0" width="100">
</mx:Canvas>

[Code]...

My code above works absolutely fine, until i resize my browser window to a size below 800px width. When the browser window is make of lesser width than 800px, the canvas with background color #A8A8A8 is on the right of the window, but the problem is, when I move the scroll bar, the canvas should remain on the right of the window. Which does not happen, and that is what my problem is.

How can I solve this issue. What should I do to keep my canvas be on the right=0 all the time.

View 1 Replies

Flex :: Lie Two Canvas At One Tab Navigator?

May 18, 2011

I want to lie two canvas at one Tab Navigator. when I use <mx:local it created multiple tab.

View 1 Replies

Flex :: Drawing Squares On Flex Canvas?

Dec 23, 2009

I'm trying to write some code to an animated images of squares on a Flex Canvas There's something wrong with my code below because it becomes progressively slowerI assume I'm supposed to clear the old squares or something.What am I doing wrong below?:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init();">
<mx:Script>

[code].....

View 1 Replies

Data Integration :: Xml And Flash - Unable To Get The Next 'sibling' Into An Array?

Aug 14, 2006

I am trying to learn xml in flash myself and am findingit v.hard.All i am trying to do is create a little 'story' with 3 pages.I have content loading into flash but I am unable to get the next 'sibling' into an array e.g. the title. I can only get page1's title in the array but I can never get to page 2.Here is my xml:

<maincontent>
<page1>
<title>Who is he</title>[code].....

This only traces the first title, how can i get to the second and the third so i can then display them in my text box?

View 2 Replies

ActionScript 3.0 :: "mouse Off Canvas" - Go To Frame2 When The Cursor Leaves The Canvas

Feb 24, 2011

Basically I want to go to frame2 when the cursor leaves the canvas. The code below contains no errors when tested but it still does not work.

[Code]...

We know that the function gotoAndStop(frame2); works in multiple situations which means the first 3 line is fine. I don't know if the problem is the MOUSE_LEAVE event or this.stage which i suppose is the identifier for the canvas. I sure that there must be an alternative code for the identifier this.stage or the whole code. Any solution on how to fire the given function in the event when the cursor leaves the canvas?

View 2 Replies

Flex :: Zoom A Canvas Through Hslider?

Jun 19, 2009

i am required to zoom a canvas through Hslider. The problem is after zooming the canvas i cannot scroll to the extreme left and top of the canvas i.e some part of left and top canvas are not visible. i cannot find the reason. The source code for the example is given below.

[Code]...

View 3 Replies

Flex :: Disabled Canvas Look And Feel?

Jul 27, 2009

Is there a way in Flex by which a disabled canvas looks exactly the same as an enabled canvas? I haven't been able to make sense of disabledOverLayAlpha and disabledColor properties for a Canvas component.

View 1 Replies







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