[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 http://chattyfig.figleaf.com/mailman/listinfo/fl

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 List

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 http://chattyfig.figleaf.com/mailman/listinfo/flashcoder

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] O

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 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 > show. > > > Best

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: flashcoders-boun...@chattyfig.figlea

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 setti

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 Kevi

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 =   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 wrote: > Eric, > > Thank you! > That's exactly the problem. > I don't know how

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 around

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 = You can even do that completely from within flash: function onResizeHandler(event:Event):void { if (ExternalInterface.available) ExternalInterface.call("function(){document.getElementById('

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 = You can even do that completely from within flash: function onResizeHandler(event:Event):void { if (ExternalInterface.available) ExternalInterface.call("function(){document.getEle

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 = You can even do that completely from within flash: function onResizeHandler(event:Even

[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 http://ch

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: ht

[Flashcoders] ASyncToken - How does it work / Alternatives

2011-06-30 Thread Ben Sand
We have a lot of client-server communication going on and want the right responses to match up. We Currently using URLLoader + URLRequest to send/receive XML from a Ruby on Rails (v3) server. We want to keep doing that, until JSON is nice in Flash (v11?), and we don't plan to us AMF, etc. We use R