Re: [Flashcoders] Re: Dynamically resize Flash

2009-01-19 Thread Joel Stransky
I fixed my issue for those who care. I consists of a mix of the first two
examples posted in this thread. I placed my flashcontent div inside a
container div. The width and height passed to swfobject are both 100% and
the container div is set to the intended width and height. I then passed the
container id to BrowserCanvas instead of the flashcontent id as well as
passing an empty array for the browser hacks param.

Your canvas object allows you to set width and height separately but still
updates both dimensions when either setter is called. For some reason this
causes FF for mac to consider the other dimension as 0. The fix for this was
setting both properties everytime even if one never changes.

On Mon, Jan 19, 2009 at 2:05 PM, Joel Stransky wrote:

> Hmm, I'm using BrowserCanvas in my current project and having zero issues
> aside from it breaking swfaddress in IE7. Otherwise works fine in Safari and
> FF for mac and IE6/FF for windows.
>
>
> On Mon, Jan 19, 2009 at 10:27 AM, allandt bik-elliott (thefieldcomic.com)
>  wrote:
>
>> isn't there a bit of wierdness in firefox where, if you want it to be 100%
>> width / height of the window, you need to add it to the css and apply it
>> to
>> the swfobject targetted div?
>>
>> On Mon, Jan 19, 2009 at 1:56 PM, Romuald Quantin <
>> soundstep.mail...@googlemail.com> wrote:
>>
>> > I sent to the BrowserCanvas developer the IE error months ago, I guess
>> he
>> > didn't find a solution if he didn't update his library.
>> >
>> > I've been asked for this some months ago but we've ended up to build a
>> > flash scrollbar instead... if I may ask, what makes you choose a browser
>> > scrollbar for a flash content? Because in my case, having something
>> solid
>> > without cross-browsing issue made me build a flash scrollbar.
>> >
>> > Romu
>> > www.soundstep.com
>> >
>> >
>> >
>> > confustic...@gmail.com wrote:
>> >
>> >> Sorry List.
>> >>
>> >> I really am all kinds of idiot. What I said below about BrowserCanvas
>> is
>> >> incorrect. It takes the containerId as a parameter ... which was
>> >> immediately
>> >> obvious from reading the documentation! Apologies. Now, to work out
>> what's
>> >> causing the IE error ...
>> >>
>> >> I am still interested in any comments regarding the Mustard Lab Resize
>> >> Flash
>> >> with SWFObject issue though.
>> >>
>> >> Humbly,
>> >>
>> >> CB.
>> >>
>> >> On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com <
>> >> confustic...@gmail.com> wrote:
>> >>
>> >>
>> >>
>> >>> Hi List,
>> >>>
>> >>> Does anyone have a bulletproof method for dynamically resizing your
>> SWFs
>> >>> from within the SWF? eg, if you have SWFs which have expandable
>> vertical
>> >>> content that sit within the flow of an HTML page. Something like this:
>> >>> http://2mdc.com/resizableFlash/
>> >>>
>> >>> I have tried doesnotcompute's lovely BrowserCanvas (
>> >>>
>> >>>
>> http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html
>> )
>> >>> and
>> >>> found that it only works for 1 SWF per page. (It always resizes the
>> first
>> >>> SWF, no matter which SWF needs resizing.)
>> >>>
>> >>> I have also tried the wonderful Mustard Lab Resize Flash technique (
>> >>> http://www.mustardlab.com/developer/flash/objectresize/) - however,
>> to
>> >>> my
>> >>> surprise I couldn't get it working with properly SWFObject in IE6 and
>> >>> Safari. It works fine in FF and IE7. I found that, while the
>> containing
>> >>> DIV
>> >>> was resized appropriately, the Flash height (set to 100%) was not
>> filling
>> >>> up
>> >>> the DIV. I'm still not sure why this is; it works if the SWF is placed
>> on
>> >>> the page using JavaScript to write out the tags (which is how it is
>> >>> implemented by Mustard Lab). Unfortunately it does need to work with
>> >>> SWFObject.
>> >>>
>> >>> Any ideas would be much appreciated,
>> >>>
>> >>> Cheers,
>> >>> CB.
>> >>>
>> >>>
>> >>>
>> >> ___
>> >> 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
>>
>
>
>
> --
> --Joel Stransky
> stranskydesign.com
>



-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Dynamically resize Flash ...

2009-01-19 Thread SJF
I can't assist at this point, but thanks for sharing. I was looking for
something similar a year or so ago and had no luck.

I first saw this technique on a Polish insurance site that was site of the
week (or similar) on ultrashock a few years back.

Awesome, thanks again. Will come in very handy.

SF.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Algorithm for distributing labels along a timeline without overlapping

2009-01-19 Thread Dale Bradshaw
spring embedder layout might work.





> All,
> 
> [Sorry if this is a repost... some email issues today...]
> 
> Hope I can phrase this question clearly...
> 
> I'm working on an application that will display a visual timeline with
> a vertical orientation.
> 
> At various points along the timeline, it will display key
> markers/milestones. Each one of these markers will have a label.
> 
> The problem arises when several milestones are bunched together. If I
> draw the label for each marker at the exact y coordinate that
> corresponds with that particular point in time, the labels will
> overlap, and are unreadable.
> 
> One obvious solution is to stack the labels horizontally, but because
> of the particular layout of this application, that's not possible.
> 
> So, what I need is an algorithm that will nudge the Y coordinate of
> various labels just enough to get everything to fit. Then, I'll draw a
> hairline from the label to the exact Y coordinate on the timeline that
> it's associated with.
> 
> I could start with the top label, and then step through each label
> below, moving them each down enough to remove overlaps. But that could
> result in a lot more moving than necessary, and won't use space
> optimally. A better solution would be one that moves some up, some
> down, to minimize the total distance.
> 
> Here's an exact example of what I'm trying to accomplish:
> http://www.smartmoney.com/fundanalyzer/
> 
> Is anyone aware of an algorithm that does something like this?
> 
> Many thanks in advance for any insights or advice!
> 
> Cheers,
> Matt
> ___
> 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] Pixel Bender source for page turn?

2009-01-19 Thread Eric E. Dolecki
Hey all, I am looking for PB source to distort a displayObject like a page
turn, only from the top to bottom instead of side to side.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Dynamically resize Flash

2009-01-19 Thread Joel Stransky
Hmm, I'm using BrowserCanvas in my current project and having zero issues
aside from it breaking swfaddress in IE7. Otherwise works fine in Safari and
FF for mac and IE6/FF for windows.

On Mon, Jan 19, 2009 at 10:27 AM, allandt bik-elliott (thefieldcomic.com) <
alla...@gmail.com> wrote:

> isn't there a bit of wierdness in firefox where, if you want it to be 100%
> width / height of the window, you need to add it to the css and apply it to
> the swfobject targetted div?
>
> On Mon, Jan 19, 2009 at 1:56 PM, Romuald Quantin <
> soundstep.mail...@googlemail.com> wrote:
>
> > I sent to the BrowserCanvas developer the IE error months ago, I guess he
> > didn't find a solution if he didn't update his library.
> >
> > I've been asked for this some months ago but we've ended up to build a
> > flash scrollbar instead... if I may ask, what makes you choose a browser
> > scrollbar for a flash content? Because in my case, having something solid
> > without cross-browsing issue made me build a flash scrollbar.
> >
> > Romu
> > www.soundstep.com
> >
> >
> >
> > confustic...@gmail.com wrote:
> >
> >> Sorry List.
> >>
> >> I really am all kinds of idiot. What I said below about BrowserCanvas is
> >> incorrect. It takes the containerId as a parameter ... which was
> >> immediately
> >> obvious from reading the documentation! Apologies. Now, to work out
> what's
> >> causing the IE error ...
> >>
> >> I am still interested in any comments regarding the Mustard Lab Resize
> >> Flash
> >> with SWFObject issue though.
> >>
> >> Humbly,
> >>
> >> CB.
> >>
> >> On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com <
> >> confustic...@gmail.com> wrote:
> >>
> >>
> >>
> >>> Hi List,
> >>>
> >>> Does anyone have a bulletproof method for dynamically resizing your
> SWFs
> >>> from within the SWF? eg, if you have SWFs which have expandable
> vertical
> >>> content that sit within the flow of an HTML page. Something like this:
> >>> http://2mdc.com/resizableFlash/
> >>>
> >>> I have tried doesnotcompute's lovely BrowserCanvas (
> >>>
> >>>
> http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html
> )
> >>> and
> >>> found that it only works for 1 SWF per page. (It always resizes the
> first
> >>> SWF, no matter which SWF needs resizing.)
> >>>
> >>> I have also tried the wonderful Mustard Lab Resize Flash technique (
> >>> http://www.mustardlab.com/developer/flash/objectresize/) - however, to
> >>> my
> >>> surprise I couldn't get it working with properly SWFObject in IE6 and
> >>> Safari. It works fine in FF and IE7. I found that, while the containing
> >>> DIV
> >>> was resized appropriately, the Flash height (set to 100%) was not
> filling
> >>> up
> >>> the DIV. I'm still not sure why this is; it works if the SWF is placed
> on
> >>> the page using JavaScript to write out the tags (which is how it is
> >>> implemented by Mustard Lab). Unfortunately it does need to work with
> >>> SWFObject.
> >>>
> >>> Any ideas would be much appreciated,
> >>>
> >>> Cheers,
> >>> CB.
> >>>
> >>>
> >>>
> >> ___
> >> 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
>



-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Dynamically resize Flash

2009-01-19 Thread allandt bik-elliott (thefieldcomic.com)
isn't there a bit of wierdness in firefox where, if you want it to be 100%
width / height of the window, you need to add it to the css and apply it to
the swfobject targetted div?

On Mon, Jan 19, 2009 at 1:56 PM, Romuald Quantin <
soundstep.mail...@googlemail.com> wrote:

> I sent to the BrowserCanvas developer the IE error months ago, I guess he
> didn't find a solution if he didn't update his library.
>
> I've been asked for this some months ago but we've ended up to build a
> flash scrollbar instead... if I may ask, what makes you choose a browser
> scrollbar for a flash content? Because in my case, having something solid
> without cross-browsing issue made me build a flash scrollbar.
>
> Romu
> www.soundstep.com
>
>
>
> confustic...@gmail.com wrote:
>
>> Sorry List.
>>
>> I really am all kinds of idiot. What I said below about BrowserCanvas is
>> incorrect. It takes the containerId as a parameter ... which was
>> immediately
>> obvious from reading the documentation! Apologies. Now, to work out what's
>> causing the IE error ...
>>
>> I am still interested in any comments regarding the Mustard Lab Resize
>> Flash
>> with SWFObject issue though.
>>
>> Humbly,
>>
>> CB.
>>
>> On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com <
>> confustic...@gmail.com> wrote:
>>
>>
>>
>>> Hi List,
>>>
>>> Does anyone have a bulletproof method for dynamically resizing your SWFs
>>> from within the SWF? eg, if you have SWFs which have expandable vertical
>>> content that sit within the flow of an HTML page. Something like this:
>>> http://2mdc.com/resizableFlash/
>>>
>>> I have tried doesnotcompute's lovely BrowserCanvas (
>>>
>>> http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html)
>>> and
>>> found that it only works for 1 SWF per page. (It always resizes the first
>>> SWF, no matter which SWF needs resizing.)
>>>
>>> I have also tried the wonderful Mustard Lab Resize Flash technique (
>>> http://www.mustardlab.com/developer/flash/objectresize/) - however, to
>>> my
>>> surprise I couldn't get it working with properly SWFObject in IE6 and
>>> Safari. It works fine in FF and IE7. I found that, while the containing
>>> DIV
>>> was resized appropriately, the Flash height (set to 100%) was not filling
>>> up
>>> the DIV. I'm still not sure why this is; it works if the SWF is placed on
>>> the page using JavaScript to write out the tags (which is how it is
>>> implemented by Mustard Lab). Unfortunately it does need to work with
>>> SWFObject.
>>>
>>> Any ideas would be much appreciated,
>>>
>>> Cheers,
>>> CB.
>>>
>>>
>>>
>> ___
>> 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] Re: Dynamically resize Flash

