Re: [Flashcoders] FileReference and actionscript 2.0

2006-06-25 Thread human ghaderyan
Thanx david. I think I can do some tricks to return value after completion of 
download.  

- Original Message 
From: David Rorex [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, June 25, 2006 9:21:58 AM
Subject: Re: [Flashcoders] FileReference and actionscript 2.0


On 6/23/06, human ghaderyan [EMAIL PROTECTED] wrote:

 Hi list
 I try to use FileReference class in a actionscript 2.0 project. the
 browse and upload methods work fine but it seems that this class designed
 for AS 1.0 (???). I can't find any AS 2.0 sample and don't know what to do
 for catching events . I think this class has bad architecture. for example I
 need to put the uploaded file in database and return its ID to client.

The class works fine in AS2, you catch the events pretty much the exact same
was as other built in classes (like MovieClip, XML, etc)


FileReference do the transfer by a POST but it seems that there is no way to
 catch a response from server for this POST Action.

Correct, as far as I know, they did not give a way to recieve any data
returned from the server. All you can know is that the action completed.



any body has some experience to do the uplad with flash remoting?

You can't upload files from the user's local drive using flash remoting.

-David R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FileReference and actionscript 2.0

2006-06-25 Thread hank williams

I am curious what those tricks are.

What I do is to ask the server for an upload code number before I upload
This upload code is associated with the given user and whatever the user is
trying to do. This is application specific. This creates a record in the
database, so that when the file is uploaded the server knows what it is.
Then I send the parameter as part of the upload URL. Additionally, I make
the upload codes time out. So if a code isnt used within a few minutes it is
no longer usable.

Regards
Hank

On 6/25/06, human ghaderyan [EMAIL PROTECTED] wrote:


Thanx david. I think I can do some tricks to return value after completion
of download.

- Original Message 
From: David Rorex [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, June 25, 2006 9:21:58 AM
Subject: Re: [Flashcoders] FileReference and actionscript 2.0


On 6/23/06, human ghaderyan [EMAIL PROTECTED] wrote:

 Hi list
 I try to use FileReference class in a actionscript 2.0 project. the
 browse and upload methods work fine but it seems that this class
designed
 for AS 1.0 (???). I can't find any AS 2.0 sample and don't know what to
do
 for catching events . I think this class has bad architecture. for
example I
 need to put the uploaded file in database and return its ID to client.

The class works fine in AS2, you catch the events pretty much the exact
same
was as other built in classes (like MovieClip, XML, etc)


FileReference do the transfer by a POST but it seems that there is no way
to
 catch a response from server for this POST Action.

Correct, as far as I know, they did not give a way to recieve any data
returned from the server. All you can know is that the action completed.



any body has some experience to do the uplad with flash remoting?

You can't upload files from the user's local drive using flash remoting.

-David R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FileReference and actionscript 2.0

2006-06-25 Thread human ghaderyan
Hi dear Hank
I think after a successfull upload and inserting in db, I can set the record ID 
(or any thing else) in User Session in server and after successful upload( 
returning true to flash ) call a simple remoting method that invoke id from 
session and return it to flash. 
 
After all I think I don't undrestand some of key features of AS 2.0 ::
 
listener.onCancel = function(file:FileReference):Void {
trace(onCancel);
}
listener.onOpen = function(file:FileReference):Void {
trace(onOpen:  + file.name);
}
listener.onProgress = function(file:FileReference, bytesLoaded:Number, 
bytesTotal:Number):Void {
trace(onProgress with bytesLoaded:  + bytesLoaded +  bytesTotal:  + 
bytesTotal);
}

I don't know where can I put event methods like this in my AS 2.0 class. What 
did I misundrestand??
All the samples are in AS1 and I don't know what to do for my events :(

- Original Message 
From: hank williams [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, June 25, 2006 5:20:43 PM
Subject: Re: [Flashcoders] FileReference and actionscript 2.0


I am curious what those tricks are.

What I do is to ask the server for an upload code number before I upload
This upload code is associated with the given user and whatever the user is
trying to do. This is application specific. This creates a record in the
database, so that when the file is uploaded the server knows what it is.
Then I send the parameter as part of the upload URL. Additionally, I make
the upload codes time out. So if a code isnt used within a few minutes it is
no longer usable.

Regards
Hank

On 6/25/06, human ghaderyan [EMAIL PROTECTED] wrote:

 Thanx david. I think I can do some tricks to return value after completion
 of download.

 - Original Message 
 From: David Rorex [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, June 25, 2006 9:21:58 AM
 Subject: Re: [Flashcoders] FileReference and actionscript 2.0


 On 6/23/06, human ghaderyan [EMAIL PROTECTED] wrote:
 
  Hi list
  I try to use FileReference class in a actionscript 2.0 project. the
  browse and upload methods work fine but it seems that this class
 designed
  for AS 1.0 (???). I can't find any AS 2.0 sample and don't know what to
 do
  for catching events . I think this class has bad architecture. for
 example I
  need to put the uploaded file in database and return its ID to client.

 The class works fine in AS2, you catch the events pretty much the exact
 same
 was as other built in classes (like MovieClip, XML, etc)


 FileReference do the transfer by a POST but it seems that there is no way
 to
  catch a response from server for this POST Action.

 Correct, as far as I know, they did not give a way to recieve any data
 returned from the server. All you can know is that the action completed.



 any body has some experience to do the uplad with flash remoting?
 
 You can't upload files from the user's local drive using flash remoting.

 -David R
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Script running to slow, how to fix?

2006-06-25 Thread Weyert de Boer

[EMAIL PROTECTED] wrote:

Sounds like you have a loose loop. Yer always best to post code.
  

I will do that tomorrow. It's soccer time within a hour ;-)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Interface IManaged was not found

2006-06-25 Thread silpa s
 Hi All, I'm new to flex. i'm trying to do a sample
 application listed at 
 http://java.sys-con.com/read/210991_1.htm
 
 I don't know Why i'm getting following ERROR? 
 
 Interface IManaged was not found. StockQuoteDTO.as
 
 I'm using Eclipse 
 package com.theriabook.jms.dto
 {
[Managed]
 

[RemoteClass(alias=com.theriabook.jms.dto.StockQuoteDTO)]
public dynamic class StockQuoteDTO
{
public var symbol:String;
public var last:Number
}
 }
 
 
 -silpa

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Export frame option disabled

2006-06-25 Thread æœé‚Šć‚‘
Mike, that's untrue. Components don't need to be loaded in first frame.

I am writing a program with a lot of components. In my Actionscript
settings, I have the Export frame for classes set to 3. For all my
components Export in first frame is unchecked, as well as all my MovieClip
which need to be exported to Actionscript.

Then I put all my components and MovieClip which will be created by
Actionscript in the fourth frame (on the stage but out of view).

These are the components I use in this movie:
Accordion, Alert, Button, Checkbox, Combobox, Label, List, NumericStepper,
RadioButton, TextArea, TextInput, Tree, Window, and some home made
components.
But I am sure it will work with all of them.

Cheers,

Benjamin.


-Original Message-
From: Mick G [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 24, 2006 1:15 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Export frame option disabled

This is one of the reasons I avoid MM components unless I totally have to.

Most of the components will only work if you export in first frame so the
only option I''ve found is:
- Put your content in an external SWF (which also causes problems because of
a bug with the components needing an instance in the root library if they're
loaded into target MCs). So, you now need to create a Shared Library for the
components and preload them (or if you don't want the hassle of a shared
library, some components get around this bug if you put a _lockroot in the
SWF containing them).

I'd love to hear other peoples solutions to component preloading.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] :: mp3 not playing in IE ::

2006-06-25 Thread Orindom Dhar
Hi,
   
  I encountered a frustrating problem reagarding mp3 playback in flash in IE.
   
  The x.mp3 when played locally through the y.swfand browser(IE 6+),works 
fine , but y.swf and x.mp3 are placed at a particular domain, and accessed 
through same browser(IE 6+),the x.mp3 fails to play.The x.mp3 comes the 
temp internet files of the local machine but y.swf just dosent play s.swf. 
   
  There is no problem of cross domain policy found in this case.
   
  Anyone, encountered such problem recently? If yes, got any solution ?
   
  Please, help!
   
  Thanks,
   
  Arin

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] :: mp3 not playing in IE ::

2006-06-25 Thread Marc Hoffman
Same problem for me was caused by ZoneAlarm. The MP3 would get 
downloaded into cache. It would also play directly in the browser 
using Windows Media Player. But it wouldn't play in Flash until I 
disabled ZoneAlarm and eventually tweaked the ZoneAlarm settings 
(sorry, I don't recall what I changed in ZoneAlarm).


- Marc

At 09:29 PM 6/25/2006, you wrote:

Hi,

  I encountered a frustrating problem reagarding mp3 playback in flash in IE.

  The x.mp3 when played locally through the y.swfand browser(IE 
6+),works fine , but y.swf and x.mp3 are placed at a particular 
domain, and accessed through same browser(IE 6+),the x.mp3 fails 
to play.The x.mp3 comes the temp internet files of the local 
machine but y.swf just dosent play s.swf.


  There is no problem of cross domain policy found in this case.

  Anyone, encountered such problem recently? If yes, got any solution ?

  Please, help!

  Thanks,

  Arin

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com