Flex :: Library - Objects Floating At Top Of Canvas?

Jun 27, 2010

I want to have a canvas with some "floating" property. Basically when I add child to it, the child should float at the top. When I add the second child, it should float above the previous one. For example the canvas width is 100, and I have two VideoDisplay with width 100 and height 75.

canvas.addChild(video0);
// Or canvas.addChildAt(video0, 0);
// video0 should be at x=0 and y=0
canvas.addChild(video1);
// Or canvas.addChildAt(video1, 1);
// video1 should be at x=0 and y=0, while video0 x=0 and y=75

View 2 Replies


Similar Posts:


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

Flex :: Databinding Array To Canvas As Objects General Client Architecture?

May 27, 2009

I have creating a distributed note taking application in flex, it basically is a notepad I can keep in my desktop tray. When I add notes and goes back to a server and saves it in a database.

To am struggling to design the application correctly, I want to have a Syncing service that polls the webserver for changes and updates an Array of Note objects. The problem is that my note corresponds mxml component, aka SingleNote component. There are four different cases when being, a. a note is updated from the server poll, in that case I want to singlenote to update the settings b. a note is added to the array from the server, in that case a new SingleNote needs to be created c. a SingleNote is added from client, in that case a Note is added to array, and sent back to server d. a SingleNote is change from client, in that case the Note is updated in the array and sent back to server

The properties are SingleNote(Width, X, Y, Text).

View 1 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

ActionScript 2.0 :: Animation Involving Balloons Floating In And Then Floating Out Again When A Condition Is Met

Mar 16, 2011

Having a problem with a little animation involving balloons floating in and then floating out again when a condition is met. There are two ways they can float in or out: from left to right, or completely randomly. I actually like it as coming in (left to right) and going out (random) but it's essentially up to the user.

Since I moved my Array sort code into the function that basically deals with telling the balloons to float off though, I've been having problems. Sometimes one or a couple of the balloons will not float off and I'm kind of boggled as to why. Because it works fine IF the Array sort part is outside this function, I'm wondering whether, when the for loop at the bottom starts running, the Array is still being sorted and that's why some balloons get left behind.

[Code]....

View 0 Replies

Actionscript 3 :: - Library To Make Draggable / Resizable / Rotatable Objects In Flex?

Apr 1, 2010

I would like to have in my Flex application the ability to post objects (for instance images or text items) where user can drag/drop for absolute positioning on the screen, resize it and rotate it (although not high priority). I'm wondering if there is a library that would do so out of the box or do you recommend implementing my own?

View 3 Replies

ActionScript 3.0 :: Make A Copy Of An Array Filled With Canvas Objects?

Jul 26, 2011

I'm trying to make a copy of an array filled with Canvas objects. I use this code:
 
arCopy =    ObjectUtil.copy(myClass.myArray) as Array;
 
 
What I get is an array arCopy filled with Objects instead of Canvas. Each of these Objects has propersties suggesting that it was Canvas (like uid="Canvas333" or name="Canvas333"), but it's instance of Object class. I've been using ObjectUtil.copy() before but never seen such behaviour. 

View 1 Replies

Flex :: Floating Layout Similar To HTML/CSS?

Sep 29, 2010

In HTML/CSS, if you float items, DIV's that exceed the width of the container are moved down 1 line.

I would like to achieve this in FLEX. I have 3 components with variable width. I would like for the 3rd component to be moved down when it doesnt fit the container any more.

View 1 Replies

Actionscript 3 :: Flex Container With HTML Style Floating?

Jul 20, 2011

I am using Flex 4 with Spark components to build a mobile application and I have a HGroup that I am using to contain all of my elements. When the screen loads it pulls in a small amount of text that will be displayed and loops through all the words to see if any of them are a keyword. While it is looping I am putting each word into its own label element and if the word is a keyword it changes a few styles and adds a click event to show a description about the word.Everything runs fine but when everything is appended to the HGroup, there ends up being only one line and most of the text completely cut off because it will not wrap the content.My Question is - Is there a way to set or extend the HGroup to allow content wrapping on its child elements?Below are some code snippets of what I have:

MXML containers:
<s:VGroup id="answerData" width="580" height="700" horizontalAlign="center" paddingTop="5">
<s:HGroup id="theLabel" color="white" width="580" fontSize="25" paddingBottom="20" />

[code].....

View 3 Replies

Flex :: Create A Floating Notification Message Of Sorts For A Custom Component?

May 13, 2010

I have a custom TextInput-based component for date and time with certain restrictions on what's considered "within range". But it's still fine to insert dates that are outside the range. When a user types in a date, on valueCommit, I'd like to be able to display a hovering notification to the user, to inform/warn them that the date is outside the accepted range.

I'm thinking of notifications ala the Validators, but I'd rather not use the Validator mechanism because it's really not validation, just notification. Something like a tooltip, but it will only appear if the user changed the value. Maybe an effect of some sort?

