[flexcoders] Re: Cursor Error: Bookmark no longer valid.

2009-02-01 Thread luke_lee1124
I have the same problem, please let me know if you find a solution.
Many thanks



[flexcoders] ZendAmf Setup issue 1.7 where gateway filw working .?

2009-02-01 Thread Sajid Hussain
Hello Gurus , 

I am facing one issue where i am attempting to use Zend_amf but that code 
exactly work well with Amfphp,
I have seen all internet resources for zend and I am very courios on thier 
machine same code is working why not at mine :(
if I am trying to access gateway(Zend File) it work well but its not working 
from Flex App .
I have follwoing code and structure 

Gateway File :
?php
require_once 'Zend/Amf/Server.php';
require_once 'include/services/BListsService.php';
require_once 'include/services/UserService.php';
// Instantiate the server
$server = new Zend_Amf_Server();
$server-setClass('BListsService');
$server-setClassMap('BListsVO', 'BLists');
$server-setClass('UserService');
$server-setClassMap('UserVO', 'User');
$server-setProduction(false);
$server-handle(); // if I am echoing this its not execute and instead it comes 
up for download 
?

Services-xml :
?xml version=1.0 encoding=UTF-8?
services-config
services
service id=amfphp-flashremoting-service
class=flex.messaging.services.RemotingService
messageTypes=flex.messaging.messages.RemotingMessage
destination id=zend
channels
channel ref=my-zend/
/channels
properties
source*/source
/properties
/destination
/service
/services
channels
channel-definition id=my-zend class=mx.messaging.channels.AMFChannel
endpoint uri=http://localhost/gateway.php; 
class=flex.messaging.endpoints.AMFEndpoint /
/channel-definition
/channels
/services-config

Remote Services :

mx:RemoteObject
id=BListsService 
source=BListsService destination=zend 
endpoint=http://localhost/gateway.php;
showBusyCursor=true
/mx:RemoteObject

Please Reple
-Saj



  

[flexcoders] Re: using an event to trigger an action in a sibling component

2009-02-01 Thread Amy
--- In flexcoders@yahoogroups.com, weezee49 rainygl...@... wrote:

 But I still have a problem calling a public method in Login from 
 MainBox.  Because MainBox is in a different branch of the tree, it 
 can't see Login without some convoluted getChildAt().getChildAt(), 
 and so on.  
 
 Just to clarify, my diagram didn't come through.  Application has a 
 ViewStack, which has SplashBox and MainBox.  SplashBox has a VBox 
 which has an Accordion, which has LoginBox and CreateAccountBox.  
 
 This code worked in the Application:
 
 var vbox:UIComponent = splashBox.getChildAt(0) as UIComponent;
 var accord:UIComponent = vbox.getChildAt(3) as UIComponent;
 var loginBox = accord.getChildAt(0);
 loginBox.clearFields(e);
 
 But again, it seems inelegant, and not very robust if I have to 
 change the structure later.

http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
Q3



RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

2009-02-01 Thread Wally Kolcz
The problem seems to be here. I tried to trace each item and the length of each 
and they come up null and blank.

var xlNames:XMLList = xmlResult..columnList.string; 
var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType;


From: Tracy Spratt tspr...@lariatinc.com
Sent: Saturday, January 31, 2009 10:44 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster 
(I mean Dragon)? 

No, that was a typo.  Change columns to
names.   Why is it blank?  What is not working?   

Tracy Spratt 
 Lariat Services  

Flex development bandwidth available  

 From: 
flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of 
Wally Kolcz
Sent: Saturday, January 31, 2009
12:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)?   

I tried this (slight modification) and it came up
blank. In your loop, you have xlColumns[i] but you declared 'xlNames'. Are they
the same? Did I miss something?

public function loginHandler(e:ResultEvent):void {

var oLoginInfo:Object
= new Object();

var xmlResult =
XML(e.result)

var xlNames:XMLList =
xmlResult..columnList.string;

var xlValues:XMLList =
xmlResult..ArrayOfAnyType.anyType;

for (var
i:int=0;ixlNames.length();i++) {

oLoginInfo[xlNames[i]] = xlValues[i];

}

 Alert.show(oLoginInfo.lastName,'Last Name');

}   

 From :
