RE: [flexcoders] How to know what is in mx_internal

2007-09-09 Thread Alex Harui
Read the source code and used the debugger, probably.  Keep in mind that
mx_internal is not officially supported so its APIs can change or go
away in future releases and break your code.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sheriff
Sent: Saturday, September 08, 2007 10:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to know what is in mx_internal

 

I checked out the FlexLib on google, the superTabNavigator etc.. and
they used alot of mx_internal stuff, now i tried finding any
documentation about the stuff in there but couldnt find anything so i
was wondering how did they find out what do to use. 

 



Shape Yahoo! in your own image. Join our Network Research Panel today!
http://us.rd.yahoo.com/evt=48517/*http:/surveylink.yahoo.com/gmrs/yahoo
_panel_invite.asp?a=7  

 



Re: [flexcoders] How to know what is in mx_internal

2007-09-09 Thread Sheriff
this is all i see
**
14
 *  This namespace is used for undocumented APIs -- usually implementation
15
 *  details -- which can't be private because they need to visible
16
 *  to other classes.
17
 *  APIs in this namespace are completely unsupported and are likely to
18
 *  change in future versions of Flex.
19
 */
20
public namespace mx_internal =
21
http://www.adobe.com/2006/flex/mx/internal;;
22
}

- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, September 9, 2007 1:25:19 AM
Subject: RE: [flexcoders] How to know what is in mx_internal









  












Read the source code and used the
debugger, probably.  Keep in mind that mx_internal is not officially supported
so its APIs can change or go away in future releases and break your code.
 

  
 










From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of Sheriff

Sent: Saturday, September 08, 2007
10:08 PM

To: [EMAIL PROTECTED] ups.com

Subject: [flexcoders] How to know
what is in mx_internal
 




  
 











I checked out the FlexLib on google, the superTabNavigator etc.. and
they used alot of mx_internal stuff, now i tried finding any documentation
about the stuff in there but couldnt find anything so i was wondering how did
they find out what do to use. 
 







  
 








Shape Yahoo! in your own image. Join
our Network Research Panel today! 
 















  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows of a datagrid

2007-09-09 Thread Paul Steven
I have chosen to have repeating custom component. The custom component has
several text fields, a combo box and a data grid

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 08 September 2007 19:02
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer
in only some rows of a datagrid

 

OK, good luck.

 

You chose repeating DataGrids or custom renderers in a DataGrid?

 

-Alex

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Saturday, September 08, 2007 4:06 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in
only some rows of a datagrid

 

Thanks for the reply Alex

 

I create the xml data dynamically by retrieving the values from various
objects so I can pretty much create whatever data representation I want.

 

With regards interaction rules, the only interaction is to be able to set
the values of the combo boxes then when a button is clicked it stores all
these values first in an object then when the application is closed it
stores this data in an xml file.

 

Now I have had a go at creating a custom component that includes a datagrid
and then using a repeater to duplicate this for all the data. This kind of
works as you can see here http://www.mediakitchen.co.uk/mymarksheet.jpg

 

I am able to get all the data into the custom component by passing all the
xml data into it and then within the setter function of the custom
component, parsing the relevant data for the combobox, datagrid and text
fields. 

 

The problem now hopefully is a cosmetic problem which will no doubt be a
tough oneJ

 

Thanks

 

Paul

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 07 September 2007 23:57
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in only
some rows of a datagrid

 

Usually, the data is given to you in some representation.  How do you
currently have the data stored for the picture you showed us?

 

It probably can be done, but is going to be significant work.  Also knowing
what the interaction rules are will help us guide you.  For example, are the
columns resizable?  Are things collapsible?  Can things be edited or clicked
on or selected? 

 

Also, how many items total?

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Friday, September 07, 2007 6:05 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows
of a datagrid

Unfortunately not Tom.

This project is being developed in Flex Builder 2 and needs to be finished
next week. Client wouldn't be keen on using a beta product unfortunately.

So I am hoping it can be done in Flex 2:)

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On
Behalf Of Tom Chiverton
Sent: 07 September 2007 13:51
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: Re: [SPAM] RE: [flexcoders] Display item renderer in only some rows
of a datagrid

On Friday 07 Sep 2007, [EMAIL PROTECTED]
mailto:paul_steven%40btinternet.com  wrote:
 I could do with some further advice on how to represent this data

Flex 3's AdvancedDataGrid an option ?

-- 
Tom Chiverton
Helping to appropriately differentiate advanced action-items
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF. A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged. If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents. If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

 



[flexcoders] Using tooltips programatically with AS3

2007-09-09 Thread candysmate
I wish to use tooltips to highlight user input error when entering
data into a dataGrid. How can I cause a tooltip to display without
using the mouse to rollover an object please?



[flexcoders] Best Practices for XML Compression

2007-09-09 Thread Steve Hueners
With e4x it's much more tempting to use XML for lots of my
client/server traffic but the overhead is still going to be a problem.
I've see a couple compression strategies outlined but most for AS2
and/or i'm not clear on server-side requirements.

Is there a) any good overview of the topic; b) emerging consensus as
to how best approach?

thx
--steve...


[flexcoders] Programatically deselecting tree branch objects

2007-09-09 Thread hardaur55
Good morning all,

I'm trying to set up a tree control so that branch items open and close
on select just as if somebody had clicked the twirly.

I've got everything taken care of but I need to find a way to
programatically deselect the branch item.

Here's the code problem:

In my Tree change event handler

public function handleTreeChangeEvent(event:Event):void
{
 //some code

if (selectedVideoId != '')
 {
 trace(selectedVideoId +  is the selected video);
 }
 else
 {
 if (videoTree.isItemOpen(selectedVideo))
 {
 videoTree.expandItem(selectedVideo, false, true);
 // I now need to deselect this tree item
 }
 else
 {
 videoTree.expandItem(selectedVideo, true, true);
 //  I now need to deselect this tree item.
 }
 }
}

See the // comments for details on what I'm trying to do.

I very much appreciate any light anybody can shine on this, I've been
beating up google and the API docs for the last few hours with no
results.

Thanks!!

H





[flexcoders] Re: How to expand TREE Node children by clicking folder icon instead of triangle

2007-09-09 Thread mubasherhaneef
Hi Alex,

I think you were talking about the below mentioned function. Could 
you please elaborate a little bit more whatever you mentioned in your 
earlier reply? 

Thanks in advance  Reagrds;


/**
 *  @private
 */
private function disclosureMouseDownHandler(event:Event):void
{
event.stopPropagation();

if (listOwner.isOpening || !listOwner.enabled)
return;

var open:Boolean = _listData.open;
_listData.open = !open;

listOwner.dispatchTreeEvent(TreeEvent.ITEM_OPENING,
_listData.item, //item
this,   //renderer
event,  //trigger
!open,  //opening
true,  
//animate

true)   //dispatch
}



--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 I would modify or subclass TreeItemRenderer, mimic the code for
 mouseDown handling on disclosureIcon and apply it to the icon as 
well.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of mubasherhaneef
 Sent: Friday, September 07, 2007 1:52 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to expand TREE Node children by clicking
 folder icon instead of triangle
 
  
 
 I have a question regarding opening of tree branch node;
 
 In a tree, a branch node can contain multiple child nodes, and, by 
 default, appears as a folder icon with a disclosure triangle that 
 lets users open and close the folder but I was trying to open child 
 node/folder, when user will click either on triangle or on folder 
 icon.
 
 I tried the below mentioned code but that expands all the nodes 
 children of tree instead of expanding one node children;
 
 Any help, suggestions or code example should be appreciated.
 
 Regards,
 
 Mubasher
 
 mx:Script
 ![CDATA[
 
 public function treeChanged(event:Event):void {
 selectedNode=Tree(event.target).selectedItem as XML;
 
 if([EMAIL PROTECTED] == My node){
 //myTree.expandItem(treeData,true);
 myTree.expandChildrenOf(myTree.dataProvider[0],true);
 }
 
 ]]
 /mx:Script
 
 mx:XML id=treeData
 node label=root Node
 node label=My node
 node label=myNode1 data=myNode1/
 node label=myNode2 data=myNode2/
 node label=myNode3 data=myNode3/
 /node
 node label=My Profile
 node label=Change Password data=password/
 node label=Personal data=personal/
 node label=Contact Info data=contact/
 /node
 /node 
 /mx:XML
 
 mx:Tree id=myTree width=100% height=100% labelField=@label
 backgroundColor=#BEC7CC showRoot=true useHandCursor=true 
 dataProvider={treeData} change=treeChanged(event)/





[flexcoders] How to converst an XML to AS Object ?

2007-09-09 Thread lytvynyuk
Situation I have XML like that 
album
name/name
images
image/image
image/image
image/image
/images
/album

using HTTPService I'm getting this XML.

I have AS Class:

public class Album {
public var name:String;
public var images:ArrayCollection;
}

straight cast like:


var album:Album = Album (event.result);


doesn't work

Is any suggestion around this, what I do wrong, may be there are some
other way to do that

Thank you.




[flexcoders] Put Flash File into Yahoo! Groups Description...

2007-09-09 Thread Khaled
Hi All,
  Hope Everyone is fine... Look I want to Embed a swf File into
Yahoo! Groups Description ... Could Anyone tell Me How By Showing me
the Code Thnx Alot... 

Please Reply Me on ([EMAIL PROTECTED])

Thnx 4 reading



Re: [flexcoders] Video and rtmp using Flex

2007-09-09 Thread philip carrington


My main issue, is that the URL to the FCS works just fine outside of the proxy 
at
my job (it loads immediately) but behind that proxy the connection
fails.  And, when I try 'rtmpt' the connection fails in front of the proxy and 
behind the proxy.



What's perplexing is that I can stream video from other sites that
connect to vitastream from bwhind the proxy.  And, of course, as big
corps go, as empires get built information stops being shared.



Any help would be gratefully appreciated.



Thanks



- Original Message 
From: greg h [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 8, 2007 7:23:19 PM
Subject: Re: [flexcoders] Video and rtmp using Flex









  



Hi Philip,

Do you have your RTMP URI?

If so, you can take the example in the docs for the VideoDisplay component, and 
for the source= tag property, just replace this:

source=assets/phone. flv


with
source=rtmp://myURI


I have done it and it works fine.

You can find the full example code here:

http://livedocs. adobe.com/ flex/201/ langref/mx/ controls/ VideoDisplay. 
html#includeExam plesSummary

Or is your question more about the basics of rtmp addresses?  Or by video 
player did you have something in mind other than the VideoDisplay component?


Please post back regarding whether this reply was of assistance, or if you have 
any further questions. Also, if you want to provide your rtmp address but not 
share it here on the forum, please do not hesitate to email me off list.


hth,

g



  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


[flexcoders] Hexadecimal XML encoding of carriage returns: #xD;

2007-09-09 Thread enginefloor
I'm capturing data from a text area, and binding it to an attribute in
an XMLListCollection before packing it up and shipping it off with
HTTPService to a PHP page. For whatever reason carriage returns are
being encoded as

 # x D ;(pretend there's no whitespace)

which, as was pointed out to me, indicates we should interepret '#xD'
as a hexadecimal 'D', indicating decimal 15, the decimal value of the
ASCII carriage return. Why this encoding isn't just  # 1 5 ;   ,
which I guess would make way too much sense, is beyond me. I suspect
the same thing is happening for other special characters, so any
solution would need to handle the 'full' range of values.

Does anyone know how I can either 

A. Prevent Flex from using this encoding

B. Find a ready-made PHP4 compatible function to get rid of these things

Thank you very much.



[flexcoders] Problem with RichTextEditor and Embedded fonts

2007-09-09 Thread kiwicomposer
Hi folks

I'm having a problem with the RichTextEditor when using an embedded font
in my application.

When the font for TextArea is set to an embedded font, no device fonts
will render in the RTE.  Typing when this font is selected just causes
no characters to be displayed.

Can be duplicated using the following code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute historyManagementEnabled=true
mx:Style
@font-face {
 src: url(assets/fonts/Calibri.swf);
 fontFamily: Calibri;
}
@font-face {
 src: url(assets/fonts/Calibri.swf);
 fontFamily: Calibri;
 fontWeight: bold;
}
TextArea
{
 fontFamily:Calibri;
 fontSize: 13pt;
}
/mx:Style
 mx:RichTextEditor  /
/mx:Application
Using this code, try setting the font in the RTE to anything other than
Calibri, and no text is rendered.

I've seen posts on this group that discuss a similar problem (embedding
Verdana, which possibly causes the device font to be shadowed), but that
doesn't appear to be the case here.

Any suggestions?

Marty



[flexcoders] Auto-syncing child image placement when parent image resizes

2007-09-09 Thread whokilledhomer
I think I have a question that I'm sure some of you have ran into but
I can't seem to come up with a solution:

I have an image of a state inside of a canvas that has on top of it
small pushpin icons added as points on the map which are placed using
the parent.addChild(somepushpin) mechanism.  I don't know what points
will be used ahead of time since I'm using an In-Polygon-Test to
arbitrarily find points inside of a county.  

If the browser resizes, the state image resizes but my push-pins do
not scale with the image since I'm using the x y coordinates to place
the push-pins.  Is there a way for the push-pins to sync their
position relative to the size of the state image after it finishes
resizing?

Thanks in advanced





Re: [flexcoders] Re: busy cursor not spinning?

2007-09-09 Thread Mayank
try disabling u're custom skins/css and then running the application to find
out if that indeed is the reason

On 9/8/07, philza1985 [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mayank
 [EMAIL PROTECTED] wrote:
 
  have u set the showBusyCursor attribute in the rpc tag?

 Yes I've set showBusyCursor to true in the httpService tag.

 Its funny. It shows up, but the clock doesn't turn. Just get the image
 of the clock not the animation. I've changed the background colour of
 my app using skins and styles, would that effect this busy cursor not
 spinning?

 has anyone else ever encountered this problem (i.e. the busy cursor
 shows up, but it doesn't spin)?

  On 9/7/07, philza1985 [EMAIL PROTECTED] wrote:
  
   Hi,
  
   I was just wondering why my busy cursor wasn't spinning when i'm
   loading something from the server. Is there a setting I've missed?
  
   I've also got a style sheet and custom skin (but I haven't changed the
   look or style of the busy cursor).
  
   Does this affect things?
  
   thanks.
  
   Phil
  
  
  
 

  



[flexcoders] Dragging and moving an image to a new location

2007-09-09 Thread alex_gky
Hi all,

How do I achieve dragging an image and upon releasing the mouse
button, the image moves to the new location? I have achieve till the
drag drop stage using action script. But when the dragDrop() event is
called, how do I use action script to update an image (say id=img1)
to the new mouse cursor location? 

Please help.

Cheers:)
Alex



[flexcoders] 50% off Zinc for Flexcoders members

2007-09-09 Thread Paul Tunnicliffe {mdm}
Hi all,

 

Firstly thanks to the Flexcoders moderators for giving me the nod to post
this. Being a member of various user community groups myself, I know how
frustrating it is to receive a marketing post on your forum. Hopefully you
guys won't see this as spam, but as an incentive for serious Flex developers
to extend their toolbox...

 

 

50% off MDM Zinc v2.5 for Flexcoders members.

 

From 9:00am Monday 10th September to 5pm Friday 14th September (EST) MDM
will be offering all Flexcoders community members 50% off their flagship
software, Zinc v2.5!

 

To claim you discount, email MDM' Sales Manager, Paul Tunnicliffe at paul
(dot) Tunnicliffe (at) multidmedia (dot) com with your order. You will then
receive a special discount code on that allows you to purchase your software
online at half price! You can email in anytime from now to order your
discount code, but you will not receive it until Monday 10th at the
earliest. 

 

If you work for a company and prefer to pay by Purchase Order, that's fine
to. Simply send your P.O as normal stating Flexcoders as a reference.

 

If you miss this offer, don't worry too much - we will be launching an
ongoing 'MDM Flex Initiative' later on in the year that will offer the Flex
community various discounts.

 

If you have any questions, please do not hesitate to get in touch.

 

Hope to hear from you all soon!

Best regards,

Paul Tunnicliffe
New Business and Sales Executive
Multidmedia Limited (MDM)

 http://www.multidmedia.com/ www.multidmedia.com
TEL: +44 (0) 1902 837402
FAX: +44 (0) 1902 837401

 



[flexcoders] Migrating from AIr to Flex 2 questions

2007-09-09 Thread garrett.reynolds
Hi all-  

First off I know that this is not the Adobe Air forum however I
believe that some people have migrated the example I cite in this
message to flex 2 and I was wondering if anyone here had come across
it and also I was hoping someone might help me with my compile issues.
Please note that I am making it very clear that any technical faults
that are occuring lie with me and not the sample. 

Ok to my problem:

I came across an excellent Air app sample created in Flex. Some of you
may be familar with it and I need some advise.

The app sample code I downloaded was the Salesbuilder Air App
http://coenraets.org/blog/2007/08/salesbuilder-source-code-available/

I created Salesbuilder Air App project in flex 3 and used the
ImportExisting project s into workspace option in Flex 3 to import
the sample code.

However it will not run within flex 3 giving me the following message;

The file is not launchable! I think the problem is with the
salesbuilder.mxml file. It opens (i.e. I can view in source) in Flex 2
but will not open in Flex 3. When I say problem I'm pretty sure its
something I'm doing wrong.

My next step was to try another sample as a test. I downloaded the
sample code for the Adobes employeedirector Air application.
Once imported I was then able to run the app sucessfully within the
Flex 3 environment. So now I know that I can run an Air app within
Flex 3 however I am none the wiser as to what the issue is with
Salesbuilder Air App

The following are screenshots of the sample files in FB3 and the error
message.
http://www.mywebdocs.org/fb3/salesexample.pdf

Any suggestions would really, really be appreciated. I'm running XP
SP2 with 2 MHZ and 2 gig ram

Thanks a lot, Garrett




[flexcoders] FullScreen in Builder 3 Beta 1

2007-09-09 Thread justin.buser
Here's a quick example of how to switch to full screen in FB3:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
applicationComplete={stage.addEventListener('fullScreen',function(e:Event):void{
debugText.text='width:'+width+' height: '+height+' Display State: ' +
stage.displayState; })}
mx:Text id=debugText text=width: {width} height: {height}
Display State: normal width=100% height=20 textAlign=center /
mx:Button label=Toggle fullscreen
click={stage.displayState=='fullScreen' ? stage.displayState='normal'
: stage.displayState='fullScreen';} /
/mx:Application

If this doesn't work you probably need to update your installation to
the newest build of the sdk, currently:
http://download.macromedia.com/pub/labs/flex/3/flex3sdk_b1_061107.zip



[flexcoders] how to connect a jsp with the mxml using Apache Tomcat5.5

2007-09-09 Thread kandas_raja
hi 
 
we find ur email in ur blog . we are currently looking for a 
jsp sample handling mxml .
 
 
we had an error using tomcat 5.5 and fds 2.0 . we cant find the 
requested class flex/webtier/server/j2ee/wrappers/J2EEWrapper  if 
u send me a sample jsp file ,web.xml with the respected jars ,  we 
will be gratefull . we dont know how to configure the web.xml in 
respect to flex . here below  i mentioned error  i got  with the 
respected jsp file and web.xml 
 
java.lang.NoClassDefFoundError: 
flex/webtier/server/j2ee/wrappers/J2EEWrapper
flex.webtier.server.j2ee.jsp.MxmlTagImpl.setPageContext
(MxmlTagImpl.java:94)
flex.bootstrap.BootstrapTag.setPageContext
(BootstrapTag.java:107)
org.apache.jsp.urldemo_jsp._jspx_meth_mm_mxml_0
(org.apache.jsp.urldemo_jsp:83)
org.apache.jsp.urldemo_jsp._jspService
(org.apache.jsp.urldemo_jsp:58)
org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the 
Apache Tomcat/5.5.9 logs.

 urldemo.jsp
---
%@ page language=java%
%@ taglib uri=FlexTagLib prefix=mm %
html
titletesting tag library/title
body
 mm:mxml
 /mm:mxml
/body
/html

 
web.xml
--
 
 
 
?xml version=1.0 encoding=UTF-8?  
  
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web 
Application 2.3//EN  http://java.sun.com/dtd/web-app_2_3.dtd;  
  
web-app  
display-nameWeekiServer/display-name  
descriptionWeeki Server/description  
  
context-param  
param-nameflex.class.path/param-name  
param-value/WEB-INF/flex/jars/param-value
  !--  param-value/WEB-INF/flex/hotfixes,/WEB-
INF/flex/jars/param-value   -- 
  
  
/context-param  
  
!-- Http Flex Session attribute and binding listener support --
  
listener  
listener-classflex.messaging.HttpFlexSession /listener-
class  
/listener  
  
!-- MessageBroker Servlet --  
servlet  
servlet-nameMessageBrokerServlet/servlet-name  
display-nameMessageBrokerServlet/display-name  
servlet-classflex.messaging.MessageBrokerServlet/servlet-
class  
init-param  
param-nameservices.configuration.file/param-name  
param-value/WEB-INF/flex/services- config.xml/param-
value  
   /init-param  
init-param  
param-nameflex.write.path/param-name  
param-value/WEB-INF/flex/param-value  
/init-param  
load-on-startup1/load-on-startup  
/servlet  
  
servlet  
servlet-nameFlexMxmlServlet/servlet-name  
display-nameMXML Processor/display-name  
descriptionServlet wrapper for the Mxml 
Compiler/description  
servlet-classflex.bootstrap.BootstrapServlet /servlet-
class  
init-param  
param-nameservlet.class/param-name  
param-valueflex.webtier.server.j2ee.MxmlServlet/param-
value  
/init-param  
init-param  
param-namewebtier.configuration.file/param-name  
param-value/WEB-INF/flex/flex-webtier-
config.xml/param-value  
/init-param  
   load-on-startup1/load-on-startup  
/servlet  
  
servlet  
servlet-nameFlexSwfServlet/servlet-name  
display-nameSWF Retriever/display-name  
servlet-classflex.bootstrap.BootstrapServlet/servlet-
class  
init-param  
param-nameservlet.class /param-name  
param-valueflex.webtier.server.j2ee.SwfServlet/param-
value  
/init-param  
!-- SwfServlet must be initialized after MxmlServlet --  
load-on-startup2/load-on-startup  
/servlet  
  
servlet  
servlet-nameFlexForbiddenServlet/servlet-name  
display-namePrevents access to *.as/*.swc files/display-
name  
servlet-classflex.bootstrap.BootstrapServlet/servlet-
class  
init-param  
param-nameservlet.class/param-name  
param-value 
flex.webtier.server.j2ee.ForbiddenServlet/param-value  
/init-param  
/servlet  
  
servlet  
servlet-nameFlexInternalServlet/servlet-name  
servlet-classflex.bootstrap.BootstrapServlet/servlet-
class  
init-param  
param-nameservlet.class/param-name  
param-value 
flex.webtier.server.j2ee.filemanager.FileManagerServlet/param-
value  
/init-param  
load-on-startup10/load-on-startup  
/servlet  
  
servlet-mapping  
servlet-nameMessageBrokerServlet/servlet-name  
url-pattern/messagebroker/*/url-pattern  

[flexcoders] Re: Creating Custom Events - I need help!

2007-09-09 Thread danielvlopes
Thanks, i'm living in brazil and today is sunday, only tomorrow i will
can test your sugestion. Tomorrow i post here the result. Thanks.


--- In flexcoders@yahoogroups.com, Mayank [EMAIL PROTECTED] wrote:

 The metadata tag is only to assist your compiler and does not
translate in
 any runtime code.
 
 Since you are using actionscript to dispatch and catch the event you can
 skip this tag. The application will work just fine.
 
 On 9/7/07, robertdx.tw [EMAIL PROTECTED] wrote:
 
Hi,
  I think that you should state complete class path in metadata tag.
 
  something like:
  mx:Metadata
  [Event
  (name=uploadComplete,type=com.somdomain.MultipleUploadFileEvent)]
  /mx:Metadata
  otherwise, compiler won't know where the event class is.
 
  Good luck.
 
  Robert
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  danielvlopes danielvlopes@
 
  wrote:
  
   Hello,
  
   I'm trying create a custom event, this event is dispatched completed
   upload of some files.
   But Event type 'MultipleUploadFileEvent' is unavailable. the erro
   appear.
  
   i think the reason is because i extended custom event from
   flash.event.Event and this custom event need to be extended of other
   package, but i don't who.
  
   Here is part of my code:
  
   My meta data is (extended of flash.event.Event):
   mx:Metadata
   [Event (name=uploadComplete, type=MultipleUploadFileEvent)]
   /mx:Metadata
  
   in function make upload i had de following code:
   refUploadFile.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,
   onUploadCompleteData);
  
   And in this moment (onUploadCompleteData) a try to dispatche event
   calling uploadComplete function:
  
   public function onUploadCompleteData(event:DataEvent):void {
   numCurrentUpload++;
   uploadProgress.visible=false;
   uploadForm.visible=true;
   if (numCurrentUpload  arrUploadFiles.length) {
   startUpload(false);
   }else{
   uploadComplete(event.data.toString());
   }
   }
  
   this is the function to dispatch event:
   public function uploadComplete(xmlResult:String) :void{
   var eventObj:MultiUploadFileEvent = new
   MultiUploadFileEvent(xmlResult,uploadComplete);
   dispatchEvent(eventObj);
   }
  
  
   Thanks everyone.
  
 
   
 





