[flexcoders] I'm really, really frustrated with Flex

2008-02-29 Thread alexander.marktl
I have an app that needs to load multiple images. I do not wanna embed
them. But no matter what method I try, nothing works on my server. On
localhost everything works fine. The app is almost ready but on my
server the images either don't load, push me an security error or what
the heck else.

I asked some friends and they are telling me complicated code things I
can try, tell me things about Flash Security that doesn't interest me
(my crossdomain is just domain="*") or other stuff that sounds not
worth the effort for simple image loading.

I just want to load a simple image from a url, that either can be on
my server or some other server.

Can you show me a little SIMPLE how to, (or am I really forced to
switch back to Javascript)? 



[flexcoders] Re: E4X and DataGrid

2007-12-18 Thread alexander.marktl
Oh. I made a mistake in the post. This is how the grid looks like and
it still doesn't work.


  

  





[flexcoders] E4X and DataGrid

2007-12-17 Thread alexander.marktl
Hi!

I try to fill a datagrid with a RSS Feed. I wanna use e4x and a
httpService and I tried out the tutorial "Loading external data with
HTTPService" on the Adobe Devnet. Here's a link:
http://www.adobe.com/devnet/flex/quickstart/httpservice/

Here are the most important parts:


http://api.flickr.com/services/feeds/photos_public.gne"; 
resultFormat="e4x"
result="photoResultHandler(event);"
fault="photoFaultHandler(event);"
/>

...


// Result handler - gets called after RSS is loaded.
private function photoResultHandler(event:ResultEvent):void

{
  photoFeed = event.result as XML;
}



The tutorial code works but when I insert my DataGrid it doesn't show
data, alltough some fields are filled with empty strings. Here's how I
inserted it:


  

  



What can be wrong?



[flexcoders] Re: Flex XML parsing E4X question

2007-06-04 Thread alexander.marktl
Hey Brendon.

Now it's working! Thanks for the help


--- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Hey Alex,
> 
> Given an XML structure like so:
> 
> [Bindable]
> private var myXML:XML = 
> 
> http://www.example.com";>Huber
> 
> 
> http://www.example.com";>John
> 
> 
> http://www.example.com";>Bob
> 
> ;
> 
> Your datagrid columns would look like this...
> 
> 
> 
> 
> And you'd use a labelFunction like this...
> 
> private function myFunc(item:Object, column:DataGridColumn):String
> {
> return [EMAIL PROTECTED];
> }
> 
> 
> 
> Brendan
> 
> On 6/3/07, alexander.marktl <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> >
> > I wanna parse a XML file like this:
> >
> > 
> > 
> > http://www.example.com";>Huber
> > ...
> > 
> > 
> >
> > I have no problem parsing it, except of the href within the name tag.
> > My DataGrid looks like this:
> >
> > 
> > 
> > 
> > 
> > ...
> > 
> > 
> >
> >  
> >
> 
> 
> 
> -- 
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>




[flexcoders] Flex XML parsing E4X question

2007-06-03 Thread alexander.marktl
Hi,

I wanna parse a XML file like this:



   
  http://www.example.com";>Huber
  ...
   



I have no problem parsing it, except of the href within the name tag.
My DataGrid looks like this:


   
  
  
  ...
   
  



[flexcoders] Re: Regular Expression Problem

2007-03-09 Thread alexander.marktl
Have found the error: 

Here's the working code:
--
public function liveSearch(searchString:String):RegExp {
var regExSearchString:RegExp = new RegExp(searchString, 'i');
return regExSearchString;
}


 wrote:
>
> Hey Gordon. Thanks for the answer.
> 
> I tried your suggestion, but it still won't work. 
> 
> I show once again what the problem is. 
> I'm a novice, please keep this in mind ;-)
> 
> 
> This one works but it's case-sensitive. (The function liveSearch is
> unnecessary in this case. I know.):
> -- 
> public function liveSearch(searchString:String):String 
> {
> return searchString
> }
> 
> 
> 
dataProvider="{externalXML.customer.(name1.match(liveSearch(searchStringInput.text)))}"
> >
> --
> 
> 
> 
> If I add RegExs the troubles begin. I have a label to show what's
> the RegExs output and it's excatly what it should be. If the string is
> empty it works just fine. If I start typing it shows nothing.
> -- 
> public function liveSearch(searchString:String):String 
> {
> if(searchString == '') {
> return ''
> }
> else {
> var regExSearchString:RegExp = new RegExp(searchString, 'i');
> var searchTerm:String = regExSearchString.toString();
> return searchTerm
> }
> }
> 
> 
> 
dataProvider="{externalXML.customer.(name1.match(liveSearch(searchStringInput.text)))}"
> >
> --
> 
> 
> 
> I also tried a static variable but this one works neither.
> So, always when I trie to add RegExs over variables it causes problems.
> --
> public var test:RegExp = new RegExp('Stich',i);
> public var test1:String = test.toString();
> 
>  dataProvider="{externalXML.customer.(name1.match(test1))}"
> >
> --
> 
> 
> Does anybody know what the problem could be?
> Thanks for replies...
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Gordon Smith"  wrote:
> >
> > If the search pattern is a variable, I think you must use a RegExp
> > constructor rather than the /.../ RegExp literal notation. In other
> > words, do
> >  
> > new RegExp(searchString.text, "i")
> >  
> > instead of
> >  
> > /searchString.text/i
> >  
> > - Gordon
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of alexander.marktl
> > Sent: Thursday, March 08, 2007 1:33 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Regular Expression Problem
> > 
> > 
> > 
> > Hi there.
> > 
> > I'm trying to use regex for a search function. I want case-insensitive
> > search, so I'm using the regex: /ANYTEXT/i
> > 
> > This one does work, but I want to insert a searchString.text variable
> > instead of ANYTEXT. 
> > "/searchString.text/i" doesn't work. 
> > 
> > How can i do this?
> > 
> > Here's the code, if it helps:
> > 
> > 
> >  > dataProvider="{externalXML.customer.(name1.match(/stich/i))}">
> > ...
> >
>




[flexcoders] Re: Regular Expression Problem

2007-03-09 Thread alexander.marktl
Hey Gordon. Thanks for the answer.

I tried your suggestion, but it still won't work. 

I show once again what the problem is. 
I'm a novice, please keep this in mind ;-)


This one works but it's case-sensitive. (The function liveSearch is
unnecessary in this case. I know.):
-- 
public function liveSearch(searchString:String):String 
{
return searchString
}



--



If I add RegExs the troubles begin. I have a label to show what's
the RegExs output and it's excatly what it should be. If the string is
empty it works just fine. If I start typing it shows nothing.
-- 
public function liveSearch(searchString:String):String 
{
if(searchString == '') {
return ''
}
else {
var regExSearchString:RegExp = new RegExp(searchString, 'i');
var searchTerm:String = regExSearchString.toString();
return searchTerm
}
}



--



I also tried a static variable but this one works neither.
So, always when I trie to add RegExs over variables it causes problems.
--
public var test:RegExp = new RegExp('Stich',i);
public var test1:String = test.toString();


--


Does anybody know what the problem could be?
Thanks for replies...








--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> If the search pattern is a variable, I think you must use a RegExp
> constructor rather than the /.../ RegExp literal notation. In other
> words, do
>  
> new RegExp(searchString.text, "i")
>  
> instead of
>  
> /searchString.text/i
>  
> - Gordon
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of alexander.marktl
> Sent: Thursday, March 08, 2007 1:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Regular Expression Problem
> 
> 
> 
> Hi there.
> 
> I'm trying to use regex for a search function. I want case-insensitive
> search, so I'm using the regex: /ANYTEXT/i
> 
> This one does work, but I want to insert a searchString.text variable
> instead of ANYTEXT. 
> "/searchString.text/i" doesn't work. 
> 
> How can i do this?
> 
> Here's the code, if it helps:
> 
> 
>  dataProvider="{externalXML.customer.(name1.match(/stich/i))}">
> ...
>




[flexcoders] Regular Expression Problem

2007-03-08 Thread alexander.marktl
Hi there.

I'm trying to use regex for a search function. I want case-insensitive
search, so I'm using the regex: /ANYTEXT/i

This one does work, but I want to insert a searchString.text variable
instead of ANYTEXT. 
"/searchString.text/i" doesn't work. 

How can i do this?



Here's the code, if it helps:



...