Flex :: Flexlib ScheduleViewer How To Handle Clicks On Items

Apr 14, 2011

I'm trying to use a flexlib schedule viewer in my application. I want to have it so that when I click on a scheduled event, it calls a function in my main app (that will allow me to edit the event). But there doesn't seem to be any specific function for anything like this built into the class ie no event dispatched when I click on an event.

I can use the 'click' function to detect that the item has been clicked on.. and have tried something like this:

[Code]...

This method isn't very reliable because if it only works the first time.. once an item is selected, it stays selected so all following clicks on the item fulfills the condition.

Is there any way to determine whether an event was being clicked on? Or do I have to extend the component and add some sort of clickEvent when an event is clicked on.

View 3 Replies


Similar Posts:


Flex :: Best Way To Handle Clicks On Menu Items?

Mar 11, 2010

I do not know why but I see that itemclick event on a menubar do not fired unless you click a sub item. What is the clean way to handle clicks on menuitems which are on the top level and do not have sub menu items. For example I want to fire an event whenever MenuItem B is clicked.

<?xml version="1.0"?>
<!-- menus/MenuBarControl.mxml -->
<mx:Application xmlns:mx="[URL]" >
<mx:MenuBar id="myMenuBar" labelField="@label" itemClick="{itemClick(event)}" >
<mx:XMLList>
[Code] .....

View 3 Replies

Arraycollection - Flex 3 Removing Items From An Array Collection When The User Clicks A Button And Reflecting That In A Repeater

May 18, 2011

I have an arrayCollection with the following structure:

[Code]...

the AC is defined as follows:[Bindable] private var projectErrorsAC:ArrayCollection = new ArrayCollection;

I'm using this AC in a repeater to display each error. After each error is shown, I've placed an "Accept" and "Deny" button. Once the user clicks either one of these buttons, I'd like to call a function that removes the particular error from the AC. Here's what I have so far:

[Code]...

View 2 Replies

Actionscript 3 :: FlexLib Windowshade And Flex 4?

Sep 27, 2011

I'm trying to build a collapsible panel in Flex 4. I thought I'd use s/thing like this:

[Code]...

But that throws an error: Instantiation attempted on a non-constructor. I grabbed the flexlib zip for flex 4 but I'm still getting that error.

Is there another way to create a collapsible panel in a control bar?

View 1 Replies

Flex :: Using FlexLib On FlexMobile-Project?

Feb 7, 2012

I am trying to to use FlexLib in an MobileFlex Project with Adobe Flash Builder 4.6. For learning-reasons I am trying to create an iPad-Version of the ScheduleViewer1_Sample.mxml.

For some mysterious reason - at least a reason I don't understand - it's not working with the latest flexlib (2.6-M2). With the former Version (2.5 - latest on googlecode) I just had to change the used namespaces and it worked like a charm.

[Code]...

View 1 Replies

Flex :: Equivalent Of Osflex:TreeGridCellRenderer For The Flexlib Package?

Aug 10, 2009

the equivalent of osflex:TreeGridCellRenderer for the flexlib package?

View 1 Replies

Actionscript 3 :: Flex: Flexlib Base64Image Not Working Locally?

Oct 26, 2011

I recreated this example of using Base64Image but it does not work when ran locally, only when I load it from a web server. Is this expected and can it be done so that it works locally?

View 1 Replies

Flex :: Load / Steup Flexlib Project Source In Builder?

Sep 11, 2009

I downloaded flexlib source from [url]...

I want to be able to set it up and run it in flex builder and play with it for learning purpose.

I tried to use the import project option by pointing to the flexlib directory but it did not work - I think thats because the source by default does not have any .project or properties files.

View 1 Replies

ActionScript 2.0 :: Dynamic Column Of Items - Handle The Drag And Drop Part

Feb 21, 2004

I basically want to be able to drag any item out of that list, and when doing so, have it that item automatically go to the bottom, and have the remaining items scroll up. I can handle the drag and drop part of it, but I'm confused on how I could get the remaining column of items to dynamically move up depending on which item is taken out. I'm thinking mayble along the lines of an array?

View 5 Replies

Actionscript 3 :: Selecting Flex Chart Items And Displaying Sum Of Items Selected

Aug 26, 2009

I would like to use the selectionMode=multiple described in the Flex docs, but with a few modifications:

1) I would like the box that the user drags over the graph to remain there until the user drags a new one.

2) In the top right corner of the box I want to display the sum of the items selected by that box.

View 1 Replies

Flex :: Make List Items As Tool Tips For Combo Box Items?

Dec 1, 2009

How to make list items as tool tips for combo box items?

View 2 Replies

Flex :: Force The List To Load All The Items, Not Only The Visible Items?

Aug 15, 2010

I'm creating a facebook application in flex. I'm actually working on the friends component that shows your friends who are using the application. now, each friend has a profile image.

I created the component using a s:List element.