Re: [flexcoders] Dragging and moving an image to a new location

2007-09-09 Thread Sheriff
DragManager.acceptDrop()

- Original Message 
From: alex_gky [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, September 9, 2007 9:28:35 AM
Subject: [flexcoders] Dragging and moving an image to a new location









  



Hi all,



How do I achieve dragging an image and upon releasing the mouse

button, the image moves to the new location? I have achieve till the

drag drop stage using action script. But when the dragDrop() event is

called, how do I use action script to update an image (say id=img1)

to the new mouse cursor location? 



Please help.



Cheers:)

Alex






  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--








  

Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



[flexcoders] Re: How to expand TREE Node children by clicking folder icon instead of triangle

2007-09-09 Thread hardaur55
Mubasher,

  Hi, I'm doing the same thing you are.  You can see some code that
makes it happen at
http://tech.groups.yahoo.com/group/flexcoders/message/86441

However, you'll run into the same problem I am : (

H


--- In flexcoders@yahoogroups.com, mubasherhaneef
[EMAIL PROTECTED] wrote:

 I have a question regarding opening of tree branch node;
 
 In a tree, a branch node can contain multiple child nodes, and, by 
 default, appears as a folder icon with a disclosure triangle that 
 lets users open and close the folder but I was trying to open child 
 node/folder, when user will click either on triangle or on folder 
 icon.
 
 I tried the below mentioned code but that expands all the nodes 
 children of tree instead of expanding one node children;
 
 Any help, suggestions or code example should be appreciated.
 
 Regards,
 
 Mubasher
 
 
 
 mx:Script
 ![CDATA[
 
 public function treeChanged(event:Event):void {
 selectedNode=Tree(event.target).selectedItem as XML;
 
 if([EMAIL PROTECTED] == My node){
//myTree.expandItem(treeData,true);
myTree.expandChildrenOf(myTree.dataProvider[0],true);
 }
 
 ]]
 /mx:Script
 
  
 mx:XML id=treeData
 node label=root Node
 node label=My node
 node label=myNode1 data=myNode1/
 node label=myNode2 data=myNode2/
 node label=myNode3 data=myNode3/
 /node
 node label=My Profile
 node label=Change Password data=password/
 node label=Personal data=personal/
 node label=Contact Info data=contact/
 /node
 /node   
 /mx:XML
 
 mx:Tree id=myTree width=100% height=100% labelField=@label
 backgroundColor=#BEC7CC showRoot=true useHandCursor=true 
 dataProvider={treeData} change=treeChanged(event)/





[flexcoders] Re: Programatically deselecting tree branch objects

2007-09-09 Thread hardaur55
for posterity, I finally came up with a decent solution.

To programatically deselect an item from a Tree:

treeObjectName.selectedItem = null;

Hope that helps somebody at some point.

H


--- In flexcoders@yahoogroups.com, hardaur55 [EMAIL PROTECTED] wrote:

 Good morning all,
 
 I'm trying to set up a tree control so that branch items open and close
 on select just as if somebody had clicked the twirly.
 
 I've got everything taken care of but I need to find a way to
 programatically deselect the branch item.
 
 Here's the code problem:
 
 In my Tree change event handler
 
 public function handleTreeChangeEvent(event:Event):void
 {
  //some code
 
 if (selectedVideoId != '')
  {
  trace(selectedVideoId +  is the selected video);
  }
  else
  {
  if (videoTree.isItemOpen(selectedVideo))
  {
  videoTree.expandItem(selectedVideo, false, true);
  // I now need to deselect this tree item
  }
  else
  {
  videoTree.expandItem(selectedVideo, true, true);
  //  I now need to deselect this tree item.
  }
  }
 }
 
 See the // comments for details on what I'm trying to do.
 
 I very much appreciate any light anybody can shine on this, I've been
 beating up google and the API docs for the last few hours with no
 results.
 
 Thanks!!
 
 H





[flexcoders] Rotating Thing, Example inside

2007-09-09 Thread Sheriff
was wondering if anyone knew how to do something like this
http://www.thereplicants.net/flex/test/InfobolsaDashboard.swf

hold SHIFT+ESC and use the cursor thats in the middle of the mouse to move it




   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

RE: [flexcoders] How to know what is in mx_internal

2007-09-09 Thread Alex Harui
Search all of the source for mx_internal

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sheriff
Sent: Saturday, September 08, 2007 11:37 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to know what is in mx_internal

 

this is all i see

**

14
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L14 

 *  This namespace is used for undocumented APIs -- usually
implementation

15
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L15 

 *  details -- which can't be private because they need to visible

16
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L16 

 *  to other classes.

17
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L17 

 *  APIs in this namespace are completely unsupported and are likely to

18
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L18 

 *  change in future versions of Flex.

19
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L19 

 */

20
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L20 

public namespace mx_internal =

21
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L21 

http://www.adobe.com/2006/flex/mx/internal
http://www.adobe.com/2006/flex/mx/internal ;

22
http://tools.assembla.com/flexsdk/browser/mx/core/mx_internal.as#L22 

}

 

- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, September 9, 2007 1:25:19 AM
Subject: RE: [flexcoders] How to know what is in mx_internal

Read the source code and used the debugger, probably.  Keep in mind that
mx_internal is not officially supported so its APIs can change or go
away in future releases and break your code.

 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
On Behalf Of Sheriff
Sent: Saturday, September 08, 2007 10:08 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] How to know what is in mx_internal

 

I checked out the FlexLib on google, the superTabNavigator etc.. and
they used alot of mx_internal stuff, now i tried finding any
documentation about the stuff in there but couldnt find anything so i
was wondering how did they find out what do to use. 

 



Shape Yahoo! in your own image. Join our Network Research Panel today!
http://us.rd.yahoo.com/evt=48517/*http:/surveylink.yahoo.com/gmrs/yahoo
_panel_invite.asp?a=7  

 

 



Got a little couch potato? 
Check out fun summer activities for kids.
http://us.rd.yahoo.com/evt=48248/*http:/search.yahoo.com/search?fr=oni_
on_mailp=summer+activities+for+kidscs=bz 

 



[flexcoders] List component selectedIndex not updating when selecting and rolling off

2007-09-09 Thread bick
The list component (Flex 2) selectedIndex is not updating when
selecting and rolling off a list item. However, the selection
indicator appears over the rolled off item.

You can see this strange behavior with a simple test:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
mx:List id=tl width=150 
mx:dataProvider
mx:Object label=item 1/
mx:Object label=item 2/
mx:Object label=item 3/
/mx:dataProvider
/mx:List
mx:Label text=Selected Index = {tl.selectedIndex}/
/mx:Application

Steps to reproduce:

1. Select item 1 normally by clicking on it.
2. Roll over item 2, mouse down on item 2, move the mouse off the
list, and release.

Notice the Selected Index text still states '0' even though item 2
appears selected.

Anyone else see this and know why? Any work around?





RE: [flexcoders] List component selectedIndex not updating when selecting and rolling off

2007-09-09 Thread Alex Harui
Known bug.  Fixed in Moxie.  Not sure of a workaround.  Maybe get
mouseUp in capture phase and send change event.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bick
Sent: Sunday, September 09, 2007 2:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List component selectedIndex not updating when
selecting and rolling off

 

The list component (Flex 2) selectedIndex is not updating when
selecting and rolling off a list item. However, the selection
indicator appears over the rolled off item.

You can see this strange behavior with a simple test:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=vertical
mx:List id=tl width=150 
mx:dataProvider
mx:Object label=item 1/
mx:Object label=item 2/
mx:Object label=item 3/
/mx:dataProvider
/mx:List
mx:Label text=Selected Index = {tl.selectedIndex}/
/mx:Application

Steps to reproduce:

1. Select item 1 normally by clicking on it.
2. Roll over item 2, mouse down on item 2, move the mouse off the
list, and release.

Notice the Selected Index text still states '0' even though item 2
appears selected.

Anyone else see this and know why? Any work around?

 



Re: [flexcoders] CData inside XML object

2007-09-09 Thread Daniel Freiman
Look at XML.ignoreWhitespace (
http://livedocs.adobe.com/flex/201/langref/XML.html).

Also, would think you would be able to create a cdata node by doing
something like this:
var cdata:XML = new XML(![CDATA[ + s  + ]]);

- Dan Freiman

On 9/7/07, discoguy77 [EMAIL PROTECTED] wrote:

   Hello,
 I am saving some text from a string into a XML element.
 For example:

 var s:String = Hello ;
 var xml:XML = root{s}/root;

 I would like the following to happen:
 trace(xml); // prints Hello  (without quotes)

 Unfortunately, E4X trims the whitespace. I would like my XML object
 to be root![CDATA[{s}]]/root so that the space (maybe?)
 wouldn't be trimmed, but I cannot use a CDATA block since it occurs
 inside a mx:Script![CDATA[ ... ]]/mx:Script already.

 Is there a way to add a CDATA block to an E4X XML object?

 P.S. As a workaround, I can escape() the string before adding it,
 and unescape() afterwards, but this seems ugly and loses the human-
 readability.

  



Re: [flexcoders] Problem with RichTextEditor and Embedded fonts

2007-09-09 Thread Daniel Freiman
TextFields, the basis/renderer for (almost) text controls in flex, allows
you to use embeded fonts or device fonts, but not both at the same time in a
given TextField.  See TextField.embedFonts in livedodcs for (minimally) more
information.

- Dan Freiman

On 9/9/07, kiwicomposer [EMAIL PROTECTED] wrote:

   Hi folks

 I'm having a problem with the RichTextEditor when using an embedded font
 in my application.

 When the font for TextArea is set to an embedded font, no device fonts
 will render in the RTE.  Typing when this font is selected just causes no
 characters to be displayed.

 Can be duplicated using the following code:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute historyManagementEnabled=true
 mx:Style
 @font-face {
 src: url(assets/fonts/Calibri.swf);
 fontFamily: Calibri;
 }
 @font-face {
 src: url(assets/fonts/Calibri.swf);
 fontFamily: Calibri;
 fontWeight: bold;
 }
 TextArea
 {
 fontFamily:Calibri;
 fontSize: 13pt;
 }
 /mx:Style
 mx:RichTextEditor  /
 /mx:Application

 Using this code, try setting the font in the RTE to anything other than
 Calibri, and no text is rendered.

 I've seen posts on this group that discuss a similar problem (embedding
 Verdana, which possibly causes the device font to be shadowed), but that
 doesn't appear to be the case here.

 Any suggestions?

 Marty

  



[flexcoders] Re: List component selectedIndex not updating when selecting and rolling off

