RE: [Flashcoders] limit of nodes of XML file that can be parsed?
> Hi Danny, > > I'll definitely look into that, if not for this project, > it'll come in very handy for later ones. So far I heard of > SCORM, but never looked into it really in depth. Isn't it for > web based learning only? No, it's a method for packaging course data which is used by most (not quite all) virtual learning environments / learning platforms, including the web-based ones (eg Moodle, MS Class server) and the ones designed for use within a school network (Kaleidos). Our content is distributed mostly on CD-ROM too, but it's designed to be loaded easily onto a network, and we've packaged it up as learning objects and courses using SCORM (a painful process, I may say - SCORM is a hideous beast of a specification). Having said that, the stuff we deliver is Shockwave, so it does work through web pages. I'm not sure how well these things handle exes - I suspect you might find it doesn't work so well. Still, like I say it's worth looking into: at least in this country, most educational institutions are getting learning platforms (indeed, secondary schools are required to get one within the next year), so they're all looking for content. Danny ___ 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] Desktop app that uploads files to server usingbinarydata
Thanks Muzak Yes you are certainly right that I hadn't a clue what to search for. Your reply is extremely helpful and I feel I can make a start on this. I hadn't considered Flex for this project but this is now a serious consideration and I am downloading a copy now. Great I will have to learn not only AS3 but also Flex!! Out of interest, is there a Base64Encoder for Flash CS3 or is this just available for Flex? Another question, once I have read in the file and converted to a binary string, can I send this data as xml data? I think the API provided by the client expects all data to be sent via xml. Hope this makes sense, as currently I am still a little unsure of things - I normally just develop games so this project involves a lot of new territory:) Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: 04 July 2007 02:51 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Desktop app that uploads files to server usingbinarydata The reason why're you're not finding much info is probably because you more or less have to know what to look for ;-) Try looking for Base64Encoder http://tools.assembla.com/flexsdk/browser/mx/utils/Base64Encoder.as mx.utils.Base64Encoder class is an undocumented Flex 2 AS3 class, which will be documented in Flex 3. an example sending an image to server: http://djangonflex.wordpress.com/2007/06/30/sending-images-from-flex-to-a-se rver/ These might come in handy as well: - JPEGEncoder - PNGEncoder They're available in the as3corelib: http://code.google.com/p/as3corelib/ http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/images/ So basically what you'll need to do when a file is dropped on your app is load that file as raw Binary data fileLoader = new URLLoader(); fileLoader.dataFormat = URLLoaderDataFormat.BINARY; Once the file is loaded, convert it to a binary string (using Base64Encoder) and then send it to your server script using HTTPService (not sure what the Flash CS3 equivalent is). By the way, you can use Flex with Zinc. regards, Muzak - Original Message - From: "Paul Steven" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 03, 2007 3:24 PM Subject: [Flashcoders] Desktop app that uploads files to server using binarydata >I am building a desktop app (mac and pc) and it has to upload a bunch of > files - pdf's, word docs and images - to a server side script. This has to > be done via HTTP and cannot be FTP. > > The problem arises because I do not want the user to have to select the > file/s before uploading so I cannot use the flash 8 FileReference class. > > The user should be able to drag the required files onto the application. > > I believe it is possible to upload binary data using AS3 but I cannot find > any examples of this and as I have not as yet looked at AS3, some examples > or advice on where to start would be much appreciated. > > As far as I am aware I will need to use Zinc to package the application as > this will provide additional functionality such as the ability to drag and > drop files onto the application. > > Apollo / Air is out of the question as it is only in beta stage and also > this application needs to be run from a flash drive without any preinstall > on the users hard drive. > > Thanks in advance > > 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
Re: [Flashcoders] Desktop app that uploads files to serverusingbinarydata
Hi Steven, Allthough I haven't actually tried it, the Base64Encoder class should work with Flash CS3 as well. AFAIK there's nothing Flex specific in that class, apart from the MetaData tag (ExcludeClass) at the top (which Flash will probably just ignore). You should also be able to send the binary data in an xml packet. regards, Muzak - Original Message - From: "Paul Steven" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 04, 2007 11:21 AM Subject: RE: [Flashcoders] Desktop app that uploads files to serverusingbinarydata > Thanks Muzak > > Yes you are certainly right that I hadn't a clue what to search for. > > Your reply is extremely helpful and I feel I can make a start on this. I > hadn't considered Flex for this project but this is now a serious > consideration and I am downloading a copy now. Great I will have to learn > not only AS3 but also Flex!! > > Out of interest, is there a Base64Encoder for Flash CS3 or is this just > available for Flex? > > Another question, once I have read in the file and converted to a binary > string, can I send this data as xml data? I think the API provided by the > client expects all data to be sent via xml. Hope this makes sense, as > currently I am still a little unsure of things - I normally just develop > games so this project involves a lot of new territory:) > > > Thanks > > Paul > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Muzak > Sent: 04 July 2007 02:51 > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] Desktop app that uploads files to server > usingbinarydata > > The reason why're you're not finding much info is probably because you more > or less have to know what to look for ;-) > > Try looking for Base64Encoder > http://tools.assembla.com/flexsdk/browser/mx/utils/Base64Encoder.as > > mx.utils.Base64Encoder class is an undocumented Flex 2 AS3 class, which will > be documented in Flex 3. > > an example sending an image to server: > http://djangonflex.wordpress.com/2007/06/30/sending-images-from-flex-to-a-se > rver/ > > These might come in handy as well: > - JPEGEncoder > - PNGEncoder > They're available in the as3corelib: > http://code.google.com/p/as3corelib/ > http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/images/ > > So basically what you'll need to do when a file is dropped on your app is > load that file as raw Binary data > > fileLoader = new URLLoader(); > fileLoader.dataFormat = URLLoaderDataFormat.BINARY; > > Once the file is loaded, convert it to a binary string (using Base64Encoder) > and then send it to your server script using > HTTPService (not sure what the Flash CS3 equivalent is). > > By the way, you can use Flex with Zinc. > > regards, > Muzak > > - Original Message - > From: "Paul Steven" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, July 03, 2007 3:24 PM > Subject: [Flashcoders] Desktop app that uploads files to server using > binarydata > > >>I am building a desktop app (mac and pc) and it has to upload a bunch of >> files - pdf's, word docs and images - to a server side script. This has to >> be done via HTTP and cannot be FTP. >> >> The problem arises because I do not want the user to have to select the >> file/s before uploading so I cannot use the flash 8 FileReference class. >> >> The user should be able to drag the required files onto the application. >> >> I believe it is possible to upload binary data using AS3 but I cannot find >> any examples of this and as I have not as yet looked at AS3, some examples >> or advice on where to start would be much appreciated. >> >> As far as I am aware I will need to use Zinc to package the application as >> this will provide additional functionality such as the ability to drag and >> drop files onto the application. >> >> Apollo / Air is out of the question as it is only in beta stage and also >> this application needs to be run from a flash drive without any preinstall >> on the users hard drive. >> >> Thanks in advance >> >> 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
Re: [Flashcoders] Desktop app that uploads files toserverusingbinarydata
erhm, that should have been: Hi Paul ;-) - Original Message - From: "Muzak" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 04, 2007 11:45 AM Subject: Re: [Flashcoders] Desktop app that uploads files toserverusingbinarydata > Hi Steven, > > Allthough I haven't actually tried it, the Base64Encoder class should work > with Flash CS3 as well. > AFAIK there's nothing Flex specific in that class, apart from the MetaData > tag (ExcludeClass) at the top (which Flash will > probably just ignore). > > You should also be able to send the binary data in an xml packet. > > regards, > Muzak > ___ 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] Sorry for the off topic post but is anyone out there a really good Ajax JavaScript person we need help
Sorry for the off topic post but is anyone out there a really good Ajax JavaScript person we need help. I'm not an agent I work for http://www.avenuea-razorfish.com/. We are really stuck if anyone knows someone who wants a good job. Just let me know. Thanks guys ___ 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] Sorry for the off topic post but is anyone out there a really good Ajax JavaScript person we need help
Well, if you want to describe the problem maybe someone can help you without having to hire someone ;) tom Am 03:31 PM 7/4/2007 schrieben Sie: Sorry for the off topic post but is anyone out there a really good Ajax JavaScript person we need help. I'm not an agent I work for http://www.avenuea-razorfish.com/. We are really stuck if anyone knows someone who wants a good job. Just let me know. Thanks guys ___ 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] limit of nodes of XML file that can be parsed?
A side note but you might look at the Eclipse-based Reload application for SCORM packaging. Takes a lot of the pain out of a cumbersome process. Ron Danny Kodicek wrote: > Hi Danny, I'll definitely look into that, if not for this project, it'll come in very handy for later ones. So far I heard of SCORM, but never looked into it really in depth. Isn't it for web based learning only? No, it's a method for packaging course data which is used by most (not quite all) virtual learning environments / learning platforms, including the web-based ones (eg Moodle, MS Class server) and the ones designed for use within a school network (Kaleidos). Our content is distributed mostly on CD-ROM too, but it's designed to be loaded easily onto a network, and we've packaged it up as learning objects and courses using SCORM (a painful process, I may say - SCORM is a hideous beast of a specification). Having said that, the stuff we deliver is Shockwave, so it does work through web pages. I'm not sure how well these things handle exes - I suspect you might find it doesn't work so well. Still, like I say it's worth looking into: at least in this country, most educational institutions are getting learning platforms (indeed, secondary schools are required to get one within the next year), so they're all looking for content. Danny ___ 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 Accessibility Panel Bug?
Good to know the work around. I guessed that you could escape characters, but the idea that the IDE needs escaping is, well, silly. Interestingly, flash doesn't have a problem with quotes that come from MS Word (curly quotes). Playing around, quotes seem to be the only character I can make the Accessibility Panel choke on. Now to figure out how to explain "escape your quotes" to my assemblers. On 7/4/07, vivek <[EMAIL PROTECTED]> wrote: Hi, If I am not wrong flash is taking " as a special character. To use " as a normal character use \ before ". This will remove the special meaning of " and will be used as a normal character. Eg: Set the .name property to: This is a \"dummy\" test movie I have tested it with Jaws 7.0 and Jaws 8.0 Thanks & Regards Vivek Gaikwad Flash Accessibility Developer www.n-syst.com -Original Message- From: Jer Brand [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 04, 2007 1:12 AM To: flashcoders@chattyfig.figleaf.com; Jer Subject: [Flashcoders] Flash 8 Accessibility Panel Bug? Not sure if this is new, or if I'm just doing something stupid so I'm asking the experts: If you include a "Name" or "Description" property in the Accessibility Panel that includes quotes (" "), the _accProps Object for that MovieClip is not created. Has anyone else seen this? Am I just late to the party on it? I ran into this when creating a class that would create key listeners for any MovieClip that had an onRelease method and had it's _accProps.shortcut set to a keyboard shortcut (parsing the "ctrl+", "shift"+, etc). I've been beating my head against the wall all day, and finally figured out the only difference between the MovieClips that were working as planned and those that failed were that the name or description had quotes. My Mistake or Flash's mistake? Anyone know if it's been reported (not that I expect a fix, it's Flash 8, Does CS3 do this?) I built a little test case to confirm, and if anyone's interested in pointing out my mistake or just checking my work, feel free. Steps to re-create: 1: Create a movie with one MovieClip on Stage (contents are unimportant) named "test_mc" 2: Open the Accessibility panel and set the properties for this movie as follows: a) Make Object Accessible checked b) Make child objects accessible *unchecked* c) Set the name value to be: This is a "dummy" test Movie d) Set the description value to be: Description goes "here" e) Set the shortcut field to be: A f) Set the Tab index field to be 1 3) Place the following code on frame 1 this.onLoad = function() { this.onEnterFrame = init ; } function init() { this.onEnterFrame = null ; delete this.onEnterFrame ; trace(test_mc._accProps.name) trace(test_mc._accProps.description) trace(test_mc._accProps.silent) trace(test_mc._accProps.forceSimple) trace(test_mc._accProps.shortcut) ; } The output of this is: undefined undefined undefined undefined undefined Remove the quotes and the output is: This is a dummy test Movie Description goes here undefined true A ___ 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] Get coordinates from illustration
Hi! I would like to get all the coordinates from a shape made with the Bezier tool in Flash or Illustrator into Flash so I can use them to create a dynamic shape in Flash with the curveTo syntax. Does anyone know if there is a tool or script outthere doing this? Thanks in advance! Ellen ___ 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] Get coordinates from illustration
> Hi! > > I would like to get all the coordinates from a shape made > with the Bezier tool in Flash or Illustrator into Flash so I > can use them to create a dynamic shape in Flash with the > curveTo syntax. Does anyone know if there is a tool or script > outthere doing this? There's no way to do this completely accurately, because those shapes use cubic Bezier curves, while the curveTo function (and Flash's other drawing tools) use quadratics. However, you can make a first approximation version. In JSFL there is an edge.getControl() function which will tell you the position of the four control points of any contour edge. Loop through those for your shape, and you have the full data. To convert into quadratic beziers is fiddly, but you could make a first approximation by setting the quadratic control point to the average of the cubic one. HTH (I can give you more if you need it, but not right now...) Danny ___ 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] Seamless Player Upgrade
Have a look at SWFObject and express-install. http://blog.deconcept.com/swfobject/ [EMAIL PROTECTED] wrote: Hey everyone, I want to set up a process so users who don't have the correct version of Flash Player to view my app can upgrade seamlessly without leaving the swf. If anyone could point me in the direction of any useful articles I would be v v grateful. Thanks guys :) Danny ___ 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] Seamless Player Upgrade
Hey everyone, I want to set up a process so users who don't have the correct version of Flash Player to view my app can upgrade seamlessly without leaving the swf. If anyone could point me in the direction of any useful articles I would be v v grateful. Thanks guys :) Danny ___ 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] WebServices support in AS3/FLCS3
Really What happened with the webservices classes in AS3/Flash CS3? i can't believe they are gone. Anyone know something about it? -- Enrique Chavez aka Tmeister http://www.klr20mg.com http://www.tmeister.net http://desktoptwo.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] WebServices support in AS3/FLCS3
If you are in Flash CS3 and have an AS3 fla open navigate to Window/ Common Libraries/Classes You will find them there. -Gerry On Jul 4, 2007, at 9:03 PM, Enrique Chávez wrote: Really What happened with the webservices classes in AS3/Flash CS3? i can't believe they are gone. Anyone know something about it? -- Enrique Chavez aka Tmeister http://www.klr20mg.com http://www.tmeister.net http://desktoptwo.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] WebServices support in AS3/FLCS3
They're only available in AS 2 right now. No as 3 support yet. ___ 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] WebServices support in AS3/FLCS3
Those are AS2, not AS3. There are currently no AS3 classes/components for webservices or remoting in FCS3. Right now Flex 2 is the only alternative. regards, Muzak - Original Message - From: "Gerry Creighton" <[EMAIL PROTECTED]> To: Sent: Thursday, July 05, 2007 4:29 AM Subject: Re: [Flashcoders] WebServices support in AS3/FLCS3 If you are in Flash CS3 and have an AS3 fla open navigate to Window/ Common Libraries/Classes You will find them there. -Gerry ___ 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