2009-01-19 Thread Romuald Quantin
I sent to the BrowserCanvas developer the IE error months ago, I guess 
he didn't find a solution if he didn't update his library.


I've been asked for this some months ago but we've ended up to build a 
flash scrollbar instead... if I may ask, what makes you choose a browser 
scrollbar for a flash content? Because in my case, having something 
solid without cross-browsing issue made me build a flash scrollbar.


Romu
www.soundstep.com


confustic...@gmail.com wrote:

Sorry List.

I really am all kinds of idiot. What I said below about BrowserCanvas is
incorrect. It takes the containerId as a parameter ... which was immediately
obvious from reading the documentation! Apologies. Now, to work out what's
causing the IE error ...

I am still interested in any comments regarding the Mustard Lab Resize Flash
with SWFObject issue though.

Humbly,

CB.

On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com <
confustic...@gmail.com> wrote:

  

Hi List,

Does anyone have a bulletproof method for dynamically resizing your SWFs
from within the SWF? eg, if you have SWFs which have expandable vertical
content that sit within the flow of an HTML page. Something like this:
http://2mdc.com/resizableFlash/

I have tried doesnotcompute's lovely BrowserCanvas (
http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html)
 and
found that it only works for 1 SWF per page. (It always resizes the first
SWF, no matter which SWF needs resizing.)

I have also tried the wonderful Mustard Lab Resize Flash technique (
http://www.mustardlab.com/developer/flash/objectresize/) - however, to my
surprise I couldn't get it working with properly SWFObject in IE6 and
Safari. It works fine in FF and IE7. I found that, while the containing DIV
was resized appropriately, the Flash height (set to 100%) was not filling up
the DIV. I'm still not sure why this is; it works if the SWF is placed on
the page using JavaScript to write out the tags (which is how it is
implemented by Mustard Lab). Unfortunately it does need to work with
SWFObject.

Any ideas would be much appreciated,

Cheers,
CB.



___
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