[Flashcoders] Runtime font embedding in Flash CS3...
Something that should be sooo easy always seems to be a real struggle in flash. I had finally worked out how to do it in as2 and now all the parameters have changed again in as3. I have read various articles on the subject and get most of it. I have one swf with two font symbols exported in the library and used registerfonts. These are now available in my other swf that is loading them, however I want it to be multi lingual and therefore have different font libraries. The bit I am falling down on is defining the character sets. Now if I had a texfield then I would just choose the character sets but I cannot see how to do that with a font symbol. Any help, different approach, links much appreciated, I hate flash and fonts - nothing but a pain!! Links I have already seen: http://www.betriebsraum.de/blog/2007/06/22/runtime-font-loading-with-as3-flash-cs3-not-flex/ http://developer.yahoo.com/flash/articles/runtime-fonts-as3.html Please note that this is for the flash IDE and not flex. Cheers M ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
Hi Michael, I agree embedding fonts in Flash is a pain. I don't think you can define a range of characters in an exported font symbol in the Flash IDE. (as stated in www.betriebsraum.de). developer.yahoo.com describes the flex approach. You might try the following: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( HTH Willem Op 18-aug-2008, om 10:49 heeft Michael William Ypes het volgende geschreven: Something that should be sooo easy always seems to be a real struggle in flash. I had finally worked out how to do it in as2 and now all the parameters have changed again in as3. I have read various articles on the subject and get most of it. I have one swf with two font symbols exported in the library and used registerfonts. These are now available in my other swf that is loading them, however I want it to be multi lingual and therefore have different font libraries. The bit I am falling down on is defining the character sets. Now if I had a texfield then I would just choose the character sets but I cannot see how to do that with a font symbol. Any help, different approach, links much appreciated, I hate flash and fonts - nothing but a pain!! Links I have already seen: http://www.betriebsraum.de/blog/2007/06/22/runtime-font-loading- with-as3-flash-cs3-not-flex/ http://developer.yahoo.com/flash/articles/runtime-fonts-as3.html Please note that this is for the flash IDE and not flex. Cheers M =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Full Screen issue on a Mac
By the way your HTML closing tags are wrong. Kenneth Kawamoto http://www.materiaprima.co.uk/ http://venturawave.com/fs/fullscreen.html This site crashed on my client's Mac. The problem was likely that I didn't include or nest the the embed tags within the object tags in my html page when I modified for full screen. Here's my new code in the html (which hopefully works) ... object data=fullscreen.swf type=application/x-shockwave-flash width=640 height=510 param name=movie value=fullscreen.swf / param name=allowFullScreen value=true / embed src=fullscreen.swf quality=high bgcolor=#ff width=640 height=510 name=stage align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage= http://www.macromedia.com/go/getflashplayer; / / carlos ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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
Re: [Flashcoders] Runtime font embedding in Flash CS3...
I haven't tried this myself but have you used my old bff getDefinitionByName var fontClass:Font = getDefinitionByName(fontClassNameWithinTheSwf) as Font; and then use the font via the Font class? -jonathan On Mon, Aug 18, 2008 at 1:40 PM, Michael William Ypes [EMAIL PROTECTED] wrote: I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
Hi, You should still be able to load a separarte SWF with a font embedded then use this on the stage: http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/ A workaround for the [Embed] does not work in Flash issue is to use another program, like Flash Develop if you ain't got Flex, to create your font based SWF, then load this from your Flash built application. HTH Glen Michael William Ypes wrote: I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
Sorry, I realized the syntaxt is wrong - would need to first cast as a Class then instantiate... On Mon, Aug 18, 2008 at 2:27 PM, jonathan howe [EMAIL PROTECTED]wrote: I haven't tried this myself but have you used my old bff getDefinitionByName var fontClass:Font = getDefinitionByName(fontClassNameWithinTheSwf) as Font; and then use the font via the Font class? -jonathan On Mon, Aug 18, 2008 at 1:40 PM, Michael William Ypes [EMAIL PROTECTED] wrote: I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
Hello Michael, try the following: 1) create a FLA, blank, empty timeline, empty stage 2) show the Library, then from the menu on the top right click on 'New font ...' 3) select the font you want to embed, give it a 'Name' with no spaces. For example: Arial Narrow (actual font name) would be 'ArialNarrow', click OK 4) right click the font symbol in the library, and select 'Linkage...' (the last item in the menu) 5) Tick (check) the 'Export for ActionScript' box (leave the export in first frame option on) 6) give your font a class name. For example, FontArialNarrow, base class is: flash.text.Font 7) add the following 'timeline script' to a frame: import flash.text.Font; Font.registerFont(FontArialNarrow); 8) save your FLA, export it. Then load your swf in your main swf and use the font by simply referring to the true font name. For example: myTxtFormat_fmt.font = Arial Narrow; and don't forget to 'embedFonts = true' on the textfield that must display the loaded font: myTxtField_txt.embedFonts = true; I did not test this procedure while writing, but I always use it that way in my projects hth, Cedric I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
As a precision: This technique works perfectly with AS3 (I was also using the great zarate's shared library hack with AS2). The only big drawback, with AS3, is that you have to be sure that NO single textfield with the embedded font you want to use is in the loading SWF (means: don't put textfield instances in your loading SWF, or your loaded SWF, nor linked library symbols with embedded font in them). But, you can still have textfield instances in your stage, even hardcoded from the IDE, as LONG as you don't embed the font you want to use as a shared font. My way of doing things: I do generate all textfields with 'new TextField()' hth, Cedric Hello Michael, try the following: 1) create a FLA, blank, empty timeline, empty stage 2) show the Library, then from the menu on the top right click on 'New font ...' 3) select the font you want to embed, give it a 'Name' with no spaces. For example: Arial Narrow (actual font name) would be 'ArialNarrow', click OK 4) right click the font symbol in the library, and select 'Linkage...' (the last item in the menu) 5) Tick (check) the 'Export for ActionScript' box (leave the export in first frame option on) 6) give your font a class name. For example, FontArialNarrow, base class is: flash.text.Font 7) add the following 'timeline script' to a frame: import flash.text.Font; Font.registerFont(FontArialNarrow); 8) save your FLA, export it. Then load your swf in your main swf and use the font by simply referring to the true font name. For example: myTxtFormat_fmt.font = Arial Narrow; and don't forget to 'embedFonts = true' on the textfield that must display the loaded font: myTxtField_txt.embedFonts = true; I did not test this procedure while writing, but I always use it that way in my projects hth, Cedric I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Publishing Bug
Hello flashers, Problem description : Context : On a project, I compile using a Batch Compiling script, which worked perfectly. Problem : 2 files of the batch with a strange behavior once compiled Bug Description : When the animations play, only Keyframes are displayed, and whole tweens between 2 keyframes is missing. Animation : 1- Designed in Flash 8 2- Integrated into Flash CS3 3- Compiled by Flash CS3 Temp way to fix it : If I open a MovieClip in Edit-Mode into the library and close it without making anyway change, and I recompile It's fine the tweens between keyframes are back into the Opened/Closed MovieClip, but not with those I don't Open/Close. But : Once I save the file, the bug come back. Is someone ever see this bug? Is a way to fix it without remaking the whole animation? Thx Leon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
I was thinking of this route but my flex 3 trial has run out. I am assuming then that I can load that into a normal flash application and get it via the class name as per normal. Has anyone got an example font file (made from flex) that I can test it with. If not I shall have to go and purchase flex. On 18 Aug 2008, at 13:37, Glen Pike wrote: Hi, You should still be able to load a separarte SWF with a font embedded then use this on the stage: http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/ A workaround for the [Embed] does not work in Flash issue is to use another program, like Flash Develop if you ain't got Flex, to create your font based SWF, then load this from your Flash built application. HTH Glen Michael William Ypes wrote: I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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
Re: [Flashcoders] Runtime font embedding in Flash CS3...
I can access the fonts but do not know how to cast them as a class to regsiterfont. Here is what I have so far with that route in mind. Embed the fonts on the timeline: Use the following code but I need to register the fonts to make them globally available. var embeddedFonts:Array = Font.enumerateFonts(false); for(var i:Number = 0; i embeddedFonts.length; i++){ var item:Font = embeddedFonts[i]; trace([ + i + ] name: + item.fontName + , style: + item.fontStyle + , type: + item.fontType); //OUTPUTS //[0] name:Myriad Pro Cond, style: bold, type: embedded //[1] name:Myriad Pro Cond, style: regular, type: embedded //BUT WHAT DO BELOW DO MAKE IT A CLASS AND REGISTER IT... //Font.registerFont(???); } Cheers M Following code On 18 Aug 2008, at 13:40, jonathan howe wrote: Sorry, I realized the syntaxt is wrong - would need to first cast as a Class then instantiate... On Mon, Aug 18, 2008 at 2:27 PM, jonathan howe [EMAIL PROTECTED] wrote: I haven't tried this myself but have you used my old bff getDefinitionByName var fontClass:Font = getDefinitionByName(fontClassNameWithinTheSwf) as Font; and then use the font via the Font class? -jonathan On Mon, Aug 18, 2008 at 1:40 PM, Michael William Ypes [EMAIL PROTECTED] wrote: I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ 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
Re: [Flashcoders] Runtime font embedding in Flash CS3...
Michael, You can do this with the Flex SDK, which is free. HTH, Ian On Mon, Aug 18, 2008 at 3:07 PM, Michael William Ypes [EMAIL PROTECTED] wrote: I was thinking of this route but my flex 3 trial has run out. I am assuming then that I can load that into a normal flash application and get it via the class name as per normal. Has anyone got an example font file (made from flex) that I can test it with. If not I shall have to go and purchase flex. On 18 Aug 2008, at 13:37, Glen Pike wrote: Hi, You should still be able to load a separarte SWF with a font embedded then use this on the stage: http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/ A workaround for the [Embed] does not work in Flash issue is to use another program, like Flash Develop if you ain't got Flex, to create your font based SWF, then load this from your Flash built application. HTH Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Duplicate Nested MovieClips in AS3
Hi nice list :-) Can somebody have a look on this problem please ? i don't understand why this duplicate method doesn't work on nested movieClip :( You can check a really simple example at http://www.mymisu.com/niko/duplicateTest.rar It's really a basic example, i've commented the duplicate problem in the document class Thanks in advance ... Niko On Sun, Aug 17, 2008 at 9:09 AM, Lair Nicolas [EMAIL PROTECTED]wrote: Hi Jonathan, thanks again for your feedback !!! In fact, _currentBackground is already on the stage - as a child of view_main !!! I've put a simple example online, can you have a look at it ? you can find it here : http://www.mymisu.com/niko/duplicateTest.rar Thanks a lot !!! Niko On Sat, Aug 16, 2008 at 9:11 PM, jonathan howe [EMAIL PROTECTED]wrote: So, are you saying that the _currentBackground has a parent but is not on the stage? It's obviously possible if _currentBackground is nested inside something else that is not on the stage, but in the simplest scenario, if it doesn't have a parent, it's not going to run this block if ( target.parent) { target.parent.addChild(duplicate); } So what does this output when you run it on _currentBackground: if ( target.parent) { target.parent.addChild(duplicate); trace(duplicate():target.parent:,target.parent); } -jonathan On Sat, Aug 16, 2008 at 8:27 PM, Lair Nicolas [EMAIL PROTECTED] wrote: Hi, thanks for the response, i already tested it, and it's executed but strangly not displayed on screen :( On Sat, Aug 16, 2008 at 7:48 PM, jonathan howe [EMAIL PROTECTED] wrote: the only difference between _currentView and _currentBackground is that currentView is present on the stage Aren't you testing for exactly that with the conditional if ( target.parent) { } ? Throw a trace statement inside there and see if that block of code is actually executed. -jonathan On Sat, Aug 16, 2008 at 3:14 PM, Lair Nicolas [EMAIL PROTECTED] wrote: Hi all, i'm trying to duplicate a nested movieClip in AS3, but it does not work :-( In my main fla, i've a movieClip named view_main that contains another movieClip named background_mc I want to duplicate the background_mc movieClip by using the constructor property like that : _currentView = this.view_main as MovieClip; _currentBackground = this._currentView.background_mc as MovieClip; _currentBackgroundCopy = duplicate(this._currentBackground) as MovieClip; public function duplicate(target:DisplayObject):DisplayObject { var targetClass:Class = Object(target).constructor; var duplicate:DisplayObject = new targetClass(); if ( target.parent) { target.parent.addChild(duplicate); } return duplicate; } The call to duplicateDisplayObject(this._currentBackground, true) return the correct movieClip but it doesn't appear on the screen - looks like the addChild does not work ... Even better, it works if i call duplicate(this.currentView) and the only difference between _currentView and _currentBackground is that currentView is present on the stage ... Thanks in advance :-) Niko ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ 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 -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ 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
Re: [Flashcoders] Runtime font embedding in Flash CS3...
Hi, You can do the AS3 Embed test with FlashDevelop = £0, so download the FlexSDK, install it, then FD, then maybe try the example on ScottMorgan's blog - You should be able to create a simple FD project (AS3 default) paste in the code for the font from the blog, and click the build / run button to compile. One thing to note with embedding is the path to the font, you may want to copy a version into a directory in the project folder rather than rely on the System or file based C:\.. fonts as I sometimes had problems with the compiler and this mde them go away. http://www.adobe.com/products/flex/flexdownloads/#sdk http://www.flashdevelop.org/community/viewforum.php?f=11sid=1ef39000400abfd888216f8b507a9901 http://www.flashdevelop.org/community/viewforum.php?f=11sid=1ef39000400abfd888216f8b507a9901 FD releases If you like FD and want to do a lot of compiling with it, I recommend getting the flex compiler shell fcsh installed too. http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell Flash Develop is really nice too if you do a lot of coding for AS3. For what you want to do, you should not have a huge hassle making it work it either, the learning can come later when you have some breathing space. Glen Michael William Ypes wrote: I was thinking of this route but my flex 3 trial has run out. I am assuming then that I can load that into a normal flash application and get it via the class name as per normal. Has anyone got an example font file (made from flex) that I can test it with. If not I shall have to go and purchase flex. On 18 Aug 2008, at 13:37, Glen Pike wrote: Hi, You should still be able to load a separarte SWF with a font embedded then use this on the stage: http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/ A workaround for the [Embed] does not work in Flash issue is to use another program, like Flash Develop if you ain't got Flex, to create your font based SWF, then load this from your Flash built application. HTH Glen Michael William Ypes wrote: I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Duplicate Nested MovieClips in AS3
Niko, I looked at your file... Basically, your duplicate function is fetching the constructor of what you're sending it, which is cast as a MovieClip... so it's calling the constructor of MovieClip, which is obviously just an empty movie clip. To fix this, I just set the Linkage Properties of the two symbols to arbitrary names, (which I would do whenever I hoped to declare them as classes). So, the only question is, why did it work for the top level symbol and not for the bottom? I believe this is because the top level symbol contained another named MovieClip inside it, in essence giving it a property and forcing Flash to store it internally as a class, to which it arbitrarily assigned the name of Delete2_1, regardless of it being assigned a Linkage identifier/classname. So, make sure any symbol you want to duplicate has a classname defined in the library. -jonathan P.S. Read up on that automatically declare stage instances checkbox and why it sucks! On Mon, Aug 18, 2008 at 4:25 PM, Lair Nicolas [EMAIL PROTECTED]wrote: Hi nice list :-) Can somebody have a look on this problem please ? i don't understand why this duplicate method doesn't work on nested movieClip :( You can check a really simple example at http://www.mymisu.com/niko/duplicateTest.rar It's really a basic example, i've commented the duplicate problem in the document class Thanks in advance ... Niko On Sun, Aug 17, 2008 at 9:09 AM, Lair Nicolas [EMAIL PROTECTED] wrote: Hi Jonathan, thanks again for your feedback !!! In fact, _currentBackground is already on the stage - as a child of view_main !!! I've put a simple example online, can you have a look at it ? you can find it here : http://www.mymisu.com/niko/duplicateTest.rar Thanks a lot !!! Niko On Sat, Aug 16, 2008 at 9:11 PM, jonathan howe [EMAIL PROTECTED] wrote: So, are you saying that the _currentBackground has a parent but is not on the stage? It's obviously possible if _currentBackground is nested inside something else that is not on the stage, but in the simplest scenario, if it doesn't have a parent, it's not going to run this block if ( target.parent) { target.parent.addChild(duplicate); } So what does this output when you run it on _currentBackground: if ( target.parent) { target.parent.addChild(duplicate); trace(duplicate():target.parent:,target.parent); } -jonathan On Sat, Aug 16, 2008 at 8:27 PM, Lair Nicolas [EMAIL PROTECTED] wrote: Hi, thanks for the response, i already tested it, and it's executed but strangly not displayed on screen :( On Sat, Aug 16, 2008 at 7:48 PM, jonathan howe [EMAIL PROTECTED] wrote: the only difference between _currentView and _currentBackground is that currentView is present on the stage Aren't you testing for exactly that with the conditional if ( target.parent) { } ? Throw a trace statement inside there and see if that block of code is actually executed. -jonathan On Sat, Aug 16, 2008 at 3:14 PM, Lair Nicolas [EMAIL PROTECTED] wrote: Hi all, i'm trying to duplicate a nested movieClip in AS3, but it does not work :-( In my main fla, i've a movieClip named view_main that contains another movieClip named background_mc I want to duplicate the background_mc movieClip by using the constructor property like that : _currentView = this.view_main as MovieClip; _currentBackground = this._currentView.background_mc as MovieClip; _currentBackgroundCopy = duplicate(this._currentBackground) as MovieClip; public function duplicate(target:DisplayObject):DisplayObject { var targetClass:Class = Object(target).constructor; var duplicate:DisplayObject = new targetClass(); if ( target.parent) { target.parent.addChild(duplicate); } return duplicate; } The call to duplicateDisplayObject(this._currentBackground, true) return the correct movieClip but it doesn't appear on the screen - looks like the addChild does not work ... Even better, it works if i call duplicate(this.currentView) and the only difference between _currentView and _currentBackground is that currentView is present on the stage ... Thanks in advance :-) Niko ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list
Re: [Flashcoders] top zines/blogs?
haha, well apparently this was not the right place to ask such a question! ;) I've already found a few places - but always keen on more. :) All the best, Sebastian. Helmut Granda wrote: Uhnn www.google.com :) On Fri, Aug 15, 2008 at 11:53 AM, Zeh Fernando [EMAIL PROTECTED] wrote: Uhn? http://feeds.adobe.com/ sebastian wrote: hello coders, I was wondering if anyone had a favorite blog and/or zine they are reading? preferably with RSS so I can plug it into my favorite news-paper style RSS reader: http://www.netvibes.com I'm interested in the following areas related to flash/AS2/3/flex: * (new) cutting edge applications / beautiful websites made in above tech. that one shouldn't miss - ie new trends; from a boad type of different flash sites: animation, application, math-art, architectural etc. * news about developments in the above tools, including new source code for case-studied code. example: someone makes a really nice cloud-effect, you can see the demo, and also grab the source. * news about the adobe tools themselves [adobe is planning this on AS4, that on FLEX3 etc.] * news about other websites providing interesting information related to flash/AS/flex. [so on-going hub center, one-point-of-contact to other related zine/blog websites] * news about people/crews who put together new packages/frameworks, example: FUSE for AS3 released, or RED5 new release etc. preferably with frequent updates too... thank you so much!!! Sebastian. http://www.chedal.org ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Runtime font embedding in Flash CS3...
Thanks Glen, I made the move to mac a few months ago and alas I cannot use Flash Develop anymore as it was definitely my preferred choice as editor. However the mac system has proved to be much better for my development now than the pc ever was so not really grumbling. Anyhow after a very annoying day I have found the solution that I was looking for. Although it requires flex and flash in order to create the solution. Flex to require the font library and then flash to load the library into. I must admit it is quite a sweet solution however I didn't really find any good documentation on it anywhere which is a shame. The key aspect was to limit the libraries to the glyphs required and to load at runtime depending on which language was required. Thanks for the point into the right direction. I might blog it if I ever get my blog up and running... Thanks or the help guys. Cheers M On 18 Aug 2008, at 15:29, Glen Pike wrote: Hi, You can do the AS3 Embed test with FlashDevelop = £0, so download the FlexSDK, install it, then FD, then maybe try the example on ScottMorgan's blog - You should be able to create a simple FD project (AS3 default) paste in the code for the font from the blog, and click the build / run button to compile. One thing to note with embedding is the path to the font, you may want to copy a version into a directory in the project folder rather than rely on the System or file based C:\.. fonts as I sometimes had problems with the compiler and this mde them go away. http://www.adobe.com/products/flex/flexdownloads/#sdk http://www.flashdevelop.org/community/viewforum.php?f=11sid=1ef39000400abfd888216f8b507a9901 http://www.flashdevelop.org/community/viewforum.php?f=11sid=1ef39000400abfd888216f8b507a9901 FD releases If you like FD and want to do a lot of compiling with it, I recommend getting the flex compiler shell fcsh installed too. http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell Flash Develop is really nice too if you do a lot of coding for AS3. For what you want to do, you should not have a huge hassle making it work it either, the learning can come later when you have some breathing space. Glen Michael William Ypes wrote: I was thinking of this route but my flex 3 trial has run out. I am assuming then that I can load that into a normal flash application and get it via the class name as per normal. Has anyone got an example font file (made from flex) that I can test it with. If not I shall have to go and purchase flex. On 18 Aug 2008, at 13:37, Glen Pike wrote: Hi, You should still be able to load a separarte SWF with a font embedded then use this on the stage: http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/ A workaround for the [Embed] does not work in Flash issue is to use another program, like Flash Develop if you ain't got Flex, to create your font based SWF, then load this from your Flash built application. HTH Glen Michael William Ypes wrote: I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list
Re: [Flashcoders] Runtime font embedding in Flash CS3...
get parallels and a copy of windows xp (vista is too chunky to use in virtualization) then go to http://www.flashdevelop.org/community/viewtopic.php?t=2463 and set it up as instructed - i barely notice the jump between the two apps now On Mon, Aug 18, 2008 at 6:03 PM, Michael William Ypes [EMAIL PROTECTED] wrote: Thanks Glen, I made the move to mac a few months ago and alas I cannot use Flash Develop anymore as it was definitely my preferred choice as editor. However the mac system has proved to be much better for my development now than the pc ever was so not really grumbling. Anyhow after a very annoying day I have found the solution that I was looking for. Although it requires flex and flash in order to create the solution. Flex to require the font library and then flash to load the library into. I must admit it is quite a sweet solution however I didn't really find any good documentation on it anywhere which is a shame. The key aspect was to limit the libraries to the glyphs required and to load at runtime depending on which language was required. Thanks for the point into the right direction. I might blog it if I ever get my blog up and running... Thanks or the help guys. Cheers M On 18 Aug 2008, at 15:29, Glen Pike wrote: Hi, You can do the AS3 Embed test with FlashDevelop = £0, so download the FlexSDK, install it, then FD, then maybe try the example on ScottMorgan's blog - You should be able to create a simple FD project (AS3 default) paste in the code for the font from the blog, and click the build / run button to compile. One thing to note with embedding is the path to the font, you may want to copy a version into a directory in the project folder rather than rely on the System or file based C:\.. fonts as I sometimes had problems with the compiler and this mde them go away. http://www.adobe.com/products/flex/flexdownloads/#sdk http://www.flashdevelop.org/community/viewforum.php?f=11sid=1ef39000400abfd888216f8b507a9901 http://www.flashdevelop.org/community/viewforum.php?f=11sid=1ef39000400abfd888216f8b507a9901 FD releases If you like FD and want to do a lot of compiling with it, I recommend getting the flex compiler shell fcsh installed too. http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell Flash Develop is really nice too if you do a lot of coding for AS3. For what you want to do, you should not have a huge hassle making it work it either, the learning can come later when you have some breathing space. Glen Michael William Ypes wrote: I was thinking of this route but my flex 3 trial has run out. I am assuming then that I can load that into a normal flash application and get it via the class name as per normal. Has anyone got an example font file (made from flex) that I can test it with. If not I shall have to go and purchase flex. On 18 Aug 2008, at 13:37, Glen Pike wrote: Hi, You should still be able to load a separarte SWF with a font embedded then use this on the stage: http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/ A workaround for the [Embed] does not work in Flash issue is to use another program, like Flash Develop if you ain't got Flex, to create your font based SWF, then load this from your Flash built application. HTH Glen Michael William Ypes wrote: I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not addressed this in cs3 as fonts do add a huge amount to file sizes. There has got to be a fix for this surely... Any more ideas... Cheers M On 18 Aug 2008, at 12:08, Ian Thomas wrote: On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know :( Offstage will do it. So will exporting in a text field within a MovieClip symbol in the library, providing that MovieClip symbol is marked for export in first frame. HTH, Ian ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
[Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Hi all, My team is trying to budget out software purchases for 2009. We all own licenses to the CS3 Master Collection. Since the Master Collection is a new Adobe product, what would you guess the upgrade cost to the (supposed, yet to be announced) CS4 Master Collection would be when it's released? Any rough guesses? Thanks. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Jason Merrill wrote: My team is trying to budget out software purchases for 2009. We all own licenses to the CS3 Master Collection. Since the Master Collection is a new Adobe product, what would you guess the upgrade cost to the (supposed, yet to be announced) CS4 Master Collection would be when it's released? Any rough guesses? Thanks. The upgrade from CS3 Master to CS3.3 Master is $159. On the other hand, upgrading to the Master Collection from CS2 Premium is $1,999. My guess is that, if you have the CS3 Master Collection, the upgrade to CS4 would probably be closer to $159 than $1,999. Basically a guess, though--it could be a lot more. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Double it... and use the excess to go to a few conferences! gregb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, August 18, 2008 12:45 PM To: Flash Coders List Subject: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate Hi all, My team is trying to budget out software purchases for 2009. We all own licenses to the CS3 Master Collection. Since the Master Collection is a new Adobe product, what would you guess the upgrade cost to the (supposed, yet to be announced) CS4 Master Collection would be when it's released? Any rough guesses? Thanks. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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
RE: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
LOL, Greg, sounds like a good idea. Thanks Kerry too - I did a quick survey of upgrade prices on Adobe.com and found the % difference between upgrade price and new full license prices to be: Flash 28% Illustrator 33% Photoshop 35% Flexbuilder 39% Dreamweaver 49% So maybe 35% is a good unscientific guess. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] top zines/blogs?
fullasagoog.com is quite a good aggregator for Flash, Flex, etc. It pulls in some of the stuff on the Adobe / MM aggregator but is not as clunky (have not looked recently). thefwa.com is good for new sites that look good, I think it has a feed, but I tend to visit the site as it's a visual thing. ultrashock.com - again, top sites, but not paid for submissions like thefwa ;| Look for Bombshock, but a bit of a pain to search for good stuff. Some of the creme sites for web design have a flash filter / category. Again, these are submit your own so there are lots of people out there who spend all day doing that (the rest of us just read blogs and mailing lists). I also keep an eye on the Web / Flash conferences sites - Flash Forward, FITC, etc. as the awards on here will have top sites. http://www.flashforwardconference.com/finalists http://awards.fitc.ca/main/ http://osflash.org/ has a great collection of projects, so if you are looking for something to help you - frameworks, etc. try here. http://www.riaforge.org/ the same, but wider range of Adobe related stuff. Flex.org - showcase on here, plus tips. the Devnet site on Adobe is huge, getting unwieldy, but invaluable. Labs is a good place to peek from time to time too. (probably some more I missed) (OT), for distractions / entertainment / humour, Penny Arcade, Dilbert (new site sucks for someone catching up on old Dilbert's), illwillpress.com ted.com, freelanceswitch.com, etc. And make sure you catch Andy Jarret's Friday jokes. HTH Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Maybe we should run a raffle to closest guess the UK price, then the winner (UK based) gets the difference in the cost between the US and UK :) Merrill, Jason wrote: LOL, Greg, sounds like a good idea. Thanks Kerry too - I did a quick survey of upgrade prices on Adobe.com and found the % difference between upgrade price and new full license prices to be: Flash 28% Illustrator 33% Photoshop 35% Flexbuilder 39% Dreamweaver 49% So maybe 35% is a good unscientific guess. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
I was going to suggest 50% to be very conservative. Charles P. On Mon, Aug 18, 2008 at 2:35 PM, Merrill, Jason [EMAIL PROTECTED] wrote: LOL, Greg, sounds like a good idea. Thanks Kerry too - I did a quick survey of upgrade prices on Adobe.com and found the % difference between upgrade price and new full license prices to be: Flash 28% Illustrator 33% Photoshop 35% Flexbuilder 39% Dreamweaver 49% So maybe 35% is a good unscientific guess. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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
RE: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Whatever you guess, you can at least double it for Europe:( Kevin Bowers [EMAIL PROTECTED] Mobile: +44 (0)7899 081409 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 18 August 2008 18:45 To: Flash Coders List Subject: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate Hi all, My team is trying to budget out software purchases for 2009. We all own licenses to the CS3 Master Collection. Since the Master Collection is a new Adobe product, what would you guess the upgrade cost to the (supposed, yet to be announced) CS4 Master Collection would be when it's released? Any rough guesses? Thanks. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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
Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
or a free plane ticket to fly to NY and buy the software there... After all, despite all logic and ecological reasoning, it's cheaper than the airfare it takes to get you there... :( :p Glen Pike wrote: Maybe we should run a raffle to closest guess the UK price, then the winner (UK based) gets the difference in the cost between the US and UK :) Merrill, Jason wrote: LOL, Greg, sounds like a good idea. Thanks Kerry too - I did a quick survey of upgrade prices on Adobe.com and found the % difference between upgrade price and new full license prices to be: Flash 28% Illustrator 33% Photoshop 35% Flexbuilder 39% Dreamweaver 49% So maybe 35% is a good unscientific guess. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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
RE: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Hey well look at it this way, telling your boss he/she has to fly you to New York for the weekend to pickup your copies of Creative Suite so you can save them money is, well, pretty priceless... and also not a bad way to spend the weekend. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sebastian Sent: Monday, August 18, 2008 3:22 PM To: Flash Coders List Subject: Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate or a free plane ticket to fly to NY and buy the software there... After all, despite all logic and ecological reasoning, it's cheaper than the airfare it takes to get you there... :( :p Glen Pike wrote: Maybe we should run a raffle to closest guess the UK price, then the winner (UK based) gets the difference in the cost between the US and UK :) Merrill, Jason wrote: LOL, Greg, sounds like a good idea. Thanks Kerry too - I did a quick survey of upgrade prices on Adobe.com and found the % difference between upgrade price and new full license prices to be: Flash 28% Illustrator 33% Photoshop 35% Flexbuilder 39% Dreamweaver 49% So maybe 35% is a good unscientific guess. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] calling a JSP page from a different server location SWF
Question in Flash 7, AS2: Trying to figure out if there is any solution to how to send data to a JSP page that is not located on the same server as my SWF file. Since I don't have access to the server hosting the JSP page I can't add a cross-domain XML file to that machine. In the SWF file I can access the JSP page fine if I run the SWF file locally, but as soon as I put it on a test web server I get 'connection failed' instead. At the top of the SWF file I have included: System.security.allowDomain(http://name.ofJSPdomain.com;); System.security.allowInsecureDomain(http://name.ofJSPdomain.com;); and I also tried it with * instead to no avail. I'm using code like this: var send_lv:LoadVars = new LoadVars(); send_lv.loginName = somename; send_lv.loginPassword = somepassword; var result_lv:LoadVars = new LoadVars(); result_lv.onLoad = function(success) { if (success) { result_ta.text = load working?; } else { result_ta.text = Error connecting to server.; } }; send_lv.sendAndLoad(http://name,ofJSPdomain/locationtofile/nameoffile.jsp;, result_lv, POST); I'm using sendAndLoad but honestly I only need to send data, not receive it. Can anyone help? I've been stuck now for over 2 hours spinning after my tail... :( Thanks! Seb. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Or ask a friend in the US to buy it for you and send it via post. Even more cheaper Pedro D.K. On Mon, Aug 18, 2008 at 3:37 PM, Merrill, Jason [EMAIL PROTECTED] wrote: Hey well look at it this way, telling your boss he/she has to fly you to New York for the weekend to pickup your copies of Creative Suite so you can save them money is, well, pretty priceless... and also not a bad way to spend the weekend. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sebastian Sent: Monday, August 18, 2008 3:22 PM To: Flash Coders List Subject: Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate or a free plane ticket to fly to NY and buy the software there... After all, despite all logic and ecological reasoning, it's cheaper than the airfare it takes to get you there... :( :p Glen Pike wrote: Maybe we should run a raffle to closest guess the UK price, then the winner (UK based) gets the difference in the cost between the US and UK :) Merrill, Jason wrote: LOL, Greg, sounds like a good idea. Thanks Kerry too - I did a quick survey of upgrade prices on Adobe.com and found the % difference between upgrade price and new full license prices to be: Flash 28% Illustrator 33% Photoshop 35% Flexbuilder 39% Dreamweaver 49% So maybe 35% is a good unscientific guess. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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 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
RE: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Pedro Kostelec wrote: Or ask a friend in the US to buy it for you and send it via post. Even more cheaper This is a topic that I'm quite interested in. I'm American, living in Boston, but there is a very real chance that I may be working overseas soon. What are the license ramifications, if any? I have licenses for multiple Adobe/Macromedia products--CS3, Flash 4 on, Director 6.0 (Director is now at 11, including a couple of major dot releases). Adobe products seem to cost more overseas, across the board. Will my American licenses still be valid if I'm working in, say, Berlin or London? I don't think the software does any geographic checks--that would be pretty tough, and unreliable. But ethically and legally, what are the ramifications? Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Or cheaper still, email you the licence code, It's all you need! Our company has some salespeople in the USA, that's what I do (though they do send the disks whenever they're sending us something else). Recently though, upgrade prices in UK do seem to have been more or less on a par with the dollar price (on flex 3 and flash CS3, at least). I didn't check the price of full versions. Strangely, flex 3 upgrade was a fiver cheaper to get the CD as opposed to the download edition, and I got a lovely grey box as well:) -Original Message- From: [EMAIL PROTECTED] on behalf of Pedro Kostelec Sent: Mon 18/08/2008 21:46 To: Flash Coders List Subject: Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate Or ask a friend in the US to buy it for you and send it via post. Even more cheaper Pedro D.K. On Mon, Aug 18, 2008 at 3:37 PM, Merrill, Jason [EMAIL PROTECTED] wrote: Hey well look at it this way, telling your boss he/she has to fly you to New York for the weekend to pickup your copies of Creative Suite so you can save them money is, well, pretty priceless... and also not a bad way to spend the weekend. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sebastian Sent: Monday, August 18, 2008 3:22 PM To: Flash Coders List Subject: Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate or a free plane ticket to fly to NY and buy the software there... After all, despite all logic and ecological reasoning, it's cheaper than the airfare it takes to get you there... :( :p Glen Pike wrote: Maybe we should run a raffle to closest guess the UK price, then the winner (UK based) gets the difference in the cost between the US and UK :) Merrill, Jason wrote: LOL, Greg, sounds like a good idea. Thanks Kerry too - I did a quick survey of upgrade prices on Adobe.com and found the % difference between upgrade price and new full license prices to be: Flash 28% Illustrator 33% Photoshop 35% Flexbuilder 39% Dreamweaver 49% So maybe 35% is a good unscientific guess. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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 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 __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. _ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
The only thing I noticed with the upgrades is a caveat that you can't upgrade from one country's license to a different one, so if you bought a US licensed CS3, you would have to upgrade with a US licensed CS4. I don't know how that is enforced though. I think you may have to carry your passport with your CS3 / CS4 and make this visible at all times to the plethora of CCTV cameras we have in London. We may have a slight problem streaming this feed to more than 5 users because we don't have the full FMS license, but as long as no-one else connects whilst Bruce is watching you should be safe :) Kerry Thompson wrote: Pedro Kostelec wrote: Or ask a friend in the US to buy it for you and send it via post. Even more cheaper This is a topic that I'm quite interested in. I'm American, living in Boston, but there is a very real chance that I may be working overseas soon. What are the license ramifications, if any? I have licenses for multiple Adobe/Macromedia products--CS3, Flash 4 on, Director 6.0 (Director is now at 11, including a couple of major dot releases). Adobe products seem to cost more overseas, across the board. Will my American licenses still be valid if I'm working in, say, Berlin or London? I don't think the software does any geographic checks--that would be pretty tough, and unreliable. But ethically and legally, what are the ramifications? Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
Strangely, flex 3 upgrade was a fiver cheaper to get the CD as opposed to the download edition, and I got a lovely grey box as well:) There is a weird thing to do with taxes for stuff from Ireland - we pay more for the download than the CD, which I guess gets distributed in the UK. I think it's VAT related. -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] calling a JSP page from a different server location SWF
If you can't add a cross-domain file in the target server, there's not much you can do from the swf side. You can, however, use some server side logic to make a bridge between your swf and the JSP page. You can have the swf connect to some server-side script (hosted locally or in some server where you can add a crossdomain policy file) that will actually connect to the target JSP and return the results. I've done this in php and in .NET, and I'm sure you can do it with a JSP, if that's what you have available in your server. In php, it could be as easy as: $jsp_return = file_get_contents( http://target_domain/some.jsp?someVar=someValue;); echo $jsp_return; If you have fopen wrappers enabled in you php config (if you don't, file_get_contents will fail when it finds http:// in the begining of the file name) . If you need more control and you're using php, you can use the cUrl functions. Hope it helps. Cheers Juan Pablo Califano 2008/8/18, sebastian [EMAIL PROTECTED]: Question in Flash 7, AS2: Trying to figure out if there is any solution to how to send data to a JSP page that is not located on the same server as my SWF file. Since I don't have access to the server hosting the JSP page I can't add a cross-domain XML file to that machine. In the SWF file I can access the JSP page fine if I run the SWF file locally, but as soon as I put it on a test web server I get 'connection failed' instead. At the top of the SWF file I have included: System.security.allowDomain(http://name.ofJSPdomain.comhttp://name.ofjspdomain.com/ ); System.security.allowInsecureDomain(http://name.ofJSPdomain.comhttp://name.ofjspdomain.com/ ); and I also tried it with * instead to no avail. I'm using code like this: var send_lv:LoadVars = new LoadVars(); send_lv.loginName = somename; send_lv.loginPassword = somepassword; var result_lv:LoadVars = new LoadVars(); result_lv.onLoad = function(success) { if (success) { result_ta.text = load working?; } else { result_ta.text = Error connecting to server.; } }; send_lv.sendAndLoad(http://name,ofJSPdomain/locationtofile/nameoffile.jsp;, result_lv, POST); I'm using sendAndLoad but honestly I only need to send data, not receive it. Can anyone help? I've been stuck now for over 2 hours spinning after my tail... :( Thanks! Seb. ___ 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
Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
I'm still using flash8 (a ridiculously expensive upgrade to mx2004) But anyway - does anyone know what the best deal is on cs3 - or should I wait till the next version? On Mon, Aug 18, 2008 at 11:04 AM, Kerry Thompson [EMAIL PROTECTED]wrote: Jason Merrill wrote: My team is trying to budget out software purchases for 2009. We all own licenses to the CS3 Master Collection. Since the Master Collection is a new Adobe product, what would you guess the upgrade cost to the (supposed, yet to be announced) CS4 Master Collection would be when it's released? Any rough guesses? Thanks. The upgrade from CS3 Master to CS3.3 Master is $159. On the other hand, upgrading to the Master Collection from CS2 Premium is $1,999. My guess is that, if you have the CS3 Master Collection, the upgrade to CS4 would probably be closer to $159 than $1,999. Basically a guess, though--it could be a lot more. Cordially, Kerry Thompson ___ 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
Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
There are upgrade packages, including upgrades you can do from the Macromedia packages to Adobe ones. That's what I used in the past (Studio 8 - Adobe Web pack), and it was the price of a regular upgrade. I'm not sure of your local pricing, but here, updating from a previous version to the newest version is usually the same price as updating from an OLDER version to the newer one. So, 8 - CS4 would be the same price as CS3 - CS4. So waiting in this case makes sense. Zeh chas warn wrote: I'm still using flash8 (a ridiculously expensive upgrade to mx2004) But anyway - does anyone know what the best deal is on cs3 - or should I wait till the next version? On Mon, Aug 18, 2008 at 11:04 AM, Kerry Thompson [EMAIL PROTECTED]wrote: Jason Merrill wrote: My team is trying to budget out software purchases for 2009. We all own licenses to the CS3 Master Collection. Since the Master Collection is a new Adobe product, what would you guess the upgrade cost to the (supposed, yet to be announced) CS4 Master Collection would be when it's released? Any rough guesses? Thanks. The upgrade from CS3 Master to CS3.3 Master is $159. On the other hand, upgrading to the Master Collection from CS2 Premium is $1,999. My guess is that, if you have the CS3 Master Collection, the upgrade to CS4 would probably be closer to $159 than $1,999. Basically a guess, though--it could be a lot more. Cordially, Kerry Thompson ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] calling a JSP page from a different server location SWF
The cross-policy file is meant to be on the server which runs the JSP file. However, if you don't have access to that server, I don't think it possibly directly. However, you can write a small server side script on your server (where the SWF is) and let that script call the required JSP. And let flash call the local script. I've done this heaps in situations like this, with ASP and PHP, but I'm sure you can with JSP as well. If you find an easier way, you should post it... cause I'm curious now! 2008/8/19 sebastian [EMAIL PROTECTED] Question in Flash 7, AS2: Trying to figure out if there is any solution to how to send data to a JSP page that is not located on the same server as my SWF file. Since I don't have access to the server hosting the JSP page I can't add a cross-domain XML file to that machine. In the SWF file I can access the JSP page fine if I run the SWF file locally, but as soon as I put it on a test web server I get 'connection failed' instead. At the top of the SWF file I have included: System.security.allowDomain(http://name.ofJSPdomain.com;); System.security.allowInsecureDomain(http://name.ofJSPdomain.com;); and I also tried it with * instead to no avail. I'm using code like this: var send_lv:LoadVars = new LoadVars(); send_lv.loginName = somename; send_lv.loginPassword = somepassword; var result_lv:LoadVars = new LoadVars(); result_lv.onLoad = function(success) { if (success) { result_ta.text = load working?; } else { result_ta.text = Error connecting to server.; } }; send_lv.sendAndLoad(http://name,ofJSPdomain/locationtofile/nameoffile.jsp;, result_lv, POST); I'm using sendAndLoad but honestly I only need to send data, not receive it. Can anyone help? I've been stuck now for over 2 hours spinning after my tail... :( Thanks! Seb. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- The Random Lines My online portfolio www.therandomlines.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] calling a JSP page from a different server location SWF
Thanks Juan Pablo, Your recommendation to use a PHP bridge works perfectly; I am much relieved and still able to deliver today as planned - thanks again! The PHP code I ended up using was: ?php $loginName = $_POST[loginName]; $loginPassword = $_POST[loginPassword]; $ea = $_POST[ea]; $ic = $_POST[ic]; $First_Name = $_POST[First_Name]; $jsp_return = file_get_contents(http://someserver.place.com/somepage.JSP?loginName=; . $loginName . loginPassword= . $loginPassword . ea= . $ea . ic= . $ic . First_Name= . $First_Name ); echo $jsp_return; ? Juan Pablo Califano wrote: If you can't add a cross-domain file in the target server, there's not much you can do from the swf side. You can, however, use some server side logic to make a bridge between your swf and the JSP page. You can have the swf connect to some server-side script (hosted locally or in some server where you can add a crossdomain policy file) that will actually connect to the target JSP and return the results. I've done this in php and in .NET, and I'm sure you can do it with a JSP, if that's what you have available in your server. In php, it could be as easy as: $jsp_return = file_get_contents( http://target_domain/some.jsp?someVar=someValue;); echo $jsp_return; If you have fopen wrappers enabled in you php config (if you don't, file_get_contents will fail when it finds http:// in the begining of the file name) . If you need more control and you're using php, you can use the cUrl functions. Hope it helps. Cheers Juan Pablo Califano 2008/8/18, sebastian [EMAIL PROTECTED]: Question in Flash 7, AS2: Trying to figure out if there is any solution to how to send data to a JSP page that is not located on the same server as my SWF file. Since I don't have access to the server hosting the JSP page I can't add a cross-domain XML file to that machine. In the SWF file I can access the JSP page fine if I run the SWF file locally, but as soon as I put it on a test web server I get 'connection failed' instead. At the top of the SWF file I have included: System.security.allowDomain(http://name.ofJSPdomain.comhttp://name.ofjspdomain.com/ ); System.security.allowInsecureDomain(http://name.ofJSPdomain.comhttp://name.ofjspdomain.com/ ); and I also tried it with * instead to no avail. I'm using code like this: var send_lv:LoadVars = new LoadVars(); send_lv.loginName = somename; send_lv.loginPassword = somepassword; var result_lv:LoadVars = new LoadVars(); result_lv.onLoad = function(success) { if (success) { result_ta.text = load working?; } else { result_ta.text = Error connecting to server.; } }; send_lv.sendAndLoad(http://name,ofJSPdomain/locationtofile/nameoffile.jsp;, result_lv, POST); I'm using sendAndLoad but honestly I only need to send data, not receive it. Can anyone help? I've been stuck now for over 2 hours spinning after my tail... :( Thanks! Seb. ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] calling a JSP page from a different server location SWF
No worries, I'm glad it worked for you. Cheers Juan Pablo Califano 2008/8/18, sebastian [EMAIL PROTECTED]: Thanks Juan Pablo, Your recommendation to use a PHP bridge works perfectly; I am much relieved and still able to deliver today as planned - thanks again! The PHP code I ended up using was: ?php $loginName = $_POST[loginName]; $loginPassword = $_POST[loginPassword]; $ea = $_POST[ea]; $ic = $_POST[ic]; $First_Name = $_POST[First_Name]; $jsp_return = file_get_contents( http://someserver.place.com/somepage.JSP?loginName=; . $loginName . loginPassword= . $loginPassword . ea= . $ea . ic= . $ic . First_Name= . $First_Name ); echo $jsp_return; ? Juan Pablo Califano wrote: If you can't add a cross-domain file in the target server, there's not much you can do from the swf side. You can, however, use some server side logic to make a bridge between your swf and the JSP page. You can have the swf connect to some server-side script (hosted locally or in some server where you can add a crossdomain policy file) that will actually connect to the target JSP and return the results. I've done this in php and in .NET, and I'm sure you can do it with a JSP, if that's what you have available in your server. In php, it could be as easy as: $jsp_return = file_get_contents( http://target_domain/some.jsp?someVar=someValue;); echo $jsp_return; If you have fopen wrappers enabled in you php config (if you don't, file_get_contents will fail when it finds http:// in the begining of the file name) . If you need more control and you're using php, you can use the cUrl functions. Hope it helps. Cheers Juan Pablo Califano 2008/8/18, sebastian [EMAIL PROTECTED]: Question in Flash 7, AS2: Trying to figure out if there is any solution to how to send data to a JSP page that is not located on the same server as my SWF file. Since I don't have access to the server hosting the JSP page I can't add a cross-domain XML file to that machine. In the SWF file I can access the JSP page fine if I run the SWF file locally, but as soon as I put it on a test web server I get 'connection failed' instead. At the top of the SWF file I have included: System.security.allowDomain(http://name.ofJSPdomain.comhttp://name.ofjspdomain.com/ http://name.ofjspdomain.com/ ); System.security.allowInsecureDomain(http://name.ofJSPdomain.comhttp://name.ofjspdomain.com/ http://name.ofjspdomain.com/ ); and I also tried it with * instead to no avail. I'm using code like this: var send_lv:LoadVars = new LoadVars(); send_lv.loginName = somename; send_lv.loginPassword = somepassword; var result_lv:LoadVars = new LoadVars(); result_lv.onLoad = function(success) { if (success) { result_ta.text = load working?; } else { result_ta.text = Error connecting to server.; } }; send_lv.sendAndLoad(http://name ,ofJSPdomain/locationtofile/nameoffile.jsp, result_lv, POST); I'm using sendAndLoad but honestly I only need to send data, not receive it. Can anyone help? I've been stuck now for over 2 hours spinning after my tail... :( Thanks! Seb. ___ 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 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