Flex :: Accessing Custom Data On DayRender In Flextras Calendar?

Nov 29, 2010

I created a Custom Day Render and I would like to access some custom data that I am providing with in the Flextras Calendar dataProvider. here is the code that I have

<flextras:Calendar
id="calendar"
dayRenderer="com.healthways.healthhonors.itemrenderers.MyAwesomeDayRenderer"
monthHeaderRenderer="com.healthways.healthhonors.itemrenderers.MyAwesomeMonthRenderer"[code]...........

Here is the type of Object that I am creating and storying in an ArrayCollection witch gets passed to the Calenders dataProvider

myArrayCollection = new ArrayCollection([{date:new Date(), data:myObject}])

Here is what what my Day Render looks like

package com.healthways.healthhonors.itemrenderers
{
import com.healthways.vo.DateVO;[code]..............

how to see if a renderer has custom data so that I can do some logic on the renderers creation complete.

View 1 Replies


Similar Posts:


Flex - Custom DateField Component With ComboBox And Clear Button Inside The Dropdown Calendar?

Jul 31, 2010

i inserted a dateField component.on clicking it displays calender, i would like to add 2 comboboxes, i shows hours(0 to 23) other for minutes (0 to 59) to calender so tht the user can select the time along with the date and that wil be displayed in the text input as date and Time. one more thing i would like to add is clear button to clear the selected date to the calender.

View 1 Replies

Actionscript 3.0 :: Accessing Data Stored In Custom Events?

Oct 14, 2010

Once a button is clicked in a submenu called SelectChar(a menu class extending my menu base class), it dispatches a custom event carrying an array of variables. This event is then listened for in the main Document Class called Engine, where the value of the passed variable can be used. For testing purposes im only passing 1 arguement in the array.

my Error when trying to trace the passed variable in isolation "trace(e.arg[0]);": 1119: Access of possibly undefined property arg through a reference with static type flash.events:Event.

Okay, i hope that made sense... heres the relevent code:

custom event class: passCharEvent.as

Code: Select allpackage com.asgamer.snipergame
{
import flash.events.Event;
public class passCharEvent extends Event

[Code].....

View 2 Replies

Data Integration :: Loading XML Using A Custom Class And Accessing It From Other Classes?

Aug 30, 2006

I began with a class for a movie clip rollover function FigureRollOver. It works marvellously. Three things happen:

1) it loads XML from a file "mod1_fig1.xml" and uses another class, XMLMember, to retool the scoping of the XML so that I can get at it

2) an onload call inside of XMLMember calls the myOnLoad function and transfers the XML into an array.

3) so long as the array is finished building, rolling over a movie clip attaches a new movie clip with the rollover text in it.But I don't want all those functions in one because I need it to be more dynamic, starting with being able to load any old xml file instead of just "mod1_fig1.xml", plus it seems lik overbuilding to have all of that in one class, so I've separated out the loading of the XML and building of the array into its own class, FigureXMLLoader. FigureRollOver is then left to just attach the rollover with text in it, extracted from the array built by the new class.

Problem is, though the array builds inside FigureXMLLoader, I can't figure out how to make it available outside the class. I know that I'm constructing things in the wrong order, and that the array needs to be somehow built inside the class function to be available, but I can't figure out how to do that. A cruddy work-around is to put a function call at the end of the building of the array, which calls yet ANOTHER function on the main timeline of my .swf to put the array I've just built into a new variable.This works, but it's messy. It seems like I should be able to have one line of script in the .swf that generates an array on the main timeline (or just a public array) which I can then access from my FigureRollOver class:

var myRollOvers:Array = new FigureXMLLoader("mod1_fig1.xml");

Here is FigureXMLLoader (see comments in the code for more details) which obviously does not return an array as it is, because of all the working around I've had to do. Note the "testing" variable, which can be traced from the main timeline of the .swf, but I will get "not what I want" because of course the array hasn't been built yet, and never will be, inside of the declaration as it is. How do I get it in there so I can return an array?

View 2 Replies

Actionscript 3 :: Accessing Custom Property Of HostComponent When Skinning - Flex 4.5, SDK 4.5

Jun 7, 2011

Using SDK 4.1 I was able to access custom properties of a custom button component from a custom skin. The project I'm currently working requires SDK 4.5 and I'm unable to to access the properties. Here's an example:

[Code]...

View 2 Replies

Flex :: BlazeDS Accessing HTTPRequest/HTTPSession In Custom Java MessageAdapter

Nov 4, 2009

In a custom MessageAdapter written for a BlazeDS Java server, is there any way to access HTTPSession and HTTPRequest in a custom MessageAdapter.I'm trying to adapt an existing COMET JSON long-poll messaging system to BlazeDS and we use HTTPRequest parameters to specify message sending/polling paramers (such as a unique ContextID for any given page for a user). Is there any type of HTTPSession information we can retrieve in MessageAdapter receiveMessage()?

If I can't access the HTTPRequest (I'm not sure we can even customize it if we're using the standard Producer, Consumer Actionscript classes anyways), is there a way to uniquely identify a given FlexClient long-poll from another long-poll from that client (e.g. if the same HTTPSession user has a tab open to the same Flex application is there any way to uniquely identify that user?).

View 1 Replies

Create A Function That Convert Date Gregorian Calendar To Hijri Calendar?

Oct 28, 2011

I had an assessment i need to finish as my test for flash developer vacancy...i need to create a function that convert date Gregorian calendar to Hijri calendar in flashis that possible?I've search through google, but still doesnt find anything useful yet.

View 3 Replies

ActionScript 2.0 :: Event Calendar - Set Up A List Of Events In Sort Of A Calendar Format?

Mar 28, 2004

I have to set up an list of events in sort of a calendar format. I'm trying to figure out how I should bring in the data.The data will be stored in a mySQL database. Should I just bring it straight into flash with PHP, or should I use PHP to convert it to XML and then bring it to flash?

View 1 Replies

Create A Calendar Page On Site To Display Free Google Calendar?

Feb 20, 2008

I would like to know if there is a way to create a calendar page on my site that will display the free Google Calendar? I have embedded code in a Myspace site before and it worked well, but have no experience with the IFrame code that Google Calendar uses. fyi- I just bought Flash a month ago and have been editing a template that I purchased to be my new website.

View 1 Replies

Data Integration :: Action Calendar To Automatically Count Down By 1 Every Day

Dec 8, 2006

I have a file (view the calendar in the upper right of [URL]... that I don't want to have to manually update every day for the next 170 days.

It is a countdown calendar that I would like to know options for how to make it automatically change the start number and second number by - 1 every day at midnight until it reaches zero.

I would like to know about my options for achieving this.

View 1 Replies

ActionScript 2.0 :: Event Calendar - How To Bring In Data To Flash

Mar 28, 2004

I have to set up an list of events in sort of a calendar format. I'm trying to figure out how I should bring in the data. The data will be stored in a mySQL database. Should I just bring it straight into flash with PHP, or should I use PHP to convert it to XML and then bring it to flash?

View 1 Replies

Data Integration :: Building An Events Calendar With The DateChooser Component

Sep 12, 2007

The AS2 DateChooser has just the functionality I need to build the events calendar that I have to build .. however .. while I know what to do in theory, I'm stumbling on (a) whether it will work and (b) syntax.

I want to display an instance of the DateChooser (myDate) and access the selectedDate property when the user selects a date. Then I need to pass it to the main events page preferably on the same page with something like this:

SELECT EventTitle. EventDescription, EventLink FROM Events
WHERE EventDate = MMColParam

MMColParam 1 myDate.selectedDate

The page itself is ASP. I am thinking I would probably define a variable and perhaps use LoadVars to load the selected date from Flash .. not something I have done before.

Perhsps something like

dim eventDate
eventDate = myDate.selectedDate

I'm sure that's not the syntax .. but I think that is the theory. I should be able to access the selectedDate property of the Date Chooser instance and feed the date into the query to select the events on that date and list them.

View 2 Replies

Actionscript 2.0 :: Datefield / Calendar / User Cannot Select Previous Data

Aug 27, 2009

I use a datefield on a form for user to pick an appointment date.All is working fine but I would like to make users cannot select previous date (ie yesterday).

View 3 Replies

Flex :: Attach Custom Data To Elements?

Aug 23, 2011

Is there any way to attach custom data to elements? Kind of like the $.data() function in jQuery?I know you can subclass and element and add custom parameters, but it would be an overkill to create custom class just to add a single custom parameter.

View 4 Replies

Flex :: DataGrid - Presenting Custom Tabular Data

Feb 5, 2010

I'm currently building an application that is presenting tabular (fetched from a webservice) data and have squirted it into a datagrid - seemed the most obvious way to present it on screen. I've now come across a few limitations in the datagrid and wonder how I might move forward. The data is logically split into groups and I would like to be able to have subheadings in the grid whenever I move to a new group. I would like to be able to highlight individual cells based on their content relative to other values in the row - ie highlight the cell with the highest value in the row. Is this possible with the standard datagrid?

View 2 Replies

Flex :: Binding Data From Webservice To Custom Component?

Jul 27, 2011

i'm using flash builder 4..i want to ask something..how to binding data to custom list component in flex??...i already try binding data from webservice to standard datagrid component in flex, and it's work perfectly...this is my code for binding to datagrid..

<mx:DataGrid includeIn="LobbyPage" x="30" y="319" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{TakeUserResult4.lastResult}">

[code]....

View 1 Replies

Actionscript 3 :: Custom Data Label For Flex 4 Pie Chart?

Feb 28, 2012

is it possible to create an item renderer for the data labels of a Flex Pie Chart?i know it is possible to change the formatting of the String using the label function. But i need more control of the way the data label appears.The background of the label needs to be a a specific color based on the data.

View 1 Replies

Actionscript 3 :: Flex 4 . Passing Data From Main App To Custom Component

Oct 15, 2010

I havent found quite what I want elsewhere or at least am not accomplished enough to adapt I'm trying to create a project that shows radio stations with logo, listen button etc The datasource is an xml file with child tags like 'name','image' and 'listen' for each parent, 'station'. I access this data via the main application with creationComplete="radioService.send()"

[Code]...

View 5 Replies

Flex :: Make Custom AS3 Classes Accessible For Data-binding?

May 28, 2011

Assume i have a custom actionscript class. [code]...

Suppose also that i have a different class, that changes a second variable, which has the metadatatag [Bindable]. What methods and events do i have to implement in either of these classes, to make myVariable change, whenever the other is changend?

View 1 Replies

Flex :: Passing Data From Custom Class To Main Application?

Aug 4, 2011

Im a complete beginner in Flex programming. I have an application with a main .mxml file, and a certain class Foo that I call from the .mxml. In Foo, I make a URLRequest and listen for the Complete event. Then I found myself with the returned data in a Foo function, but I have no idea how to communicate it to the .mxml part of the application ! I looked into ArrayCollections but I can't seem to understand how they work. Isn't there a way to modify, from inside the class, a variable with a global scope ?

View 5 Replies

Flex :: Differentiate Between A Data Provider Update And A Itemrender Being Recycled When Using A Custom Itemrenderer In A DataGroup?

Oct 18, 2010

How do I differentiate between a data provider update and a itemrender being recycled when using a custom itemrenderer in a DataGroup?I have overridden the set data function of the custom item renderer, but I have found that on making a change to the ArrayCollection used as the DataProvider some of the item renderers are not assigned the same object they had before the update. This has made it almost impossible for me to distinguish between a data update and an itemrender being recycled. Also, the data never seems to get set to a value = null, so that seems to be out as well.

View 2 Replies

Flex :: Adding Radio Button To Calendar In Flex 3?

May 28, 2010

I'm trying to make a Calendar which can have radio buttons embedded in specific dates, which will be chosen by making a service call, but that's not a problem. I have had two approaches to it so far, one could be taking a datagrid, and making it a calendar, and then placing the radio button inside the cell using an item renderer. The second approach could be Extending the Calendar class, and adding radio buttons inside. Using the first approach, the problem is to fit the dates in the right order in the grid for any specific month. We could get to know the first day (Mon,Tue..) of the month but filling the grids correctly causes issues. I was wondering if someone ever tried doing this or if there could be a simpler approach.

View 2 Replies

Actionscript 3 :: Flex 4 Disptaching Custom Event From Custom Component (why Flex Converting Custom Event To Mouseevent)?

Mar 2, 2012

This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component

TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));

Note: The error in my earlier post is giving below error message

Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent

The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.

This is my custome event

package events
{
import flash.events.Event;
import ui.map.MapElement;

[code]...

View 1 Replies

Actionscript 3 :: Integrate Google Calendar Using Flex 3?

Aug 19, 2011

I have developed an application using adobe Flex 3 as frontend and Java as backend. The application is related to CRM. So i need to integrate Google Calender into my application using flex 3.

View 2 Replies

ActionScript 3.0 :: Flex Scheduling Framework - Calendar Project?

Jun 1, 2007

I'm to set up an application that displays different projects over time.[URL]There can (obviously) be more than one project at the same time and I need to set it up for different views, like showing projects in one year/month/week/day.. The user must also be able to select projects at a particular location and type. All this info is in a database provided by my client. The user makes his selections at the bottom area.The client uses Coldfusion MX and different CFC's/webservices has already been set up.. [URL]

View 3 Replies

Actionscript :: Flex Extending DateChooser - Events In Calendar

Mar 29, 2010

ExtendedDateChooser class is great solution for simple event calendar used in my flex project. You can find it if google for "Adding-Calendar-Event-Entries-to-the-Flex-DateChooser-Component" with a link of updated solution in comments of the post. I posted files below. Problem in that calendar is text events are missing when month is changed. Is there updateCompleted event in Actionscript just like in dateChooser flex component? Like in:

[Code]...

View 1 Replies

Flex :: Display Current Date On Bottom Of The Calendar?

Mar 23, 2012

I would like to display the current date in the bottom part of the calendar on a DateChooser control. Has anyone extended the DateChooser control to do this?

Something like the attached image...

I managed to pull off some codes, but still, I have the slightest idea of how to add the label below the datechooser control.

package
{
import mx.controls.DateChooser;
import mx.controls.Label;

[Code].....

View 1 Replies

Flex :: Library :: Open Source Calendar / Enhanced DateChoose

Jun 14, 2010

I currently use iLog Elixir calendar component, and I am not entirely happy. It is buggy, support sucks and I can't play around with the source.well maintain flex library project which has a decent calendar / date chooser component?

View 3 Replies

ActionScript 3.0 :: Accessing Vars In Custom Components?

May 26, 2009

I'm working in flex, but using as3. I have two components, and need to communicate between vars. I have my main app, and  two components. I declare "newsDB" in the main app like this.

[Code]..

This gives  me an error like so TypeError: Error #1009: Cannot access a property or method of a null object reference. I get that it is trying to touch the var before it is implemented. How should I go about this?

View 3 Replies

ActionScript 3.0 :: Accessing Some Properties Of A Custom Component?

Jan 15, 2009

I have been stuck on this problem for a while, and wonder if anyone knows the answer. It is concerning accessing some properties of a custom component. I marked the problem with the keyword [PROBLEM] in the following snippets of code.

components/State1UI.mxml
--------------------------------
<?xml version="1.0" encoding="utf-8"?>

[code].....

View 0 Replies







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