Re: [flexcoders] Re: FTP question

2008-08-21 Thread Maximilian Nyman
It's true that you can't just read the file system of the client
But that doesn't mean that you can't build a FTP client.
You should still be able to use FileReference and binary sockets to
create an upload only FTP client.

/Max


On Thu, Aug 21, 2008 at 5:41 PM, andrew_young.rm
[EMAIL PROTECTED] wrote:
 Peace!

 Thanks... that's what I was looking for... so I'll concentrate on
 creating an AIR module instead :) thanks for your confirmation

 Sincerely,

 Andrew John Young

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

 Not possible in web hosted Flex. Even with FP10 which supports
 reading and
 writing local files with restrictions, you can't iterate through
 files in a
 direcory and upload them.

 AIR can do it though, if that's an option for you.

 Sam

 --
 We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264)
 developer in
 the Washington D.C. Contact [EMAIL PROTECTED]


 On Tue, Aug 19, 2008 at 5:45 AM, andrew_young.rm 
 [EMAIL PROTECTED] wrote:

  Peace!
 
  Hi, newbie here, I've searched all 70 messages that had the keyword
  FTP in this group but so far I have not seen a concrete answer as to
  the possibility of doing an FTP client program using FLEX/AS3 (not
 AIR).
 
  Humbly I'd like to ask how we can socket.writeObject or
  socket.writeMultiByte (after establishing an FTP connection of course)
  a file that is inside the client's PC?
 
  Our problem is that we have a project site that aims to upload 90k
  number of files (not 90k bytes but 90k number of files). I was aiming
  to use FileReferenceList but found out that you can only upload using
  GET/POST functions. Since my server uses open source (PHP) technology,
  I thought it would be better to transfer the files via FTP (since PHP
  does have an execution time limit and extending said execution time
  will bog down the shared server. (oh did I mention they have only one
  guy uploading all the files? :) )
 
  I've scoured the web for an AS3 solution but so far can't find any...
  is this thing even possible? (I hope it is)
 
  Sincerely,
 
  Andrew John Young


Re: [flexcoders] URL of the loaded swf.

2007-12-04 Thread Maximilian Nyman
Application.application.url


On 12/5/07, ivansebastiansurya [EMAIL PROTECTED] wrote:

 Hi everyone,

 I'm just wondering if anyone knows how to detect the url from which
 our swf application is loaded from inside the Flex code. I need to do
 this as I need to refer to some other script (coldfusion cfc/ms) which
 resides in the same server as the swf, but I want to make my code
 generic so that I don't have to hardcode the url referencing those
 cfc/ms as absolute url.

 Thanks for your time.

 Ivan.


Re: [flexcoders] Binding Array as Data Provider for Combobox.

2007-11-05 Thread Maximilian Nyman
Generally Arrays for which the data is changing should not be used for
binding since Flex will NOT be able to determine when Array data has
changed.

Now, for your issue there are two different solutions:
1. Use an ArrayCollection instead of an Array for you ta Array variable
2. Have a temporary Array inside your createTimeArray which you use to
push data into, and then at the very end of your createTimeArray
function  assign the temporary Array to your ta Array variable. Flex
will be able to pick up that the ta has changed and trigger the
binding, it's just not able to detect when Array data INSIDE ta has
changed.

/Max

On 11/3/07, Mark Forsberg [EMAIL PROTECTED] wrote:


 I have a function that creates an array of objects:
public function createTimeArray():void{
 var millisecondsPerMinute:int = 1000 * 60;
 var currentDate:Date = new Date();
 var year:int = currentDate.getFullYear();
 var month:int = currentDate.getMonth();
 var day:int = currentDate.getDate();
   
 var startTimeDate:Date = new Date(year,month,day,5,0);
 var ta:Array = new Array();
   
 var i:int;
 for(i = 0;i102;i++){
   var myObj:Object = new Object();
   myObj.label = startTimeDate;
   myObj.data = i+1;
   
  ta.push(myObj);
  startTimeDate.setTime(startTimeDate.getTime() + (10 *
  millisecondsPerMinute));
  //Alert.show(ta[i].label);
}
  }

  I create a bindable variable:
[Bindable]
private var ta:Array;

  Call it in my init():
 createTimeArray();

  And bind it to my combobox:
mx:ComboBox x=74 y=70 width=93 id=cb_departureTime
  dataProvider={ta} labelFunction=convertTime textAlign=right
  labelField=label

  I get nothing in my combobox. Any ideas?
  Thanks.

  Mark F.


Re: [flexcoders] Text truncateToFit

2007-10-24 Thread Maximilian Nyman
truncateToFit has no effect on Text.
If you want that behavior, you either need to implement it yourself,
or find someone that already has.

From http://livedocs.adobe.com/flex/201/langref/mx/controls/Text.html
- unlike Label, Text does not truncate its text with ...


/Max


On 10/24/07, kramus0 [EMAIL PROTECTED] wrote:



 I'm not sure whether this is a bug or not but truncateToFit doesn't
  seems to work for me.

  I have a text that has has a certain width and height so that it can
  show two lines. When I set truncateToFit to true and assign a text
  that is longer than to lines I would expect it is truncated at the end
  of the second line.

  mx:Text truncateToFit=true x=400 y=400 width=140 height=30
  text=This is the first Line. This is the second Line that should be
  truncated./

  So what I would expect to see is something like this:

  This is the first Line.
  This is the second L...

  But I get the following two lines (that scroll if I go on the text):

  This is the first Line.
  This is the second Line

  So, any suggestions? Thanks.

  Markus


Re: [flexcoders] Flex 3 cost

2007-10-23 Thread Maximilian Nyman
http://blog.digitalbackcountry.com/?p=1110

On 10/24/07, George Lu [EMAIL PROTECTED] wrote:


 Hi,

 Has anyone got an idea how much the Flex 3 will be cost? This is for 
 budgeting purpose.

 Thanks,
 George


Re: [flexcoders] not able to load svg format images?

2007-09-15 Thread Maximilian Nyman
You can't load SVG images at runtime, you need to embed them.

http://livedocs.adobe.com/flex/201/langref/mx/controls/Image.html

/Max


On 9/15/07, arpan srivastava [EMAIL PROTECTED] wrote:


 Hi All,

 I am making an application which will run on server and loads image 
 files. My application supports png,jpg,gif but I am not able to load svg 
 format. I am using SWFLoader to load the file?

 Thanks
 Arpan


Re: [flexcoders] Rounded corners

2007-09-14 Thread Maximilian Nyman
Note: If you use cornerRadius you need to have borderStyle=solid.
(It could be borderThickness=0, but it has to be existent)

/Max