Tracy Spratt tspr...@lariatinc.com
Sent: Saturday, January 31, 2009
7:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)? Yeah that is not 
pretty xml.  Since your data is not really a
list, but more properties of an object, here is what I would do:   var 
oLoginInfo:Object = new Object(); var xmlResult = XML(event.result) var 
xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = 
xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) {   
oLoginInfo[xlColumns[i]] = xlValues[i]; }   To see a value do: 
trace(oLoginInfo.lastName); //will trace ' Kolcz'But also, don't forget to 
compare the result from both servers, to
see if you get the same result. 

Tracy Spratt 
 Lariat Services 

Flex development bandwidth available 

 From:  flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of Wally Kolcz
Sent: Friday, January 30, 2009
9:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)?   

This
is what get from E4X. I have no idea on how to this to an easier format to use
like what I get from an ArrayCollection with a RemoteObject. 

Do I use XMLListCollection? Any hint on how? If I declare my userData variable
as public var userData:XMLListCollection = new XMLListCollection();
What do I set it to?

Thanks!

Result

loginResponse 
xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security;
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;

  loginResult

columnList xmlns=http://www.newatlanta.com/bluedragon;

  stringuniqname/string

  stringpassword/string

  stringlastName/string

  stringfirstName/string

  stringposition/string

  stringdepartment/string

  stringrole/string

  stringisActive/string

/columnList

data xmlns=http://www.newatlanta.com/bluedragon;

  ArrayOfAnyType

anyType xsi:type=xsd:stringwkolcz/anyType

anyType xsi:type=xsd:string2113/anyType

anyType xsi:type=xsd:stringKolcz/anyType

anyType xsi:type=xsd:stringWally/anyType

anyType xsi:type=xsd:stringColdFusion
/ Flex Developer/anyType

anyType xsi:type=xsd:stringPRMC/anyType

anyType xsi:type=xsd:stringadmin/anyType

anyType xsi:type=xsd:double1/anyType

  /ArrayOfAnyType

/data

  /loginResult

/loginResponse 

 From : Tracy Spratt tspr...@lariatinc.com
Sent: Thursday, January 29, 2009
8:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)? Better set 
resultFormat=e4x and look at ther real
xml data instead of the converted object tree.   

Tracy Spratt  
 Lariat Services  

Flex development bandwidth available  

 From:  flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of Wally Kolcz
Sent: Thursday, January 29, 2009
9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Oh WTF? Web
Services: Anyone work with Blue Disaster (I mean Dragon)?

I have 2
mirrored 

[flexcoders] targetNamespace disappeared in Flex3

2009-02-01 Thread eyal_c
Hi,

I need to fetch the targetNamespace from a WSDL which i loaded into a
WebService object.

In Flex 2 the following code worked just fine:

var webService:WebService = new WebService();
webService.wsdl = URL
...
webService.loadWSDL();
var operation:Operation = webService[webServiceMethodName];

var targetNamespace:String = operation.targetNamespace;

When i converted my project to Flex 3 the last code didn't compile as
it seems that the 'targetNamespace' property was removed from the
Operation class.

Does anyone know how can i get the targetNamespace?

Thanks,



[flexcoders] Adding container references to an array

2009-02-01 Thread Hyder
How do I add container references to an array.
For example, I have these 4 containers

mx:Panel id=home title=Home /
mx:Panel id=portfolio title=Portfolio /
mx:Panel id=skills title=Skills /
mx:Panel id=contact title=Get in touch /

How do I add their references to an array in MXML

mx:Array id=containerList
!-- CONTAINER REFERENCES GOES HERE --
/mx:Array




[flexcoders] *** Security Sandbox Violation *** ?

2009-02-01 Thread markflex2007
I get the error message when I debug a application.the application
works fine, but I get the message in debug console.

Thanks

*** Security Sandbox Violation ***
SecurityDomain 'file:///C:/Documents and Settings/mark/My
Documents/Flex Builder
3/test0211a/bin-debug/CheckBoxDataGridApp1.html' tried to access
incompatible context 'file:///C:/Documents and Settings/mark/My
Documents/Flex Builder 3/test0211a/bin-debug/CheckBoxDataGridApp1.swf'