View 1 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 :: Getting A List Of Library Objects?

Feb 5, 2010

Is there a way to access or iterate through a list of all objects exported to ActionScript from the Flash IDE? I'm looking to save myself some hassle by just iterating through selected MCs and processing them in a certain way, without knowing their names.

View 5 Replies

ActionScript 3.0 :: Using Interface With Library Objects?

Nov 13, 2009

I was trying to set up library movieclips to extend an abstract class so they could share common methods, but can't, as all library movieclip objects have to extend MovieClip.My second thought was then to at least insure that all of these objects - which each need their own class now -- implement the same functions -- so I have the following

Code:

public class MyClass extends MovieClip implements MyInterface and then in MyClass I have a function that implements someFunction in MyInterface.I keep getting error 1044: Interface method someFunction in namespace MyInterface not implemented by class MyClass.

View 2 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

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

Use Variables To Call Objects From Your Library Onto Stage?

Nov 11, 2010

does anyone know if it's possible to use variables to call objects from your library onto stage like this:I have an object in my library called Level01 as is it's linkage

Actionscript Code:
var MyMap:String = "Level01";addEventListener(Event.ENTER_FRAME,LoadMap);function LoadMap(event:Event) { var myLVL:MovieClip = new MyMap();// how do you use the variable

[code].....

View 4 Replies

Professional :: Library Objects For Flash Document

Apr 2, 2010

I have a question about a library one would create inside a Flash document. I have a bunch of pieces of graphics objects inside a library for a FLA file. I then drag these pieces onto stage to build a more complex object. I then select all those pieces and group them and convert this new object into a movie clip. From there I move it into the library for that FLA file. I notice there is both a graphic for this object plus the movie clip for that object. To me these are 2 separate objects. So when I delete the graphic of the object, it also deletes the movie clip I created of the object.

View 5 Replies

AS3 :: Good Library That Makes Objects Detection In It?

Aug 10, 2011

Does anyone knows a good library that makes objects detection in AS3?

Im looking for something similar to detect an hand, like kinectic.

View 2 Replies

ActionScript 2.0 :: Referring To Library Objects Via Classes?

Feb 26, 2007

I've been heavily mired in 3D recently, and decided to pay a visit back to good ole Flash.

My problem is this. I'm extending the MovieClipLoader class to create a Preloader Class (yes I'm sure it's been done fifty billion times but). I'm trying to refer to a symbol in a common library, the preloader symbol itself.

Inside my class I have this

Code:
function onLoadStart(target){
baseClip.attachMovie("preloaderTemplate_mc", "preloader_mc", 500, {_x:0, _y:20, _xscale:75, _yscale:75});
baseClip.preloader_mc.gotoAndPlay(1);
}

baseClip is a MovieClip object which takes a MovieClip passed to the constructor of the class in the FLA. (say a container movieclip which has a target clip preloaded into it) The class does load the target clip into the baseClip, but doesn't show the preloader, which makes me think I'm not referring to it properly.

View 4 Replies

ActionScript 3.0 :: Access Objects In Library Symbols?

Mar 15, 2011

I have a fairly complex symbol with a few moving parts, and I want to be able to access a label on the symbol to add text. When i just load the clip

PHP Code:
var x = new fm_Input(); // instanc in libraryaddChild(x);
it shows the default text.

[code].....

View 1 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

Flex :: Resize Loaded SWF To Fit In Canvas

Jul 29, 2009

a .fla is 500 x 300. Inside, content moves OUT of the 500 x 300 stage so that it appears like it hides or moves off of the screen. .fla complied... loaded into Flex via SWFLoader:

<mx:Conainer width="500" height="300">
<mx:SWFLoader width="100%" height="100%" />
</mx:Conainer>

Loaded .swf file shows outside of the 500 x 300 Container in Flex. How can i get it so that only what is INSIDE of the Container is visible?

View 3 Replies

Actionscript :: Flex Scrolling The Canvas To Its Top?

Aug 3, 2009

Is there a way to programmatically scroll the canvas to its topmost position?

View 2 Replies

Flex - Unable To Get Focus On Canvas?

Dec 13, 2009

I am creating a canvas in actionscript like :

private var cvs_preview:Canvas = null;

[Code]....

So on the focus change i want to run the "end_preview_on_focus_change()" but this is not working. As per my understanding, i think the canvas not getting any focus in the first place. I was trying to use focusManager.setFocus to do that after the canvas's creation complete. but even that is giving me an error.

[Code]...

View 3 Replies

Flex :: Giving Border To Canvas?

Jul 26, 2010

In flex, I am using

canvasEdit.setStyle("borderColor", 0x0134FF);
canvasEdit.setStyle("borderThickness", 3);
note: canvasEdit is of type Canvas.

But I am not able to put border on the sides of canvas.

View 1 Replies







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