[flexcoders] Issue changing the depth of an onscreen object through actionscript

2010-03-21 Thread Fahim Akhter
Hi,

Hi my designer made a fla file where he has animated layers loads of them.
All the images inside those animations are loaded from outside the swf.

Now, the issue is at one point in time I want some of the objects to go
under another object ( current their on top) . If I do this visually the
images inside the swf(loaded) are lost.

Any ideas?

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/


Re: [flexcoders] Make a Timer's first timeout event immediate

2010-03-21 Thread Alex Harui
Set the timeout to be much shorter, then on the first event, change the delay 
to 10s


On 3/21/10 3:20 PM, "p_repetti"  wrote:







Hello

how do I set a Timer to time out immediately the first time ?
I mean: I create a Timer with an interval of 10s; I set an event listener to
the timeout() function.
When I start() it, I have to wait for 10s for it to time out and execute
timeout(). How can I force the first timeout() execution immediately ?

Thanks

--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Using Server Stored Images In An Air Application?

2010-03-21 Thread Tracy Spratt
You should be able to use mx:Image and set the source to the url of the
image on the server.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Gary Moorcroft
Sent: Monday, March 22, 2010 1:16 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using Server Stored Images In An Air Application?

 

  


Cheers Tracy. How exactly would I go about doing that though? The reason I
can't figure it out is the images folder is on the server and the app is on
each user's desktop. Normally this wouldn't matter as both the app and the
images folder would both be on the server in a regular flex app which I'm
used to using but how can I access the images folder from an air
application? How is it done generally I mean?

--- On Mon, 22/3/10, Tracy Spratt  wrote:


From: Tracy Spratt 
Subject: RE: [flexcoders] Using Server Stored Images In An Air Application?
To: flexcoders@yahoogroups.com
Date: Monday, 22 March, 2010, 3:04

  

Sure, load the images dynamically.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
Behalf Of James
Sent: Sunday, March 21, 2010 1:13 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Using Server Stored Images In An Air Application?

  

  

Is there any way to display server stored images within an Air application?

 





RE: [flexcoders] Make a Timer's first timeout event immediate

2010-03-21 Thread Keith Reinfeld
If I understand you correctly: 

 

import flash.utils.Timer; 

import flash.events.TimerEvent; 

 

var _timer:Timer = new Timer(1000, 10); 

_timer.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true); 

_timer.start(); 

onTimer(); 

