RE: [Flashcoders] Player 8 and the Alert component
The problem seems to be that the alert component is in a mc that is being loaded into another mc... is this a known issue? Any thought on how I get it to work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Wednesday, May 07, 2008 2:43 PM To: Flash Coders List Subject: Re: [Flashcoders] Player 8 and the Alert component Hi, Yes, you may need to drag an instance of it onto the stage in your FLA file so it gets compiled in. Glen Lehr, Theodore M (N-SGIS) wrote: Should the Alert component work in 8 (player)? Ted ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Loading strategies
What do you think? On Mon, May 12, 2008 at 5:59 PM, Dwayne Neckles [EMAIL PROTECTED] wrote: http://nolaf.org/ This whole site ( video based) loads extremely quick.. can we discuss some loading strategies for this kind of content.. Even other video sections on the site load fast.. Do you think a sequential loader was used... Its not HD but video that was stretched a bit right.. This should be a good discussion.. Dwayne ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] alpha not working on mc with textfield
Hi guys - this is probably something really obvious but it's got me a bit stumped (sorry it's a little OT but i can't find any answers) I have several movieclips containing a static textfield with text in using a font that I've already embedded for actionscript use (it has a * after it's name). I've motion tweened these to move across the screen, starting at 0 alpha and becoming 100 alpha at the end of the tween (so movement and alpha tween). The problem is that the alpha doesn't seem to be working. I've replaced the type with a random shape and the alpha works again so it seems to be something to do with the embedding but I'm not sure what. hope you can help obie ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Loading strategies
Hi, Well I have had a look using LiveHTTPHeaders and it looks like it is using a content delivery network to stream video. There is also a /low/ path in my requests, so I am guessing the system may be using content depending on the bandwidth. It looks like some content is preloaded and some is only downloaded when you select it. I guess this is a pretty good strategy for loading - only preload it if you are going to use it. In the past, I have had a simple sequence of animations. I made this a preloaded sequence to put the first animation straight into the player and all subsequent clips were loaded in the background. Because the first clip was about 45 seconds long, the rest were loaded by the time they were needed, bingo. I broke this down a bit for a subsequent project, but I am still trying to balance out the preloading - I even tried preloading PDF's into the browser cache, which works, but Flash does not get the progress updates. I had to abandon the preloading during animations though, because it really slowed down the vector heavy animation - my code is AS2 and could probably do with some optimising, but this is something you have to watch out for with background loading - if the player needs CPU resources, loading lots of small clips in a queue could impact this. The workaround here was to wait until someone launched a PDF, set a one-off timer then start the preloading queue - hopefully everything would load whilst the visitor is reading the PDF, but if they come back and click a resume button, the loader is paused. It's nearly there, but like I said, some optimisation is required. As another example, I would say have a look at the BBC's CDX game done by Preloaded http://www.bbc.co.uk/history/interactive/ although there was restrictions on non-UK residents, I think this has been lifted. This is a very resource heavy game and does a lot of preloading without intro's etc, but there do seem to be some issues with the video buffering going pear shaped. I like the game, but would say it took a long time to load each time and could do with some intelligent preloading. I guess it's a per-project balance, but there are a lot of preloading tools out there which deal with queue's etc. There is also the Gaia framework, which looks like it has a sensible approach to preloading and I think it also provides some options to override some of this loading of assets in the sitemap too - hopefully Mr Gaia can tell us more. HTH, now who's next. Glen Glen Dwayne Neckles wrote: What do you think? On Mon, May 12, 2008 at 5:59 PM, Dwayne Neckles [EMAIL PROTECTED] wrote: http://nolaf.org/ This whole site ( video based) loads extremely quick.. can we discuss some loading strategies for this kind of content.. Even other video sections on the site load fast.. Do you think a sequential loader was used... Its not HD but video that was stretched a bit right.. This should be a good discussion.. Dwayne ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Player 8 and the Alert component
drop an instance in the main fla as well. On Tue, May 13, 2008 at 2:30 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: The problem seems to be that the alert component is in a mc that is being loaded into another mc... is this a known issue? Any thought on how I get it to work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Wednesday, May 07, 2008 2:43 PM To: Flash Coders List Subject: Re: [Flashcoders] Player 8 and the Alert component Hi, Yes, you may need to drag an instance of it onto the stage in your FLA file so it gets compiled in. Glen Lehr, Theodore M (N-SGIS) wrote: Should the Alert component work in 8 (player)? Ted ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] alpha not working on mc with textfield
Obie, have you made sure the fields are using the embedded version of the font? Just embedding the font doesn't do anything. After embedding, you need to switch the font from the system version to the embedded version. Because you mentioned several clips, you can do this globally (if desired) using Find and Replace. On 5/13/08 10:51 AM, Allandt Bik-Elliott (Receptacle) wrote: Hi guys - this is probably something really obvious but it's got me a bit stumped (sorry it's a little OT but i can't find any answers) I have several movieclips containing a static textfield with text in using a font that I've already embedded for actionscript use (it has a * after it's name). I've motion tweened these to move across the screen, starting at 0 alpha and becoming 100 alpha at the end of the tween (so movement and alpha tween). The problem is that the alpha doesn't seem to be working. I've replaced the type with a random shape and the alpha works again so it seems to be something to do with the embedding but I'm not sure what. hope you can help obie Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] alpha not working on mc with textfield
thanks for the response i'm using the version with the asterisk after the name On 13 May 2008, at 17:02, Rich Shupe wrote: Obie, have you made sure the fields are using the embedded version of the font? Just embedding the font doesn't do anything. After embedding, you need to switch the font from the system version to the embedded version. Because you mentioned several clips, you can do this globally (if desired) using Find and Replace. On 5/13/08 10:51 AM, Allandt Bik-Elliott (Receptacle) wrote: Hi guys - this is probably something really obvious but it's got me a bit stumped (sorry it's a little OT but i can't find any answers) I have several movieclips containing a static textfield with text in using a font that I've already embedded for actionscript use (it has a * after it's name). I've motion tweened these to move across the screen, starting at 0 alpha and becoming 100 alpha at the end of the tween (so movement and alpha tween). The problem is that the alpha doesn't seem to be working. I've replaced the type with a random shape and the alpha works again so it seems to be something to do with the embedding but I'm not sure what. hope you can help obie Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] secure FLV linking
hey all I was wondering what is a pretty standard way to call an FLV so its actually path isn't transparent. Like I want to call... http://www.mysite.com/myFLV.flv but I don't want people to be able to see the URL in service capture like that. I want it to be more like http://www.mysite.com/something_encrypted. Sorry i'm not sure how to say what i am looking to do but I hope this makes sense! any direction on the standard for doing something like this would be great! thanks! -- -cb ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] secure FLV linking
You can't hide URL requests, but you could use a proxy script to mask the FLV names. The problem is that like YouTube's get_video.php script, you can still call this from anywhere. YouTube makes it a bit harder by adding on a variable called t that seems to change per video called - it's probably linked to your session or similar. Have a look at the sequence of headers when you load a YouTube page and you will see what I mean. It's a barrier to many, but is easily circumvented - demonstrated by the fact the people can play YouTube FLV's on their own site without the player, etc. - although this is not guaranteed to work and is often flaky, it's a good example. Anyway, google for YouTube FLV proxy or something similar for code examples. Glen Dave Watts wrote: hey all I was wondering what is a pretty standard way to call an FLV so its actually path isn't transparent. Like I want to call... http://www.mysite.com/myFLV.flv but I don't want people to be able to see the URL in service capture like that. I want it to be more like http://www.mysite.com/something_encrypted. Sorry i'm not sure how to say what i am looking to do but I hope this makes sense! any direction on the standard for doing something like this would be great! thanks! There is no standard for doing something like this, because it's not possible. You can't hide URLs requested by the client from network monitoring. You can require authentication for specific URLs, however, using either your web server or your application server. If these FLVs are being streamed through Flash Media Server, it provides authentication functionality. If they're static FLV files, you can enable authentication on your web server, or serve the files through an application server like ColdFusion. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] secure FLV linking
hey all I was wondering what is a pretty standard way to call an FLV so its actually path isn't transparent. Like I want to call... http://www.mysite.com/myFLV.flv but I don't want people to be able to see the URL in service capture like that. I want it to be more like http://www.mysite.com/something_encrypted. Sorry i'm not sure how to say what i am looking to do but I hope this makes sense! any direction on the standard for doing something like this would be great! thanks! There is no standard for doing something like this, because it's not possible. You can't hide URLs requested by the client from network monitoring. You can require authentication for specific URLs, however, using either your web server or your application server. If these FLVs are being streamed through Flash Media Server, it provides authentication functionality. If they're static FLV files, you can enable authentication on your web server, or serve the files through an application server like ColdFusion. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Best way...
.. to debug AS3 [NOT AS2!] Is there any other Debugger then one build in Flash IDE? How do you guys Debug your Proejcts? What are the best practices in debugging? What tools should i consider? Greetings, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way...
The Flex 3 Debugger is solid. Patrick J. Jankun wrote: .. to debug AS3 [NOT AS2!] Is there any other Debugger then one build in Flash IDE? How do you guys Debug your Proejcts? What are the best practices in debugging? What tools should i consider? Greetings, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way...
I just started using LuminicBox (do a search on google for the AS3 version). And i have to say i'm quite impressed. It's a logger nd you can set the importance of messages (log, warn, error etc); You can also use the alpha version of XRAY (but icant get the connector to work in AS3) And today i came across SOS for FDT/ Eclipse, maybe you can also use it with Flash, since it makes use of a socket connection/ localconnection. Are you also using this for AIR or only for AS3? Sid On May 13, 2008, at 7:49 PM, Patrick J. Jankun wrote: .. to debug AS3 [NOT AS2!] Is there any other Debugger then one build in Flash IDE? How do you guys Debug your Proejcts? What are the best practices in debugging? What tools should i consider? Greetings, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best way...
Patrick J. Jankun wrote: Is there any other Debugger then one build in Flash IDE? How do you guys Debug your Proejcts? The FlexBuilder 3 debugger is light years ahead of the Flash debugger. There's not that steep of a learning curve going from Flash to Flex, as long as you already know AS3. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] secure FLV linking
Actually, Dave's way is much better. I am able to download the flv directly off youtube without any problems. All you need is Fiddler (IE) or Charles (Firefox) to find wich request is actually the FLV file, whether it uses it's real name or a proxy name. The rule is, if your browser can play a file, then you can download it on your computer, unless it is streamed from your server. Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: May 13, 2008 1:15 PM To: Flash Coders List Subject: Re: [Flashcoders] secure FLV linking You can't hide URL requests, but you could use a proxy script to mask the FLV names. The problem is that like YouTube's get_video.php script, you can still call this from anywhere. YouTube makes it a bit harder by adding on a variable called t that seems to change per video called - it's probably linked to your session or similar. Have a look at the sequence of headers when you load a YouTube page and you will see what I mean. It's a barrier to many, but is easily circumvented - demonstrated by the fact the people can play YouTube FLV's on their own site without the player, etc. - although this is not guaranteed to work and is often flaky, it's a good example. Anyway, google for YouTube FLV proxy or something similar for code examples. Glen Dave Watts wrote: hey all I was wondering what is a pretty standard way to call an FLV so its actually path isn't transparent. Like I want to call... http://www.mysite.com/myFLV.flv but I don't want people to be able to see the URL in service capture like that. I want it to be more like http://www.mysite.com/something_encrypted. Sorry i'm not sure how to say what i am looking to do but I hope this makes sense! any direction on the standard for doing something like this would be great! thanks! There is no standard for doing something like this, because it's not possible. You can't hide URLs requested by the client from network monitoring. You can require authentication for specific URLs, however, using either your web server or your application server. If these FLVs are being streamed through Flash Media Server, it provides authentication functionality. If they're static FLV files, you can enable authentication on your web server, or serve the files through an application server like ColdFusion. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way...
pure as3 as for now :) is there a special air debugger available in the air package? Patrick On May 13, 2008, at 8:02 PM, Sidney de Koning wrote: I just started using LuminicBox (do a search on google for the AS3 version). And i have to say i'm quite impressed. It's a logger nd you can set the importance of messages (log, warn, error etc); You can also use the alpha version of XRAY (but icant get the connector to work in AS3) And today i came across SOS for FDT/ Eclipse, maybe you can also use it with Flash, since it makes use of a socket connection/ localconnection. Are you also using this for AIR or only for AS3? Sid On May 13, 2008, at 7:49 PM, Patrick J. Jankun wrote: .. to debug AS3 [NOT AS2!] Is there any other Debugger then one build in Flash IDE? How do you guys Debug your Proejcts? What are the best practices in debugging? What tools should i consider? Greetings, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way...
Not thay i know of. I have written a AIR logger, class file an simple front end, so i dont have to call the debugger from flash everytime. It writes to a file on the file system, that you drag and drop in the front end. Give me a couple of hours and i'll put it online for the world to use. (at work now). Sid. On May 13, 2008, at 8:20 PM, Patrick J. Jankun wrote: pure as3 as for now :) is there a special air debugger available in the air package? Patrick On May 13, 2008, at 8:02 PM, Sidney de Koning wrote: I just started using LuminicBox (do a search on google for the AS3 version). And i have to say i'm quite impressed. It's a logger nd you can set the importance of messages (log, warn, error etc); You can also use the alpha version of XRAY (but icant get the connector to work in AS3) And today i came across SOS for FDT/ Eclipse, maybe you can also use it with Flash, since it makes use of a socket connection/ localconnection. Are you also using this for AIR or only for AS3? Sid On May 13, 2008, at 7:49 PM, Patrick J. Jankun wrote: .. to debug AS3 [NOT AS2!] Is there any other Debugger then one build in Flash IDE? How do you guys Debug your Proejcts? What are the best practices in debugging? What tools should i consider? Greetings, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way...
Patrick J. Jankun wrote: pure as3 as for now :) is there a special air debugger available in the air package? One more vote for the Flex debugger, even if you are just doing pure AS3 projects. -Ricky ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way...
Hi Patrick, I have put my logger online at http://www.funky-monkey.nl/blog/ It is a very simple logger so i dont have to start the debugger in flash to trace out messages. It writes a file to the desktop, which you drag and drop in the AIR front end. Any comments are more than welcome! Sidney Patrick J. Jankun wrote: pure as3 as for now :) is there a special air debugger available in the air package? Patrick On May 13, 2008, at 8:02 PM, Sidney de Koning wrote: I just started using LuminicBox (do a search on google for the AS3 version). And i have to say i'm quite impressed. It's a logger nd you can set the importance of messages (log, warn, error etc); You can also use the alpha version of XRAY (but icant get the connector to work in AS3) And today i came across SOS for FDT/ Eclipse, maybe you can also use it with Flash, since it makes use of a socket connection/localconnection. Are you also using this for AIR or only for AS3? Sid On May 13, 2008, at 7:49 PM, Patrick J. Jankun wrote: .. to debug AS3 [NOT AS2!] Is there any other Debugger then one build in Flash IDE? How do you guys Debug your Proejcts? What are the best practices in debugging? What tools should i consider? Greetings, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1430 - Release Date: 13/05/2008 07:31 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 namespace question
I posted about this before and didn't receive and answer but it is still causing me issues so I am trying again. There were some concrete answers posted to your question. Anyway, let's see if we can solve it again. Before I will try and help with your problem, I want to point out something about your code. I am not sure if you are using (in your real application) an interface which you will cast your class to: *var _lm:ILoadMe = ILoadMe(_ldr.content);* If you are using the actual class, the problem is that the whole class and it's dependencies are compiled into you main swf, defeating a big part of the purpose of loading the swf into it. In my previous reply to your earlier email I posted a Flex version of the answer. This time I created a Flash example. It is added as attachment. The attached zip file contains 2 directories. Make sure you have your webserver point to to these directories, the virtual hosts in apache: *VirtualHost *:80 ServerName domain1 DocumentRoot E:\Projects\domain1 /VirtualHost VirtualHost *:80 ServerName domain2 DocumentRoot E:\Projects\domain2 /VirtualHost* In the hosts file (if you are on windows) you need these 2 entries: *127.0.0.1 domain1 127.0.0.1 domain2* In order to test the example, call this url: *http://domain1/domain1.html* You should see this appear on your screen: *domain1.swf domain2.swf loaded Domain2Base* I hope this will solve your problem. Greetz Erik ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 namespace question
And now the attachment, hehe. Greetz Erik On 5/13/08, EECOLOR [EMAIL PROTECTED] wrote: I posted about this before and didn't receive and answer but it is still causing me issues so I am trying again. There were some concrete answers posted to your question. Anyway, let's see if we can solve it again. Before I will try and help with your problem, I want to point out something about your code. I am not sure if you are using (in your real application) an interface which you will cast your class to: *var _lm:ILoadMe = ILoadMe(_ldr.content);* If you are using the actual class, the problem is that the whole class and it's dependencies are compiled into you main swf, defeating a big part of the purpose of loading the swf into it. In my previous reply to your earlier email I posted a Flex version of the answer. This time I created a Flash example. It is added as attachment. The attached zip file contains 2 directories. Make sure you have your webserver point to to these directories, the virtual hosts in apache: *VirtualHost *:80 ServerName domain1 DocumentRoot E:\Projects\domain1 /VirtualHost VirtualHost *:80 ServerName domain2 DocumentRoot E:\Projects\domain2 /VirtualHost* In the hosts file (if you are on windows) you need these 2 entries: *127.0.0.1 domain1 127.0.0.1 domain2* In order to test the example, call this url: *http://domain1/domain1.html* You should see this appear on your screen: *domain1.swf domain2.swf loaded Domain2Base* I hope this will solve your problem. Greetz Erik ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Kilobyte Size of AS Classes
If you are using Flex Builder to compile your ActionScript project, you can use the following compiler arguments: *-link-report c:\pathToTempDirectory\link-report.xml* This file will list each class like this: *script name=E:\Projects\RichTextEditor\src\fly\utils\LinkedList.as mod=1210602181669 size=3517 optimizedsize=1743 def id=fly.utils:LinkedList / pre id=Object / dep id=flash.utils:Dictionary / dep id=AS3 / /script* As you can see it contains the size both compressed and uncompressed. Greetz Erik On 5/6/08, Ketan Anjaria [EMAIL PROTECTED] wrote: When I use the Generate Size report in the publish settings, at the end of the file it says something like ActionScript BytesLocation -- 140568ActionScript 3.0 Classes Is there a way to break this up by class? I would love to get a list of each class and how large it is. Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] centering content on stage / resizable stage
Hello again! Im quite desparate after trying to find a simply and yet efficient way to get my content always in the middle of that stage, i wrote simple script, that seems to be working when i launch the stand alone player, however when i launch it with the html wrapper and in browser, the positions are different (?!?) and i cant figure out why, this is probably very stupid, but before i just wanted to know how you ppl solve the centering / positioning problems in flash/stage my awesome script: private function positionContainer() : void { _lastBgX = _bg.x; _lastBgY = _bg.y; var halfW : Number = this.width / 2; var halfH : Number = this.height / 2; _bg.x = 0; _bg.y = 0; _bg.width = stage.stageWidth; _bg.height = stage.stageHeight; _holder.x = (stage.stageWidth / 2) - (_holder.width / 2); _holder.y = (stage.stageHeight / 2) - (_holder.height / 2); } _bg is scale, as it's a simple sprite filled with bitmapdata, just for testing, and it does what it's suppose to do, _holder is my content holder wher i put all my instances, movieclips and so on something i dont get is, if i have a class that generates something bigger then that _holder [width/height] the things starts too look strange I think i dont really get how that html wrapper works and what are the best settings for an fullscreen flash in html should i pass settings to the stage class? if yes then which makes sense? How do you ppl solve that issue? Thanks for your Help! P. -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] centering content on stage / resizable stage
Sorry if I'm missing your exact question... but I just create a swf and center it in a div like thisIt's a funky way to do it but it works DIV.container { width: 800px; left: 50%; margin-left: -400px; } On Tue, May 13, 2008 at 3:28 PM, Patrick J. Jankun [EMAIL PROTECTED] wrote: Hello again! Im quite desparate after trying to find a simply and yet efficient way to get my content always in the middle of that stage, i wrote simple script, that seems to be working when i launch the stand alone player, however when i launch it with the html wrapper and in browser, the positions are different (?!?) and i cant figure out why, this is probably very stupid, but before i just wanted to know how you ppl solve the centering / positioning problems in flash/stage my awesome script: private function positionContainer() : void { _lastBgX = _bg.x; _lastBgY = _bg.y; var halfW : Number = this.width / 2; var halfH : Number = this.height / 2; _bg.x = 0; _bg.y = 0; _bg.width = stage.stageWidth; _bg.height = stage.stageHeight; _holder.x = (stage.stageWidth / 2) - (_holder.width / 2); _holder.y = (stage.stageHeight / 2) - (_holder.height / 2); } _bg is scale, as it's a simple sprite filled with bitmapdata, just for testing, and it does what it's suppose to do, _holder is my content holder wher i put all my instances, movieclips and so on something i dont get is, if i have a class that generates something bigger then that _holder [width/height] the things starts too look strange I think i dont really get how that html wrapper works and what are the best settings for an fullscreen flash in html should i pass settings to the stage class? if yes then which makes sense? How do you ppl solve that issue? Thanks for your Help! P. -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Job Posting - YouTube Flash Engineer
YouTube, as always, is looking for experienced Flash/ActionScript engineers to work in our San Bruno, CA office. A few key points before I paste in the official job description: - We still do a ton of ActionScript 2 to reach all the stragglers still on Flash Player 7. If you've primarily been doing AS3, that's cool, but be prepared to dive back in to AS2. - We want people who are serious coders, comfortable developing on linux. - We can provide relocation assistance if you don't live in the area. --- *Flash/ActionScript Engineer, YouTube Syndication - San Bruno* *This position is based in San Bruno, CA.* The area: Engineering, YouTube Simply put, YouTube (a Google company) hires engineers that make computers do amazing things. Populated by extraordinarily creative, motivated and talented people, our Engineering team gets excited by developing new applications that really make a difference and are used by millions of people. YouTube is the leader in online video, and the premier destination to watch and share original videos worldwide through a Web experience. YouTube allows people to easily upload and share video clips on www.youtube.com and across the Internet through websites, mobile devices, blogs and email. The role: Flash/ActionScript Engineer, YouTube Syndication Want to write code that will be used by millions of people worldwide every day? We're looking for talented Flash Engineers to work on features for YouTube's Flash video players and other components. The YouTube Syndication team is focused on enabling YouTube's content and community to be experienced anywhere there is a screen and an internet connection, and embeddable Flash components are a critical part of that process. Flash engineers work with product management, UI designers and visual designers to conceive, architect and build new Flash applications as well as extend and enhance our existing players. Responsibilities: - Design and implement Flash-based gadgets and applications for web sites and embedded devices. - Enhance the embeddable YouTube players to enable deeper integration on third party websites. - Mentor other engineers in Flash and ActionScript development. Requirements: - BS in Computer Science or equish and object-oriented ActionScript 2.0 or 3.0 (experience with client-server interactions (Flash remoting, Flash Communication Server, XML requests) a plus).valent experience. - 3+ years of software engineering experience in Flash and object-oriented ActionScript 2.0 or 3.0. - Experience with client-server interactions (Flash remoting, Flash Communication Server, XML requests) a plus. - Familiar with version control systems (e.g. Perforce, SVN, etc). - Comfortable coding without the Flash IDE. - Experience in web development (HTML, CSS, AJAX, Javascript) preferred. - Software engineering experience in C/C++, Java or Python preferred. --- The online job posting is at http://www.google.com/support/jobs/bin/answer.py?answer=95439. Please reply directly to me, off-list, if you're interested or would like more information. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders