[Flashcoders] Flash IE OCX error
hi, I have encountered flash ocx error many times which just appears without any hint after which I have no other option but to close the relevent browser. This is what exactly i get in the error popup, Internet explorer encountered a problem with addon and needs to close. The following add-on running when this problem occured file: Flash9.ocx company : adobe systems incorporated Description :Adobe flash player 9 Has anyone faced this or has any explanation and solution? thanks, Arindam - Real people. Real questions. Real answers. Share what you know. ___ 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] Saving out XML direct from Flash?
I managed something like this by embedding my Flash movie in a Director movie, which managed the saving of the XML. I'm afraid I no longer have access to the files, but I seem to remember it didn't take me very long to implement. Andy - Original Message - From: Henry Cooke [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, January 19, 2007 5:11 PM Subject: [Flashcoders] Saving out XML direct from Flash? 'lo all I'm noodling around with a little app that I'd like to be able to write out some internally generated XML directly to the user's hard disc. Preferably with a nice FileReference type interface. But this seems next to impossible. I was hoping it would be possible to hack FileReference to take file conetent from a variable, rather than a URL, but that looks like a no-go. My second idea was to write to a SharedObject, then pass that through FileReference, but I can't find a way of finding out the path to the SO file within Flash. I've spent the afternoon reading about MMSave, FSCommand save and ASnative(302, 0) and coming to the conclusion that they're deprecated as hell and useless to me. So does anyone have any good suggestions? I'm not averse to dirty hacks, but this is a standalone app, so I can't bounce the file back off a server, and I really don't want to use one of those weird extended projectors if I can avoid it. Cheers, Henry ___ 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] OT: Flex instances
Thanks Farid! Jason Merrill Bank of America Learning Organizational Effectiveness -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farid Shahlavi Sent: Thursday, January 18, 2007 9:27 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] OT: Flex instances Jason, Well looks like this Reflection class can only handle components but if you wanted to use your own, you could get a handle on the image once its loaded by listening to the complete event like so: mx:Image id=theImg source={imgSource} complete=onImageLoadComplete(event) / private function onImageLoadComplete(event:Event):void { Alert.show(content is: +event.target); } Cheers, Farid ___ 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] Multi-dimensional array problems in classes
Just a hint. Often multi-dimensional arrays are just crying out to be single arrays of objects and if their wish is granted, your code becomes amazingly small and elegant as your reward for granting their wish. I agree - IMO best and most flexible way is an array of objects (which objectg may have properties that are arrays of objects, etc.). Jason Merrill Bank of America Learning Organizational Effectiveness ___ 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] Multi-dimensional array problems in classes
Hello :) If you can compile your code in AS2 you can use my openSource framework VEGAS and this ADT package (vegas.data) ... you can find in this library all JAVA collections (Collection, Map, Iterator, List, Queue...) i think you can find good tools for you problem :) 1 - go in the project pa: http://vegas.riaforge.com 2007/1/22, Merrill, Jason [EMAIL PROTECTED]: Just a hint. Often multi-dimensional arrays are just crying out to be single arrays of objects and if their wish is granted, your code becomes amazingly small and elegant as your reward for granting their wish. I agree - IMO best and most flexible way is an array of objects (which objectg may have properties that are arrays of objects, etc.). Jason Merrill Bank of America Learning Organizational Effectiveness ___ 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]MovieClipLoader http error codes
I'm getting an httpStatus code of 0 back from a MovieClipLoader error. This only happens on a Mac with the Flash IDE. Every once and a while I get a 403 http error but not all of the time. I was wondering if anyone else has run into that error before or not? - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Sunday, January 21, 2007 10:23:49 AM Subject: [Flashcoders] Q:The case for Functional vs OOP programming I am a strong believer of the power of OOP, but recently came across the following blog posts that argue for the advantges, and some would say supremacy of functional over imperative/procedural and OOP programming. http://blog.lostlake.org/index.php?/archives/18-Functional-languages- will-rule.html http://www.joelonsoftware.com/items/2006/08/01.html http://www.developerdotstar.com/community/node/544 I think the best approach would be to find a way to gain the advantages of functional based programming while keeping the easy-to- understand OOP metaphor. Is Actionscript ideally suited for functional programming? Can someone give/point me to some examples? Thanks again Jim Bachalo ___ 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 Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 ___ 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] External libraries
I'm beginning work on a new project that will need to have a brandable UI and I'm looking for suggestions on how to proceed. I'm pretty new to Flash development, so I don't really know if there's a standard way of doing this. What I would like to do is have the main application's SWF load a second SWF which contains all of the UI components (images, animations, buttons, etc). This way I could allow branding by just providing an SWF with different UI components. However, I can't figure out if there's a way to access the library of one SWF in another SWF. For example, I have my main.swf and brand.swf. Main.swf has nothing except some AS code. Brand.swf has a button in its library called testButton, which is exported for AS use. What I want to do is create an instance of testButton within Main.swf, but attachMovie doesn't work (I'm guessing it can't see library items from the other SWF). Is there a way to do attachMovie on clips in another SWF's library? The other option I've heard about is to have the default branding stuff defined in the main.swf, and then you can somehow have an external SWF override the ones you want to override. I'm not sure I like doing this as it require things to be defined in the main SWF's FLA, which I like to keep to a minimum (since the FLA is binary it's hard to manage it in source control for things like merging, so I'd like to have as little in the FLA as possible). Is there any way to do what I'm trying (use clips in another SWF's library), or any other ways to do branding like this? Thanks! -Andy ___ 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]MovieClipLoader http error codes
From the docs: If Flash Player cannot get a status code from the server, or if Flash Player cannot communicate with the server, the default value of 0 is passed to your ActionScript code. A value of 0 can be generated in any player (for example, if a malformed URL is requested), and a value of 0 is always generated by the Flash Player plug-in when run in the following browsers, which cannot pass HTTP status codes from the server to Flash Player: Netscape, Mozilla, Safari, Opera, and Internet Explorer for the Macintosh. A value of 0 can also be generated if the player did not try to make the URL request to perform the load operation. This can happen because the request violates security sandbox rules for the SWF file. The 403, in case you were asking about that, is the server restricting access to a resource. Typically, this is because you need to provide some type of authorization to get access. Derek Vadneau - Original Message - From: Donald Desloge [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, January 22, 2007 9:24 AM Subject: [Flashcoders]MovieClipLoader http error codes I'm getting an httpStatus code of 0 back from a MovieClipLoader error. This only happens on a Mac with the Flash IDE. Every once and a while I get a 403 http error but not all of the time. I was wondering if anyone else has run into that error before or not? ___ 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] External libraries
ok, i work on a setup that sounds like it's what you're aiming for... i've recently started working with MTASC and swfmill in order to get file sizes down to a minimum and streamline the build process - what i do at the moment is this (simplified) 1 - all code is compiled into a library using mtasc 2 - all assets are compiled into 'skin' swf using the flash ide 3 - for each skin swf i use swfmill to create a linkage between an empty movieclip in the skin's library and a base class for the UI component i'll want to use. This means that when the skin is compiled in the flash ide it doesn't automatically drag in all the other classes that are referenced and i don't have to create exclude.xml files. 4 - i have a 'core' class which loads all the necessary library and skin files and instantiates things where necessary to get the app going. This is probably a little bit over the top for what you're describing above but for a large-scale application such as this it works very well and prevents unnecessary duplicate importing of classes. I went down the same path trying to get attachMovie to work using all sorts of approaches and had no luck - this seems to me to be the cleanest approach for what i need. t On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: I'm beginning work on a new project that will need to have a brandable UI and I'm looking for suggestions on how to proceed. I'm pretty new to Flash development, so I don't really know if there's a standard way of doing this. What I would like to do is have the main application's SWF load a second SWF which contains all of the UI components (images, animations, buttons, etc). This way I could allow branding by just providing an SWF with different UI components. However, I can't figure out if there's a way to access the library of one SWF in another SWF. For example, I have my main.swf and brand.swf. Main.swf has nothing except some AS code. Brand.swf has a button in its library called testButton, which is exported for AS use. What I want to do is create an instance of testButton within Main.swf, but attachMovie doesn't work (I'm guessing it can't see library items from the other SWF). Is there a way to do attachMovie on clips in another SWF's library? The other option I've heard about is to have the default branding stuff defined in the main.swf, and then you can somehow have an external SWF override the ones you want to override. I'm not sure I like doing this as it require things to be defined in the main SWF's FLA, which I like to keep to a minimum (since the FLA is binary it's hard to manage it in source control for things like merging, so I'd like to have as little in the FLA as possible). Is there any way to do what I'm trying (use clips in another SWF's library), or any other ways to do branding like this? Thanks! -Andy ___ 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]MovieClipLoader http error codes
Thanks for the info, I look into it on the server end. - Original Message From: Derek Vadneau [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, January 22, 2007 9:52:03 AM Subject: Re: [Flashcoders]MovieClipLoader http error codes From the docs: If Flash Player cannot get a status code from the server, or if Flash Player cannot communicate with the server, the default value of 0 is passed to your ActionScript code. A value of 0 can be generated in any player (for example, if a malformed URL is requested), and a value of 0 is always generated by the Flash Player plug-in when run in the following browsers, which cannot pass HTTP status codes from the server to Flash Player: Netscape, Mozilla, Safari, Opera, and Internet Explorer for the Macintosh. A value of 0 can also be generated if the player did not try to make the URL request to perform the load operation. This can happen because the request violates security sandbox rules for the SWF file. The 403, in case you were asking about that, is the server restricting access to a resource. Typically, this is because you need to provide some type of authorization to get access. Derek Vadneau - Original Message - From: Donald Desloge [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, January 22, 2007 9:24 AM Subject: [Flashcoders]MovieClipLoader http error codes I'm getting an httpStatus code of 0 back from a MovieClipLoader error. This only happens on a Mac with the Flash IDE. Every once and a while I get a 403 http error but not all of the time. I was wondering if anyone else has run into that error before or not? ___ 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 Never Miss an Email Stay connected with Yahoo! Mail on your mobile. Get started! http://mobile.yahoo.com/services?promote=mail ___ 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] Embed JS for flash 9 content
Take a look at Adobe's player detection: http://www.adobe.com/products/flashplayer/download/detection_kit/ Have you looked at using the Express Install option, seperately from swfobject?: SRC: http://www.adobe.com/devnet/flash/articles/swfobject_print.html #include expressinstall.as // initialize the ExpressInstall object var ExpressInstall = new ExpressInstall(); // if the user needs to upgrade, show the 'start upgrade' button if (ExpressInstall.needsUpdate) { // this is optional, you could also automatically start the // upgrade by calling ExpressInstall.init() here instead of the following lines // attach the custom upgrade message and center it var upgradeMsg = attachMovie(upgradeMsg_src, upgradeMsg, 1); upgradeMsg._x = Stage.width / 2; upgradeMsg._y = Stage.height / 2; // attach the button actions that will start the ExpresInstall updater upgradeMsg.upgradeBtn.onRelease = function() { // the ExpressInstall.init() method is what kicks off the actual update ExpressInstall.init(); } // if expressinstall is invoked, stop the timeline. stop(); -Scott } On 1/21/07, {reduxdj} [EMAIL PROTECTED] wrote: Hi There, I'm using a document write tag in js to avoid the click to activate crap. I'm developing for flash 9 content. Do you know if there's a way to detect and redirect if flash 9 is not being used? I tried using swfobject, which worked, however it would invalidate our php session in IE. I can't use the build in flex/flash 9 detection because these are single widgets within an html page, not full browser swf's are something. Here is what my code looks like. I appreciate the help as javascript is not my strong suit. Here's what I am working with: function homepageload2() { document.write('object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase= http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width=800 height=250 id=landing align=middle\n'); document.write('param name=allowScriptAccess value=sameDomain /\n'); document.write('param name=movie value=/_p/viewer/some.swf /param name=quality value=high /param name=bgcolor value=#ff /\n'); document.write('embed src=/_p/viewer/some.swf quality=high bgcolor=#ff width=800 height=250 name=homepage align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer; /\n'); document.write('/object\n'); } Thanks, Patrick ___ 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 -- : : ) Scott ___ 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] Q:slightly OT:browser scrollbars, full browser flash and UFO
Hi I regularly use UFO for flash embedding with full browser flash sites. Recently had a client request that we support 800X600 monitors while my primary flash stage is 1028 X 700. So I need a way to auto display the browser scrolbars when the browser window is made smaller than the stage. Has anyone encountered this problem? i'm guessing it would involve some javascript CSS mods to the UFO code. [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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] External libraries
Unfortunately I'm stuck using the Flash IDE only (no MTASC). :( I don't really understand how linkages work. Is there a way to do something similar using just the Flash IDE? I have a feeling that's the way I'm going to have to do it. -Andy On 1/22/07, Trevor Burton [EMAIL PROTECTED] wrote: ok, i work on a setup that sounds like it's what you're aiming for... i've recently started working with MTASC and swfmill in order to get file sizes down to a minimum and streamline the build process - what i do at the moment is this (simplified) 1 - all code is compiled into a library using mtasc 2 - all assets are compiled into 'skin' swf using the flash ide 3 - for each skin swf i use swfmill to create a linkage between an empty movieclip in the skin's library and a base class for the UI component i'll want to use. This means that when the skin is compiled in the flash ide it doesn't automatically drag in all the other classes that are referenced and i don't have to create exclude.xml files. 4 - i have a 'core' class which loads all the necessary library and skin files and instantiates things where necessary to get the app going. This is probably a little bit over the top for what you're describing above but for a large-scale application such as this it works very well and prevents unnecessary duplicate importing of classes. I went down the same path trying to get attachMovie to work using all sorts of approaches and had no luck - this seems to me to be the cleanest approach for what i need. t On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: I'm beginning work on a new project that will need to have a brandable UI and I'm looking for suggestions on how to proceed. I'm pretty new to Flash development, so I don't really know if there's a standard way of doing this. What I would like to do is have the main application's SWF load a second SWF which contains all of the UI components (images, animations, buttons, etc). This way I could allow branding by just providing an SWF with different UI components. However, I can't figure out if there's a way to access the library of one SWF in another SWF. For example, I have my main.swf and brand.swf. Main.swf has nothing except some AS code. Brand.swf has a button in its library called testButton, which is exported for AS use. What I want to do is create an instance of testButton within Main.swf, but attachMovie doesn't work (I'm guessing it can't see library items from the other SWF). Is there a way to do attachMovie on clips in another SWF's library? The other option I've heard about is to have the default branding stuff defined in the main.swf, and then you can somehow have an external SWF override the ones you want to override. I'm not sure I like doing this as it require things to be defined in the main SWF's FLA, which I like to keep to a minimum (since the FLA is binary it's hard to manage it in source control for things like merging, so I'd like to have as little in the FLA as possible). Is there any way to do what I'm trying (use clips in another SWF's library), or any other ways to do branding like this? Thanks! -Andy ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Q:slightly OT:browser scrollbars, full browser flash and UFO
Might misunderstand your question, but isn't this default browser behaviour? A.k.a. you don't need to do anything to get it the way you want? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: maandag 22 januari 2007 16:36 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Q:slightly OT:browser scrollbars,full browser flash and UFO Hi I regularly use UFO for flash embedding with full browser flash sites. Recently had a client request that we support 800X600 monitors while my primary flash stage is 1028 X 700. So I need a way to auto display the browser scrolbars when the browser window is made smaller than the stage. Has anyone encountered this problem? i'm guessing it would involve some javascript CSS mods to the UFO code. [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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 This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ 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] External libraries
Let me have a crack at this one, Andy.. ;) Basically, linkages are just a way of telling the code how to identify a particular item in the library. When you right-click one of your buttons in the Brand.fla library and click 'Linkage...', you'll see the Linkage dialog box. Now, click on the checkbox marked: 'Export for Actionscript'. Flash will automatically fill in the linkage Id for you, it usually just takes the name of your swf. (eg. fancy_button). You can change this to whatever you want, just try and make sure that each movie clip has a different id from the others. Otherwise you could create problems. Now, go ahead and publish that movie to create Brand.swf. So now you have a movieclip with a linkage id inside your Brand.swf. So how do you get it to appear in the Main.swf? Firstly, you'll have to load the Brand.swf into the Main.swf. This is most easily done with the loadMovie function. If you want to be fancy, you can use MovieClipLoader instead, but that's another topic. Once you've loaded Brand.swf into Main.swf, you want to get at the button, or whatever mc you created a linkage id for. Happily, by creating a linkage id, you gave the flash player a name by which to identify the button. Now, the code to attach this to the stage is: _root.attachMovie(linkageId, newButtonMCName, 0); as you may have guessed, the arguments there are as follows: linkageId == the linkage id that was generated in the Brand.fla file newButtonMCName == the name you want for your button on the stage 0 == the depth of the new button. This will drop the movieclip onto the stage at coordinates 0, 0. So that's how you use linkage id. The neat thing is that if you have say, five Brand.fla files, with different art assets, you can give the elements in each one the same linkage id, then compile Main.fla once for each Brand.swf you've got. That way, you can 'skin' your Main.swf. I hope this helps, and I hope someone will correct me if I've made any silly mistakes! - Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: Unfortunately I'm stuck using the Flash IDE only (no MTASC). :( I don't really understand how linkages work. Is there a way to do something similar using just the Flash IDE? I have a feeling that's the way I'm going to have to do it. -Andy On 1/22/07, Trevor Burton [EMAIL PROTECTED] wrote: ok, i work on a setup that sounds like it's what you're aiming for... i've recently started working with MTASC and swfmill in order to get file sizes down to a minimum and streamline the build process - what i do at the moment is this (simplified) 1 - all code is compiled into a library using mtasc 2 - all assets are compiled into 'skin' swf using the flash ide 3 - for each skin swf i use swfmill to create a linkage between an empty movieclip in the skin's library and a base class for the UI component i'll want to use. This means that when the skin is compiled in the flash ide it doesn't automatically drag in all the other classes that are referenced and i don't have to create exclude.xml files. 4 - i have a 'core' class which loads all the necessary library and skin files and instantiates things where necessary to get the app going. This is probably a little bit over the top for what you're describing above but for a large-scale application such as this it works very well and prevents unnecessary duplicate importing of classes. I went down the same path trying to get attachMovie to work using all sorts of approaches and had no luck - this seems to me to be the cleanest approach for what i need. t On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: I'm beginning work on a new project that will need to have a brandable UI and I'm looking for suggestions on how to proceed. I'm pretty new to Flash development, so I don't really know if there's a standard way of doing this. What I would like to do is have the main application's SWF load a second SWF which contains all of the UI components (images, animations, buttons, etc). This way I could allow branding by just providing an SWF with different UI components. However, I can't figure out if there's a way to access the library of one SWF in another SWF. For example, I have my main.swf and brand.swf. Main.swf has nothing except some AS code. Brand.swf has a button in its library called testButton, which is exported for AS use. What I want to do is create an instance of testButton within Main.swf, but attachMovie doesn't work (I'm guessing it can't see library items from the other SWF). Is there a way to do attachMovie on clips in another SWF's library? The other option I've heard about is to have the default branding stuff defined in the main.swf, and then you can somehow have an external SWF override the ones you want to override. I'm not sure I like doing this as it require things to be defined in the main SWF's FLA, which I like to keep to a minimum (since the FLA is binary
RE: [Flashcoders] LoadVars.send() in Flash 9 Player
So can I wrap a an if statement that detects the player and do something like: if (player9){ flash.net.sendToURL() } else { LoadVars.send() } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: Friday, January 19, 2007 6:36 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player David, Per the link that follows below, the AS2 LoadVars.send() Method is changed in AS3 to flash.net.sendToURL() Source: ActionScript 2.0 Migration: The following table describes the differences between ActionScript 2.0 and 3.0. http://livedocs.macromedia.com/labs/as3preview/langref/migration.html More: Note: The ActionScript 2.0 MovieClipLoader and LoadVars classes are not used in ActionScript 3.0. The Loader and URLLoader classes replace them. Source: Class Loader in ActionScript 3.0 Language Reference http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/Loa der.html fyi ... brace yourself, there are quite a few of these everything is still the same, but still everything is different changes. Just scan that first link above and you will get a sense. The good news is that now that ActionScript is tied to a standard (ECMA-262), I believe Adobe will no longer be making these types of disruptive changes going forward. For quick backgrounds on what and why many changes were made with AS3, following are some good links to articles and presentations by Flash Player Engineer Gary Grossman: Devnet Article: http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview .html Connect Recording of Presentation: https://admin.adobe.acrobat.com/_a227210/p64058844/ PDF of Slides: http://www.adobe.com/communities/developerweek/2006_devweek_as3.pdf hth, g On 1/19/07, Waller, David [EMAIL PROTECTED] wrote: I am having trouble with a LoadVars send which refuses to send in the Flash player 9. The swf works just fine in the 8 version of the player but in 9 it seems to just pass over the command. I have tried several different things including: crossdomain.xml System.security.allowDomain() However, nothing seems to work. Any input would be greatly appreciated. Dave Waller ___ 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] Saving out XML direct from Flash?
Thanks. I ended up (after seriously considering porting to AS3 and having it *serve itself* a file through flash.net.socket :D ) getting over my prejudice against extended projectors and using Screenweaver HX, which actually seems pretty nice. Cheers, Henry On 22/01/07, Andrew J Kirkham [EMAIL PROTECTED] wrote: I managed something like this by embedding my Flash movie in a Director movie, which managed the saving of the XML. I'm afraid I no longer have access to the files, but I seem to remember it didn't take me very long to implement. Andy - Original Message - From: Henry Cooke [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, January 19, 2007 5:11 PM Subject: [Flashcoders] Saving out XML direct from Flash? 'lo all I'm noodling around with a little app that I'd like to be able to write out some internally generated XML directly to the user's hard disc. Preferably with a nice FileReference type interface. But this seems next to impossible. I was hoping it would be possible to hack FileReference to take file conetent from a variable, rather than a URL, but that looks like a no-go. My second idea was to write to a SharedObject, then pass that through FileReference, but I can't find a way of finding out the path to the SO file within Flash. I've spent the afternoon reading about MMSave, FSCommand save and ASnative(302, 0) and coming to the conclusion that they're deprecated as hell and useless to me. So does anyone have any good suggestions? I'm not averse to dirty hacks, but this is a standalone app, so I can't bounce the file back off a server, and I really don't want to use one of those weird extended projectors if I can avoid it. Cheers, Henry ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadVars.send() in Flash 9 Player
Are you publishing as flash 9? If so, you'll want to handle that (player version). It can't be done inside the movie, as far as I know. If you're using the template html-js published by Flex Builder, than you're good to go. -Scott On 1/22/07, Waller, David [EMAIL PROTECTED] wrote: So can I wrap a an if statement that detects the player and do something like: if (player9){ flash.net.sendToURL() } else { LoadVars.send() } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: Friday, January 19, 2007 6:36 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player David, Per the link that follows below, the AS2 LoadVars.send() Method is changed in AS3 to flash.net.sendToURL() Source: ActionScript 2.0 Migration: The following table describes the differences between ActionScript 2.0 and 3.0. http://livedocs.macromedia.com/labs/as3preview/langref/migration.html More: Note: The ActionScript 2.0 MovieClipLoader and LoadVars classes are not used in ActionScript 3.0. The Loader and URLLoader classes replace them. Source: Class Loader in ActionScript 3.0 Language Reference http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/Loa der.html fyi ... brace yourself, there are quite a few of these everything is still the same, but still everything is different changes. Just scan that first link above and you will get a sense. The good news is that now that ActionScript is tied to a standard (ECMA-262), I believe Adobe will no longer be making these types of disruptive changes going forward. For quick backgrounds on what and why many changes were made with AS3, following are some good links to articles and presentations by Flash Player Engineer Gary Grossman: Devnet Article: http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview .html Connect Recording of Presentation: https://admin.adobe.acrobat.com/_a227210/p64058844/ PDF of Slides: http://www.adobe.com/communities/developerweek/2006_devweek_as3.pdf hth, g On 1/19/07, Waller, David [EMAIL PROTECTED] wrote: I am having trouble with a LoadVars send which refuses to send in the Flash player 9. The swf works just fine in the 8 version of the player but in 9 it seems to just pass over the command. I have tried several different things including: crossdomain.xml System.security.allowDomain() However, nothing seems to work. Any input would be greatly appreciated. Dave Waller ___ 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 -- : : ) Scott ___ 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] External libraries
That's actually exactly what I'm trying, yet it doesn't seem to be working. Here's my code: -- import mx.utils.Delegate; class BrandTest { private var root:MovieClip; private var uiResources:MovieClip = null;; public static function main(rootMC:MovieClip):Void { new BrandTest(rootMC); } function BrandTest(rootMC:MovieClip) { this.root = rootMC; loadUIResources(brand.swf); } private function loadUIResources(path:String):Void { trace(Loading + path); if(uiResources != null) { uiResources.removeMovieClip(); } root.createEmptyMovieClip(uiResources, root.getNextHighestDepth()); uiResources = root['uiResources']; var uiLoader:MovieClipLoader = new MovieClipLoader(); var loadListener:Object = new Object(); loadListener.onLoadInit = Delegate.create(this, function (oEvent:Object) { this.initUI(); }); loadListener.onLoadProgress = Delegate.create(this, function (target:Object, loaded:Number, total:Number):Void { trace(loaded + / + total); }); uiLoader.addListener(loadListener); uiLoader.loadClip(path, uiResources); } private function initUI():Void { trace(Initing UI); var img:MovieClip = root.attachMovie(asImage, asImageMC, root.getNextHighestDepth()); trace(img); } } -- I get the following output when I run: Loading brand.swf 8860/8860 Initing UI undefined attachMovie doesn't seem to be working. I have the movie clip in Brand.swf exported as 'asImage' with 'Export for ActionScript and Export in first frame selected. Is there anything else I might be missing? There's an Export for runtime sharing option that's unchecked, but if I select it it wants a URL and I don't know what to put there. -Andy On 1/22/07, Francis Chary [EMAIL PROTECTED] wrote: Let me have a crack at this one, Andy.. ;) Basically, linkages are just a way of telling the code how to identify a particular item in the library. When you right-click one of your buttons in the Brand.fla library and click 'Linkage...', you'll see the Linkage dialog box. Now, click on the checkbox marked: 'Export for Actionscript'. Flash will automatically fill in the linkage Id for you, it usually just takes the name of your swf. (eg. fancy_button). You can change this to whatever you want, just try and make sure that each movie clip has a different id from the others. Otherwise you could create problems. Now, go ahead and publish that movie to create Brand.swf. So now you have a movieclip with a linkage id inside your Brand.swf. So how do you get it to appear in the Main.swf? Firstly, you'll have to load the Brand.swf into the Main.swf. This is most easily done with the loadMovie function. If you want to be fancy, you can use MovieClipLoader instead, but that's another topic. Once you've loaded Brand.swf into Main.swf, you want to get at the button, or whatever mc you created a linkage id for. Happily, by creating a linkage id, you gave the flash player a name by which to identify the button. Now, the code to attach this to the stage is: _root.attachMovie(linkageId, newButtonMCName, 0); as you may have guessed, the arguments there are as follows: linkageId == the linkage id that was generated in the Brand.fla file newButtonMCName == the name you want for your button on the stage 0 == the depth of the new button. This will drop the movieclip onto the stage at coordinates 0, 0. So that's how you use linkage id. The neat thing is that if you have say, five Brand.fla files, with different art assets, you can give the elements in each one the same linkage id, then compile Main.fla once for each Brand.swf you've got. That way, you can 'skin' your Main.swf. I hope this helps, and I hope someone will correct me if I've made any silly mistakes! - Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: Unfortunately I'm stuck using the Flash IDE only (no MTASC). :( I don't really understand how linkages work. Is there a way to do something similar using just the Flash IDE? I have a feeling that's the way I'm going to have to do it. -Andy On 1/22/07, Trevor Burton [EMAIL PROTECTED] wrote: ok, i work on a setup that sounds like it's what you're aiming for... i've recently started working with MTASC and swfmill in order to get file sizes down to a minimum and streamline the build process - what i do at the moment is this (simplified) 1 - all code is compiled into a library using mtasc 2 - all assets are compiled into 'skin' swf using the flash ide 3 - for each skin swf i use swfmill to create a linkage between an empty movieclip in the skin's library and a base class for the UI component i'll want to use. This means that when the skin is compiled in the flash ide it doesn't automatically drag in all the other classes that are referenced and i don't have to create exclude.xml files. 4 - i have a 'core' class which loads all the necessary library and skin files and instantiates things where necessary to get the app going.
Re: [Flashcoders] Saving out XML direct from Flash?
prejudice against extended projectors Prejudice isn't good. Oh yeah, accept it. Flash player sandbox does NOT allow local file system access. ;) However, that's what Apollo's all about. Yahoo!! -Scott On 1/22/07, Henry Cooke [EMAIL PROTECTED] wrote: Thanks. I ended up (after seriously considering porting to AS3 and having it *serve itself* a file through flash.net.socket :D ) getting over my prejudice against extended projectors and using Screenweaver HX, which actually seems pretty nice. Cheers, Henry On 22/01/07, Andrew J Kirkham [EMAIL PROTECTED] wrote: I managed something like this by embedding my Flash movie in a Director movie, which managed the saving of the XML. I'm afraid I no longer have access to the files, but I seem to remember it didn't take me very long to implement. Andy - Original Message - From: Henry Cooke [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, January 19, 2007 5:11 PM Subject: [Flashcoders] Saving out XML direct from Flash? 'lo all I'm noodling around with a little app that I'd like to be able to write out some internally generated XML directly to the user's hard disc. Preferably with a nice FileReference type interface. But this seems next to impossible. I was hoping it would be possible to hack FileReference to take file conetent from a variable, rather than a URL, but that looks like a no-go. My second idea was to write to a SharedObject, then pass that through FileReference, but I can't find a way of finding out the path to the SO file within Flash. I've spent the afternoon reading about MMSave, FSCommand save and ASnative(302, 0) and coming to the conclusion that they're deprecated as hell and useless to me. So does anyone have any good suggestions? I'm not averse to dirty hacks, but this is a standalone app, so I can't bounce the file back off a server, and I really don't want to use one of those weird extended projectors if I can avoid it. Cheers, Henry ___ 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 -- : : ) Scott ___ 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] External libraries
you cant attach symbols from a loaded swf to a different parent, you *must* attach them somewhere in the tree where their library exists. you have to do uiResources.attachMovie instead of _root.attachMovie its a nasty limitation of flash (pre v9, in v9 you can manipulate the display heirarchy pretty much as you like) Andy Herrman wrote: var img:MovieClip = root.attachMovie(asImage, asImageMC, root.getNextHighestDepth()); ___ 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] External libraries
Ok, that code all looks good, but I have a couple of questions. In initUI() function, what do you get if you also put in: trace(root); I only ask, because it looks like the brand.swf is loading in correctly. What I'm curious about is, what's going on with the 'root' mc? I notice that in your main method, you're sending in the rootMC movieclip. Can I see what the call to that looks like? I don't think you need to concern yourself with runtime sharing at this stage, really. Ok, try what Martin said ;-) Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: That's actually exactly what I'm trying, yet it doesn't seem to be working. Here's my code: -- import mx.utils.Delegate; class BrandTest { private var root:MovieClip; private var uiResources:MovieClip = null;; public static function main(rootMC:MovieClip):Void { new BrandTest(rootMC); } function BrandTest(rootMC:MovieClip) { this.root = rootMC; loadUIResources(brand.swf); } private function loadUIResources(path:String):Void { trace(Loading + path); if(uiResources != null) { uiResources.removeMovieClip(); } root.createEmptyMovieClip(uiResources, root.getNextHighestDepth()); uiResources = root['uiResources']; var uiLoader:MovieClipLoader = new MovieClipLoader(); var loadListener:Object = new Object(); loadListener.onLoadInit = Delegate.create(this, function (oEvent:Object) { this.initUI(); }); loadListener.onLoadProgress = Delegate.create(this, function (target:Object, loaded:Number, total:Number):Void { trace(loaded + / + total); }); uiLoader.addListener(loadListener); uiLoader.loadClip (path, uiResources); } private function initUI():Void { trace(Initing UI); var img:MovieClip = root.attachMovie(asImage, asImageMC, root.getNextHighestDepth ()); trace(img); } } -- I get the following output when I run: Loading brand.swf 8860/8860 Initing UI undefined attachMovie doesn't seem to be working. I have the movie clip in Brand.swf exported as 'asImage' with 'Export for ActionScript and Export in first frame selected. Is there anything else I might be missing? There's an Export for runtime sharing option that's unchecked, but if I select it it wants a URL and I don't know what to put there. -Andy On 1/22/07, Francis Chary [EMAIL PROTECTED] wrote: Let me have a crack at this one, Andy.. ;) Basically, linkages are just a way of telling the code how to identify a particular item in the library. When you right-click one of your buttons in the Brand.fla library and click 'Linkage...', you'll see the Linkage dialog box. Now, click on the checkbox marked: 'Export for Actionscript'. Flash will automatically fill in the linkage Id for you, it usually just takes the name of your swf. (eg. fancy_button). You can change this to whatever you want, just try and make sure that each movie clip has a different id from the others. Otherwise you could create problems. Now, go ahead and publish that movie to create Brand.swf. So now you have a movieclip with a linkage id inside your Brand.swf. So how do you get it to appear in the Main.swf? Firstly, you'll have to load the Brand.swf into the Main.swf. This is most easily done with the loadMovie function. If you want to be fancy, you can use MovieClipLoader instead, but that's another topic. Once you've loaded Brand.swf into Main.swf, you want to get at the button, or whatever mc you created a linkage id for. Happily, by creating a linkage id, you gave the flash player a name by which to identify the button. Now, the code to attach this to the stage is: _root.attachMovie(linkageId, newButtonMCName, 0); as you may have guessed, the arguments there are as follows: linkageId == the linkage id that was generated in the Brand.fla file newButtonMCName == the name you want for your button on the stage 0 == the depth of the new button. This will drop the movieclip onto the stage at coordinates 0, 0. So that's how you use linkage id. The neat thing is that if you have say, five Brand.fla files, with different art assets, you can give the elements in each one the same linkage id, then compile Main.fla once for each Brand.swf you've got. That way, you can 'skin' your Main.swf. I hope this helps, and I hope someone will correct me if I've made any silly mistakes! - Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: Unfortunately I'm stuck using the Flash IDE only (no MTASC). :( I don't really understand how linkages work. Is there a way to do something similar using just the Flash IDE? I have a feeling that's the way I'm going to have to do it. -Andy On 1/22/07, Trevor Burton [EMAIL PROTECTED] wrote: ok, i work on a setup that sounds like it's what you're aiming for... i've recently started working with MTASC and swfmill in order to get file sizes down to a minimum and streamline the build process - what i do at the
Re: [Flashcoders] External libraries
That's what I was afraid of. I want to avoid doing that, as the brand.swf it meant just to be an external library which can be swapped around, though I guess I could have my main.swf build the UI inside the uiResources MC. Kind of ugly though. I'm guessing I could do it with links, but from what I've seen online the link depends on a URL to the brand.swf, which doesn't really work since I want to be able to use different brand.swfs and pick them at runtime (probably as a parameter to the movie). Is there a way to use links without having a fixed URL for the linked SWF? -Andy On 1/22/07, Martin Wood-Mitrovski [EMAIL PROTECTED] wrote: you cant attach symbols from a loaded swf to a different parent, you *must* attach them somewhere in the tree where their library exists. you have to do uiResources.attachMovie instead of _root.attachMovie its a nasty limitation of flash (pre v9, in v9 you can manipulate the display heirarchy pretty much as you like) Andy Herrman wrote: var img:MovieClip = root.attachMovie(asImage, asImageMC, root.getNextHighestDepth()); ___ 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] External libraries
There is code in the first frame of main.swf: stop(); Stage.scaleMode = noScale; BrandTest.main(this); So root in the BrandTest movie is the same as _root. I just don't like using the _root variable. Global vars make me feel dirty (unless they're singletons accessed with getInstance() methods). :) I had other test stuff in place to verify that brand.swf actually loaded (I added a couple vars and test functions to brand.swf and tried calling them), but I took them out when posting my code to shorten it. -Andy On 1/22/07, Francis Chary [EMAIL PROTECTED] wrote: Ok, that code all looks good, but I have a couple of questions. In initUI() function, what do you get if you also put in: trace(root); I only ask, because it looks like the brand.swf is loading in correctly. What I'm curious about is, what's going on with the 'root' mc? I notice that in your main method, you're sending in the rootMC movieclip. Can I see what the call to that looks like? I don't think you need to concern yourself with runtime sharing at this stage, really. Ok, try what Martin said ;-) Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: That's actually exactly what I'm trying, yet it doesn't seem to be working. Here's my code: -- import mx.utils.Delegate; class BrandTest { private var root:MovieClip; private var uiResources:MovieClip = null;; public static function main(rootMC:MovieClip):Void { new BrandTest(rootMC); } function BrandTest(rootMC:MovieClip) { this.root = rootMC; loadUIResources(brand.swf); } private function loadUIResources(path:String):Void { trace(Loading + path); if(uiResources != null) { uiResources.removeMovieClip(); } root.createEmptyMovieClip(uiResources, root.getNextHighestDepth()); uiResources = root['uiResources']; var uiLoader:MovieClipLoader = new MovieClipLoader(); var loadListener:Object = new Object(); loadListener.onLoadInit = Delegate.create(this, function (oEvent:Object) { this.initUI(); }); loadListener.onLoadProgress = Delegate.create(this, function (target:Object, loaded:Number, total:Number):Void { trace(loaded + / + total); }); uiLoader.addListener(loadListener); uiLoader.loadClip (path, uiResources); } private function initUI():Void { trace(Initing UI); var img:MovieClip = root.attachMovie(asImage, asImageMC, root.getNextHighestDepth ()); trace(img); } } -- I get the following output when I run: Loading brand.swf 8860/8860 Initing UI undefined attachMovie doesn't seem to be working. I have the movie clip in Brand.swf exported as 'asImage' with 'Export for ActionScript and Export in first frame selected. Is there anything else I might be missing? There's an Export for runtime sharing option that's unchecked, but if I select it it wants a URL and I don't know what to put there. -Andy On 1/22/07, Francis Chary [EMAIL PROTECTED] wrote: Let me have a crack at this one, Andy.. ;) Basically, linkages are just a way of telling the code how to identify a particular item in the library. When you right-click one of your buttons in the Brand.fla library and click 'Linkage...', you'll see the Linkage dialog box. Now, click on the checkbox marked: 'Export for Actionscript'. Flash will automatically fill in the linkage Id for you, it usually just takes the name of your swf. (eg. fancy_button). You can change this to whatever you want, just try and make sure that each movie clip has a different id from the others. Otherwise you could create problems. Now, go ahead and publish that movie to create Brand.swf. So now you have a movieclip with a linkage id inside your Brand.swf. So how do you get it to appear in the Main.swf? Firstly, you'll have to load the Brand.swf into the Main.swf. This is most easily done with the loadMovie function. If you want to be fancy, you can use MovieClipLoader instead, but that's another topic. Once you've loaded Brand.swf into Main.swf, you want to get at the button, or whatever mc you created a linkage id for. Happily, by creating a linkage id, you gave the flash player a name by which to identify the button. Now, the code to attach this to the stage is: _root.attachMovie(linkageId, newButtonMCName, 0); as you may have guessed, the arguments there are as follows: linkageId == the linkage id that was generated in the Brand.fla file newButtonMCName == the name you want for your button on the stage 0 == the depth of the new button. This will drop the movieclip onto the stage at coordinates 0, 0. So that's how you use linkage id. The neat thing is that if you have say, five Brand.fla files, with different art assets, you can give the elements in each one the same linkage id, then compile Main.fla once for each Brand.swf you've got. That way, you can 'skin' your Main.swf. I hope this helps, and I
Re: [Flashcoders] External libraries
Martin, you are my hero. uiResources.attachMovie(...) worked like a charm, and it'll let me dynamically change which brand.swf I use (as opposed to Links which wouldn't). Thanks! -Andy On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: That's what I was afraid of. I want to avoid doing that, as the brand.swf it meant just to be an external library which can be swapped around, though I guess I could have my main.swf build the UI inside the uiResources MC. Kind of ugly though. I'm guessing I could do it with links, but from what I've seen online the link depends on a URL to the brand.swf, which doesn't really work since I want to be able to use different brand.swfs and pick them at runtime (probably as a parameter to the movie). Is there a way to use links without having a fixed URL for the linked SWF? -Andy On 1/22/07, Martin Wood-Mitrovski [EMAIL PROTECTED] wrote: you cant attach symbols from a loaded swf to a different parent, you *must* attach them somewhere in the tree where their library exists. you have to do uiResources.attachMovie instead of _root.attachMovie its a nasty limitation of flash (pre v9, in v9 you can manipulate the display heirarchy pretty much as you like) Andy Herrman wrote: var img:MovieClip = root.attachMovie(asImage, asImageMC, root.getNextHighestDepth()); ___ 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] Q:The case for Functional vs OOP programming
What's a slick way to bypass the restrictions imposed as Flash automatically truncates URLs (to 128 characters) that are used as values of HREF attributes in HTML text or as arguments passed to getURL? One of our clients needs long URLs to open in a browser from the Flash application. Right now, they are allowed to specifiy the URLs in an XML file. Will I have to downgrade usability for them by creating some kind of mapping mechanism where I store the URLs in JavaScript and merely refer to look-up table indexes in the XML? - Jason ___ 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] Long URLs Getting Truncated from Flash
I realized that I forgot to give my e-mail a pertinent subject line after I sent it. Sorry about that. What's a slick way to bypass the restrictions imposed as Flash automatically truncates URLs (to 128 characters) that are used as values of HREF attributes in HTML text or as arguments passed to getURL? One of our clients needs long URLs to open in a browser from the Flash application. Right now, they are allowed to specifiy the URLs in an XML file. Will I have to downgrade usability for them by creating some kind of mapping mechanism where I store the URLs in JavaScript and merely refer to look-up table indexes in the XML? - Jason ___ 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] LoadVars.send() in Flash 9 Player
I am publishing in 8 Basic, with AS2 specified. That is were I am puzzled, I would have thought that the 9 player would act like an 8 player if it was authored in 8 (or 7, or 6...) Doesn't the 9 player have backwards compatable methods in it? Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of slangeberg Sent: Monday, January 22, 2007 10:22 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player Are you publishing as flash 9? If so, you'll want to handle that (player version). It can't be done inside the movie, as far as I know. If you're using the template html-js published by Flex Builder, than you're good to go. -Scott On 1/22/07, Waller, David [EMAIL PROTECTED] wrote: So can I wrap a an if statement that detects the player and do something like: if (player9){ flash.net.sendToURL() } else { LoadVars.send() } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: Friday, January 19, 2007 6:36 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player David, Per the link that follows below, the AS2 LoadVars.send() Method is changed in AS3 to flash.net.sendToURL() Source: ActionScript 2.0 Migration: The following table describes the differences between ActionScript 2.0 and 3.0. http://livedocs.macromedia.com/labs/as3preview/langref/migration.html More: Note: The ActionScript 2.0 MovieClipLoader and LoadVars classes are not used in ActionScript 3.0. The Loader and URLLoader classes replace them. Source: Class Loader in ActionScript 3.0 Language Reference http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/L oa der.html fyi ... brace yourself, there are quite a few of these everything is still the same, but still everything is different changes. Just scan that first link above and you will get a sense. The good news is that now that ActionScript is tied to a standard (ECMA-262), I believe Adobe will no longer be making these types of disruptive changes going forward. For quick backgrounds on what and why many changes were made with AS3, following are some good links to articles and presentations by Flash Player Engineer Gary Grossman: Devnet Article: http://www.adobe.com/devnet/actionscript/articles/actionscript3_overvi ew .html Connect Recording of Presentation: https://admin.adobe.acrobat.com/_a227210/p64058844/ PDF of Slides: http://www.adobe.com/communities/developerweek/2006_devweek_as3.pdf hth, g On 1/19/07, Waller, David [EMAIL PROTECTED] wrote: I am having trouble with a LoadVars send which refuses to send in the Flash player 9. The swf works just fine in the 8 version of the player but in 9 it seems to just pass over the command. I have tried several different things including: crossdomain.xml System.security.allowDomain() However, nothing seems to work. Any input would be greatly appreciated. Dave Waller ___ 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 -- : : ) Scott ___ 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[2]: [Flashcoders] Q:The case for Functional vs OOP programming
I didn't remember such restriction so tried it with a more than 1000 character long URL, and it is working on IE and FF, Flash Player 9 (movie published to player 8). Attila ___ 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] Q:The case for Functional vs OOP programming
Hi, not sure if u are aware of the fact that you are hijacking this thread?:) greetz JC On 1/22/07, Jason Lutes [EMAIL PROTECTED] wrote: What's a slick way to bypass the restrictions imposed as Flash automatically truncates URLs (to 128 characters) that are used as values of HREF attributes in HTML text or as arguments passed to getURL? One of our clients needs long URLs to open in a browser from the Flash application. Right now, they are allowed to specifiy the URLs in an XML file. Will I have to downgrade usability for them by creating some kind of mapping mechanism where I store the URLs in JavaScript and merely refer to look-up table indexes in the XML? - Jason ___ 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] LoadVars.send() in Flash 9 Player
Yeah, there is some confusion there. You can't use: flash.net.sendToURL() in flash 8. So, like you said, the issue is: The swf works just fine in the 8 version of the player but in 9 it seems to just pass over the command. I have not seen this happen myself. I've had no problem with F8 movies in F9 player. Anyone? -Scott On 1/22/07, Waller, David [EMAIL PROTECTED] wrote: I am publishing in 8 Basic, with AS2 specified. That is were I am puzzled, I would have thought that the 9 player would act like an 8 player if it was authored in 8 (or 7, or 6...) Doesn't the 9 player have backwards compatable methods in it? Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of slangeberg Sent: Monday, January 22, 2007 10:22 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player Are you publishing as flash 9? If so, you'll want to handle that (player version). It can't be done inside the movie, as far as I know. If you're using the template html-js published by Flex Builder, than you're good to go. -Scott On 1/22/07, Waller, David [EMAIL PROTECTED] wrote: So can I wrap a an if statement that detects the player and do something like: if (player9){ flash.net.sendToURL() } else { LoadVars.send() } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: Friday, January 19, 2007 6:36 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player David, Per the link that follows below, the AS2 LoadVars.send() Method is changed in AS3 to flash.net.sendToURL() Source: ActionScript 2.0 Migration: The following table describes the differences between ActionScript 2.0 and 3.0. http://livedocs.macromedia.com/labs/as3preview/langref/migration.html More: Note: The ActionScript 2.0 MovieClipLoader and LoadVars classes are not used in ActionScript 3.0. The Loader and URLLoader classes replace them. Source: Class Loader in ActionScript 3.0 Language Reference http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/L oa der.html fyi ... brace yourself, there are quite a few of these everything is still the same, but still everything is different changes. Just scan that first link above and you will get a sense. The good news is that now that ActionScript is tied to a standard (ECMA-262), I believe Adobe will no longer be making these types of disruptive changes going forward. For quick backgrounds on what and why many changes were made with AS3, following are some good links to articles and presentations by Flash Player Engineer Gary Grossman: Devnet Article: http://www.adobe.com/devnet/actionscript/articles/actionscript3_overvi ew .html Connect Recording of Presentation: https://admin.adobe.acrobat.com/_a227210/p64058844/ PDF of Slides: http://www.adobe.com/communities/developerweek/2006_devweek_as3.pdf hth, g On 1/19/07, Waller, David [EMAIL PROTECTED] wrote: I am having trouble with a LoadVars send which refuses to send in the Flash player 9. The swf works just fine in the 8 version of the player but in 9 it seems to just pass over the command. I have tried several different things including: crossdomain.xml System.security.allowDomain() However, nothing seems to work. Any input would be greatly appreciated. Dave Waller ___ 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 -- : : ) Scott ___ 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 -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:
Re: [Flashcoders] Long URLs Getting Truncated from Flash
Slickest method is to POST vars rather than GET. Sorry if it isn't feasible. However, your lookup table may hold some promise. -Scott On 1/22/07, Jason Lutes [EMAIL PROTECTED] wrote: I realized that I forgot to give my e-mail a pertinent subject line after I sent it. Sorry about that. What's a slick way to bypass the restrictions imposed as Flash automatically truncates URLs (to 128 characters) that are used as values of HREF attributes in HTML text or as arguments passed to getURL? One of our clients needs long URLs to open in a browser from the Flash application. Right now, they are allowed to specifiy the URLs in an XML file. Will I have to downgrade usability for them by creating some kind of mapping mechanism where I store the URLs in JavaScript and merely refer to look-up table indexes in the XML? - Jason ___ 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 -- : : ) Scott ___ 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] LoadVars.send() in Flash 9 Player
This is the coade that does not work in 9, but does what it is supposed to in 8. I have debug lines in it see what parts it is doing and the last line of the function does end up in the player so I can only believe that 9 just passes over the fryLv.send() statement. function processItems(){ if (productVariantId_0 eq productVariantId_1 eq productVariantId_2 eq ) { message_box_mc._alpha = 100; _level0.message_txt.text = Please add an item to your meal; } else { _level0.debug_txt.text = version 1.8.1.1; var numItems = 0; fryLv.form_state = productForm; fryLv.quickOrder = true; fryLv.pageName = ensemble; fryLv.siteId = 48; fryLv.omSource = Menu Builder; fryLv.omSourceValue = Menu Builder; if (productVariantId_0 != '') { fryLv['productVariantId_'+numItems] = productVariantId_0; fryLv['quantitys_'+numItems] = quantitys_0; fryLv['prefixCode_'+numItems] = prefixCode_0; fryLv['parentProductId_'+numItems] = parentProductId_0; numItems++; } if (productVariantId_1 != '') { fryLv['productVariantId_'+numItems] = productVariantId_1; fryLv['quantitys_'+numItems] = quantitys_1; fryLv['prefixCode_'+numItems] = prefixCode_1; fryLv['parentProductId_'+numItems] = parentProductId_1; numItems++; } if (productVariantId_2 != '') { fryLv['productVariantId_'+numItems] = productVariantId_2; fryLv['quantitys_'+numItems] = quantitys_2; fryLv['prefixCode_'+numItems] = prefixCode_2; fryLv['parentProductId_'+numItems] = parentProductId_2; numItems++; } fryLv.totalCount = numItems; _level0.message_txt.text = Adding + numItems + to cart; fryLv.send(http://www.tenderfilet.com/checkout/process_items.cmd;, _self, POST); _level0.debug_txt.text = ; _level0.message_txt.text = Sent + numItems + to cart; } }; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of slangeberg Sent: Monday, January 22, 2007 11:43 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player Yeah, there is some confusion there. You can't use: flash.net.sendToURL() in flash 8. So, like you said, the issue is: The swf works just fine in the 8 version of the player but in 9 it seems to just pass over the command. I have not seen this happen myself. I've had no problem with F8 movies in F9 player. Anyone? -Scott On 1/22/07, Waller, David [EMAIL PROTECTED] wrote: I am publishing in 8 Basic, with AS2 specified. That is were I am puzzled, I would have thought that the 9 player would act like an 8 player if it was authored in 8 (or 7, or 6...) Doesn't the 9 player have backwards compatable methods in it? Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of slangeberg Sent: Monday, January 22, 2007 10:22 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player Are you publishing as flash 9? If so, you'll want to handle that (player version). It can't be done inside the movie, as far as I know. If you're using the template html-js published by Flex Builder, than you're good to go. -Scott On 1/22/07, Waller, David [EMAIL PROTECTED] wrote: So can I wrap a an if statement that detects the player and do something like: if (player9){ flash.net.sendToURL() } else { LoadVars.send() } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: Friday, January 19, 2007 6:36 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player David, Per the link that follows below, the AS2 LoadVars.send() Method is changed in AS3 to flash.net.sendToURL() Source: ActionScript 2.0 Migration: The following table describes the differences between ActionScript 2.0 and 3.0. http://livedocs.macromedia.com/labs/as3preview/langref/migration.htm l More: Note: The ActionScript 2.0 MovieClipLoader and LoadVars classes are not used in ActionScript 3.0. The Loader and URLLoader classes replace them. Source: Class Loader in ActionScript 3.0 Language Reference http://livedocs.macromedia.com/labs/as3preview/langref/flash/display /L oa der.html fyi ... brace yourself, there are quite a few of these everything is still the same,
Re: [Flashcoders] External libraries
The main reason I don't want to do that is that I won't have control of the 'brand.swf' versions. I just worry someone might put something on the canvas in brand.swf by mistake. If I was able to put my stuff on root or another MC then I could just hide the uiResources MC, so it wouldn't matter if someone put something on it, but this way I'll have to leave it visible. Then again, I can just document how they're supposed to make the brand.swf and if they screw it up they can deal with fixing it. :) -Andy On 1/22/07, Francis Chary [EMAIL PROTECTED] wrote: Yeah, I just replicated your setup, and I get the same error. I actually didn't know about the _root limitation of attachMovie, so cheers Martin, I learned something today. As he pointed out, your code works nicely when you do root.uiResources.attachMovie but you've said that you don't want to do that. May I ask; is it really so ugly? I mean, you have a movieclip that sits on the root, and everything is built within that. It doesn't really add too much to your filesize, and it makes the whole thing skinnable, doesn't it? I'm honestly not too sure about doing it with links. I prefer to have the linkage ids, usually. On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: There is code in the first frame of main.swf: stop(); Stage.scaleMode = noScale; BrandTest.main(this); So root in the BrandTest movie is the same as _root. I just don't like using the _root variable. Global vars make me feel dirty (unless they're singletons accessed with getInstance() methods). :) I had other test stuff in place to verify that brand.swf actually loaded (I added a couple vars and test functions to brand.swf and tried calling them), but I took them out when posting my code to shorten it. -Andy On 1/22/07, Francis Chary [EMAIL PROTECTED] wrote: Ok, that code all looks good, but I have a couple of questions. In initUI() function, what do you get if you also put in: trace(root); I only ask, because it looks like the brand.swf is loading in correctly. What I'm curious about is, what's going on with the 'root' mc? I notice that in your main method, you're sending in the rootMC movieclip. Can I see what the call to that looks like? I don't think you need to concern yourself with runtime sharing at this stage, really. Ok, try what Martin said ;-) Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: That's actually exactly what I'm trying, yet it doesn't seem to be working. Here's my code: -- import mx.utils.Delegate; class BrandTest { private var root:MovieClip; private var uiResources:MovieClip = null;; public static function main(rootMC:MovieClip):Void { new BrandTest(rootMC); } function BrandTest(rootMC:MovieClip) { this.root = rootMC; loadUIResources(brand.swf); } private function loadUIResources(path:String):Void { trace(Loading + path); if(uiResources != null) { uiResources.removeMovieClip(); } root.createEmptyMovieClip(uiResources, root.getNextHighestDepth ()); uiResources = root['uiResources']; var uiLoader:MovieClipLoader = new MovieClipLoader(); var loadListener:Object = new Object(); loadListener.onLoadInit = Delegate.create(this, function (oEvent:Object) { this.initUI(); }); loadListener.onLoadProgress = Delegate.create(this, function (target:Object, loaded:Number, total:Number):Void { trace(loaded + / + total); }); uiLoader.addListener(loadListener); uiLoader.loadClip (path, uiResources); } private function initUI():Void { trace(Initing UI); var img:MovieClip = root.attachMovie(asImage, asImageMC, root.getNextHighestDepth ()); trace(img); } } -- I get the following output when I run: Loading brand.swf 8860/8860 Initing UI undefined attachMovie doesn't seem to be working. I have the movie clip in Brand.swf exported as 'asImage' with 'Export for ActionScript and Export in first frame selected. Is there anything else I might be missing? There's an Export for runtime sharing option that's unchecked, but if I select it it wants a URL and I don't know what to put there. -Andy On 1/22/07, Francis Chary [EMAIL PROTECTED] wrote: Let me have a crack at this one, Andy.. ;) Basically, linkages are just a way of telling the code how to identify a particular item in the library. When you right-click one of your buttons in the Brand.fla library and click 'Linkage...', you'll see the Linkage dialog box. Now, click on the checkbox marked: 'Export for Actionscript'. Flash will automatically fill in the linkage Id for you, it usually just takes the name of your swf. (eg. fancy_button). You can change this to whatever you want, just try and
RE: [Flashcoders] External libraries
Unfortunately I'm stuck using the Flash IDE only (no MTASC). :( Why can't you use MTASC? Has somebody got a gun to your head and will pull the trigger if you use it? If that's the case, might I suggest bringing a kevlar helmet to work? ;) I highly recommend FLASC http://www.osflash.org/flasc as a great easy way to use MTASC. ___ 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] Q:The case for Functional vs OOP programming
Unhijacking of thread is a go! I haven't really used any functional language stuff for a couple years, so I may be off base a bit, but I'm not sure if you could really create a language that's both Functional and OOP, as OOP is a fairly procedural construct. The main problem I see is that OOP and Functional programming really work in very different ways. One way is really based off of and built on top of Objects and their data, while Functional programming is based on the algorithms. I don't know if you could come up with a good mix of the two without compromising the benefits of them (you'd be more likely to get a None of the benefits, all of the shortcomings than All of the benefits, none of the shortcomings). I could see a language that does mix them as a good stepping stone for someone to move from OOP to FP, but not as something that serious OOP or FP programmers would use. Then again, it has been a while since I worked with FP, so I could be completely wrong (not unheard of). :) -Andy On 1/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am a strong believer of the power of OOP, but recently came across the following blog posts that argue for the advantges, and some would say supremacy of functional over imperative/procedural and OOP programming. http://blog.lostlake.org/index.php?/archives/18-Functional-languages- will-rule.html http://www.joelonsoftware.com/items/2006/08/01.html http://www.developerdotstar.com/community/node/544 I think the best approach would be to find a way to gain the advantages of functional based programming while keeping the easy-to- understand OOP metaphor. Is Actionscript ideally suited for functional programming? Can someone give/point me to some examples? Thanks again Jim Bachalo ___ 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] Rotating a comboBox
Whenever I rotate a v2 component comboBox on and click the arrow, the dropdown still appears as though the comboBox was not rotated. Is there any easy way to have this appear rotated as well? Brandon ___ 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[2]: [Flashcoders] External libraries
AH The main reason I don't want to do that is that I won't have control AH of the 'brand.swf' versions. I just worry someone might put something AH on the canvas in brand.swf by mistake. If I was able to put my stuff AH on root or another MC then I could just hide the uiResources MC, so it AH wouldn't matter if someone put something on it, but this way I'll have AH to leave it visible. You can hide anything in the loaded swf by creating a solid movieclip on its main timeline. However I don't think that it is a real problem, since beside visual elements the loaded swf can contain scripts, which can behave even more harmful to your application than a simple visual object and these scripts cannot be eliminated. So you have to trust in the creator of brand.swf to some extent and hope that he/she will not screw up your movie at all :) Attila ___ 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] Q:The case for Functional vs OOP programming
Hi, i'd say flash is fairly unrestrictive (compared to java) in what you can or cannot do. If I look at Joel's javascript samples, most of them copy directly to actionscript. Wrap'm in an Example class and a combo is born:) Or am I making this seem to easy?:) greetz JC On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: Unhijacking of thread is a go! I haven't really used any functional language stuff for a couple years, so I may be off base a bit, but I'm not sure if you could really create a language that's both Functional and OOP, as OOP is a fairly procedural construct. The main problem I see is that OOP and Functional programming really work in very different ways. One way is really based off of and built on top of Objects and their data, while Functional programming is based on the algorithms. I don't know if you could come up with a good mix of the two without compromising the benefits of them (you'd be more likely to get a None of the benefits, all of the shortcomings than All of the benefits, none of the shortcomings). I could see a language that does mix them as a good stepping stone for someone to move from OOP to FP, but not as something that serious OOP or FP programmers would use. Then again, it has been a while since I worked with FP, so I could be completely wrong (not unheard of). :) -Andy On 1/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am a strong believer of the power of OOP, but recently came across the following blog posts that argue for the advantges, and some would say supremacy of functional over imperative/procedural and OOP programming. http://blog.lostlake.org/index.php?/archives/18-Functional-languages- will-rule.html http://www.joelonsoftware.com/items/2006/08/01.html http://www.developerdotstar.com/community/node/544 I think the best approach would be to find a way to gain the advantages of functional based programming while keeping the easy-to- understand OOP metaphor. Is Actionscript ideally suited for functional programming? Can someone give/point me to some examples? Thanks again Jim Bachalo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Multi-dimensional array problems in classes
Thanks everyone for the assistance as it has helped me to get it working. Regards, Gareth. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of slangeberg Sent: 20 January 2007 20:42 To: Flashcoders mailing list Subject: Re: [Flashcoders] Multi-dimensional array problems in classes I agree with previous, however, it is good to deal with references in classes. Best design for your 2D array depends on what it's intended for?: var reactionStoichiometry:Array = new Array (); public function addItem( newArr:Array ):Number { //returns len(?) return reactionStoichiometry.push( newArr ); } used like: var yorObject:YourClass = new YourClass(); var newArr:Array = new Array (1, 3, 2, 0), yorObject.addItem( newArr ); yorObject.addItem( new Array( 1,2,1,0 ) ); ...etc -Scott On 1/20/07, Ron Wheeler [EMAIL PROTECTED] wrote: BTW, Classes love Objects of all types regardless of the arrays. Just a hint. Often multi-dimensional arrays are just crying out to be single arrays of objects and if their wish is granted, your code becomes amazingly small and elegant as your reward for granting their wish. Help make an array's wish become true!!! If you pass this on to 6 programmers in the next 24 hours, you will be granted good karma for a year. Ron Stan Vassilev wrote: When you assign dynamic or more complex values, and especially if you don't want this array to be shared (by reference) to all instances of the class, it's best to initialize in the constructor. There aren't any limitations on multidim. arrays in objects, classes, or objects in classes and so on. I suspect the particular syntax you used was not correct, hence your issues. It'd help to post this instead. Regards, Stan Vassilev - Original Message - From: Gareth Hudson [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, January 20, 2007 2:02 PM Subject: [Flashcoders] Multi-dimensional array problems in classes Hi there, Does anyone know if it we are supposed to use multi-dimensional arrays (an array consisting of arrays) within a class? If so, what is the best, legal way to create them? The only way I have managed to do it is by this method: var reactionStoichiometry:Array = new Array ( new Array (1, 3, 2, 0), new Array (1, 2, 1, 0), new Array (2, 1, 2, 0), new Array (2, 0, 1, 3), new Array (2, 0, 2, 1), new Array (1, 0, 1, 1), new Array (1, 1, 2, 0), new Array (1, 1, 2, 0), new Array (1, 1, 1, 1)); Any other ways of creating them give me a compile error saying that they are not allowed within a class. I need to assign these values dynamically, the above ones a for testing, and would prefer to do it by addressing the locations in the main array by position number for inserting the other arrays within it. Classes don't seem to like Objects containing arrays either. Many thanks, Gareth Hudson. ___ 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 -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash MP3 recorder?
Does anyone know if it would be possible to have a browser based audio recorder within flash that would allow a user to use their microphone to record what they were saying as an MP3? Security issues within browsers make me think that it would be very difficult to achieve this. If it's possible I may be asked to incorporate it into a piece of language eLearning for users to send spoken recordings to tutors for marking as part of a course. The only items I've seen have mentioned use of a Flash Comms server, but I haven't had any experience in the area of audio recording with Flash as yet. Many thanks. Gareth Hudson. ___ 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: Re[2]: [Flashcoders] External libraries
It's the hope that he/she will not screw up your movie at all that I worry about. @Steven I work for a very large corporation, and they're pretty anal about what we do and don't use. I hear good things about MTASC, so I'd like to try and use it, but given where we are with the current projects we don't really have time to switch now, and even if we did it would probably be hard to get them to let me change it. It's in the back of my mind, and since the thing I'm starting on now is new I might be able to switch to it, but then we'd have some projects using it and some not using it, which they may not like. On that note, how hard is it to switch from a project that uses the Flash IDE to build everything (and includes a lot of stuff in the FLA) to something that uses MTASC? -Andy On 1/22/07, Rákos Attila [EMAIL PROTECTED] wrote: AH The main reason I don't want to do that is that I won't have control AH of the 'brand.swf' versions. I just worry someone might put something AH on the canvas in brand.swf by mistake. If I was able to put my stuff AH on root or another MC then I could just hide the uiResources MC, so it AH wouldn't matter if someone put something on it, but this way I'll have AH to leave it visible. You can hide anything in the loaded swf by creating a solid movieclip on its main timeline. However I don't think that it is a real problem, since beside visual elements the loaded swf can contain scripts, which can behave even more harmful to your application than a simple visual object and these scripts cannot be eliminated. So you have to trust in the creator of brand.swf to some extent and hope that he/she will not screw up your movie at all :) Attila ___ 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] Q:The case for Functional vs OOP programming
Flash is fairly unrestrictive, and you can do some functional programming in it, but I wouldn't really call it a functional language. It still seems designed as a procedural language, just with some constructs that allow you to do functional-style programming (first-order functions). I know some people who would probably be very upset if you tried to call Flash a functional programming language. :) -Andy On 1/22/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, i'd say flash is fairly unrestrictive (compared to java) in what you can or cannot do. If I look at Joel's javascript samples, most of them copy directly to actionscript. Wrap'm in an Example class and a combo is born:) Or am I making this seem to easy?:) greetz JC On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: Unhijacking of thread is a go! I haven't really used any functional language stuff for a couple years, so I may be off base a bit, but I'm not sure if you could really create a language that's both Functional and OOP, as OOP is a fairly procedural construct. The main problem I see is that OOP and Functional programming really work in very different ways. One way is really based off of and built on top of Objects and their data, while Functional programming is based on the algorithms. I don't know if you could come up with a good mix of the two without compromising the benefits of them (you'd be more likely to get a None of the benefits, all of the shortcomings than All of the benefits, none of the shortcomings). I could see a language that does mix them as a good stepping stone for someone to move from OOP to FP, but not as something that serious OOP or FP programmers would use. Then again, it has been a while since I worked with FP, so I could be completely wrong (not unheard of). :) -Andy On 1/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am a strong believer of the power of OOP, but recently came across the following blog posts that argue for the advantges, and some would say supremacy of functional over imperative/procedural and OOP programming. http://blog.lostlake.org/index.php?/archives/18-Functional-languages- will-rule.html http://www.joelonsoftware.com/items/2006/08/01.html http://www.developerdotstar.com/community/node/544 I think the best approach would be to find a way to gain the advantages of functional based programming while keeping the easy-to- understand OOP metaphor. Is Actionscript ideally suited for functional programming? Can someone give/point me to some examples? Thanks again Jim Bachalo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Dynamically placing caret in a textfield
I'm trying to place the caret at a specific position in a textfield, but this seems to work only after I click at least once in the textfield. But in my app, I CAN'T click, anybody know a way to get the caret to blinking at a specific position without clicking in the textfield first ?? Here's a code to try this at home: - create an input text name debug_txt on the stage Code: this.moveCaret = function () { var nCaret = Selection.getCaretIndex(); if (nCaret == -1) { Selection.setFocus(_root.debug_txt); } Selection.setSelection(nCaret + 1, nCaret + 1); } _root.debug_txt.text = Hello World; setInterval(moveCaret, 1500); Martin T. LVL ___ 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] Running Flash Application on a local network
Hello All, I have some serious issue, at the end of my projects. I have a flash application, which is developed for web, which loads xmls, flvs, images etc... The client also want this to be in their local network. When I tried running the html file from the network, few of the content (xmls) refused to load. I came to know that this is related to some security issue. I've tried various options got from web and flash help (like crossdomain.xml). But still, the loading fails, sometimes when we access the file on a network. The project end date is closing in and i am not able to find a solution for this strange problem. I am using MM compiler and version is 8. I am also using Deng Modular Browser in this, which is compiled in version 6. Please help me out. Thanks Vipin ___ 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: Re[2]: [Flashcoders] External libraries
Hi, you might reach a point (at least I think a lot of us including me reached that point), in which the only hope to finish a project in time is using Mtasc and say flasc or flashdevelop (or some same kind of other tool). Switching might be easy or difficult, depending on your project (setup). For example do you use a lot of mx classes/components etc. And it's not one or the other, you can setup your projects in a way which allows you to either open it up in the flash ide and compile it there, or open it up in the Flash IDE and compile it through Flasc(which uses mtasc), or you could compile it from flashdevelop (which uses mtasc as well), or through a batch file, etc,etc. Lot of options, there is bound to be one that fits your needs/workflow. greetz JC On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: It's the hope that he/she will not screw up your movie at all that I worry about. @Steven I work for a very large corporation, and they're pretty anal about what we do and don't use. I hear good things about MTASC, so I'd like to try and use it, but given where we are with the current projects we don't really have time to switch now, and even if we did it would probably be hard to get them to let me change it. It's in the back of my mind, and since the thing I'm starting on now is new I might be able to switch to it, but then we'd have some projects using it and some not using it, which they may not like. On that note, how hard is it to switch from a project that uses the Flash IDE to build everything (and includes a lot of stuff in the FLA) to something that uses MTASC? -Andy On 1/22/07, Rákos Attila [EMAIL PROTECTED] wrote: AH The main reason I don't want to do that is that I won't have control AH of the 'brand.swf' versions. I just worry someone might put something AH on the canvas in brand.swf by mistake. If I was able to put my stuff AH on root or another MC then I could just hide the uiResources MC, so it AH wouldn't matter if someone put something on it, but this way I'll have AH to leave it visible. You can hide anything in the loaded swf by creating a solid movieclip on its main timeline. However I don't think that it is a real problem, since beside visual elements the loaded swf can contain scripts, which can behave even more harmful to your application than a simple visual object and these scripts cannot be eliminated. So you have to trust in the creator of brand.swf to some extent and hope that he/she will not screw up your movie at all :) Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Running Flash Application on a local network
If the application is running locally, are the XML files still pulled from external websites? Is it only the XML that isn't loading? If so, how are you loading the XML? ~Daniel Holth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of vipin chandran Sent: Monday, January 22, 2007 1:28 PM To: Flashcoders mailing list Subject: [Flashcoders] Running Flash Application on a local network Hello All, I have some serious issue, at the end of my projects. I have a flash application, which is developed for web, which loads xmls, flvs, images etc... The client also want this to be in their local network. When I tried running the html file from the network, few of the content (xmls) refused to load. I came to know that this is related to some security issue. I've tried various options got from web and flash help (like crossdomain.xml). But still, the loading fails, sometimes when we access the file on a network. The project end date is closing in and i am not able to find a solution for this strange problem. I am using MM compiler and version is 8. I am also using Deng Modular Browser in this, which is compiled in version 6. Please help me out. Thanks Vipin ___ 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 This e-mail and its attachments are intended only for the use of the addressee(s) and may contain privileged, confidential or proprietary information. If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, displaying, copying, or use of this information is strictly prohibited. If you have received this communication in error, please inform the sender immediately and delete and destroy any record of this message. Thank you. ___ 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: Re[2]: [Flashcoders] External libraries
I think you have a misconception about MTASC. It isn't a replacement for Flash (unless you're a G like Ben Jackson), it's a 3rd party compiler for Flash. When Flash compiles, it recompresses all the media (graphics, sound, components) as it compiles. All MTASC does is injects code into the swf. So, you can update your classes and use MTASC to compile and cut your compile time down to less than a second where Flash can take many (some of my FLAs take over 30 seconds!). To use MTASC, you need to be writing AS2 classes, as any timeline code or #include code changes won't be updated using MTASC. FLASC is an easy to use GUI for MTASC that runs as a panel in the Flash IDE and it's how I use MTASC (beats learning to write those long command lines). Using FLASC from the beginning of a project is ideal, because MTASC is stricter than the Flash IDE compiler. A benefit of its strictness is it forces you to be a better coder. If you jump into the middle of a project with FLASC, it will probably take you a bit to get it going. It will only really benefit you if your FLAs take more than a second or two to compile. If you're waiting 5-10 seconds every time you make a change, it might be worth your time to install FLASC. As far as your corporatation goes, you're still using Flash. FLASC is a panel inside of Flash. You'll have to get MTASC, which is just an executable that sits in your Program Files folder, but it doesn't require installation - you download it and put it there manually. No administrator access required. HTH, Steven ___ 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] Rotating a comboBox
Is there any easy way... Write your own. Seriously. The reason it's not rotated is because the ComboBox component's drop down is drawn on the _root. The v2 components are crap. They're hermetically sealed so you can't easily hack them, they're bloated and slow, they're much harder to skin, etc. etc. The new AS3 ones promise to be better. Until then, I suggest writing your own, or purchase the Ghostwire ComboBox and use it (great components even though they're written in AS1 but they do work in Flash 8). ___ 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] Q:The case for Functional vs OOP programming
Common Lisp has a pretty interesting OO system that has a dynamic character to it reminiscent of Javascript or old-school AS, but that supports polymorphism through a thing called generic functions -- a function contains multiple implementations and selects the one that's defined as being for the class closes to the first argument. I guess that's kinda Pythonish in a way too. If Lispy syntax doesn't bother you, it makes for a nice mixture of OO and Lisp's functional heritage. I definitely wouldn't call it purely functional though... in a pure-functional language like Haskell, I imagine that objects would have to be implemented as some kind of monad. CHUCK HOFFMAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x150 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: Monday, January 22, 2007 1:24 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Q:The case for Functional vs OOP programming Flash is fairly unrestrictive, and you can do some functional programming in it, but I wouldn't really call it a functional language. It still seems designed as a procedural language, just with some constructs that allow you to do functional-style programming (first-order functions). I know some people who would probably be very upset if you tried to call Flash a functional programming language. :) -Andy On 1/22/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, i'd say flash is fairly unrestrictive (compared to java) in what you can or cannot do. If I look at Joel's javascript samples, most of them copy directly to actionscript. Wrap'm in an Example class and a combo is born:) Or am I making this seem to easy?:) greetz JC On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: Unhijacking of thread is a go! I haven't really used any functional language stuff for a couple years, so I may be off base a bit, but I'm not sure if you could really create a language that's both Functional and OOP, as OOP is a fairly procedural construct. The main problem I see is that OOP and Functional programming really work in very different ways. One way is really based off of and built on top of Objects and their data, while Functional programming is based on the algorithms. I don't know if you could come up with a good mix of the two without compromising the benefits of them (you'd be more likely to get a None of the benefits, all of the shortcomings than All of the benefits, none of the shortcomings). I could see a language that does mix them as a good stepping stone for someone to move from OOP to FP, but not as something that serious OOP or FP programmers would use. Then again, it has been a while since I worked with FP, so I could be completely wrong (not unheard of). :) -Andy On 1/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am a strong believer of the power of OOP, but recently came across the following blog posts that argue for the advantges, and some would say supremacy of functional over imperative/procedural and OOP programming. http://blog.lostlake.org/index.php?/archives/18-Functional-languages- will-rule.html http://www.joelonsoftware.com/items/2006/08/01.html http://www.developerdotstar.com/community/node/544 I think the best approach would be to find a way to gain the advantages of functional based programming while keeping the easy-to- understand OOP metaphor. Is Actionscript ideally suited for functional programming? Can someone give/point me to some examples? Thanks again Jim Bachalo ___ 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
[Flashcoders] Flash 9 - Express Install
Geoff, This appears to be working fine for me. I have yet to put this into production.. Thanks!!, -Scott On 10/30/06, Geoff Stearns [EMAIL PROTECTED] wrote: it sounds to me like what is happening is that the user has a version less than flash 8 installed, so they *should* get the expressinstall prompt, but that probably isn't working. mostlikely the code wasn't implemented properly in your swf. for the next release of swfobject i'm fixing this to make it more foolproof (failproof?) by using a separate swf for the expressinstall parts. this was mainly because it's required now for flash 9 swfs that use as3... so if you are interested in testing out the new version, you are welcome to grab it and try it. just note that the expressinstall stuff works a little differently... you should be able to see how it works by looking at the example expressinstall.html page. http://blog.deconcept.com/code/swfobject2.0/ if anyone else wants to try it out, feel free... we are using it here at schematic for a flash 9 project and haven't had any issues with it yet, so it appears to be pretty solid, but if anyone has any feedback feel free to send it along to me. On Oct 30, 2006, at 6:22 PM, Count Schemula wrote: For people publishing to Player 8, what steps are you taking when swfobject + express Install fails? For example, I don't think express install works with Flash Player 6 and some early versions of Player 7, which is causing me problems sometimes. I have text in the div id=flashcontent so, they _should_ see my text links and my link to upgrade the flash player, but sometimes I'm hearing that the flash loads, but the Player 8 features (important stuff like the text) is not showing up. Here is my var so: var so = new SWFObject(images/header_01.swf, header_01, 800, 150, 8.0.23, #00, true); so.write(flashcontent); It mostly works, but, it's still not 100% and it's causing me strife. -- count_schemula ___ 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 -- : : ) Scott ___ 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] External libraries
Trouble I have with MTASC is I just can't seem to get it to find all my classes properly, and it just silently fails to compile whole chunks of things. I tried to use it in Eclipse with Flashout as ASDT and it seemed like I had to paste in a page and a half of switches to the compiler to tell it where every single class was. I drove myself nuts. I also find the FLASC UI really confusing. Sorry. I tried using MTASC and it basically just drove me nuts. CHUCK HOFFMAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x150 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Monday, January 22, 2007 12:23 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] External libraries Unfortunately I'm stuck using the Flash IDE only (no MTASC). :( Why can't you use MTASC? Has somebody got a gun to your head and will pull the trigger if you use it? If that's the case, might I suggest bringing a kevlar helmet to work? ;) I highly recommend FLASC http://www.osflash.org/flasc as a great easy way to use MTASC. ___ 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] LoadVars.send() in Flash 9 Player
Back in June I see a post on this list that has the same problem as mine where a LoadVars.send() does not work in player 9. http://chattyfig.figleaf.com/pipermail/flashcoders/2006-June/168792.html Did Nicolas Cannasse ever get a resolve to it? Dave Waller ___ 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: Re[2]: [Flashcoders] External libraries
So, I actually use FlashDevelop to write my code, and just switch to the Flash IDE to build (I really dislike the IDE). The problem with using it has nothing to do with installing it or being able to run it on my machine. The problem is that MTASC would essentially be responsible for things that go into production. If Flash has some bug that causes problems the company could get support, but it's not really the same with MTASC. That said, if things can be set up to use both at once then I probably could use it during development, and just use Flash to do the final compile. I think I might try that. I know MTASC is stricter, which is actually a reason I want to use it. Unfortunately the 2 big flash movies that I have been working on I inherited when the only guy in the company who knew flash quit (I mainly did Java with some C++), and they used just the Flash IDE, so I have no idea how easy/hard it would be to get MTASC working with those. I might give it a try for the new project I'm working on though. If I can get it working nicely with FD (not that I think that will be hard) then it would make me happy. -Andy On 1/22/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: I think you have a misconception about MTASC. It isn't a replacement for Flash (unless you're a G like Ben Jackson), it's a 3rd party compiler for Flash. When Flash compiles, it recompresses all the media (graphics, sound, components) as it compiles. All MTASC does is injects code into the swf. So, you can update your classes and use MTASC to compile and cut your compile time down to less than a second where Flash can take many (some of my FLAs take over 30 seconds!). To use MTASC, you need to be writing AS2 classes, as any timeline code or #include code changes won't be updated using MTASC. FLASC is an easy to use GUI for MTASC that runs as a panel in the Flash IDE and it's how I use MTASC (beats learning to write those long command lines). Using FLASC from the beginning of a project is ideal, because MTASC is stricter than the Flash IDE compiler. A benefit of its strictness is it forces you to be a better coder. If you jump into the middle of a project with FLASC, it will probably take you a bit to get it going. It will only really benefit you if your FLAs take more than a second or two to compile. If you're waiting 5-10 seconds every time you make a change, it might be worth your time to install FLASC. As far as your corporatation goes, you're still using Flash. FLASC is a panel inside of Flash. You'll have to get MTASC, which is just an executable that sits in your Program Files folder, but it doesn't require installation - you download it and put it there manually. No administrator access required. HTH, Steven ___ 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: Re[2]: [Flashcoders] External libraries
It's doesn't have to be that way. On the last project I did, I used MTASC for about 90% of the development, then switched to the Flash IDE during the last week. As long as you can start your application with the same line of code, it doesn't really matter which compiler you use. Basically, in FlashDevelop, I had a static main function that started the app thusly: var newMenu:MenuController = new MenuController(); In the Flash IDE, I used the same line of code, but I put it in frame 1 instead. It amounts to the same thing though. Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: So, I actually use FlashDevelop to write my code, and just switch to the Flash IDE to build (I really dislike the IDE). The problem with using it has nothing to do with installing it or being able to run it on my machine. The problem is that MTASC would essentially be responsible for things that go into production. If Flash has some bug that causes problems the company could get support, but it's not really the same with MTASC. That said, if things can be set up to use both at once then I probably could use it during development, and just use Flash to do the final compile. I think I might try that. I know MTASC is stricter, which is actually a reason I want to use it. Unfortunately the 2 big flash movies that I have been working on I inherited when the only guy in the company who knew flash quit (I mainly did Java with some C++), and they used just the Flash IDE, so I have no idea how easy/hard it would be to get MTASC working with those. I might give it a try for the new project I'm working on though. If I can get it working nicely with FD (not that I think that will be hard) then it would make me happy. -Andy On 1/22/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: I think you have a misconception about MTASC. It isn't a replacement for Flash (unless you're a G like Ben Jackson), it's a 3rd party compiler for Flash. When Flash compiles, it recompresses all the media (graphics, sound, components) as it compiles. All MTASC does is injects code into the swf. So, you can update your classes and use MTASC to compile and cut your compile time down to less than a second where Flash can take many (some of my FLAs take over 30 seconds!). To use MTASC, you need to be writing AS2 classes, as any timeline code or #include code changes won't be updated using MTASC. FLASC is an easy to use GUI for MTASC that runs as a panel in the Flash IDE and it's how I use MTASC (beats learning to write those long command lines). Using FLASC from the beginning of a project is ideal, because MTASC is stricter than the Flash IDE compiler. A benefit of its strictness is it forces you to be a better coder. If you jump into the middle of a project with FLASC, it will probably take you a bit to get it going. It will only really benefit you if your FLAs take more than a second or two to compile. If you're waiting 5-10 seconds every time you make a change, it might be worth your time to install FLASC. As far as your corporatation goes, you're still using Flash. FLASC is a panel inside of Flash. You'll have to get MTASC, which is just an executable that sits in your Program Files folder, but it doesn't require installation - you download it and put it there manually. No administrator access required. HTH, Steven ___ 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] Re: Rotating a comboBox
Brandon, I'd suggest you look into making your own version of the combo box. A few movieclips and some dynamic Textfields... and you'll have your own version that does what you require it to do, and will be re-usable, probably coded in a more logical way. The flash components, in general, suck. especially the v2 components. There are so many problems. I really don't use them if i can manage without them. I suggest you do the same! Dan Styles. Styles Design Development. CONFIDENTIALITY NOTICE: This communication and any documents, files or previous e-mail messages attached to it, constitute an electronic communication within the scope of the Electronic Communication Privacy Act, 18 USCA 2510. This communication may contain non-public, confidential, or legally privileged information intended for the sole use of the designated recipient(s). The unlawful interception, use or disclosure of such information is strictly prohibited pursuant to 18 USCA 2511 and any applicable laws. If you are not the intended recipient, or have received this communication in error, please notify the sender immediately by reply email and delete all copies of this communication, including attachments, without reading them or saving them to disk. From: Brandon Barkley [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Mon, 22 Jan 2007 13:30:17 -0500 Subject: [Flashcoders] Rotating a comboBox Whenever I rotate a v2 component comboBox on and click the arrow, the dropdown still appears as though the comboBox was not rotated. Is there any easy way to have this appear rotated as well? Brandon ___ 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] bitmap data question
Hello experts, i'm trying to gain a little clarity on bitmap data...is everything inside of a movieclip considered bitmap data? e.g. if i have a movieclip with a couple of textboxes in it, would everything in the movieclip be considered bitmap data?? thanks much p ___ 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] Running Flash Application on a local network
are you using an HTTP server on the host computer? or just opening the HTML/SWF file using a network share? ___ 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] full-browser flash resizing only a few elements
Hi everyone, I'm trying to fill my browser window with my flash movie, but without resizing my nav buttons. My other element on stage is an FLV so I should be able to assign it's width height, right? This is my code which does NOT work: Stage.scaleMode=noScale; var stageL=new Object(); stageL.onResize = function(){ this.video._width = Stage.width - this.navigation_exit._width this.video._height = Stage.height - this.navigation_left._height } Stage.addListener(stageL); What I want the movie to do is not resize the entire flash movie since I don't want the navigation buttons to change size, but instead, just resize the rest of the content (ie. the FLV on stage and some dynamic text elements.) I guess I could do it the other way around, where I scale to fit everything, and then size down the nav buttons. I have tried that as well, but no luck. I found similar code to the above on other forums, and it works for other people. Am I constrained/limited because it's an externally linked FLV that I'm trying to resize? What am I doing wrong?? Thanks! C. ___ 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] full-browser flash resizing only a few elements
Cynthia, If video is an instance of the flv player component, you should use this code instead: stageL.onResize = function(){ video.setSize( Stage.width, Stage.height ); } Using _width and _height in this case can cause distortion. If you use the setSize method, the component will handle the resizing itself, avoiding distortion of the navigation etc. Good luck! ___ 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] full-browser flash resizing only a few elements
Hi, Thanks for the suggestion, but that didn't work either! Any thoughts on what the setting for scaling should be under Publish Settings? Should that matter, or regardless of what I select there, it should get overriden by my code? Any other thoughts? xx C. On Jan 22, 2007, at 10:51 PM, Webdevotion wrote: Cynthia, If video is an instance of the flv player component, you should use this code instead: stageL.onResize = function(){ video.setSize( Stage.width, Stage.height ); } Using _width and _height in this case can cause distortion. If you use the setSize method, the component will handle the resizing itself, avoiding distortion of the navigation etc. Good luck! ___ 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] full-browser flash resizing only a few elements
Probably you refer incorrectly to the video and navigation movieclips. By using this you refer to variables/properties of the listener object itself, but obviously there are no such properties (try to trace them out). And also you may need to set Stage.align, too. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Developer Required : Sydney, Australia
Flash Developers at Snepo First off, let's just answer the most important question -- what sort of company is Snepo? * We're a startup company and have been in business for a bit over a year now * We do consulting and develop shrink-wrapped software targeting both developers and the general public * We spend nearly 20% of our time screwing off http://blog.snepo.com/articles/2006/10/31/on-the-importance-of-screwing-off * We do crazy Back End work as well (Neural networks, Hardware controllers, Video servers, Compilers, ...). If you, say, wanted to learn a little Haskell or Ruby on the side this would be the place to do it * We're located in Surry Hills (we're not exiled to the Suburb That Optus Built) * One of the directors is named after an orifice * Every now and then he cooks delicious pizza for everyone We're looking for Flash developers, an eye for design is nice but it's not a must. What is a must is that you're smart and can get things done. Note that there's not a laundry list of acronyms in this job listing, you know if you're qualified to be a Flash developer. If you are then please get in contact with us and we can sort out the particulars in an interview. Send resumes, cvs, urls, etc... to [EMAIL PROTECTED] and include the text [Flash Developer] in the subject line And we don't do telecommutes so you have to be in Sydney. Cheers The Snepo Team *Anthony Eden*: Inventor at Snepo http://www.snepo.com/ contact | [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] | 0411 5622 02 ___ 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] Dynamically placing caret in a textfield
Hi! this code would work for you Selection.setFocus(txt); Selection.setSelection(5,5); Ganesh. - Original Message - From: Martin Tremblay [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 23, 2007 12:58 AM Subject: [Flashcoders] Dynamically placing caret in a textfield I'm trying to place the caret at a specific position in a textfield, but this seems to work only after I click at least once in the textfield. But in my app, I CAN'T click, anybody know a way to get the caret to blinking at a specific position without clicking in the textfield first ?? Here's a code to try this at home: - create an input text name debug_txt on the stage Code: this.moveCaret = function () { var nCaret = Selection.getCaretIndex(); if (nCaret == -1) { Selection.setFocus(_root.debug_txt); } Selection.setSelection(nCaret + 1, nCaret + 1); } _root.debug_txt.text = Hello World; setInterval(moveCaret, 1500); Martin T. LVL ___ 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] Running Flash Application on a local network
i had this problem too. i couldnt get really behind this issue but i know how to avoid this problem and get your files loaded. you need to set the security settings for your pc: http://www.macromedia.com/support/documentation/en/flashplayer/help/ settings_manager04.html the clients computer needs to have an internet connection to do this. you then choose the folder of your project and then add this to the list. or as i did, you add the main hard disk folder (/). i know this is a hacky solution and i never could understand why this has to be this way. this security restrictions shouldnt happen if you choose use only local files. but that didnt work in my case. hope it helps. eugen Am 23.01.2007 um 03:28 schrieb JulianG: are you using an HTTP server on the host computer? or just opening the HTML/SWF file using a network share? ___ 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