function onTimer(e:TimerEvent = null):void { 

// do stuff 

if(e != null){ 

trace("\nonTimer() called by _timer
event::",e.currentTarget.currentCount); 

if(e.currentTarget.currentCount ==
e.currentTarget.repeatCount){ 

 
e.currentTarget.removeEventListener(TimerEvent.TIMER, onTimer); 

} 

}else{ 

trace("\nonTimer() NOT called by _timer
event"); 

} 

} 

 

// Or 

 

var _timer2:Timer = new Timer(1000, 10); 

_timer2.addEventListener(TimerEvent.TIMER, onTimer2, false, 0, true); 

_timer2.start(); 

executeOnTimer("NOT from onTimer2()"); 

function onTimer2(e:TimerEvent):void { 

trace("\nonTimer2() called"); 

executeOnTimer("from onTimer2()"); 

if(e.currentTarget.currentCount ==
e.currentTarget.repeatCount){ 

 
e.currentTarget.removeEventListener(TimerEvent.TIMER, onTimer2); 

} 

} 

function executeOnTimer(s:String):void{ 

trace("executeOnTimer() called::", s); 

// do stuff 

} 

 

HTH 

 

Regards,

 

Keith Reinfeld
Home Page:  
http://keithreinfeld.home.comcast.net

 

 



RE: [flexcoders] Using Server Stored Images In An Air Application?

2010-03-21 Thread Gary Moorcroft
Cheers Tracy. How exactly would I go about doing that though? The reason I 
can't figure it out is the images folder is on the server and the app is on 
each user's desktop. Normally this wouldn't matter as both the app and the 
images folder would both be on the server in a regular flex app which I'm used 
to using but how can I access the images folder from an air application? How is 
it done generally I mean?

--- On Mon, 22/3/10, Tracy Spratt  wrote:


From: Tracy Spratt 
Subject: RE: [flexcoders] Using Server Stored Images In An Air Application?
To: flexcoders@yahoogroups.com
Date: Monday, 22 March, 2010, 3:04


  





Sure, load the images dynamically.
 

Tracy Spratt,
Lariat Services, development services available




From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of James
Sent: Sunday, March 21, 2010 1:13 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Using Server Stored Images In An Air Application?
 
  



Is there any way to display server stored images within an Air application?








  

[flexcoders] What are the Flex3/4 websites requirements after been FTP to the hosting server?

2010-03-21 Thread fred44455
I am not  new to web design ok. I have done several websites in my life so I 
deserve to be treated with respect ok. It is not because I am a newbie in Flex 
& AS3 that I am a retarded. Had several weird & rude answers from this site 
each time that I am asking a simple question. Anyway my question is simple: Do 
you FTP a Flex3 website the same way that you will do with a HTML site? Any 
specific requirements to have the website ready to go as soon as it is uploaded 
on the server?  Thanks for your time.



RE: [flexcoders] Re: Problem reading an XML file

2010-03-21 Thread Tracy Spratt
If you can see the xml when you do:

var myXML:XML = XML(event.result);

trace(myXML.toXMLString());  //do yo see the whole xml?

 

then go one level deeper:

myXML = myXML.data[0]

trace(myXML.toXMLString());  //do you see the data xml

 

If so, go one level deeper, and trace that, etc.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Friday, March 19, 2010 8:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem reading an XML file

 

  

I am not very good with XML (That's Tracy's expertise) but you can get it
with the following:

myXML..woeid
myXML[0]..woeid

and probably a dozen different ways.

You may like to check these out for more detail...

http://www.adobe.

com/devnet/flex/quickstart/accessing_xml_data/
http://livedocs. 
adobe.com/flex/3/langref/XML.html

--- In flexcod...@yahoogro  ups.com,
"Sneha"  wrote:
>
> Hello All,
> 
> Can anybody help me find out the bug in my program which doesn't read
children in an XML file. 
> 
> I am trying to get WOEID of the location provided from Yahoo webservice
API. I have given below what I am doing and also the XML file generated from
Yahoo.
> 
>  id="weatherService" 
> url = "
> http://where. 
yahooapis.com/v1/places.q('{txtCity.text}');start=0;count=1?appid=your
AppID" 
> result="getWOEID(event)" fault="faultEventHandler(event)"
> resultFormat="
> e4x"/> 
> 
> This is what I am doing in Script tag. But nothing works. I am able to
read the complete XML file but not the children of an XML file. Could
someone help find the problem.
> private
> function init():void{ 
> var city:String = txtCity.text;
> //Alert.show("Your City:"+city); 
> weatherService.cancel();
> //var params:Object = new Object(); 
> //params.q = city; 
> //Alert.show("params.q"+params.q); 
> //weatherService.send(params); 
> weatherService.send();
> } 
> private function getWOEID(event:ResultEvent):void{ 
> var myXML:XML = XML(event.result); 
> taXML.text = myXML;
> var cityList:XMLList = myXML.data.place.children();
> Alert.show(
> "getting woeid:" +cityList); 
> //taXML = cityList.toString(); 
> //cityList = myXML.places.place.name ; 
> //cityList = myXML.place.woeid;
> //Alert.show("in getWOEID() " +cityList); 
> //lblWOEID.text = cityList; 
> }
> This is the XML file generated and I am interested in accessing : 
> 
> 
> −
> http://where.

yahooapis.com/v1/place/2371464" xml:lang="en-us">
> 2371464
> Town
> Buffalo
> United States
> New York
> Erie
> 
> Buffalo
> 
> 
> −
> 
> 42.885441
> -78.878464
> 
> −
> 
> −
> 
> 42.824860
> -78.942909
> 
> −
> 
> 42.970741
> -78.771393
> 
> 
> 
> 
> 
> Any help would be appreciated.
> 
> Thank you
> 
> Sneha
>





RE: [flexcoders] Using Server Stored Images In An Air Application?

2010-03-21 Thread Tracy Spratt
Sure, load the images dynamically.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of James
Sent: Sunday, March 21, 2010 1:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using Server Stored Images In An Air Application?

 

  

Is there any way to display server stored images within an Air application?





[flexcoders] how to prevent multiple logins w/ same id

2010-03-21 Thread hgnowhg
My application is a .swf file inside a php wrapper. Since I have a paid 
subscription site, I want to prevent "user A" from giving his password to "user 
B". If user B loggeds in w/ User A's username & password, then I will simply 
log out User A. (In the case that User B stole the password/username of User A 
then User A can simply change his password...This would also allow User A to 
login at home if he forgets to logout of the application while at work).

What's the best way to do this? 



[flexcoders] preventing multiple logins w/ same id

2010-03-21 Thread hgnowhg
My application is a .swf file inside a php wrapper. Since I have a paid 
subscription site, I want to prevent "user A" from giving his password to "user 
B". If user B loggeds in w/ User A's username & password, then I will simply 
log out User A. (In the case that User B stole the password/username of User A 
then User A can simply change his password...This would also allow User A to 
login at home if he forgets to logout of the application while at work).

What's the best way to do this? 



[flexcoders] Make a Timer's first timeout event immediate

2010-03-21 Thread p_repetti

Hello

how do I set a Timer to time out immediately the first time ?
I mean: I create a Timer with an interval of 10s; I set an event listener to
the timeout() function.
When I start() it, I have to wait for 10s for it to time out and execute
timeout(). How can I force the first timeout() execution immediately ?

Thanks
-- 
View this message in context: 
http://old.nabble.com/Make-a-Timer%27s-first-timeout-event-immediate-tp27977025p27977025.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Unsubscribe

2010-03-21 Thread Chris Greener












  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2

[flexcoders] Re: Using Server Stored Images In An Air Application?

2010-03-21 Thread James


--- In flexcoders@yahoogroups.com, "James"  wrote:
>
> Is there any way to display server stored images within an Air application?
>

I can easily use server images within a flex application but it's basically the 
fact that I'm having problems displaying images stored in a server in an air 
app. I'm making an app that is to be used by multiple users but I want it to 
have images that can be updated and then be visible to all users.

Can anyone suggest anything for this or is it simply not possible to display 
images stored on a server in air applications?



Re: [flexcoders] Flex Builder won't use my changes (resolved, without explanation)

2010-03-21 Thread Rick Genter
On Mar 21, 2010, at 8:32 AM, Lee Jenkins wrote:
> Are they any linked projects?  If so, try cleaning them as well or clean all 
> when asked.  I had the same problem with a main project which referenced 
> custom 
> library folders.  Seems FB has a problem keeping everything in sync.
> 
> Not sure if that is your problem.

Hi Lee,

Thanks for the suggestion. This is a single project - I have not added any 
custom libraries to it.

I managed to get it working again, but I'm not sure what I did to get it to 
work. I'll pay closer attention to my process to see if I can determine what 
causes it should it happen again.
--
Rick Genter
rick.gen...@gmail.com



[flexcoders] New wew comer in flex

2010-03-21 Thread KENARIO
// WebTrends SmartSource Data Collector Tag
// Version: 8.6.2 
// Tag Builder Version: 3.0
// Created: 2/3/2010 7:13:14 PM

function WebTrends(){
var that=this;
// begin: user modifiable
this.dcsid="dcsout4kk1435d9zt77ba_2l4e";
this.domain="webtrendsdc.ckc.bz";
this.timezone=-6;
this.fpcdom=".xxx.com";
this.enabled=true;
this.i18n=false;
this.fpc="WT_FPC";
this.paidsearchparams="gclid";
// end: user modifiable
this.DCS={};
this.WT={};
this.DCSext={};
this.images=[];
this.index=0;
this.exre=(function(){return(window.RegExp?new 
RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"):"");})();

this.re=(function(){return(window.RegExp?(that.i18n?{"%25":/\%/g}:{"%09":/\t/g,"%20":/
 
/g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}):"");})();
}
WebTrends.prototype.dcsGetId=function(){
if 
(this.enabled&&(document.cookie.indexOf(this.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){
document.write("<\/scr"+"ipt>");
}
}
WebTrends.prototype.dcsGetCookie=function(name){
var cookies=document.cookie.split("; ");
var cmatch=[];
var idx=0;
var i=0;
var namelen=name.length;
var clen=cookies.length;
for (i=0;i0){
idx=0;
if ((cmatchCount>1)&&(name==this.fpc)){
var dLatest=new Date(0);
for (i=0;idLatest){
dLatest.setTime(dLst.getTime());
idx=i;
}
}
}
return unescape(cmatch[idx].substring(namelen+1));
}
else{
return null;
}
}
WebTrends.prototype.dcsGetCrumb=function(cval,crumb,sep){
var aCookie=cval.split(sep||":");
for (var i=0;i(dLst.getTime()+180))||(dCur.getTime()>(dSes.getTime()+2880))){
WT.vt_f_tlv=Math.floor((dSes.getTime()-adj)/1000);
dSes.setTime(dCur.getTime());
WT.vt_f_s="1";
}
if 
((dCur.getDay()!=dLst.getDay())||(dCur.getMonth()!=dLst.getMonth())||(dCur.getYear()!=dLst.getYear())){
WT.vt_f_d="1";
}
}
WT.co_f=escape(WT.co_f);
WT.vtid=(typeof(this.vtid)=="undefined")?WT.co_f:(this.vtid||"");
WT.vtvs=(dSes.getTime()-adj).toString();
var expiry="; expires="+dExp.toGMTString();
var cur=dCur.getTime().toString();
var ses=dSes.getTime().toString();
document.cookie=name+"="+"id="+WT.co_f+":lv="+cur+":ss="+ses+expiry+"; 
path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));
var rc=this.dcsIsFpcSet(name,WT.co_f,cur,ses);
if (rc!=0){
WT.co_f=WT.vtvs=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";
if (typeof(this.vtid)=="undefined"){
WT.vtid="";
}
WT.vt_f=WT.vt_f_a=rc;
}
}
WebTrends.prototype.dcsMultiTrack=function(){
var args=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;
if (args.length%2==0){
this.dcsSetProps(args);
var dCurrent=new Date();
this.DCS.dcsdat=dCurrent.getTime();
this.dcsFPC();
this.dcsTag();
}
}
WebTrends.prototype.dcsCleanUp=function(){
this.DCS={};
this.WT={};
this.DCSext={};
if (arguments.length%2==0){
this.dcsSetProps(arguments);
}
}
WebTrends.prototype.dcsSetProps=function(args){
for (var i=0;i=5));
var ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));
var ie4=(ie&&(major==4)&&(agt.indexOf("msie 4")!=-1));
var ie5up=(ie&&!ie4);
var op=(agt.indexOf("opera")!=-1);
var op5=(agt.indexOf("opera 
5")!=-1||agt.indexOf("opera/5")!=-1);
var op6=(agt.indexOf("opera 
6")!=-1||agt.indexOf("opera/6")!=-1);
var op7up=(op&&!op5&&!op6);
var jv="1.1";
if (ff3up){
jv="1.8";
}
else if (ff20){
jv="1.7";
}
else if (ff15){
jv="1.6";
}
else if (ff0||ff10||nn6up||op7up){
jv="1.5";
}
else if ((mac&&ie5up)||op6){
jv="1.4";
}
else if (ie5up||nn4||op5){
jv="1.3";
}
else if (ie4){

[flexcoders] BlazeDS collections help

2010-03-21 Thread Jeff
Does anyone have any experience with mapping Actionscript collections (ie. 
ArrayCollection, Object - Map, Dictionary, etc) back to Java collections using 
RemoteObject and BlazeDS.  If so, any insights, tips, tricks would be greatly 
appreciated.  It seems that the Java to actionscript works pretty seamlessly 
while the actionscript back to Java requires some additional work with 
converting types.  

I'm using the RemoteClass metadata tag but ArrayCollection is failing to 
convert back to a List java object.  Thanks.



Re: [flexcoders] Flex Builder won't use my changes

2010-03-21 Thread Mike Chabot
Disable your browser cache. I have to do this when developing.

-Mike Chabot

On Sat, Mar 20, 2010 at 7:49 PM, Rick Genter  wrote:

>
>
> I've been building an app with Flex Builder 3. All of a sudden when I run
> my app using the debugger I no longer see my changes reflected. For example,
> I have a class where I deleted several trace() calls and added another
> trace() call, yet when I run the app I'm seeing the old trace() messages and
> not the new trace() message. Furthermore, when I put a breakpoint on the new
> trace() call, the debugger claims that there is no code at that breakpoint,
> indicating that the code has not been recompiled.
>
> I've tried cleaning the project, restarting Flex Builder and even deleting
> the project and re-importing it from CVS, but to no avail. Any suggestions?
>
> Relevant version information:
>
> Flex Builder 3, Version 3.0, Build 3.0.2.214193
> Mac OS X 10.6.2
> --
> Rick Genter
> rick.gen...@gmail.com 
>
>  
>


Re: [flexcoders] Flex Builder won't use my changes

2010-03-21 Thread kris range
Check the date of the debug swf flex builder is building to make sure
they are the latest ones...if not that, I'm sure you've already tried
this but a browser cache clear is also something to try. I tend to
always use Firefox with web developer no-cache settings but whenever I
test in Safari or Chrome that stuff always happens to me.


On Sun, Mar 21, 2010 at 4:32 PM, Lee Jenkins  wrote:
> Rick Genter wrote:
>>
>>
>> I've been building an app with Flex Builder 3. All of a sudden when I
>> run my app using the debugger I no longer see my changes reflected. For
>> example, I have a class where I deleted several trace() calls and added
>> another trace() call, yet when I run the app I'm seeing the old trace()
>> messages and not the new trace() message. Furthermore, when I put a
>> breakpoint on the new trace() call, the debugger claims that there is no
>> code at that breakpoint, indicating that the code has not been recompiled.
>>
>> I've tried cleaning the project, restarting Flex Builder and even
>> deleting the project and re-importing it from CVS, but to no avail. Any
>> suggestions?
>
> Are they any linked projects?  If so, try cleaning them as well or clean all
> when asked.  I had the same problem with a main project which referenced 
> custom
> library folders.  Seems FB has a problem keeping everything in sync.
>
> Not sure if that is your problem.
>
> --
> Warm Regards,
>
> Lee
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


Re: [flexcoders] Flex Builder won't use my changes

2010-03-21 Thread Lee Jenkins
Rick Genter wrote:
>  
> 
> I've been building an app with Flex Builder 3. All of a sudden when I 
> run my app using the debugger I no longer see my changes reflected. For 
> example, I have a class where I deleted several trace() calls and added 
> another trace() call, yet when I run the app I'm seeing the old trace() 
> messages and not the new trace() message. Furthermore, when I put a 
> breakpoint on the new trace() call, the debugger claims that there is no 
> code at that breakpoint, indicating that the code has not been recompiled.
> 
> I've tried cleaning the project, restarting Flex Builder and even 
> deleting the project and re-importing it from CVS, but to no avail. Any 
> suggestions?

Are they any linked projects?  If so, try cleaning them as well or clean all 
when asked.  I had the same problem with a main project which referenced custom 
library folders.  Seems FB has a problem keeping everything in sync.

Not sure if that is your problem.

--
Warm Regards,

Lee



[flexcoders] Re: Creating class instance defined in string?

2010-03-21 Thread ag_rcuren
Take a look at ApplicationDomain Class it provides some methods that will help 
you do this. Here is an example of what you are trying to do I think...

try
{
var myClass:Class = 
ApplicationDomain.currentDomain.getDefinition(e.panelClassName) as Class;
var myInstance:* = new myClass();
}
catch(error:Error)
{
Alert.show("Error " + error);
return;
}

First we try to get a class definition from the panelClassName string. I say 
try because on thing to keep in mind is that if the Class is not being used 
else where in your app it may not be compiled into your swf. In this case the 
getDefinition method will throw an error.

If we did get a Class back we then use it to make a real instance of that class.


--- In flexcoders@yahoogroups.com, "Ivan"  wrote:
>
> I have a menu with XML dataprovider in which each node contains value 
> panelClass
> 
> 
> 
> panelClass contains a full class name of my panel components which I want to 
> display on node double click event.
> 
> The problem is how to create class instance from string definition name.
> 
> I used something like this:
> 
> registerClassAlias( e.panelClassName, Class);
> var ClassReference:Class = getQualifiedClassName(e.panelClassName) as Class;
> var instance:Panel = new ClassReference();
> 
> 
> e is event dispatched from MenuPanel component and it contains member value 
> panelClassName with component class name.
> 
> By using this code I need to have already created object with panelClassName 
> name. That doesn't help me because I have around 40 panel components and it 
> would be very annoying to have 40 object just waiting to be initialized.
> 
> Anyone has some suggestions?
> 
> Cheers,
> Ivan
> 
> P.S. Pardon me, this is my first post on the group and I would like to say - 
> Hi everyone :)
>




[flexcoders] Flex Builder won't use my changes

2010-03-21 Thread Rick Genter
I've been building an app with Flex Builder 3. All of a sudden when I run my 
app using the debugger I no longer see my changes reflected. For example, I 
have a class where I deleted several trace() calls and added another trace() 
call, yet when I run the app I'm seeing the old trace() messages and not the 
new trace() message. Furthermore, when I put a breakpoint on the new trace() 
call, the debugger claims that there is no code at that breakpoint, indicating 
that the code has not been recompiled.

I've tried cleaning the project, restarting Flex Builder and even deleting the 
project and re-importing it from CVS, but to no avail. Any suggestions?

Relevant version information:

Flex Builder 3, Version 3.0, Build 3.0.2.214193
Mac OS X 10.6.2
--
Rick Genter
rick.gen...@gmail.com



[flexcoders] Creating class instance defined in string?

2010-03-21 Thread Ivan
I have a menu with XML dataprovider in which each node contains value panelClass



panelClass contains a full class name of my panel components which I want to 
display on node double click event.

The problem is how to create class instance from string definition name.

I used something like this:

registerClassAlias( e.panelClassName, Class);
var ClassReference:Class = getQualifiedClassName(e.panelClassName) as Class;
var instance:Panel = new ClassReference();


e is event dispatched from MenuPanel component and it contains member value 
panelClassName with component class name.

By using this code I need to have already created object with panelClassName 
name. That doesn't help me because I have around 40 panel components and it 
would be very annoying to have 40 object just waiting to be initialized.

Anyone has some suggestions?

Cheers,
Ivan

P.S. Pardon me, this is my first post on the group and I would like to say - Hi 
everyone :)



[flexcoders] Anybody using the Sreenivas Pivot Component with MDX?

2010-03-21 Thread MicC
Cube data seems more accessible if it inside an OLAPCube instance, as in the 
classic Flex Pivot Component from Sreenivas. However this object takes a flat 
data source as input. Sreenivas, in responding to the question:

"I'm using a xmla bridge to get the data of the cube, do you know how can I 
feed the Pivot Component with the result of the query?.
The result is a IOLAPResult, but the PivotComponent expects a ICollectionView 
as datasource." answered

"You need to feed the IOLAPResult directly to the inner controls like OLAPChart 
and ODG extended classes as you have the result already."

Which I so far have failed to work out how to do. Is anyone using an MDX 
OLAPResult datasource for the Pivot Component? TIA,

Mic.