2007-09-09 Thread bick
Perfect- thanks for clearing that up.

Here's one solution:

In a class that extends the list based class:

public class TransparentTileList extends TileList
{

 public function TransparentTileList(){
 super();
 }

  override protected function
mouseUpHandler(event:MouseEvent):void{
super.mouseUpHandler(event);
var evt:ListEvent;
var item:IListItemRenderer =
mouseEventToItemRenderer(event);
var pt:Point = itemRendererToIndices(item);

evt = new ListEvent(ListEvent.CHANGE);
 evt.itemRenderer = item;
 if (pt)
 {
 evt.columnIndex = pt.x;
 evt.rowIndex = pt.y;
 }
 dispatchEvent(evt);
}
}


--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Known bug.  Fixed in Moxie.  Not sure of a workaround.  Maybe get
 mouseUp in capture phase and send change event.



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of bick
 Sent: Sunday, September 09, 2007 2:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] List component selectedIndex not updating when
 selecting and rolling off



 The list component (Flex 2) selectedIndex is not updating when
 selecting and rolling off a list item. However, the selection
 indicator appears over the rolled off item.

 You can see this strange behavior with a simple test:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 layout=vertical
 mx:List id=tl width=150 
 mx:dataProvider
 mx:Object label=item 1/
 mx:Object label=item 2/
 mx:Object label=item 3/
 /mx:dataProvider
 /mx:List
 mx:Label text=Selected Index = {tl.selectedIndex}/
 /mx:Application

 Steps to reproduce:

 1. Select item 1 normally by clicking on it.
 2. Roll over item 2, mouse down on item 2, move the mouse off the
 list, and release.

 Notice the Selected Index text still states '0' even though item 2
 appears selected.

 Anyone else see this and know why? Any work around?




[flexcoders] Dynamic Assignment of DataGrid columns

2007-09-09 Thread generalxxaxx
I have created an mxml component for a datagrid.
I wanted to switch the columns between three sets.

The code below is my attempt to accomplish this. A failed attempt.
Is there something wrong with this approach?
Or, is there perhaps something wrong with my implementation?

Regards,
Claude


?xml version=1.0 encoding=utf-8?
mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml;
   horizontalScrollPolicy=auto verticalScrollPolicy=auto
   editable=false width=100% height=100%
   mx:Script
   ![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;

public function setDisplayColumns(which:String):void {
   switch (which)
   {
   case 1:
   _displayColumns = colSet1;
   break;

   case 2:
   _displayColumns = colSet2;
   break;

   case 3:
   _displayColumns = colSet3;
   break;
   }

}
  ]]
/mx:Script
   
mx:Array id=colSet1
mx:DataGridColumn dataField=field1 headerText=title1 /
/mx:Array
mx:Array id=colSet1
mx:DataGridColumn dataField=field2 headerText=title2 /
/mx:Array
mx:Array id=colSet3
mx:DataGridColumn dataField=field3 headerText=title3 /
/mx:Array
/mx:DataGrid



[flexcoders] Re: Dynamic Assignment of DataGrid columns

2007-09-09 Thread generalxxaxx
Please ignore previous post.
Just noticed that in copy/paste of the code
I left the columns bit off.

mx:columns
{_displayColumns}
/mx:columns

Sorry for the bandwidth,
Claude

--- In flexcoders@yahoogroups.com, generalxxaxx [EMAIL PROTECTED] wrote:

 I have created an mxml component for a datagrid.
 I wanted to switch the columns between three sets.
 
 The code below is my attempt to accomplish this. A failed attempt.
 Is there something wrong with this approach?
 Or, is there perhaps something wrong with my implementation?
 
 Regards,
 Claude
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml;
horizontalScrollPolicy=auto verticalScrollPolicy=auto
editable=false width=100% height=100%
mx:Script
![CDATA[
   import mx.controls.dataGridClasses.DataGridColumn;
 
   public function setDisplayColumns(which:String):void {
switch (which)
{
case 1:
_displayColumns = colSet1;
break;
 
case 2:
_displayColumns = colSet2;
break;
 
case 3:
_displayColumns = colSet3;
break;
}
 
   }
   ]]
   /mx:Script

   mx:Array id=colSet1
   mx:DataGridColumn dataField=field1 headerText=title1 /
   /mx:Array
   mx:Array id=colSet1
   mx:DataGridColumn dataField=field2 headerText=title2 /
   /mx:Array
   mx:Array id=colSet3
   mx:DataGridColumn dataField=field3 headerText=title3 /
   /mx:Array
 /mx:DataGrid





[flexcoders] Re: Creating Custom Events - I need help!

2007-09-09 Thread robertdx.tw
Thanks for the correction, Mayank.
Robert
--- In flexcoders@yahoogroups.com, Mayank [EMAIL PROTECTED] wrote:

 The metadata tag is only to assist your compiler and does not
translate in
 any runtime code.
 
 Since you are using actionscript to dispatch and catch the event you can
 skip this tag. The application will work just fine.
 
 On 9/7/07, robertdx.tw [EMAIL PROTECTED] wrote:
 
Hi,
  I think that you should state complete class path in metadata tag.
 
  something like:
  mx:Metadata
  [Event
  (name=uploadComplete,type=com.somdomain.MultipleUploadFileEvent)]
  /mx:Metadata
  otherwise, compiler won't know where the event class is.
 
  Good luck.
 
  Robert
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  danielvlopes danielvlopes@
 
  wrote:
  
   Hello,
  
   I'm trying create a custom event, this event is dispatched completed
   upload of some files.
   But Event type 'MultipleUploadFileEvent' is unavailable. the erro
   appear.
  
   i think the reason is because i extended custom event from
   flash.event.Event and this custom event need to be extended of other
   package, but i don't who.
  
   Here is part of my code:
  
   My meta data is (extended of flash.event.Event):
   mx:Metadata
   [Event (name=uploadComplete, type=MultipleUploadFileEvent)]
   /mx:Metadata
  
   in function make upload i had de following code:
   refUploadFile.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,
   onUploadCompleteData);
  
   And in this moment (onUploadCompleteData) a try to dispatche event
   calling uploadComplete function:
  
   public function onUploadCompleteData(event:DataEvent):void {
   numCurrentUpload++;
   uploadProgress.visible=false;
   uploadForm.visible=true;
   if (numCurrentUpload  arrUploadFiles.length) {
   startUpload(false);
   }else{
   uploadComplete(event.data.toString());
   }
   }
  
   this is the function to dispatch event:
   public function uploadComplete(xmlResult:String) :void{
   var eventObj:MultiUploadFileEvent = new
   MultiUploadFileEvent(xmlResult,uploadComplete);
   dispatchEvent(eventObj);
   }
  
  
   Thanks everyone.
  
 
   
 





Re: [flexcoders] Best Practices for XML Compression

2007-09-09 Thread Mark Carolin
Have you seen this library?

http://code.google.com/p/vanrijkom-flashlibs/

It may be a great way to save some bandwidth...

Mark

On 9/9/07, Steve Hueners [EMAIL PROTECTED] wrote:

   With e4x it's much more tempting to use XML for lots of my
 client/server traffic but the overhead is still going to be a problem.
 I've see a couple compression strategies outlined but most for AS2
 and/or i'm not clear on server-side requirements.

 Is there a) any good overview of the topic; b) emerging consensus as
 to how best approach?

 thx
 --steve...
  




