Flex :: Limit View Area (viewport?) Of S:TileGroup

Aug 16, 2011

I have a s:TileGroup as follows:

<s:TileGroup id="myTileGroup"
clipAndEnableScrolling="true" focusEnabled="true"
horizontalGap="4"

[Code]....

As items are added to the TileGroup it "overflows" its' bounds, items are displayed below, and when scrolled above, the 3x3 grid.

Is there a way to "mask" or otherwise hide these items?

I looking at the properties of TileGroup, I've tried to emplement the "verticalScrollPosition" and "bottom" properties - these don't do it.

Setting the "height" property effectively creates a bottom limit for the group, but when scrolled items are still displayed above the "padding" area.

View 2 Replies


Similar Posts:


Flex :: Get TileGroup To Auto-resize Columns?

Sep 14, 2011

Not sure if I am doing this the best way but I want to create a mobile app that has a home menu screen much like the facebook iphone application(with out all the fancy button moves etc). The FB app has a 3X3 set of buttons that allow you to access things like news feed or friends.In order to keep my layout consistent across different device screens I was trying to user the TileGroup with an image as a button for each tile.but while I can specify the tilegroup to use 100% width and height and set the number of rows and columns to 3. It does not appear to autosize the height of the rows and columns to fit the screen. and it won't let me specify the with/height as a percentage.

View 1 Replies

Flex :: Make A TileGroup Layout That Has The Jaggy Edge On Top?

Nov 4, 2010

I have spark.components.TileGroup that contains buttons. I would like the buttons to appear like tabs on top of the ViewStack they serve At the moment, if I have 6 items in the TileList it lays it out as 2 rows with 4 items in the top tow and 2 in the bottom, so the jaggy edge is at the bottom

[Code]...

View 1 Replies

Flex :: Get Viewport Element Index?

Dec 5, 2009

I use flex4 list[code]...

as far as i know , i can only know the the index that i already select by function

list.selectedIndex

did flex4 proivde some other function that i can use?

View 1 Replies

Flash - Limit The Following Cursor To A Specific Area?

Nov 10, 2009

I have a flash cs3 file where I want a mask to move on the y axis (up and down) when the user is scrolling over the navigation area.

In my code, I have:

maskMC.startdrag();

How do I limit the area where the mask will move, then make it return it back to it's original position when the user moves away from the specific area (in this case the navigation).

View 2 Replies

ActionScript 3.0 :: Area Limit Drag And Drop?

Jan 27, 2010

Im trying to think how i fix this problem. i have a map at the stage and its big, i need to click and move it. But when i get the final of the image, i continue move it and appears the stage.

How i lock the image when it get the final to dont appear the stage? the cod that im using is:

map.addEventListener(MouseEvent.MOUSE_DOWN, move)
map.addEventListener(MouseEvent.MOUSE_UP, drop)
function drag (e:Mouse Event)
{ e.target.stargDrag();
}

[Code]...

View 5 Replies

ActionScript 2.0 :: Limit Area For Mouse Action To Pan

Oct 31, 2007

I have a code that i took from a file and i would like to modify one thing. The code below allows mouse movements to scroll multiple layers at different paces. The problem is that i want to limit the mouse movement area to just a center rectangle and not the entire stage. Is there something in the code below that would allow me to "define an area" for mouse movements to activate the layer scrolls.[code]

View 9 Replies

Flex :: Having The Content Of A S:Scroller Viewport At 100% Height

Jul 27, 2010

Is there a way to get the content of a component inside a scroller to be at 100% height.

here is a simple example:

<s:Scroller width="100%" height="100%">
<s:viewport>
<s:Group height="100%">

[Code]....

As you can see, the green bar (set at 100% height) is just using the height of the viewport, not that of it's parent group, that is stretched by the red one to be 500px high.

View 1 Replies

ActionScript 3.0 :: Limit The Dragged MC To A Certain Area With Rotation (joystick)

Jun 13, 2011

I've made a big empty circle, made it into an MC and it has the instance name of "MC"

I've made a small circle, made it into an MC and it has the instance name of "button". It's placed in the center of the big MC. The button MC has 2 frames, one with the small circle being in the middle, the other one with the small circle being at the edge with a pin under it.

I can't figure out how to do this, which is: when the user grabs the small circle, he can only move it around in circle at a fixed distance from the center of the big MC, thus not leaving the big mc area. When the user starts dragging the button, it should go to frame 2 in the button.

What I try to do here is a joystick, when the user releases the mouse, the joystick head goes back to the middle. When dragging the joystick head, the stuff on frame 2 inside the buttom mc should be rotated having the bottom of the stick fixed to the middle of the big circle.

Here's sadly the only code I have:

Actionscript Code:
button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownEvent);button.addEventListener(MouseEvent.MOUSE_UP, mouseUpEvent);function mouseDownEvent(e:MouseEvent):void { 

[Code]....

View 1 Replies

ActionScript 1/2 :: Limit Cursor Change To Stage Area?

Aug 28, 2009

I have a Flash interaction where I exchange the cursor for a hand holding a flashlite mc. The entire stage is black. The cursor drags a mask around that illuminates a small image in another mc on the stage that the user has to find (illuminate).2 problems

1. When the mouse is rolled outside the stage, the custom cursor is still visible.

2. When imported into Captivate 3, and I move outside the stage and over buttons for navigation, the cursor is no longer visible, for the rest of the Captivate movie.

Desired functionality:Custom cursor to be visible only when on the stage area and the normal cursor to be visible outside the stage area. The stage area is 400x330.[code]

View 1 Replies

Flex :: Get The Item Renderer That Is At The Top Of The Viewport In A Spark List?

Oct 26, 2010

I have a Flex Spark List (well it's a Tree to be precise but it renders as a list) and as I'm scrolling through it I want to provide information about the item that is currently at the top of the list in context to the viewport. So this could be the 100th item in the list depending on how far you've scrolled down.

View 1 Replies

Flex :: Set Up Item Renderers To Have The Created Only If They Are Displayed On The Viewport?

Jan 24, 2011

I have data ItemRenderers with DataGroup, but I have many items, and it seems to me that DataGroup create all of them not only those few displayed on users screen, which takes time and resources.

View 1 Replies

Actionscript 3 :: Flex 4 - Current Items In Viewport Of A List?

Mar 2, 2011

I have provided an ArrayCollection to a List, works fine, scroll and sweet.

I am able to access the carretIndex (though not necessarily the ones in view) by
list.caretIndex

Is it possible to access the list of items currently visible in the List.

What I am curious to know, is how can I can access (read) the first (or any of the) item in a given View port of the list.

View 2 Replies

ActionScript 2.0 :: Infinite Menu: Limit The Area Where The Mouse Works

Feb 8, 2007

I made the tutorial for the Infinite menu. The menu in reality goes from the left edge to the right edge of the stage, but I have masqued it so that it only appears on the left side of the stage where I want it to be. I also changed the anchorpoint of the animation, so that the anchor is on the midpoint of the left half of the stage, instead of the midpoint of the whole stage. Everything works, but when you drag the mouse over the right side of the stage where the menu is hidden, the scrolling increases in speed.

Is there a way of telling the mouse pointer action to stop when the mouse reaches a certain part of the stage, instead of at the actual edge of the stage?

View 2 Replies

ActionScript 3.0 :: The Stage View Area?

Sep 2, 2009

Once again i'm a bit lost XD. The deal is, that i'm making a dynamic "blog like" news viewer, so, when i got more than 2 news (sometimes even with one), all the rest of the news get out of the stage and are not seen.

I have been reading methods about changing the stage size but the question is here, if i manage to change the stage size, all the content will be scaled too, isn't it? That's exactly what i don't want.

then, how do i change the "view area" of the stage.

View 6 Replies

ActionScript 2.0 :: Making Objects Appear Inside A View Area?

Mar 29, 2005

Making Objects Appear Inside a View Area

View 3 Replies

ActionScript 3.0 :: Split A Dynamic Text Based On View Area?

Jan 14, 2011

I am very new to AS3. I am creating on flash website where in one section i have few tabs, and a print button. When any user click on the print button form any sub tab, it has to print all the tabs content.

Now i am able to add multiple pages and able to print all the tabs. But when any of those tabs having more content then the print page height it is not flowing to the next page. It is cutting off.how to split the text according to the display height. so that i can store that in another page.[code]...

View 1 Replies

Flex :: Presentation Model Pattern Can View Specific Logic Reside In View?

Aug 15, 2011

I'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.

View 1 Replies

Flex :: Change A View From Inside A View?

Jun 13, 2010

I have one .mxml file (the Application) with a ViewStack (with 4 views) and a ControlBard, obviously I can change the views with it, but what I want to do is: in view #1 I have an image which I want to convert to a "hyperlink", so when I click it I go to View #2, is this doable? Also I would like to pass somehow some data (like a String) to that View #2 (lets say the it's a user avatar I click so I want to go to the second view which will show me his profile, that's why I need his name/id).

View 1 Replies

Flex :: Taken Push View Object Into Next View?

Sep 28, 2011

My problem is that when I try to pass an object from the navigator.pushView(view, dataobject), I can't figure out how to access the dataobject from actionscript. I can access {dataobject.property} from MXML easily, but I want to set a variable in the new view to the passed dataobjects property.

View 1 Replies

IDE :: Follow Mouse - Limit The Area Where The Clip Can Follow?

Oct 26, 2009

I found this tutorial [URL] and is wondering if I could limit the area where the clip can follow? I'm planning to have my cartoon's EYEBALLS follow the mouse move.

View 1 Replies

Do Not Allow Editing At Specific Area In Text Area In Flex

Nov 10, 2011

I just want to do not allow editing at some area of text area in flex. How it can be done?let suppose text length in text area is 50 characters, i want to allow editing if cursor position is less than 15, and if cursor position in text area is greater than 15 it should not allow user to add more text in text area.If user press any key it should not add any character in text area.[code]

View 1 Replies

Javascript :: Browser Viewport Size In Device Pixels?

Feb 17, 2011

Goal: I want flash to have accurate information about the width and height of the browser viewport in device pixels when intializing, resizing, or on browser zoom events.

Specifics: I need to embed flash into an html page that runs in chrome, safari, firefox, ie. The swf must fill the entire browser viewport.I don't want the flash to zoom.Inside of flash I can set StageScaleMode.NOSCALE so that flash renders to Device Pixels.I also set the state's alignment to StageAlign.TOP_LEFT.Now all I need is the number of device pixels in the browser!

Problem: when there is a browser zoom or I open the site while the browser is zoomed, I cannot easily get information on the browser's dimensions in device pixels.

Solution: acrobat.com's online document editor (formerly known as buzzword) handles this problem just fine (free to play with with an account).What are they doing?In webkit browsers, they are able to keep the document.width to report device pixels every time. I am not sure what they are doing in firefox and ie.

What doesn't work:Swffit does not support this.Just loading the swf into the browser is not a solution, as the swf needs to be embedded.This solution scales a swf to accomodate different browser zooms but does not get information on the browser window dimensions.

View 2 Replies

Flash :: Convert Application Viewport Into A Video Stream?

Jun 3, 2011

I have a interactive flash application where I can click on menus and do stuff with it. Is it possible to capture the whole viewport which involves expanding menus and stuff and turn it into a video stream in flash?

View 1 Replies

Html :: Google Maps API V3 Flash Empty Viewport?

Jan 27, 2012

I'm using the google maps API v3 with flash and it works fine on one of my websites.I transfered it to another website and changed the API key, but all I see is the defaultbackground color with no error message. Unfortunatly, I cannot access the flash source code.Is there a way to debug the application or see some error messages without the source code?

View 2 Replies

Flex :: Limit Pyamf Flex Sessions Or Setting A Timeout?

Feb 22, 2010

How do I limit my amf sessions to flex over pyamf?

I have set up a pyamf gateway to that serves value objects that originate from a django admin panel, through sqlalchemy to my authenticated flex client. It's working great, however there is a problem. My sessions are persisting and clogging up the server, so after about 20 or so AMF sessions are authenticated, it refuses any more until I restart the server.

View 1 Replies

Java :: View Part Of A Web Application - What Technology For A Pretty Intensive Grid View

Aug 3, 2010

I'm about to have to write a web page/app that will serve the agenda for circa 100 people on a page. One line per person, one column per day with 3 clickable zones in each cell. In HTML, the page is way complex for the browser to load quick and there is no possibility to click on a border between 2 cells to for example split an event that spreads among several cells. So I search an not too overkilling technology to render this kind of view. I begun with a PHP generated HTML page but the number of elements in the page make the mouse move jerky.

Moving to JAVA would give me better performances regarding the reuse of the generator of the view but it will still be an HTML page. So, here is my question: do you think that going forward with JAVA and its graphical capability is the simple solution or is Flash a better option for this part of a Web App? I'm afraid of the code I'll have to write in JAVA to handle the GUI presentation as well as the events generated by the 1000's cells plus borders of the page. In Flash, the graphical part seems simpler even if the actions handling is still huge.

View 2 Replies

Actionscript 3.0 :: Make A 360º View Bubble Like Google Street View

Mar 18, 2010

I am wondering how to make a 360º view bubble, like they use for Google Street View, but have no idea how to go at accomplishing this task... i have the string of photos that i attached in photoshop(so that if you connected the left to the right it would be a full 360º view).

View 1 Replies

Flex :: Removing Flex DisplayObjects From View AND Memory Pool

Feb 15, 2011

There is a Flex app with 7 main views. And there is a memory issue when navigating between views.All these views were in a ViewStack, but due to some involving 3D objects I assumed it was too much to have it all in the display list. I'm now clearing all children from the stack and adding/removing them when needed. This gave a small performance increase, but still becomes unresponsive with use. The strange thing is, with this and the original method, the CPU climbs with use but eventually levels out somewhere. Now I'm creating new instances of each screen when they are navigated to and setting the previous variable to null. Now it looks like CPU is spiking when the view is created, but leveling out to something much much lower than it was. This felt like progress, but now the available memory keeps climbing where it wasn't before....

My understanding was calling remove child or remove all children would mark the object for deletion when the garbage collector next ran. I can't see any other references to the instance. My code is along the lines of [code]I have a function for each button to add a new instance like the above.The only thing I can see and feel silly asking but need confirmation, is each view extends a class called "Screen", this class contains a singleton reference to some core components.[code]Would this trick the garbage collector into thinking it was still needed? General advice on clearing Objects from the memory pool would awesome!!! I've never needed to analyze the Flash Player in such depth.I think it's an error with sound drivers, removing all sound and shes purring like a kitten. Works on my machine fine with windows XP, but not on the touch pad the application is crashing on with windows 7 (unsure of the drivers looking into them now) Now I'm thinking its not the drivers, tried 3 different versions, all with no improvement. I did discover the sound was fading in and out with the TweenLite lib. Doesn't look like there are any memory leaks in TweenLite as it works fine on other machines. Just the use of volumeEasingFunction seems to consume increasing amounts of CPU until it freaks out. It is crappy hardware running windows 7, which doesn't help.

View 1 Replies

Flex :: Limit Rows Of Datagrid In It?

Jul 26, 2011

I have a data grid consisting of 3 columns & many rows, i want to show only the first 20 rows to user. Is there any way i can show only the first 20 rows in my datagrid.After by clicking button 'next', next 20 rows should display and so on...

View 1 Replies







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