Re: [Flashcoders] navigateToURL or getURL and pop-up blocking

2007-10-25 Thread Tom Shaw
Personally I would get flash to display a box that tells the user to
expect a pop up and what to do if they dont get it.

You might find a way round it, only to find that the pop up stopper
can later defeat the method you use.


Cheers,
Tom





On Sat, 20 Oct 2007 10:23:56 -0700, you wrote:

I have a client Flash AS3 project where I need to open a new window  
from within Flash.   I won't have any control over the html wrapper  
for the SWF so I can't use javascript within the HTML page.   I've  
read suggestions about using Javascript:window.open but seems that  
will get blocked as well.

Any suggestions?


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Welcome to the Flashcoders mailing list

2007-10-18 Thread Tom Shaw
Yaaay!!!

:) :) :)


Ahemsorry about that...got over excited.  Im all better now.  Back
to Flash.



On Thu, 18 Oct 2007 12:26:53 -0400, you wrote:

Hi, everyone!

The Flashcoders list has been migrated to a new list server, and should be 
fully operational. I apologize for the downtime. Please send any questions to 
[EMAIL PROTECTED] Thanks!Welcome to the Flashcoders@chattyfig.figleaf.com 
mailing list!

To post to this list, send your email to:

  flashcoders@chattyfig.figleaf.com

General information about the mailing list is at:

  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  
 http://chattyfig.figleaf.com/mailman/options/flashcoders/flashcoders%40zerofiveone.com


You can also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]

with the word `help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including changing
the password, itself) or to unsubscribe.  It is:

  tiimof

Normally, Mailman will remind you of your chattyfig.figleaf.com
mailing list passwords once every month, although you can disable this
if you prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flashpaper - removing a flashpaper mc properly seems impossible

2006-11-23 Thread Tom Shaw
I have altered my code but I dont seem to be having much luck.  Would you care 
to share some code for your loading process?  Do you just loadclip over the old 
flashpaper mc and the rest as per the help files?

Cheers,
Tom


On Wed, 22 Nov 2006 11:08:27 -0500, you wrote:

I'm facing exactly the same problem developing a content browser
(viewing hundreds of single FP pages) in flash 8... My load times jump
from 300ms to 10 seconds if i try to unloadMovie() first. I haven't
found a solid fix, but I do have a partial workaround - don't unload
the flashpaper. At least with my single pages I've managed to keep it
from taking more than 500ms in subsequent loads. If this scales to
your 90 pages (maybe) you could shave off a good portion of those 30
extra seconds if you just load the clip over the existing one.


hope that helps,
Jon

On 11/22/06, Tom Shaw [EMAIL PROTECTED] wrote:
 Im on flash 8 Pro creating a projector to view Flashpaper documents.  I have 
 tried various methods to remove a Flashpaper instance from memory.  Sure the 
 document goes off screen and gets deleted from the mc tree but the memory is 
 still occupied by the flash player.
 The problem gets worse the next time you try to load up a Flashpaper 
 document.  You take a massive performance hit loading a document up after 
 removing a previous one.  The documents I am talking about here are 90 or so 
 pages, one document is about 4mb.  When loading these documents the first 
 time round it only takes a few seconds for them to load.  thesecond time 
 round it can take as much as 30 seconds to load up the document introducing 
 the warning about scripts running slowly.

 Can anyone suggest a better way to entirely get rid of a Flashpaper document 
 once its been loaded into the stage?

 Cheers,
 Tom

 ___
 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] Flashpaper - removing a flashpaper mc properly seems impossible

2006-11-23 Thread Tom Shaw
This does make a small difference but with the larger documents the increase in 
witing time still exists after you first load in a flash paper document.

I did try to get two flash paper documents on screen at the same time using 
different movieclips.  The result was interesting...the first clip got removed 
automatically from screen.  This could be what is causing the delay, a check 
for other instances of flashpaper perhaps?

Who knows...maybe Adobe have a fix for FP3.

Cheers,
Tom



On Thu, 23 Nov 2006 08:44:32 -0500, you wrote:

that's correct -  i simply loadclip using the old mc. same code as
adobe's tutorial. but i reiterate - never tried it on a large document
so i dont know if it'll work in your case

On 11/23/06, Tom Shaw [EMAIL PROTECTED] wrote:
 I have altered my code but I dont seem to be having much luck.  Would you
 care to share some code for your loading process?  Do you just loadclip over
 the old flashpaper mc and the rest as per the help files?

 Cheers,
 Tom


 On Wed, 22 Nov 2006 11:08:27 -0500, you wrote:

 I'm facing exactly the same problem developing a content browser
 (viewing hundreds of single FP pages) in flash 8... My load times jump
 from 300ms to 10 seconds if i try to unloadMovie() first. I haven't
 found a solid fix, but I do have a partial workaround - don't unload
 the flashpaper. At least with my single pages I've managed to keep it
 from taking more than 500ms in subsequent loads. If this scales to
 your 90 pages (maybe) you could shave off a good portion of those 30
 extra seconds if you just load the clip over the existing one.
 
 
 hope that helps,
 Jon
 
 On 11/22/06, Tom Shaw [EMAIL PROTECTED] wrote:
  Im on flash 8 Pro creating a projector to view Flashpaper documents.  I
 have tried various methods to remove a Flashpaper instance from memory.
 Sure the document goes off screen and gets deleted from the mc tree but the
 memory is still occupied by the flash player.
  The problem gets worse the next time you try to load up a Flashpaper
 document.  You take a massive performance hit loading a document up after
 removing a previous one.  The documents I am talking about here are 90 or so
 pages, one document is about 4mb.  When loading these documents the first
 time round it only takes a few seconds for them to load.  thesecond time
 round it can take as much as 30 seconds to load up the document introducing
 the warning about scripts running slowly.
 
  Can anyone suggest a better way to entirely get rid of a Flashpaper
 document once its been loaded into the stage?
 
  Cheers,
  Tom
 
  ___
  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
___
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] Problem with putting image in flash blog

2006-08-25 Thread Tom Shaw
Ok firstly you need to do this in stages.

1) Load your meta data from the web server.  This includes the url, width and 
height of you image. Put all this data into a container MC as variables or 
objects, or whatever you want to store them as.  A nice class would be good 
here.
3) Create new movieclips inside the container MC.  titlea, imagea and texta for 
example.  Set the title.
4) Since you know the position of your title and the position of your image, 
arrange imagea and texta according to those positions.
5) Load your image into the placeholder, add some sort of preloader.

Im not going to delve through your code to figure this out for you but thos 
esteps should make it easy to work it out.

Good luck!

Cheers,
Tom



On Fri, 25 Aug 2006 11:46:19 +0200, you wrote:

I'm making a blog in flash with amfPHP. And till now everything went well.
I get all the data in the database from flash and I can loop through
de object I get back from amfPHP, I put everything in a text field
that renders as html.
But know I wanted to submit pictures with a post.
I made an upload interface that puts a string off the filename in my
DB so I can load it when I read my DB and the image is resized with a
php script.

My first idea was just using an img tag in my html string, but  after
some trying I noticed that this was very buggy with big images. There
was no way to find out if the image was loaded(if someone knows?) so I
coudn't get the image height what I really need when I want to use the
img tag or my text gets behind my picture and I can't position the
next posts  ._y.
So I tried to put the image height in my DB when I resize the picture
with PHP but with big images (+800+600) this is not reliable.
Than I tought I could do it with 2 textfields and a movieclip where I
put my image in.
So I have a textfield for my title under it my picture and than my text body.
I tried to make a listener that loads my image into the movieclip and
when I have my height I call a function that put the body text under
it.
But thats my big problem when I loop through all the data and I create
my listener object I can't pass variables to the function that do the
rest. So I can't know what ID the post have.
I put my code here so it's a little easier to understand what I want to say.

function showPost(re,IDmin)
{
   var mcl:MovieClipLoader=new MovieClipLoader();
   var myListener:Object=new Object();
   
   //reset Heights
   readMessageHeight =0;
   totalHeight = 0;
   postHeight = 0;

   if(IDmin == undefined){
   IDmin = 0;
   IDmax = 5;
   }else{
   IDmax = IDmin+1;
   }
   
   var blogItem = _root.readMessages.createEmptyMovieClip(blogItem, 
 3400);
   
   for(var s = IDmin; s  IDmax; s++)
   {   
   var post = re.result.getItemAt(s);
   
   var txtHolder =
_root.readMessages.blogItem.createEmptyMovieClip(txtHolder+s,
3500+s);
   txtHolder.ID = s;
   
   //I make a title textfield and put the text in it
   /
   var blogTitle =
txtHolder.createTextField(txtBlogTitle+s,this.getNextHighestDepth(),0,
0+postHeight ,312,10);
   txtHolder[txtBlogTitle+s].html = true;
   txtHolder[txtBlogTitle+s].wordWrap = true;
   txtHolder[txtBlogTitle+s].multiline = true;
   txtHolder[txtBlogTitle+s].styleSheet = styles;
   txtHolder[txtBlogTitle+s].autoSize = true;
   var htmlTitleTxt:String  = 'htmlimg src=listIcon 
 vspace=2' +
   ' b'+ post.id 
 +  -  + post.title + '/b (' +
post.date.substr(0,10) + ')br /' +
   '. . . . . . . 
 . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .br /' +
   '/html';
   txtHolder[txtBlogTitle+s].htmlText = htmlTitleTxt;
   
   var titleHeight = txtHolder[txtBlogTitle+s]._height;
   
   //I put the image under it
   ///
   var imgMC = txtHolder.createEmptyMovieClip(imgMC+s, 4500+s);
   
   mcl.loadClip(files/tn_+post.image,imgMC);
   
   myListener.onLoadInit=function(evtObj,re){
   var imageHeight = evtObj._height;
   //I try to give the id but this is not working post.id 
 gives undefined
   doRest(imageHeight,post.id);
   postHeight += titleHeight+imageHeight;
   }
   mcl.addListener(myListener);
   
   txtHolder[imgMC+s]._y = 30+postHeight;

   
   }
   
   

Re: [Flashcoders] Flash 8 generate xml file for input

2006-08-19 Thread Tom Shaw
Well Id personally let your server do the conversion from the  flash
output.  This will give you more more scope for error checking and
taking the role of this away from flash provides your client with more
security.

If you decide later on that you want to add more options to flash you
can easily add them and then add the processing routines to your PHP
script.

You could do the transfers from Flash to your server using Flash
remoting (AMFPHP).

While your reading is email really the right path to go down?  Surely
a web based interface to view the orders would be a far better option.

You could add the functionality to alter orders before they are
processed.  You could even add the functiopnality to add a custom
handler so when your client clicks a link set up on this interface the
file opens in their tshirt program, emails the client to say they are
being printed and no more changes can be made...payment is now being
collected etc.

Cheers,
Tom



On Sat, 19 Aug 2006 11:48:30 +0100, you wrote:

I am creating an online app in Flash 8 that allows users to design t-shirts
by adding various elements from drop down boxes, and entering some text to
appear on the t-shirt. They can set the formatting of the text using drop
down boxes.

In order for the client to recreate the orders at their end I need to send
the custom design data to the client which they can then import into a copy
of the t-shirt designer app and the design will be recreated.

Anyway I am thinking the best bet is to generate an xml file of the data and
email this to the client. The version of the app the client has will then
have the ability to import the xml file.

So basically I am looking for any resources or tips on generating an xml
file from flash and emailing this xml file to a specified email address.

My server supports PHP so ideally a solution using PHP is required assuming
Flash cannot do all this on its own.

Many thanks

Paul





___
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] Data serialization - am I using the correct method?

2006-08-18 Thread Tom Shaw
Is there some magical method to get flash to serialise my objects
correctly when Im sending data to the webserver?

Im trying to send an array of objects up but all flash sends is an
array with the right number of elements inside with no data.

as:
var testobj1:Object;
testobj1.cid = testcid1;
testobj1.mid = testmid1;
testobj1.name = testname1;
testobj1.description = testdesc1;

var testobj2:Object;
testobj1.cid = testcid2;
testobj1.mid = testmid2;
testobj1.name = testname2;
testobj1.description = testdesc2;

var testaray:Array = new Array(testobj1,testobj2);
var resultobj = soapservice.getContentMeta (testarray);


SOAP request:
?xml version=1.0 encoding=utf-8?
SOAP-ENV:Envelope
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
SOAP-ENV:Body xmlns:ns1=urn:LearnTools
ns1:getContentMeta
 SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
ContentList xsi:type=soapenc:Array
 soapenc:arrayType=ns1:ContentMetaItem[2]
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
item xsi:type=ns1:ContentMetaItem
mid /
cid /
name /
description /
/item
item xsi:type=ns1:ContentMetaItem
mid /
cid /
name /
description /
/item
/ContentList
/ns1:getContentMeta
/SOAP-ENV:Body
/SOAP-ENV:Envelope

you can see that the SOAP request is correctly formed..so flash
obviously understands what is needed but why isnt it putting the
object data from testobj1 and testobj2 into the SOAP request?

Cheers
Tom

On Thu, 17 Aug 2006 10:31:35 +0700, you wrote:

One of my prospective clients want to have flash app with US map. My
partner found this nice tools, www.flashmaps.com and I'm wondering if
you guys have some experience with it.

note:
this message is cross-posted to Flashnewbie list, hope you wouldn't mind.
___
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] Data serialization - am I using the correct method?

2006-08-18 Thread Tom Shaw
Well I figured it out.

You need to create custom classes for all the data objects you want to send 
back to your SOAP service.

-- snip 8 --

//Relevant actionscript for sending the SOAP call.
var testobj0:ContentMetaItem = new 
ContentMetaItem(testcid0,testtitle0,description0);
var testobj1:ContentMetaItem = new 
ContentMetaItem(testcid1,testtitle1,description1);
var testarray:Array = new Array(testobj0,testobj1);
var resultobj = soapservice.getContentMeta (testarray);


//ContentMetaItem.as class file
class ContentMetaItem
{
// variable declarations
var cid:String;
var mid:String;
var title:String;
var description:String;
// constructor

public function ContentMetaItem (cid:String, mid:String title:String, 
description:String){
this.cid = cid;
this.mid = mid;
this.title = title;
this.description = description;
}
}


//Actual SOAP request from flash to the webserver
?xml version=1.0 encoding=utf-8?
SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
SOAP-ENV:Body xmlns:ns1=urn:LearnTools
  ns1:getContentMeta
  SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  ContentList xsi:type=soapenc:Array
soapenc:arrayType=ns1:ContentMetaItem[2]
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
item xsi:type=ns1:ContentMetaItem
  mid xsi:type=xsd:stringtesttitle0/mid
  cid xsi:type=xsd:stringtestcid0/cid
  name /
  description /
/item
item xsi:type=ns1:ContentMetaItem
  mid xsi:type=xsd:stringtesttitle1/mid
  cid xsi:type=xsd:stringtestcid1/cid
  name /
  description /
/item
  /ContentList
/ns1:getContentMeta
  /SOAP-ENV:Body
/SOAP-ENV:Envelope
-- snip 8 --

You also need a correctly formtted WSDL file so flash knows how to serialize 
the data correctly.

This all seems sort of obvious now...I suppose it would in hindsight.

As per my other post on Flash and SOAP Ill eventually put this stuff on teh web 
for any one else struggling with flash and SOAP.

Cheers,
Tom


Cheers,
Tom




On Fri, 18 Aug 2006 13:08:55 +0100, you wrote:

Is there some magical method to get flash to serialise my objects
correctly when Im sending data to the webserver?

Im trying to send an array of objects up but all flash sends is an
array with the right number of elements inside with no data.

as:
var testobj1:Object;
testobj1.cid = testcid1;
testobj1.mid = testmid1;
testobj1.name = testname1;
testobj1.description = testdesc1;
   
var testobj2:Object;
testobj1.cid = testcid2;
testobj1.mid = testmid2;
testobj1.name = testname2;
testobj1.description = testdesc2;
   
var testaray:Array = new Array(testobj1,testobj2);
var resultobj = soapservice.getContentMeta (testarray);


SOAP request:
?xml version=1.0 encoding=utf-8?
SOAP-ENV:Envelope
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
   SOAP-ENV:Body xmlns:ns1=urn:LearnTools
   ns1:getContentMeta
 SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   ContentList xsi:type=soapenc:Array
 soapenc:arrayType=ns1:ContentMetaItem[2]
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
   item xsi:type=ns1:ContentMetaItem
   mid /
   cid /
   name /
   description /
   /item
   item xsi:type=ns1:ContentMetaItem
   mid /
   cid /
   name /
   description /
   /item
   /ContentList
   /ns1:getContentMeta
   /SOAP-ENV:Body
/SOAP-ENV:Envelope

you can see that the SOAP request is correctly formed..so flash
obviously understands what is needed but why isnt it putting the
object data from testobj1 and testobj2 into the SOAP request?

Cheers
Tom

On Thu, 17 Aug 2006 10:31:35 +0700, you wrote:

One of my prospective clients want to have flash app with US map. My
partner found this nice tools, www.flashmaps.com and I'm wondering if
you guys have some experience with it.

note:
this message is cross-posted to Flashnewbie list, hope you wouldn't mind.
___
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 

Re: [Flashcoders] flash player

2006-08-18 Thread Tom Shaw
Firstly Im not sure that you taking over the role of distributing the Adobe 
flash player is legal and secondly a good idea.

The install process for different browsers is different.  You cant just install 
the OCX inside Firefox for example.  You are also not equipped to provide 
support to users in case of an installation issue/problem/error etc.  I would 
personally leave it to Adobe to provide the installation and leave it to you to 
direct them there if they did not have the player installed.

Cheers,
Tom


On Fri, 18 Aug 2006 13:09:41 +0200, you wrote:

Hi,
yes and no:).
I see a standalone installer, Download the *Flash Player* 9 (Complete *
Standalone* Installer) http://www.softwarepatch.com/internet/flash.html but
it's on some softwarepatch site, instead of macromedia. I can download the
archived standalone installers for 8 and older, but for 9 i have two
options:
- visit the top page from your search result with internet explorer, it will
install the ocx (but i cant download an installer)
- visit it with another browser, i can download an installer but it wont
install the ocx i think

I just found a link on the adobe site where you can download
install_flash_player_active_x.msi and i think that is the one i need, but it
may be that you have to sign the free license with them. Ah well that's no
problem either, I'll do that i think.

Just seems so much hassle to provide the ocx to non internet explorer users,
or am I missing things here?

greetz
Hans



On 8/18/06, Toby [EMAIL PROTECTED] wrote:


 http://www.google.co.uk/search?q=standalone+flash+player+installstart=0ie=
 utf-8oe=utf-8client=firefox-arls=org.mozilla:en-US:official

 Not sure if this is what you are after?

 T

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Hans Wichman
  Sent: 18 August 2006 11:56
  To: Flashcoders mailing list
  Subject: [Flashcoders] flash player
 
  Hi list,
  ok this feels a bit like a stupid question, but i haven't been able to
  find
  it anywhere,
  is there anyway to install the latest flashplayer ocx without visiting
 the
  adobe site with internet explorer?
  I can download the archived players, but i can't download the latest,
  except
  through a browser install.
 
  any ideas?
  greetz
  Hans
  ___
  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] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-15 Thread Tom Shaw
I think the problem I have got here is that Perl is really flexible
when it comes to making objects.

The WSDL is generated by hand, not automated.

This leaves a simple question...what services on the web allow public
access to methods that return a complex object?

Any ideas anyone?

Cheers,
Tom


On Mon, 14 Aug 2006 16:27:54 -0400, you wrote:

Yeah, sorry, this is more of a Perl SOAP WSDL generation issue than a
Flash issue I think.  I don't do the WSDL creation in .NET here, I have
a .NET C# developer I work with.  Nobody here knows Perl SOPA WSDL
creation in my group.  I do know that using native complex objects are
fine with Flash and .NET produced WSDLs, and they semi-problematic in
ColdFusion (according to some recent posts on this list - they
recommended sticking with the straight XML response instead), but I know
nothing of Perl-based WSDL SOAP requests.  I only know the basics of a
SOAP WSDL format, so I couldn't begin to debug yours... sorry.  Have you
compared your SOAP response to working ones on the Web?  

Best of luck to you,  

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Shaw
Sent: Monday, August 14, 2006 3:28 PM
To: Flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array
of complex
objects

Hi Jason,

Im using Perl with Apach2-SOAP under mod_perl.

If you are sending objects back and forth then I dont see why I should
be having problems.  It must be a problem with my WSDL or Perl SOAP
Response.

Since flash decodes the response according to the WSDL file then it
seems likely there is a problem with this bit.

I have included the WSDL file and a copy of the request and response.
Does the response look vastly different for an array of objects that
you might expect to see on your working Flash/SOAP project?

This is an example and triggers my problem and is as short as I could
make it.

- snip 8 --

Request
?xml version=1.0 encoding=utf-8?
SOAP-ENV:Envelope
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  SOAP-ENV:Body xmlns:ns1=http://ice.zerofiveone.com/Objecttest;
ns1:getPeople
 SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  author xsi:type=xsd:int/author
/ns1:getPeople
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

Response
?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:namesp2=http://xml.apache.org/xml-soap;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  SOAP-ENV:Body
namesp6:getPeopleResponse
  xmlns:namesp6=http://ice.zerofiveone.com/Objecttest;
  SOAP-ENC:Array xsi:type=SOAP-ENC:Array
SOAP-ENC:arrayType=namesp2:SOAPStruct[3]
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringTom/name
  age xsi:type=xsd:int24/age
/item
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringChris/name
  age xsi:type=xsd:int26/age
/item
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringAndrew/name
  age xsi:type=xsd:int56/age
/item
  /SOAP-ENC:Array
/namesp6:getPeopleResponse
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

And finally the WSDL - I tried to keep this as short as possible for
this example.

?xml version=1.0?
definitions
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:si=http://soapinterop.org/xsd;
 xmlns:tns=http://ice.zerofiveone.com/Objecttest;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
 xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
 xmlns=http://schemas.xmlsoap.org/wsdl/;
 targetNamespace=http://ice.zerofiveone.com/Objecttest;
 types
   xsd:schema
  targetNamespace=http://ice.zerofiveone.com/Objecttest;
  xsd:import
namespace=http://schemas.xmlsoap.org/soap/encoding/; /
  xsd:import namespace=http://schemas.xmlsoap.org/wsdl/; /
  xsd:complexType name=Person
xsd:all
  xsd:element name=name type=xsd:string /
  xsd:element name=age type=xsd:string /
/xsd:all
  /xsd:complexType
  xsd:complexType name=PersonArray
xsd:complexContent
  xsd:restriction base=SOAP-ENC:Array
xsd:attribute ref=SOAP-ENC:arrayType
  wsdl:arrayType=tns:Person[] /
  /xsd:restriction
/xsd:complexContent
  /xsd:complexType
/xsd:schema

Re: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-15 Thread Tom Shaw
Ignore than...googles API will do for testing.

Ill report back when I have it fixed.

Cheers,
Tom


On Tue, 15 Aug 2006 08:56:05 +0100, you wrote:

I think the problem I have got here is that Perl is really flexible
when it comes to making objects.

The WSDL is generated by hand, not automated.

This leaves a simple question...what services on the web allow public
access to methods that return a complex object?

Any ideas anyone?

Cheers,
Tom


On Mon, 14 Aug 2006 16:27:54 -0400, you wrote:

Yeah, sorry, this is more of a Perl SOAP WSDL generation issue than a
Flash issue I think.  I don't do the WSDL creation in .NET here, I have
a .NET C# developer I work with.  Nobody here knows Perl SOPA WSDL
creation in my group.  I do know that using native complex objects are
fine with Flash and .NET produced WSDLs, and they semi-problematic in
ColdFusion (according to some recent posts on this list - they
recommended sticking with the straight XML response instead), but I know
nothing of Perl-based WSDL SOAP requests.  I only know the basics of a
SOAP WSDL format, so I couldn't begin to debug yours... sorry.  Have you
compared your SOAP response to working ones on the Web?  

Best of luck to you,  

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Shaw
Sent: Monday, August 14, 2006 3:28 PM
To: Flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array
of complex
objects

Hi Jason,

Im using Perl with Apach2-SOAP under mod_perl.

If you are sending objects back and forth then I dont see why I should
be having problems.  It must be a problem with my WSDL or Perl SOAP
Response.

Since flash decodes the response according to the WSDL file then it
seems likely there is a problem with this bit.

I have included the WSDL file and a copy of the request and response.
Does the response look vastly different for an array of objects that
you might expect to see on your working Flash/SOAP project?

This is an example and triggers my problem and is as short as I could
make it.

- snip 8 --

Request
?xml version=1.0 encoding=utf-8?
SOAP-ENV:Envelope
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  SOAP-ENV:Body xmlns:ns1=http://ice.zerofiveone.com/Objecttest;
ns1:getPeople
 SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  author xsi:type=xsd:int/author
/ns1:getPeople
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

Response
?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:namesp2=http://xml.apache.org/xml-soap;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  SOAP-ENV:Body
namesp6:getPeopleResponse
  xmlns:namesp6=http://ice.zerofiveone.com/Objecttest;
  SOAP-ENC:Array xsi:type=SOAP-ENC:Array
SOAP-ENC:arrayType=namesp2:SOAPStruct[3]
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringTom/name
  age xsi:type=xsd:int24/age
/item
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringChris/name
  age xsi:type=xsd:int26/age
/item
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringAndrew/name
  age xsi:type=xsd:int56/age
/item
  /SOAP-ENC:Array
/namesp6:getPeopleResponse
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

And finally the WSDL - I tried to keep this as short as possible for
this example.

?xml version=1.0?
definitions
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:si=http://soapinterop.org/xsd;
xmlns:tns=http://ice.zerofiveone.com/Objecttest;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns=http://schemas.xmlsoap.org/wsdl/;
targetNamespace=http://ice.zerofiveone.com/Objecttest;
types
  xsd:schema
  targetNamespace=http://ice.zerofiveone.com/Objecttest;
  xsd:import
namespace=http://schemas.xmlsoap.org/soap/encoding/; /
  xsd:import namespace=http://schemas.xmlsoap.org/wsdl/; /
  xsd:complexType name=Person
xsd:all
  xsd:element name=name type=xsd:string /
  xsd:element name=age type=xsd:string /
/xsd:all
  /xsd:complexType
  xsd:complexType name=PersonArray
xsd:complexContent
  xsd:restriction base=SOAP-ENC:Array
xsd:attribute ref=SOAP-ENC:arrayType

Re: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-15 Thread Tom Shaw
All fixed!

Similar to Jasons problem this was a SOAP generation problem in Perl
and the simple fact I wasnt doing it correctly.

for anyone else who is having problems using Perl you must make sure
you correctly type all your output to match the WSDL file.

Google API is an excellent resource to see how it should be done
correctly.

I will put up some example source files and documentation when I get
time.

Cheers,
Tom

On Mon, 14 Aug 2006 14:28:56 +0100, you wrote:

Hi all,  This is my first post on the list so Ill say hi now and hope
you are all friendly :)

Ive been going round for days on this one and have searched high and
low for an answer.  I even looked under the bed but all I found was
smelly socks, so before I actually go mad could anyone shed some light
on this rather annoying problem with Flash 8 Pro.

I have a SOAP server set up under mod_perl which delivers an array of
objects.

To avoid reinventing the wheel I wanted Flash to decode the SOAP
response from the server.  the result Im actually getting is an array
of XML Objects.

I could parse these XML objects but then I might as well and decode
the entire response manually anyway.  the overhead for getting flash
to decode the object has already been incurred so Id really like to
figure this out.

Now while this might seem trivial I do want to return some rather more
complex objects so this has effetively stopped my development for now.

I dont want to go down the path with flash Remoting at the minute but
for those who might suggest it I have considered it and may implement
it in the future.

If anyone is getting Flash to fully decode Arrays of Objects or any
other remotely complex data structure could they please post their
SOAP response and reply for me to study so I can try and find out what
exactly is wrong.

I have a few more questions to ask but for clarity Ill leave these for
another day.

Im not sure if posting my SOAP reply would help at this point...I will
create a simple example and post it shortly.

Id really appreciate some help here so Ill cross my fingers and hope
for the best.

Cheers,
Tom
___
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] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Tom Shaw
Hi all,  This is my first post on the list so Ill say hi now and hope
you are all friendly :)

Ive been going round for days on this one and have searched high and
low for an answer.  I even looked under the bed but all I found was
smelly socks, so before I actually go mad could anyone shed some light
on this rather annoying problem with Flash 8 Pro.

I have a SOAP server set up under mod_perl which delivers an array of
objects.

To avoid reinventing the wheel I wanted Flash to decode the SOAP
response from the server.  the result Im actually getting is an array
of XML Objects.

I could parse these XML objects but then I might as well and decode
the entire response manually anyway.  the overhead for getting flash
to decode the object has already been incurred so Id really like to
figure this out.

Now while this might seem trivial I do want to return some rather more
complex objects so this has effetively stopped my development for now.

I dont want to go down the path with flash Remoting at the minute but
for those who might suggest it I have considered it and may implement
it in the future.

If anyone is getting Flash to fully decode Arrays of Objects or any
other remotely complex data structure could they please post their
SOAP response and reply for me to study so I can try and find out what
exactly is wrong.

I have a few more questions to ask but for clarity Ill leave these for
another day.

Im not sure if posting my SOAP reply would help at this point...I will
create a simple example and post it shortly.

Id really appreciate some help here so Ill cross my fingers and hope
for the best.

Cheers,
Tom
___
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] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Tom Shaw
?  ColdFusion?  If .NET, yes,
you can easily send objects back and forth. It serializes as SOAP
formatted XML inbetween, but you'll never notice. You can read an object
with arrays, set properties, and send it back.  I can't send you our
SOAP message because it might be considered propriety bank information
(even though it's not really), but there are some tutorials on the web

http://www.sephiroth.it/tutorials/flashPHP/webServiceConnector/

Here is the WSDL is uses:

http://www.xmethods.net/sd/2001/BabelFishService.wsdl

Here is some code I use to test loading in an object from a wsdl SOAP
object from .NET

import mx.services.*;

function startmyws():Void{
   ws = new WebService(http://blahblahurl/theService.asmx?WSDL;);
   ws.onLoad = trace(The webservice loaded fine.);
   methodResultObj = ws.GetProject(0);
   methodResultObj.onResult = showResult;
   methodResultObj.onFault = function(fault) {
 trace(!! Flash Web Services Component Error.  \n Fault Code:
+fault.faultcode + , Fault:  + fault.faultstring);
   }
}

function showResult(projObj:Object){
   //test object value:
   theVar = projObj.Content.Topics[0].TextAreas[0].Content
   trace(theVar)
}

startmyws();

Don't bother with parsing through XML if you are using .NET.  And wash
those socks. :) 

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Shaw
Sent: Monday, August 14, 2006 9:29 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of
complex
objects

Hi all,  This is my first post on the list so Ill say hi now and hope
you are all friendly :)

Ive been going round for days on this one and have searched high and
low for an answer.  I even looked under the bed but all I found was
smelly socks, so before I actually go mad could anyone shed some light
on this rather annoying problem with Flash 8 Pro.

I have a SOAP server set up under mod_perl which delivers an array of
objects.

To avoid reinventing the wheel I wanted Flash to decode the SOAP
response from the server.  the result Im actually getting is an array
of XML Objects.

I could parse these XML objects but then I might as well and decode
the entire response manually anyway.  the overhead for getting flash
to decode the object has already been incurred so Id really like to
figure this out.

Now while this might seem trivial I do want to return some rather more
complex objects so this has effetively stopped my development for now.

I dont want to go down the path with flash Remoting at the minute but
for those who might suggest it I have considered it and may implement
it in the future.

If anyone is getting Flash to fully decode Arrays of Objects or any
other remotely complex data structure could they please post their
SOAP response and reply for me to study so I can try and find out what
exactly is wrong.

I have a few more questions to ask but for clarity Ill leave these for
another day.

Im not sure if posting my SOAP reply would help at this point...I will
create a simple example and post it shortly.

Id really appreciate some help here so Ill cross my fingers and hope
for the best.

Cheers,
Tom
___
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