[flexcoders] Encrypted html

2009-02-01 Thread Paul Andrews
In an ideal world, I'd have an AIR app displaying HTML pages sourced from 
encrypted data installed on the same machine.

Seems to me that the only way to keep the data encrypted would be to install 
a web server which decrypts the pages on the fly.

Am I missing a something simple?

Paul 



[flexcoders] Re: the flex RTE and xhtml

2009-02-01 Thread Hyder
WoW! I doubt Derrick would be still interested after a year -6 days of 
posting :D

Nice article though, I remember reading it before too at your blog.


Hyder
www.alamgirdesigns.com

--- In flexcoders@yahoogroups.com, Igor Costa igorco...@... wrote:

 Derrick
 
 A solution, hope fits on your needs.   http://www.igorcosta.org/?
p=217
 
 
 Regards
 Igor Costa
 
 
 On Mon, Feb 4, 2008 at 7:40 PM, Derrick Anderson 
 no.way.this.is.in@... wrote:
 
anybody out there have anything that will take the html 
generated by the
  flex richtexteditor and have it output valid XHTML (and back 
again)?  i've
  found a few things googling but i have not found a good 
implementation yet.
 
  thanks,
  d.
   
 
 
 
 
 -- 
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org






[flexcoders] Flex/BlazeDS/Hibernate - serialization question

2009-02-01 Thread max.bruchmann
Hi,
I read a lot of time that flex/blazeds/hibernate is a cool combo. But
I there is one thing that troubles me.
So let's asume I have a Person class

public class Person {

 public var name:String;
 public var id;

}
It's no problem to send objects from this class between client and server.
But let's assume the Person class has furthermore a list of groups he
belongs to.

public class Person {

 public var name:String
 public var id;
 public var groups:ArrayCollection;

}
public class Group {

 public var name:String;
 public var id;

}

So now everytime we send a person object back to the blazeds/hibernate
backend all the groups he belongs to are getting serialized as well.
This means a lot of overhead gets send to backend when I only modify
some primitve data like the name.

Even more problematic would be if in addition the group objects
themselves would have list of persons that belongs to them.

I guess I could use the [Transient] Metatag to not send the collection
fields, but then I could not modify the groups in a person object easily.

So if there is any best practice for these kind of problems, please
let me know.

Thanks in advance
Max



[flexcoders] Buttonbar not centering at startup

2009-02-01 Thread Ben Cessa
Hi again, right now I'm just playing a little with AIR and PV3D writing a little useless app as anexercise. I'm having an odd problem with ButtonBar, the thing don't get the horizontal center when the apps starts, is aligned to the left, however, as soon as I start resizing the main window it works very nice. Any ideas about what could this be?The actual portion of code I'm using is this:mx:ButtonBar id="figSelector"	width="100%" height="100%"	horizontalGap="20" horizontalCenter="0"	verticalAlign="middle"	buttonWidth="50" buttonHeight="50">And here's a little screencap of what the component shows at startupBy the way, I'm also having problems removing that ugly background from the buttons, can't figure out the skin needed, I was thinking in use a 100% transparent PNG as background image but I'm not sure, just in case someone know how to remove that too :PWell, thanx a lot for your attention and I hope someone can give me hand with this

[flexcoders] Re: Buttonbar not centering at startup

2009-02-01 Thread Hyder
Try 

invalidate();
OR
figSelector.invalidate();

on your parent's creationComplete event handler.

I'm not so sure about your second question. Are you having trouble 
removing a skin that you've applied?


Hyder
www.alamgirdesigns.com

--- In flexcoders@yahoogroups.com, Ben Cessa bce...@... wrote:

 Hi again, right now I'm just playing a little with AIR and PV3D  
 writing a little useless app as an exercise. I'm having an odd 
problem  
 with ButtonBar, the thing don't get the horizontal center when the  
 apps starts, is aligned to the left, however, as soon as I start  
 resizing the main window it works very nice. Any ideas about what  
 could this be?
 
 The actual portion of code I'm using is this:
 
 mx:ButtonBar id=figSelector
   width=100% height=100%
   horizontalGap=20 horizontalCenter=0
   verticalAlign=middle
   buttonWidth=50 buttonHeight=50
 
 And here's a little screencap of what the component shows at startup
 
 
 
 By the way, I'm also having problems removing that ugly background  
 from the buttons, can't figure out the skin needed, I was thinking 