-- 
323-573-4352(c)

AIM:bulbousbeans
MSN:[EMAIL PROTECTED]


[flexcoders] LocalConnection and BitmapData

2007-09-09 Thread daniel_mcweeney
I have two flex apps and I would like to send a BitmapData object
between them.  The Sender application gets the BitmapData from a UI
object and sends it to the Receiver application.

Sender Application:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:Script
![CDATA[
import mx.controls.SWFLoader;
public function sendButtonImage():void{
var out_lc:LocalConnection = new 
LocalConnection();
var bitmapData:BitmapData;
bitmapData = new BitmapData(target.width, 
target.height);
bitmapData.draw(target,new Matrix());
out_lc.send(_foobar, imageHandler, 
bitmapData); 
}
]]
/mx:Script
mx:Button id=target x=10 y=10 label=Button
click={sendButtonImage()}/
/mx:Application



Receiver Application:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
applicationComplete=appComplete()
mx:Script
![CDATA[
import mx.controls.SWFLoader;
public var in_lc:LocalConnection;
public function appComplete():void{

in_lc = new LocalConnection();
in_lc.allowInsecureDomain(*);
in_lc.client = this;
in_lc.allowDomain(*);
in_lc.connect(_foobar);
}
public function imageHandler(foo:BitmapData):void{
}
]]
/mx:Script
/mx:Application


On the receiver side I get a type coercion error, saying:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.LocalConnection was unable to invoke callback imageHandler.
error=TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to flash.display.BitmapData.

Can you not send a BitmapData object across a LocalConnection?  I
haven't seen anyone say this isn't possible so, I must be doing
something totally stupid.

thanks for any info.
-d





[flexcoders] Re: Rotating Thing, Example inside

2007-09-09 Thread tudury_david
they probably rendered a few steps of the spinning animation into
buffers. then they display the appropriate buffer based on how far
you've rotated it.  notice how when you place a window on one side of
the cube it goes wonky when you rotate it to another side.



[flexcoders] How to Pass Data From Server to Client On App Load

2007-09-09 Thread Charles Dale
Hi guys,

I've been banging around solutions to this (apparently) simple problem 
for a few months. I still haven't found something I'm happy with.

In our system users load Flex apps off an Apache server, authenticating 
to Apache using Single Sign-On (mod_auth_kerb against an ActiveDirectory 
server). The Flex app then loads/modifies data using HTTPServices to a 
Rails app. Apache passes the authentication details to Rails in a 
header, so I know the username in Rails and can lookup groups using LDAP 
on the AD server.

My problem is: how do I quickly and securely pass the name of the logged 
in user to the Flex app running on the client? I've tried the following 
methods:

1. Use mod_rewrite to redirect the browser to 
app.swf?user=%{REMOTE_USER} and then use ExternalInterface to read the 
user parameter in Flex. -- Can get the user straight away, yay, but it's 
obviously insecure.

2. Provide a Rails action that reports the authenticated user (and 
groups). -- Not quick enough: I want to know the user straight away at 
app startup so I can display admin functions to admin users. Also the 
HTTPService call seems like unnecessary overhead to me.

Any ideas how to do this? Some options I can think of but I'm not sure 
are possible:

1. Embed the username in the .swf somehow. I guess this would be a use 
for live-compiled MXML files on the server (but we don't have FDS/LCDS).

2. Configure Apache to send the username back in the HTTP headers and 
read them using ExternalInterface (possible?). Wouldn't be particularly 
secure. Although all the actual security is in Rails, so even if people 
managed to get the admin interface in Flex they couldn't use it to 
change anything on the server without the correct permissions on their 
user account.

3. Delay the startup of the Flex app until I get a result from the user 
HTTPService? I don't really want the user to wait though...

4. Use ExternalInterface to get the authenticated username from the 
browser using JavaScript. No idea if there are JavaScript functions to 
do this but would probably be the best method - no round trip to the server.

Ta!
Charlie


[flexcoders] main application's url?

2007-09-09 Thread grimmwerks
Hey - I've got a flex app that has to sit on the internet at  
different domains; what's the easiest way to get the main url for  
future httpservice callbacks, as 'localhost' doesn't seem to work...


[flexcoders] Re: Rotating Thing, Example inside

2007-09-09 Thread robertdx.tw
Hi,
You  can use Alex Uhlmann's distortion effects
http://weblogs.macromedia.com/auhlmann/archives/2007/03/distortion_effe\
.cfm

Robert

--- In flexcoders@yahoogroups.com, Sheriff [EMAIL PROTECTED] wrote:

 was wondering if anyone knew how to do something like this
 http://www.thereplicants.net/flex/test/InfobolsaDashboard.swf

 hold SHIFT+ESC and use the cursor thats in the middle of the mouse to
move it






\

 Sick sense of humor? Visit Yahoo! TV's
 Comedy with an Edge to see what's on, when.
 http://tv.yahoo.com/collections/222




[flexcoders] Re: private / getters and setters

2007-09-09 Thread nathanpdaniel
If you're ever interested in using ASDoc to document your classes, 
it states you should name the variable, followed by the setter, then 
the getter.
i.e.:
private var _a:Object;
public function set a(value:Object):void
{
 _a = value;
}
public function get a():Object
{
 return _a;
}

This would be solely for documentation and future developers though -
 doesn't really effect your code either way! :D

--- In flexcoders@yahoogroups.com, Sheriff [EMAIL PROTECTED] wrote:

 what is the best practice for this, show i always have the private 
variables on top and then getters/setters later or just group both 
of them right after the other
 
 private var _test:Number
 
 //Constructor here
 //events etcc
 //getters and setters or
 
 //construct
 //vents
 //private var_test:Number
 getters/setters
 
 
 
 

 
_
___
 Be a better Heartthrob. Get better relationship answers from 
someone who knows. Yahoo! Answers - Check it out. 
 http://answers.yahoo.com/dir/?link=listsid=396545433





[flexcoders] Re: How to converst an XML to AS Object ?

2007-09-09 Thread Derrick Grigg
You can't automatically convert XML to a strong typed object. You 
should create a method in your Album class that takes an xml 
variable, and then populate the Album from there.

ie 
var album:Album = new Album();
album.setData(event.result);


class Album
{
   public function setData(data:XML):void 
   {
  //populate the album
   }
}

Derrick

Derrick Grigg
www.dgrigg.com

--- In flexcoders@yahoogroups.com, lytvynyuk [EMAIL PROTECTED] wrote:

 Situation I have XML like that 
 album
 name/name
 images
 image/image
 image/image
 image/image
 /images
 /album
 
 using HTTPService I'm getting this XML.
 
 I have AS Class:
 
 public class Album {
 public var name:String;
 public var images:ArrayCollection;
 }
 
 straight cast like:
 
 
 var album:Album = Album (event.result);
 
 
 doesn't work
 
 Is any suggestion around this, what I do wrong, may be there are 
some
 other way to do that
 
 Thank you.





[flexcoders] building up the url for httpservice

2007-09-09 Thread grimmwerks

Ok this is stupid.

Since we've got an app that might be moving around, I was going to  
either pass the rootURL in flash vars or strip it from the main  
application.url.


Well did all that but how do I set it in the httpservice's url with a  
variable AND a string:


url={rootURL+\/signup/register\}


?


Re: [flexcoders] building up the url for httpservice

2007-09-09 Thread shaun
grimmwerks wrote:
 Ok this is stupid.
 
 Since we've got an app that might be moving around, I was going to  
 either pass the rootURL in flash vars or strip it from the main  
 application.url.
 
 Well did all that but how do I set it in the httpservice's url with a  
 variable AND a string:
 
 url={rootURL+\/signup/register\}
 
 
 ?
 

url={rootURL}/signup/register


- s


Re: [flexcoders] building up the url for httpservice

2007-09-09 Thread Sheriff

i think thats where the nameofthesevice.Send(...) comes in, so place the url 
inside the send, dont quote me on this though
- Original Message 
From: grimmwerks [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, September 9, 2007 10:21:36 PM
Subject: [flexcoders] building up the url for httpservice









  



Ok this is stupid.



Since we've got an app that might be moving around, I was going to either pass 
the rootURL in flash vars or strip it from the main application. url. 


Well did all that but how do I set it in the httpservice' s url with a variable 
AND a string: 


url={rootURL+\/signup/register\}




?
 


  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz
 

[flexcoders] Re: How to converst an XML to AS Object ?

2007-09-09 Thread lytvynyuk
Thank you I kinda knew about that way ;)
but if my object contains30 fields and also has a bunch of another
objects, this procedure will be painful  ;)