On 9/14/07, Sheriff [EMAIL PROTECTED] wrote:


 you can create your own skin and apply it otherwise you can use the 
 cornerRadius


 - Original Message 
 From: Roy Tang [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, September 13, 2007 11:33:23 PM
 Subject: [flexcoders] Rounded corners




 Hi,

  Is there a way to control which corners are rounded for a button or a
  canvas or whatever? Something like what focusRoundedCorners does, except
  for the actual control, not for the focus rectangle.

  Thanks,

  Roy



Re: [flexcoders] @ symbol and xml

2007-09-11 Thread Maximilian Nyman
Accesses the attribute(s) of the XML tag.

See example:
http://livedocs.adobe.com/flex/201/langref/XML.html#includeExamplesSummary



On 9/11/07, Mark Ingram [EMAIL PROTECTED] wrote:


 Hi, what does the @ symbol do when using the xml class? I had the following 
 columns in a datagrid and when the data was bound it made the correct number 
 of rows, but didn't display anything in the cells:



 mx:columns

 
 mx:DataGridColumn headerText=Avatar dataField=avatarUrl/

 
 mx:DataGridColumn headerText=ID dataField=id/

 
 mx:DataGridColumn headerText=Username dataField=username/

 
 mx:DataGridColumn headerText=Site ID dataField=siteId/

 
 mx:DataGridColumn headerText=First Name dataField=firstname/

 
 mx:DataGridColumn headerText=Last Name dataField=lastname/

 
 mx:DataGridColumn headerText=Nickname dataField=nickname/

 /mx:columns



 But then I changed all dataField properties to have the @ symbol at the 
 front and it worked fine. What's the @ symbol do?



 Cheers,



 Mark


Re: [flexcoders] Builder 3 and unable to resolve a class for resourcebundle: charts - Help needed asap!

2007-09-04 Thread Maximilian Nyman
Google: unable to resolve a class for resourcebundle: charts -
http://www.google.com/search?q=unable+to+resolve+a+class+for+resourcebundle%3A+chartssourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enAU231AU231

The very first result:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=651threadid=1291918enterthread=y

/Max


On 9/4/07, Josh McDonald [EMAIL PROTECTED] wrote:

 Anybody have an answer to this?

 I switched to flex 3 because it lets me use a windows key on mac, and Adobe 
 are taking weeks to swap me for a mac one.

 I've found some pointers online but they're all about manual installation, 
 and directories that don't seem to be in my install. I *really, really* don't 
 want to go back to running Flex 2 under vmware, so any pointers would be 
 definitely appreciated.

 Under a pretty tight deadline at the moment, so I'll keep trying to figure it 
 out, but if you guys could help me out I'll owe you a beer or ten.

 Cheers,
 -Josh



Re: [flexcoders] Builder 3 and unable to resolve a class for resourcebundle: charts - Help needed asap!

2007-09-04 Thread Maximilian Nyman
That's cool Josh ;)

I had the exact same issue yesterday, just a few hours earlier, and
that's why I could quickly pass along the links to my findings ;)

I hope it all worked out.

Cheers,
Max

http://anvilcreative.com



On 9/5/07, Josh McDonald [EMAIL PROTECTED] wrote:


 OK That's my bad, I was using spotlight to try and find the directories in 
 question, as I hate trying to navigate inside an application, but there's two 
 very similar paths inside the Flex app, one under /plugins the other under /.

 Cheers,
 -Josh



 On 9/4/07, Maximilian Nyman [EMAIL PROTECTED] wrote:
 
 
  Google: unable to resolve a class for resourcebundle: charts -

  http://www.google.com/search?q=unable+to+resolve+a+class+for+resourcebundle%3A+chartssourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enAU231AU231
 
   The very first result:
   
  http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=651threadid=1291918enterthread=y
 
   /Max
 
   On 9/4/07, Josh McDonald [EMAIL PROTECTED] wrote:
   
Anybody have an answer to this?
   
I switched to flex 3 because it lets me use a windows key on mac, and 
  Adobe are taking weeks to swap me for a mac one.
   
I've found some pointers online but they're all about manual 
  installation, and directories that don't seem to be in my install. I 
  *really, really* don't want to go back to running Flex 2 under vmware, so 
  any pointers would be definitely appreciated.
   
Under a pretty tight deadline at the moment, so I'll keep trying to 
  figure it out, but if you guys could help me out I'll owe you a beer or ten.
   
Cheers,
-Josh
   
 


Re: [flexcoders] Builder 3 and unable to resolve a class for resourcebundle: charts - Help needed asap!

2007-09-04 Thread Maximilian Nyman
Are you targeting Flex 3 or Flex 2.0.1?
If Flex 3, then I don't know. It could be that it's not actually
possible as it's in beta.
If Flex 2.0.1 then you need to edit your
FLEX_HOME/sdks/2.0.1/frameworks/license.properties file.

When installing FB (or adding the license key post-install), it will
only be added to the
FLEX_HOME/sdks/moxie/frameworks/license.properties file.
So if you need to compile for 2.0.1 you need to add those keys into
2.0.1's license.properties file.

Cheers,
Max


On 9/5/07, Josh McDonald [EMAIL PROTECTED] wrote:

 I don't suppose you can tell me what voodoo I have to do in order to register 
 charts then? =) I put the key in when I installed flex 3, but I'm getting the 
 trial plastered on my charts. It's one of those things that's hard as hell 
 to google for because of all the warez clogging up the tubes!

 Cheers,
 -Josh



 On 9/5/07, Maximilian Nyman [EMAIL PROTECTED] wrote:
 
  That's cool Josh ;)
 
   I had the exact same issue yesterday, just a few hours earlier, and
   that's why I could quickly pass along the links to my findings ;)
 
   I hope it all worked out.
 
   Cheers,
   Max
 
   http://anvilcreative.com
 
 
   On 9/5/07, Josh McDonald [EMAIL PROTECTED] wrote:
   
   
OK That's my bad, I was using spotlight to try and find the directories 
  in question, as I hate trying to navigate inside an application, but 
  there's two very similar paths inside the Flex app, one under /plugins the 
  other under /.
   
Cheers,
-Josh
   
   
   
On 9/4/07, Maximilian Nyman [EMAIL PROTECTED] wrote:


 Google: unable to resolve a class for resourcebundle: charts -

  http://www.google.com/search?q=unable+to+resolve+a+class+for+resourcebundle%3A+chartssourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enAU231AU231

  The very first result:
  
  http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=651threadid=1291918enterthread=y

  /Max

  On 9/4/07, Josh McDonald [EMAIL PROTECTED] wrote:
  
   Anybody have an answer to this?
  
   I switched to flex 3 because it lets me use a windows key on mac, 
  and Adobe are taking weeks to swap me for a mac one.
  
   I've found some pointers online but they're all about manual 
  installation, and directories that don't seem to be in my install. I 
  *really, really* don't want to go back to running Flex 2 under vmware, so 
  any pointers would be definitely appreciated.
  
   Under a pretty tight deadline at the moment, so I'll keep trying to 
  figure it out, but if you guys could help me out I'll owe you a beer or ten.
  
   Cheers,
   -Josh
  


Re: [flexcoders] Re: Set as Default Application: for an AS Class

2007-03-26 Thread Maximilian Nyman

Anthony,

This is kind of a workaround-ish way of doing it, but it works ;)

1. Create a new Flex Project [ASTest]
2. Create a new AS File [ASTest.as] and make it extend mx.core.Application
3. Close your newly created Flex Project
4. Open the FLEX_WORKSPACE/FLEX_PROJECT/.actionScriptProperties in
some text editor
5. Change the actionScriptProperties.mainApplicationPath attribute to point
at your AS application file [actionScriptProperties mainApplicationPath=
ASTest.as]
6. Change the application.path to point at your AS application file
[application path=ASTest.as]
7. Save and close the file .actionScriptProperties file
8. Reopen your new Flex project

The AS application file should now be set as your default Application file
and the application should compile and run just fine


Cheers,
Max

--
Mobile: +61 424 77 57 67
Home: +61 2 9968 3924
Skype: maxnyman
MSN Messenger: [EMAIL PROTECTED]



On 25 Mar 2007 23:21:25 -0700, Anthony Lee [EMAIL PROTECTED] wrote:


  Perhaps I should rephrase this question as:

How can I compile a pure AS application from Flex Builder 2.0.1?
 



Re: [flexcoders] number to big for AS

2006-12-06 Thread Maximilian Nyman

int.MAX_VALUE

/Max

On 12/7/06, Yaison Alcantara [EMAIL PROTECTED] wrote:


  hi coders;
I made an app that does a lot of matematical functions and handlers a
lot numbers, but there is an error when the app multiplies some int.
It have to return the number -2147408896 but it returns 2147408896.

what int is big for AS3 to handle?