In the Skin Class of the element i configured the requestedColumnCount to 3, which means it shows 3 friends. i added buttons to scroll left and right in the list.

Whenever I scroll to see a different friend, for a half of a second i see no image because the List component is loading the image in order to view it.

is there a way to make the list preload all the elements so i won't have this kind of problem ?

View 1 Replies

ActionScript 3.0 :: Record The Current Position Of Any Of The Items Item In Order To Use That Data To Change The Position Of The Item After The User Clicks?

Jan 2, 2010

If I have several items that move across the screen but the user can click any of them at any time, how do I record the current position of any of the items item in order to use that data to change the position of the item after the user clicks?

This is what I am doing: I have 11 images that slide accross the screen. The user can click any of them at any time. When he clicks one I am scaling the image so it looks like it is comming forward (z axis) and then the rest of the images are scaled down so it looks like they are going back on z axis. So what I am trying to do is get the current position of the image when the user clicks the image so that I can use that to correctly estimate the scaling and moving of the image to make it look like it scales from the center and not from the top left corner. So if have a variable that gets the current position of the image being clicked I'm thinking I can change its position using something like: x = currentposition + -45;

View 9 Replies

ActionScript 2.0 :: Flash Scrollbar Gallery - Replace The Rectangular Handle With Own Customised Handle

Feb 6, 2010

I'm creating a scrollbar gallery from a tutorial on this site. Though I've completed the tutorial, and customised the gallery to my own needs, however I'm trying to make a very small change to it - and no matter what I do, keep running into problems. I'm trying to replace the rectangular handle with my own customised handle - a (20 x 20) 'circular' png image that I've imported into Flash, made a graphic and stored in the library (though I understand it can be imported using actionscript, like the other images in the gallery).

[Code]....

View 7 Replies

ActionScript 3.0 :: Disable Mouse Clicks To The Walls And Character While Allowing Clicks To The Floor?

Sep 23, 2010

I'm building a project that has a character navigate through a room by clicking on the floor. Right now, the walls, character, and floor are all children of the same display object for sorting purposes. My question: is there a way to disable mouse clicks to the walls and character while allowing clicks to the floor? Using mouseChildren appears to be an all or nothing deal and I can't seem to isolate individual floor/wall/character objects for use with mouseEnabled.

View 4 Replies

Actionscript :: Use Embedded Images In FlexLib Project?

Jan 14, 2011

I have a FlexLib Project with a embed class:

package
{
public class EmbedAssets
{

[code]....

And I have another Actionscript Project that use this FlexLib Project and add the Visual class on stage:

package
{
import flash.display.Sprite;
public class AsTest extends Sprite

[code]....

The image don't show up, just.I had debug the application and found the bitmapData of aa was NULL. But if I implement out of Lib Project, this work!In properties of projects ai tried a lot configurations on Flex Library Build Path -> Classes / Assets. But none work correctly.

View 2 Replies

Flex :: Handle Both CLICK And MouseDown Events In Flex?

Apr 18, 2011

I have a scenario where I am listening to both CLICK and MouseDown events for an object.

On MouseDown I do a startDrag(). And on Click, I perform something else.

But the problem is that, MouseDown event fires first and it initiates a drag. The click event does not fire.

View 1 Replies

Flex :: Handle Events Without Using A Framework?

Jan 4, 2010

I'm developing an AIR application with Flash Builder 4 Beta 2 (nightly SDK) an am not using a framework like mate. I have a couple of views and components in my application. An outline might look like this:

root
|- mainview
|-- toolbar

[code].....

View 1 Replies

Php :: Login Using Flex And PHP But How To Handle Session

Jan 7, 2010

I have a Flex login page that uses HTTPService to communicate with server side php script. Once user's credential is verified, a session will be created and the login page will redirect to the main Flex page with that session info. I'm not sure how to implement the session logic.

View 2 Replies

Handle Application Views In Flex?

Jul 1, 2010

I have a Flex application with three different views. Only one view is shown at a time, and the choice of view depends on what part of the application the user is working with. If it had been an ordinary HTML webapp I would have created three different HTML-templates/pages for each view.

What is the recommended way to handle such application views in Flex?

View 1 Replies

PHP :: Adobe Flex - How To Handle Sessions

Nov 17, 2011

I am thinking about porting my social netowrking site code to Adobe Flex / PHP and was wondering how does one go about handling sessions in this case. I would imagine Adobe Flex doesn't really know if a PHP session has been started or not therefore, I would have to research how to accomplish this. One idea I had was to created a session token string after a successful login and pass this token to each http request the user makes for data. E.g. [URL]. Each time a request is made to this page, a MySQL query is run to check if the token I passed in the url matches against the token created for that user during login. If this is true, then data is returned.

View 1 Replies

Flex :: Detect Right Clicks On A RichEditableText?

Oct 21, 2011

I am currently implementing squiggly in a flex application to enable spell checking. Due to certain requirements, I can not use SquigglyUI to hook onto my spark RichEditableText.I have successfully used com.adobe.linguistics.utils.TextTokenizer to tokenize and highlight mispelt words.I would like to be able to let the user rightclick on a mispelled word and show a I have tried to attach a listener to my RichEditableText:

richtexteditor.addEventListener("rightClick", showSuggestions);
And this is my event handler:
private function showSuggestions(event:MouseEvent):void{

[code].....

View 2 Replies

Flex :: How To Handle Framework Events For ACE Test

Dec 23, 2009

In ACE Flex 3 , there is a topic "Handle Framework Events". Any document which lists all the 'required' framework events for ACE test? So I could know what are "framework" events and will focus on them.

View 1 Replies

Flex :: Web Services - How To Handle SOAP Response In 3

May 29, 2010

[Code]...

I want to read SOAP response in flex,am some what new to FLEX

View 1 Replies

Flex :: TabNavigator Can't Handle Disabled Children?

Jun 8, 2011

I've got a problem while migrating my TabNavigator from Flex 3 to Flex 4.5. Stripped to the bare minimum, the following code will produce the bug, namely that the second child of the TabNavigator fails to be created properly:

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

[Code]....

Is this really a Flex bug, or is there something I'm missing? I'm using Flex 4.5.0.20967, and all of this worked well in Flex 3.5.

View 1 Replies

C# :: Handle Http Fired By Flex In Server?

Jan 22, 2012

I am trying to send a simple HTTP message from Flex to C# server, but it seems that I am getting tow calls, first is the real one and the second is an empty one.

Why is that and how can I handle it?

This is my C# code:

TcpListener listener = new TcpListener(IPAddress.Any, 9400);
listener.Start();
Console.WriteLine("Server started");

[Code].....

I been trying to send a true HTTP response a notice another thing, the second call is coming without waiting for the first call, if I am putting the response thread to short sleep(100 milliseconds in my test) then I am getting the second call before I been able to response for the first one.

View 3 Replies

AS :: Flex - Handle Custom Event In Parent Component?

Feb 6, 2010

I defined a simple event class:

public class NewMoveEvent extends Event
{
public function NewMoveEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=true)

[code].....

View 1 Replies

Flex :: Actionscript :: Create A Class To Handle Events

Apr 7, 2010

in Adobe tutorials, they suggest to create a class to handle the events (see below the copy/pasted code, and link to page).I was wondering if I have to handle all events with the function handleAllEvents, using if statements to check if the target is the one I want, and the event is the one I want.i.e. if (event.type=="click") && (event.currentTarget == "myId")Should I have a list of ifs (for each target and each event type ?)[code]

View 1 Replies

Handle M:M Entity Relationships In Flex / Java Web Application?

Dec 21, 2010

I am struggling to come up with a way to efficiently manage Flex entities that have a many-to-many relationships between their JPA/Java counter parts.[code]Both of these entities can exist independently of each other and both have a 1:M relationship with the other. The relationship is not really owned by one side or the other.Within the application there are Flex UI's that sometimes want to see viewers based on movies and other UI's that want to see movies based on viewers.Currently both the Movies.Viewers and Viewers.Movies collections are lazy loaded by JPA which works fine. The problem is that every time I ask a viewer for it's list of movies, then they all get sent over the wire and then within Flex I end up with a bunch of Movie objects that (often, not always) duplicate the ones I already have there.

It seems inefficient at best and could likely cause errors if the duplicate objects are not dealt with.In my real application I have tons of these types of relationships all over some very large object graphs.It almost seems to me that the lazy loaded object collections need to be turned into eagerly loaded collections of foreign keys which are used to explicitly load objects on the Flex side of things. But this seems like I am writing a JPA provider in Flex! Is the correct answer to never store state in a Flex application? (Yikes)I should add that all my value objects have a UID that is created on the server side, so I could somehow use that to find/remove duplicates on the Flex side. But how?

View 2 Replies

Flex :: Handle Calls To Multiple Functions In The Same Web Service?

Jan 22, 2011

I have a web service written in ColdFusion. In this web service, there are two functions; one is to return all the questions in a quiz and the other one is to return all the answer selections to the questions in a quiz.

[Bindable]
private var questionArray:ArrayCollection;
private var cfquiz:RemoteObject;

[code]....

I have the codes above. loadQuestions is called at creationComplete to retrieve the questions. Things are working fine. What I want to do is to call another function within the same web service, returnAnswers, to return the answer options for a question. Since I have cfquiz associated to the web service already, I was using cfquiz to call returnAnswers. However, there is an event listener associated to cfquiz already, resultHandler is being called when returnAnswers comes back with the results.is it possible to check which function returns the results within resultHandler? If so, how? And second, what is the best way to handle calls to multiple functions within the same web service?

View 3 Replies







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