What about this way:

public function result(event:ResultEvent):void {
var xmlS:XML = XML(event.result);
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);   
var xdoc : XMLDocument =  new XMLDocument();
xdoc.ignoreWhite = true;
xdoc.parseXML(xmlS.toXMLString());   
var ob:Object = decoder.decodeXML(XMLNode(xdoc.firstChild));
var feed:Album= Album(ob); // Exception here
}

But this doesn't work for me too ;)

--- In flexcoders@yahoogroups.com, Derrick Grigg [EMAIL PROTECTED] wrote:

 You can't automatically convert XML to a strong typed object. You 
 should create a method in your Album class that takes an xml 
 variable, and then populate the Album from there.
 
 ie 
 var album:Album = new Album();
 album.setData(event.result);
 
 
 class Album
 {
public function setData(data:XML):void 
{
   //populate the album
}
 }
 
 Derrick
 
 Derrick Grigg
 www.dgrigg.com
 
 --- In flexcoders@yahoogroups.com, lytvynyuk lytvynyuk@ wrote:
 
  Situation I have XML like that 
  album
  name/name
  images
  image/image
  image/image
  image/image
  /images
  /album
  
  using HTTPService I'm getting this XML.
  
  I have AS Class:
  
  public class Album {
  public var name:String;
  public var images:ArrayCollection;
  }
  
  straight cast like:
  
  
  var album:Album = Album (event.result);
  
  
  doesn't work
  
  Is any suggestion around this, what I do wrong, may be there are 
 some
  other way to do that
  
  Thank you.
 





[flexcoders] Re: Problem with RichTextEditor and Embedded fonts

2007-09-09 Thread kiwicomposer
That's a shame.  Thanks for the response.

Marty

--- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote:

 TextFields, the basis/renderer for (almost) text controls in flex,
allows
 you to use embeded fonts or device fonts, but not both at the same
time in a
 given TextField.  See TextField.embedFonts in livedodcs for
(minimally) more
 information.
 
 - Dan Freiman
 
 On 9/9/07, kiwicomposer [EMAIL PROTECTED] wrote:
 
Hi folks
 
  I'm having a problem with the RichTextEditor when using an
embedded font
  in my application.
 
  When the font for TextArea is set to an embedded font, no device fonts
  will render in the RTE.  Typing when this font is selected just
causes no
  characters to be displayed.
 
  Can be duplicated using the following code:
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute historyManagementEnabled=true
  mx:Style
  @font-face {
  src: url(assets/fonts/Calibri.swf);
  fontFamily: Calibri;
  }
  @font-face {
  src: url(assets/fonts/Calibri.swf);
  fontFamily: Calibri;
  fontWeight: bold;
  }
  TextArea
  {
  fontFamily:Calibri;
  fontSize: 13pt;
  }
  /mx:Style
  mx:RichTextEditor  /
  /mx:Application
 
  Using this code, try setting the font in the RTE to anything other
than
  Calibri, and no text is rendered.
 
  I've seen posts on this group that discuss a similar problem
(embedding
  Verdana, which possibly causes the device font to be shadowed),
but that
  doesn't appear to be the case here.
 
  Any suggestions?
 
  Marty
 
   
 





[flexcoders] Help with AdvancedDatagrid

2007-09-09 Thread Sandeep Malik
Guys,

We have an issue. We're using a HierarchicalData as dataProvider and 
we have a case where in a user can add a child node to a parent node. 
What we want is as follows:
A user selects a parent node in data grid (i.e. that particular row 
appears selected), and  then he adds a new node under this parent. 
What we do is we modify the dataProvider and rebind it, but this make 
the data grid 'wipe out' any previous selection and now the data in 
grid appears in the default state (ie when nothing is selected). How 
can we preserve the selection state?

Regards,
Sandeep



[flexcoders] RELEASE: maven-flex2-plugin 1.1 released

2007-09-09 Thread Christian Gruber
Greetings all,

I have just released maven-flex2-plugin v1.1.   This is a plugin to 
allow flex applications to be built via the Maven automated build system.

Changes include:

* Fix: Calls to mxmlc and compc may fail if command-line is too long 
on windows. 
* Old version of maven-dependency-plugin is used which causes 
conflicts in some large recursive projects.
* Add -licenses.license product serial-number to compiler options  

as well as a few quality and documentation fixes. 

The project is available on googlecode at 
http://code.google.com/p/israfil-mojo, and the actual code is available 
on the main maven repositories (or should be within a day of this e-mail 
as the new update is propagated to their servers.)  The project 
documentation can be found at 
http://www.israfil.net/projects/mojo/maven-flex2-plugin/.

Any further issues can be logged at the googlecode site which has an 
issue (bug) tracker.

Thanks for all the issues logged - there are still ones left, and I'll 
be working on them and some new features over the next two months.  My 
plan is to release more frequently with smaller increments of change.

regards,
Christian.



Re: [flexcoders] LocalConnection and BitmapData

2007-09-09 Thread EECOLOR
The problem lies in the fact that BitmapData is not serializable in AMF3.
What you can do is:

Extend the BitmapData class and add a line like this in the top class
definition:

[RemoteClass(alias=package.ClassName)]

Make sure your new class has no arguments in the constructor and that all
the data you want to pass along is available through public properties.

What might work in case of BitmapData is the getPixels method. This will
give you a ByteArray containing all pixel information. Send that ByteArray
over the LocalConnection and at the receiving end use setPixels.

To test your solution you can use the following code:

var ba:ByteArray = new ByteArray();
ba.writeObject(myData);
ba.position = 0;

var resultData:TypeYouAreExpecting = ba.readObject() as TypeYouAreExpecting;


I hope this helps.


Greetz Erik


RE: [flexcoders] main application's url?

2007-09-09 Thread Alex Harui
Application.application.url

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Sunday, September 09, 2007 7:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] main application's url?

 

Hey - I've got a flex app that has to sit on the internet at 
different domains; what's the easiest way to get the main url for 
future httpservice callbacks, as 'localhost' doesn't seem to work...