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 stacey
Sounds like you have a loose loop. Yer always best to post code.

 Hello!

 I am currently revising a website so tha tthe pictures will be loaded
 after each other. I am using the QueueLoader-class for this only when I
 am testing my movie in Flash 8 using the Simulate Download and a speed
 of 112K. I sometimes happen to get a  message similar to Script is r
 unning to slow, do you want to abort?

 Does anyone know how this can be fixed? I am not doing a lot things at
 the same time.

 p.s. I am curious if anyone already happen to have made any Tween which
 will move a movieclip from the bottom left corner, to the top right
 corner of a container movieclip.

 Yours,
 Weyert

 ___
 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] Advice wanted, smart loading of pictures

2006-06-25 Thread Weyert de Boer
I am currently revising my slideshow movie, because I want to make use 
of the new Flash 8 features. Earlier I loaded the hires photo twice once 
for the thumbnail, once for the real photo for in the slide. Now I want 
to make use of the BitmapData class to make a clone of the hires photo 
for the sliding animation.


Only I am not sure what the best way is to store the photo, currently I 
am using a method which will change the _width/_height properties of the 
Thumb movieclip. Does anyone good any advice how to solve my problem the 
best way? I am currently making a new variable in the thumb movieclip 
like. Using the following code where the clip variable is  thumb movieclip:


   // store the actual photo dimensions the clip
   clip.photoWidth  = clip._width;
   clip.photoHeight = clip._height;

   // make a copy of the original photo
   clip.originalPhoto = new BitmapData( clip._width, clip._height, 
false, 0xFF00FF );

   clip.originalPhoto.draw( clip );

The method which includes this code is triggered when the photo is 
loaded in the MovieClipLoader i.e. when the onLoadInit-event is 
dispatched.   Currently after all the photos are loaded and has been 
resized to a nice small thumb image within a 75px x 75 box.


Does anyone know any examples which uses bitmapdata for a simple 
slideshow? Somewhere I am unable to make it work, earlier I was able to 
clone this originalPhoto-instance to a new one. Only then attach it to 
the holder movieclip for the actual photo clip. Only somehow this caused 
to make it become 3px by 800px instead of the real dimensions of the 
photo. Sadly.
  
Yours,

Weyert de Boer
___
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] Junior Developer Flash/Flex Salary?

2006-06-25 Thread Dan Thomas

not sure if that were tongue in cheek but £30k in uk IS $55k in USD more or
less (damn me for gettin roped into this thread)

On 22/06/06, Lee McColl-Sylvester [EMAIL PROTECTED] wrote:


Commercial experience is totally different to working experience.  I've 7
years professional commercial experience in Flash, 3 years commercial
experience in .NET, 7 years in SQL Server, 2 years in Oracle, have been
director twice plus have a huge list of other abilities, and all I can get
is £30k a year.  Damn bloody low british salaries :-(  If I were you, I'd be
happy with yer 55k :-P


-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Tristan
Sent: 20 June 2006 16:47
To: Flashcoders mailing list
Subject: [Flashcoders] Junior Developer Flash/Flex Salary?

Does 30-55K a year sound right with benefits for a junior developer? I
have
a college degree and an extensive IT background but, I'm just now getting
into a professional job environment developing but, I have been using
flash
for some time now. 30K sounds wa too low, would you agree? If someone
had 2-3 years experience, what should a flash/flex developer get? What
should they start at?

Thanks
T
___
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] 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