in  
 use a 100% transparent PNG as background image but I'm not sure, 
just  
 in case someone know how to remove that too :P
 
 Well, thanx a lot for your attention and I hope someone can give me  
 hand with this






[flexcoders] Simple but impossible Hbox alignment issue

2009-02-01 Thread Flex Noob
This one is rather perplexing. If I use a label inside an hbox and if the text 
inside the label runs too long it pushed the button off the screen:

mx:HBox width=100%
mx:Label text={text}/
mx:Spacer width=100%/
mx:Button id=button width=20 height=15/
/mx:HBox

Doesn't Flex tell the label what is maxWidth should be so that doesn't 
happen



  

[flexcoders] ns.publish('mp3:mystream', record) - Online documentation different to FB 3.0.2 - what gives?

2009-02-01 Thread tom s
Hi,

I'd like to record from a microphone to a .mp3 file on FMS 3.5.There are
numerous posts on the net saying this is not possible.
But the Flex 3.2 Language Reference on LiveDocs implies that it is (text
pasted at bottom of email):

http://livedocs.adobe.com/flex/3/langref/flash/net/NetStream.html#publish()

However, the Language Reference built into FB 3.0.2 does not make any
reference to publishing .mp3s.
So what gives?

Is this a typo in the Livedocs?
Is this a feature that isn't available yet, but will be soon?
Is it in-fact possible, but the details of how to do it aren't published?

When I try it I get NetStream.Publish.BadName

My setup is:
Flex SDK 3.2
Flash Player 10.0.r12 Debug
FMS 3.5 using LiveStreams app

BTW - the new speex codec in FP10 is awesome. Good recording of speech even
at 10 kbps.

cheers

tom



From LiveDocs
===
File formatSyntaxExampleFLVSpecify the stream name as a string, without a
filename extension. ns.publish(myFLVStream); MP3 or ID3 Specify the stream
name as a string, with prefix mp3: or id3: , respectively, and without a
filename extension. ns.publish(mp3:myMP3Stream);
ns.publish(id3:myID3data); MPEG-4-based files (such as F4V, MP4) Specify
the stream name as a string, with or without the filename extension and with
the prefix mp4: . The prefix indicates to Flash Media Server that the file
contains H.264-encoded video and AAC-encoded audio within the MPEG-4 Part 14
container format. ns.publish(mp4:myVideo.f4v)
ns.publish(mp4:myVideo.mp4); ns.publish(mp4:myVideo);
(whic


[flexcoders] simple(?) Flex change color question

2009-02-01 Thread Mic
This one is making my head hurt ... will there be any perceivable
difference in

a) slowly changing an object's color from it's current color e.g.
0xFF to 0xFF

and

b) slowly changing the object's color by morphing the correct
individual r, g and b from 0xFF to 0XFF?

Will it pass through the same shades on the way from current to new?
Reason I wonder is that I am looking at some PixelBlender filters that
change the tint of objects by manipulating the r,g,b components is
this different to just changing the color attribute? TIA,

Mic.



Re: [flexcoders] Simple but impossible Hbox alignment issue

2009-02-01 Thread Flex Noob
ok so just to follow up its a bug IMO with Label.

I tired setting truncateToFit and no dice.

So i swapped out label for text and its hot.


mx:HBox width=100%
mx:Text text={text}  truncateToFit=true/
mx:Spacer width=100% /
mx:Button id=button width=20 height=15/
/mx:HBox

I also tried a TextArea without setting truncateToFit and it worked too.

crap like this makes me glad I'm mostly an AS dev.




From: Flex Noob fl3xn...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Sunday, February 1, 2009 9:56:28 PM
Subject: [flexcoders] Simple but impossible Hbox alignment issue


This one is rather perplexing. If I use a label inside an hbox and if the text 
inside the label runs too long it pushed the button off the screen:

mx:HBox width=100%
mx:Label text={text} /
mx:Spacer width=100% /
mx:Button id=button width=20 height=15/
/mx:HBox

Doesn't Flex tell the label what is maxWidth should be so that doesn't 
happen