[Flashcoders] scrolling webpage with flash

2011-06-30 Thread Cor
I am creating a flash site but need it to be dynamic in height so it is scrollable. So I need to extend the stage height to the content so the html is scrolling? How do I need to set this in Flash/Actionscript 3.0??? TIA, Cor ___ Flashcoders mailing

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Henrik Andersson
Set the embeding code to use a dynamic size, such as 100 %. Then use the Stage.stageWidth and Stage.stageHeight properties to do your layout. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Cor
Thanks Hendrik. By embedding code, you mean in Publish setting?? Best regards, Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson Sent: donderdag 30 juni 2011 17:06 To: Flash Coders

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Matt S.
Not sure what you need exactly, but SWFFit is a nice little utility for various flash resizing needs: http://swffit.millermedeiros.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Cor
I need loaded content to be able to grow within my SWF to any height. If this overshoots the html-height then the scrollbar of the browser will show. Best regards, Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com]

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Matt S.
then you should definitely check out SWFFIT, that can do what you're looking for. .m On Thu, Jun 30, 2011 at 11:38 AM, Cor c...@chello.nl wrote: I need loaded content to be able to grow within my SWF to any height. If this overshoots the html-height then the scrollbar of the browser will

RE: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Cor
Thanks Matt, Swffit works fine... when resizing the browser, but my issue is that the browser is never resized, but the content in the swf grows dynamically. So I would like to get my swf-dimensions variable. Best regards, Cor -Original Message- From:

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Kevin Newman
It sounds like you would need to use ExternalInterface and JavaScript to resize your HTML container for the swf. I'd suggest wrapping the swf container (whatever embedding solution you are using) in a div, setting your swf container (object/embed tag, swfobject, or whatever) to 100%, and

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Eric E. Dolecki
I think I know what you want. Have your app calculate how high it needs to be, then call out using javascript to a method which changes the dimensions of a div, where your SWF embed is made at 100%. It can keep calling that method. Just make sure your SWF has noScale, etc. set within it. I've done

RE: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Cor
Thanks Kevin! I understand what you are saying, but I have no ideas how to do this. Can you be more specific or perhaps some example? Best regards, Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of

RE: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Cor
Eric, Thank you! That's exactly the problem. I don't know how to do this in javascript, etc. Best regards, Cor van Dooren www.codobyte.com -- There are only 10 types of people in the world: Those who understand binary and those

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Eric E. Dolecki
document.getElementById(divName).style.height = valPassedByFlash   Google Voice: (508) 656-0622   Twitter: eric_dolecki      XBoxLive: edolecki      PSN: eric_dolecki   http://blog.ericd.net On Thu, Jun 30, 2011 at 4:36 PM, Cor c...@chello.nl wrote: Eric, Thank you! That's exactly the

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Matt S.
Yeah, it can be used for that, I think in combination with some JS/externalInterface. I did it a while ago, can't remember the exact code, I'll try and dig it up later. But I was able to do exactly what you're looking for, using SWFFit. On http://interviewproject.davidlynch.com, if you click

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Kevin Newman
On 6/30/11 4:40 PM, Eric E. Dolecki wrote: document.getElementById(divName).style.height =valPassedByFlash You can even do that completely from within flash: function onResizeHandler(event:Event):void { if (ExternalInterface.available)

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Henrik Andersson
Kevin Newman skriver: On 6/30/11 4:40 PM, Eric E. Dolecki wrote: document.getElementById(divName).style.height =valPassedByFlash You can even do that completely from within flash: function onResizeHandler(event:Event):void { if (ExternalInterface.available)

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Kevin Newman
I sure hope they don't nerf it. :-) Kevin N. On 6/30/11 5:32 PM, Henrik Andersson wrote: Kevin Newman skriver: On 6/30/11 4:40 PM, Eric E. Dolecki wrote: document.getElementById(divName).style.height =valPassedByFlash You can even do that completely from within flash: function

[Flashcoders] DisplayObject - SVG lib?

2011-06-30 Thread artur
i would like to export a DisplayObject - SVG - ImageMagik unfortunately the standard swf-jpg export has size and resolution limitations. any nice libs out there? thanks! artur ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] DisplayObject - SVG lib?

2011-06-30 Thread David Hunter
I did something similar before, but we just had parameters passing into a python backend that recreated all the graphics. I googled as3 save svg but no idea if the below works. As the guy says you'd still need to send it to something like php to save it on server if your project is web-based: