RE: [Flashcoders] getting the width of a movieclip
Wait for the clip to be completely loaded before you check it's width. >>Patience has never been one of my strong points. Think of it this way, you don't measure the size of the baby when it's only halfway out. :) Jason Merrill Bank of America Instructional Technology & Media · GCIB & Staff Support L&LD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] getting the width of a movieclip
On Dec 12, 2008, at 2:28 PM, Merrill, Jason wrote: Wait for the clip to be completely loaded before you check it's width. Patience has never been one of my strong points. On Dec 12, 2008, at 2:36 PM, Cor wrote: So you should add an eventlistener Event.COMPLETE to catch when it is all loaded and then position it. My thanks to you and Jason. I'll get this puzzled out yet (and hopefully quit pestering the list w/ such basic stuff). William -- William Adams senior graphic designer Fry Communications ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] getting the width of a movieclip
So you should add an eventlistener Event.COMPLETE to catch when it is all loaded and then position it. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of William Adams Sent: vrijdag 12 december 2008 20:27 To: Flash Coders List Subject: [Flashcoders] getting the width of a movieclip Given the code: var firstImage:Loader = new Loader(); var empty_mc:MovieClip=new MovieClip(); var url:URLRequest = new URLRequest(); addChild(empty_mc); url = new URLRequest("test.jpg"); firstImage.load(url); firstImage.x = 10; firstImage.y = 10; empty_mc.addChild(firstImage); why does trace (empty_mc.width); yield 0? and what do I have to do to get the image centered along the lines of: empty_mc.x = 70-(empty_mc.width/2); Thanks! William -- William Adams senior graphic designer Fry Communications ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.17/1845 - Release Date: 12-12-2008 9:02 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] getting the width of a movieclip
William, It is possible that your trace is done while your load is not. Because Flash is a-synchroon. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of William Adams Sent: vrijdag 12 december 2008 20:27 To: Flash Coders List Subject: [Flashcoders] getting the width of a movieclip Given the code: var firstImage:Loader = new Loader(); var empty_mc:MovieClip=new MovieClip(); var url:URLRequest = new URLRequest(); addChild(empty_mc); url = new URLRequest("test.jpg"); firstImage.load(url); firstImage.x = 10; firstImage.y = 10; empty_mc.addChild(firstImage); why does trace (empty_mc.width); yield 0? and what do I have to do to get the image centered along the lines of: empty_mc.x = 70-(empty_mc.width/2); Thanks! William -- William Adams senior graphic designer Fry Communications ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.17/1845 - Release Date: 12-12-2008 9:02 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3 - load an external graphic into a movieclip?
>> Thanks! That's working (now I just need to learn all the differences like scaleY for _yscale &c.) Here's the perfect read and print for you: http://actionscriptcheatsheet.com/blog/ Click on downloads on the right side and check out the AS3 Migration cheat sheet. Jason Merrill Bank of America Instructional Technology & Media · GCIB & Staff Support L&LD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] getting the width of a movieclip
Wait for the clip to be completely loaded before you check it's width. Jason Merrill Bank of America Instructional Technology & Media · GCIB & Staff Support L&LD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of William Adams Sent: Friday, December 12, 2008 2:27 PM To: Flash Coders List Subject: [Flashcoders] getting the width of a movieclip Given the code: var firstImage:Loader = new Loader(); var empty_mc:MovieClip=new MovieClip(); var url:URLRequest = new URLRequest(); addChild(empty_mc); url = new URLRequest("test.jpg"); firstImage.load(url); firstImage.x = 10; firstImage.y = 10; empty_mc.addChild(firstImage); why does trace (empty_mc.width); yield 0? and what do I have to do to get the image centered along the lines of: empty_mc.x = 70-(empty_mc.width/2); Thanks! William -- William Adams senior graphic designer Fry Communications ___ 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] getting the width of a movieclip
Given the code: var firstImage:Loader = new Loader(); var empty_mc:MovieClip=new MovieClip(); var url:URLRequest = new URLRequest(); addChild(empty_mc); url = new URLRequest("test.jpg"); firstImage.load(url); firstImage.x = 10; firstImage.y = 10; empty_mc.addChild(firstImage); why does trace (empty_mc.width); yield 0? and what do I have to do to get the image centered along the lines of: empty_mc.x = 70-(empty_mc.width/2); Thanks! William -- William Adams senior graphic designer Fry Communications ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 - load an external graphic into a movieclip?
On Dec 12, 2008, at 12:18 PM, Ian Thomas wrote: Your empty_mc.addChild(firstImage) is right... what you're missing is that this line: addChild(firstImage); should be: addChild(empty_mc); Thanks! That's working (now I just need to learn all the differences like scaleY for _yscale &c.) William -- William Adams senior graphic designer Fry Communications ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Has anyone been involved in a project that needed an Open Screen Project license?
Hi list, Appologies for the long-weird title. Here's the thing: I'm involved in a project that requires embedding/distributing the Flash player alongside a device that has an interface in Flash. Since Adobe launched the Open Screen Project not long ago and that it was specifically made for this purpose, I was wondering if anyone on the list has gone through process of applying for a license: http://www.openscreenproject.org/partners/apply.html Does it take long? Do they ask many questions? Do you get an SDK or do you just grab installers/runtimes from the official site once you get the green light? What does Adobe require in terms of Adobe/Flash/AIR branding? Specifically I find this very vague: "[partners must] Publicly support the Open Screen Project" Please note that this is a 100% legitimate project and that my client WILL apply for the license, I'm just trying to get some information in advance. Thanks! Juan -- Juan Delgado - Zárate http://zarate.tv http://dandolachapa.com http://loqueyosede.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 - load an external graphic into a movieclip?
Your empty_mc.addChild(firstImage) is right... what you're missing is that this line: addChild(firstImage); should be: addChild(empty_mc); HTH, Ian On Fri, Dec 12, 2008 at 5:10 PM, William Adams wrote: > I'm trying to create a new project in ActionScript 3 in Flash CS3. I have > the code: > > var firstImage:Loader = new Loader(); > var empty_mc:MovieClip=new MovieClip(); > var url:URLRequest = new URLRequest(); > > addChild(firstImage); > url = new URLRequest("test.jpg"); > firstImage.load(url); > firstImage.x = 10; > firstImage.y = 10; > //empty_mc.addChild(firstImage); > //empty_mc.x = 150; > //empty_mc.alpha = 50; > > stop(); > > and it works until I uncomment the empty_mc stuff --- what I want to do is > put firstImage into a movieclip so that I can control its yscale, alpha &c. > for animation purposes, but I'm just not getting how one does this. > > I've tried lots of variations: > > empty_mc.addChild(new MovieClip(firstImage)); > > empty_mc.addChild(firstImage) as MovieClip; > > and other variations I should probably be embarrassed to show --- how does > one load an image (eventually from a server) into a movie clip? > > William > > -- > William Adams > senior graphic designer > Fry Communications > > > ___ > 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] AS3 - load an external graphic into a movieclip?
addChild(empty_mc); -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of William Adams Sent: vrijdag 12 december 2008 18:10 To: Flash Coders List Subject: [Flashcoders] AS3 - load an external graphic into a movieclip? I'm trying to create a new project in ActionScript 3 in Flash CS3. I have the code: var firstImage:Loader = new Loader(); var empty_mc:MovieClip=new MovieClip(); var url:URLRequest = new URLRequest(); addChild(firstImage); url = new URLRequest("test.jpg"); firstImage.load(url); firstImage.x = 10; firstImage.y = 10; //empty_mc.addChild(firstImage); //empty_mc.x = 150; //empty_mc.alpha = 50; stop(); and it works until I uncomment the empty_mc stuff --- what I want to do is put firstImage into a movieclip so that I can control its yscale, alpha &c. for animation purposes, but I'm just not getting how one does this. I've tried lots of variations: empty_mc.addChild(new MovieClip(firstImage)); empty_mc.addChild(firstImage) as MovieClip; and other variations I should probably be embarrassed to show --- how does one load an image (eventually from a server) into a movie clip? William -- William Adams senior graphic designer Fry Communications ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.17/1845 - Release Date: 12-12-2008 9:02 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 - load an external graphic into a movieclip?
I'm trying to create a new project in ActionScript 3 in Flash CS3. I have the code: var firstImage:Loader = new Loader(); var empty_mc:MovieClip=new MovieClip(); var url:URLRequest = new URLRequest(); addChild(firstImage); url = new URLRequest("test.jpg"); firstImage.load(url); firstImage.x = 10; firstImage.y = 10; //empty_mc.addChild(firstImage); //empty_mc.x = 150; //empty_mc.alpha = 50; stop(); and it works until I uncomment the empty_mc stuff --- what I want to do is put firstImage into a movieclip so that I can control its yscale, alpha &c. for animation purposes, but I'm just not getting how one does this. I've tried lots of variations: empty_mc.addChild(new MovieClip(firstImage)); empty_mc.addChild(firstImage) as MovieClip; and other variations I should probably be embarrassed to show --- how does one load an image (eventually from a server) into a movie clip? William -- William Adams senior graphic designer Fry Communications ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] strange textfield behaviour in browser
yes luck is an important quality for developpers and goal keepers. :) Hans Wichman a écrit : http://bugs.adobe.com/jira/browse/FP-479 ;) At least I think that was it, lucky guess tbfh, but hey you've got to have luck sometimes now don't we :) On Thu, Dec 11, 2008 at 8:59 PM, laurent wrote: !!!yes...wmode='normal' fixed it. do you know why ?? it was french keyboard thank you! L Hans Wichman a écrit : Hi, I can enter my email in the bottom textfield, win xp sp2, ie,player10. Ar you using a non english keyboard? And what happens when you turn wmode transparent off? greetz JC On Thu, Dec 11, 2008 at 3:46 PM, laurent wrote: Hi, The weird thing is that upper case work, the player in browser get the SHIFT is pressed but does not want to apply it's effect on certain keyboard buttons. So fare we have seen the bug on firefox, IE, safari player 9 and 10 windows laptop with wmode = transparent hm I guess people can check here on the platform we have not tested, ...like mac..:) http://240plan.ovh.net/~frenchda/index2.php down right menu: 'MON COMPTE' you have a email texfield, try to write you one ;) L Hans Wichman a écrit : Hi, ok I misunderstood the problem at first, thinking you were trying to detect shift keypress, but the whole textfield breaks... that is weird. Which browser are you testing it in? Does it break in all browsers? But plays fine in the IDE... any difference in player version? Are you using firefox with wmode transparent? greetz JC On Thu, Dec 11, 2008 at 12:38 PM, laurent wrote: Hi JC, Thanks for the reply. Hm no effect. Actually I noticed this bug only on laptop running windows. My team member running all on mac, laptop and boxes did not notice this horrible bug :( L Hans Wichman a écrit : Hi, does trapallkeys make any difference? greetz JC On Thu, Dec 11, 2008 at 11:05 AM, laurent wrote: Hi list, I made some form in my app and the textfields work fine on local from the flash ide. But when the site is in the browser the texfield don't recognise that the shift key is press. So on a french laptop you can't type numbers or @. This behavior is so strange that i don't know where to look. Anyone ever got that problem ?? thanks Laurent ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders