Re: [flexcoders] How do I get the browser's height and width?

2009-09-16 Thread Bob Wohl
You pretty much have to get it using JS.
hth!
B.

On Wed, Sep 16, 2009 at 5:02 PM, luvfotography 
ygro...@all-digital-links.com wrote:



 How do I get the browser's height and width,
 not the swf's height and width, but the browser's height and width,
 can I get it without using javascript (external interface)?
 thanks,

  



Re: [flexcoders] Who else is here - SharedObjects?

2009-07-17 Thread Bob Wohl
Look at remote shared objects on FMIS. You would store the clients via
rso, and anytime some one would enter or leave you'd add the client
name or match and remove client on exit, that would update the list on
all clients (on change). I'm not sure how you'd do this via LCDS/Blaze
sicne I haven't done this in a while.

B.

On Fri, Jul 10, 2009 at 6:50 AM, Wally Kolczwko...@isavepets.com wrote:


 I want to do a conference room application for work and would like to show
 who else is logged in and in the 'room'. I was thinking that SharedObjects
 would be the way to go, but after doing a little research, it doesn't seem
 that is the way it works. Is there a way for a Flex/LCDS application to
 'see' who all is on or logged in to be able to create a list of people.
 Similar to a traditional chat room setting? Thanks!

 


Re: [flexcoders] Access FormItem child

2009-05-22 Thread Bob Wohl
Actionscript.

On Fri, May 22, 2009 at 1:01 PM, markgoldin_2000
markgoldin_2...@yahoo.com wrote:


 If I have a FormItem like this:
 ?xml version=1.0 encoding=utf-8?
 mx:FormItem xmlns:mx=http://www.adobe.com/2006/mxml;
 width=100% height=100% direction=horizontal
 mx:TextInput id=username/
 mx:Button width=22 icon=@Embed(source='../assets/find.png') id=find
 /mx:Button
 /mx:FormItem

 then in another mxml fil where I am using that component:
 userLookUp
 /userLookUp

 is there a way of accessing username via markup tags? Or it's only via AS?

 Thanks

 


[flexcoders] labelFunction on BarSeries not firing

2009-02-26 Thread Bob Wohl
Hello all,
I'm not to sure why this isn't firing. I've broke this down to the simplest
of forms and even used some very basic examples to reproduce. For some
reason the labelfunctiojn never gets hit, maybe I'm missing something very
simple. My stacked charts and pie charts fire just fine, seems to only be
the bar chart that I'm having this issue with. Any Ideas would be much
appreciated.
code :
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Script![CDATA[
  import mx.charts.ChartItem;
import mx.charts.chartClasses.Series;
   import mx.collections.ArrayCollection;
 [Bindable]
 public var expenses:ArrayCollection = new ArrayCollection([
{Month:Jan, Profit:2000, Expenses:1500},
{Month:Feb, Profit:1000, Expenses:200},
{Month:Mar, Profit:1500, Expenses:500}
 ]);
private function myLabelFunction(element:ChartItem, series:Series):String {
trace(should fire)
var str:String = hello!
return str;
}
   ]]/mx:Script
mx:BarChart id=theChart dataProvider={expenses} showDataTips=true
width=780
 mx:verticalAxis
mx:CategoryAxis categoryField=Month /
/mx:verticalAxis
mx:series
mx:BarSeries labelFunction=myLabelFunction yField=Month
xField=Profit/
/mx:series
/mx:BarChart
/mx:Application



Thanks in Advance!
B.


Re: [flexcoders] labelFunction on BarSeries not firing

2009-02-26 Thread Bob Wohl
Ah! good point, I completely overlooked that!

Yes, it was good time. Nice seeing some new faces. :)

Thanks Ryan!
B.

On Thu, Feb 26, 2009 at 12:16 PM, Ryan Graham ryan.gra...@phoenix.eduwrote:

Hey Bob,



 Good meeting you at the AZFPUG meeting last night.



 Looks like labelPosition defaults to “none” on a BarSeries. Try setting
 that to something else:



 mx:BarSeries labelFunction=myLabelFunction labelPosition=outside
 yField=Month xField=Profit/



 HTH,

 Ryan



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Bob Wohl
 *Sent:* Thursday, February 26, 2009 11:57 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] labelFunction on BarSeries not firing



 Hello all,



 I'm not to sure why this isn't firing. I've broke this down to the simplest
 of forms and even used some very basic examples to reproduce. For some
 reason the labelfunctiojn never gets hit, maybe I'm missing something very
 simple. My stacked charts and pie charts fire just fine, seems to only be
 the bar chart that I'm having this issue with. Any Ideas would be much
 appreciated.



 code :

 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

   mx:Script![CDATA[

 import mx.charts.ChartItem;

 import mx.charts.chartClasses.Series;

 import mx.collections.ArrayCollection;

 [Bindable]

 public var expenses:ArrayCollection = new
 ArrayCollection([

{Month:Jan, Profit:2000, Expenses:1500},

{Month:Feb, Profit:1000, Expenses:200},

{Month:Mar, Profit:1500, Expenses:500}

 ]);

 private function
 myLabelFunction(element:ChartItem, series:Series):String {

 trace(should fire)

var str:String = hello!

return str;

 }

 ]]/mx:Script

 mx:BarChart id=theChart dataProvider={expenses}
 showDataTips=true width=780

 mx:verticalAxis

 mx:CategoryAxis categoryField=Month /

 /mx:verticalAxis

 mx:series

 mx:BarSeries labelFunction=myLabelFunction yField=Month
 xField=Profit/

 /mx:series

 /mx:BarChart

 /mx:Application







 Thanks in Advance!

 B.





  This message is private and confidential. If you have received it in
 error, please notify the sender and remove it from your system.

  



[flexcoders] Mouse events from Axis Label- charts

2009-02-04 Thread Bob Wohl
Hello,
I'm trying to figure out how to click on horizontal axis labels (using
DateTimeAxis). I can use a MouseEvent.CLICK and check it's
event.target.parent.placement to verify that it's the right axis and then
access it's text but this seems like a hack. I can't add mouse functionality
to it(roll over, out, show hand cursor etc.). What is the proper way to make
an axis label clickable? Also, I am building these charts with actionscript
and not mxml.

Thanks in advance,
B.


Re: [flexcoders] Stop Scaling scrollThumb - skinning

2008-04-28 Thread Bob Wohl
Well this could definitely work in a solo dev environment. Unfortunately I'm
not on a solo mission :(

Thanks for the info on this Gabriel. I'm sure this will come in handy!

B.


On Sat, Apr 26, 2008 at 8:42 AM, gabriel montagné 
[EMAIL PROTECTED] wrote:

   On Fri, Apr 25, 2008 at 2:34 PM, Bob Wohl [EMAIL 
 PROTECTED]bob.wohl%40gmail.com
 wrote:
  I'm trying to adapt a skin to a scroll bar with out scaling the
 scrollThumb
  image.

 The proper way to do it would be to extend scroll bar, override
 setScrollProperties and copy or extend all the components that extend
 it or use it (or are expecting it) under different packages and etc.
 etc. ... potentially horrible.

 [...] All the searching I've done points me to editing the SDK which
 seems
  a bit hack-ish. Also, most of the info I found was on FB2 and not 3.

 Yeah, it's a hack, but if you want to try it out, I have an example
 here (that might save you from rolling your own from scratch):
 http://rojored.com/hacks/scroll-thumb-fixed-size/ScrollTest.swf

 The source example and the monkey patch is here:
 http://rojored.com/hacks/scroll-thumb-fixed-size/

 If you're not familiar with monkey patching, you should check this out
 first:

 http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/4/3/Flex-Component-Development

 This is a smelly hack you should use it only in case of emergency ;-)

 --
 gabriel montagné láscaris comneno
 http://rojored.com
 t/506.8392.2040
  



Re: [flexcoders] Stop Scaling scrollThumb - skinning

2008-04-28 Thread Bob Wohl
I contemplated doing this but the designer would have a fit so no go :(

Another route I went was to extend the ProgrammaticSkin class and attaching
it to the scrollThumb style but I dont think it handles bitmaps. Or at least
I couldn't get one to show up. Ah well, I talked the designer into
redesigning it. I wish I had the time on this project to just roll my own.


Thanks!
B.

On Mon, Apr 28, 2008 at 10:04 AM, Ethan Miller [EMAIL PROTECTED]
wrote:

 Here's another hackish approach, but from a different angle.
 Good enough for me though.

 I copied the appropriate Scroll class (ScrollThumbSkin) from the
 framework into my local source tree and then referenced it (and the
 other scroll classes I was modifying) using CSS, like this:

 ScrollBar {
 trackSkin: ClassReference(com.westwind.skins.ScrollTrackSkin);
 thumbUpSkin: ClassReference(com.westwind.skins.ScrollThumbSkin);
 thumbOverSkin:
 ClassReference(com.westwind.skins.ScrollThumbSkin);
 thumbDownSkin:
 ClassReference(com.westwind.skins.ScrollThumbSkin);
 thumbDisabledSkin:
 ClassReference(com.westwind.skins.ScrollThumbSkin);
 upArrowUpSkin:
 ClassReference(com.westwind.skins.ScrollArrowSkin);
 upArrowOverSkin:
 ClassReference(com.westwind.skins.ScrollArrowSkin);
 upArrowDownSkin:
 ClassReference(com.westwind.skins.ScrollArrowSkin);
 upArrowDisabledSkin:
 ClassReference(com.westwind.skins.ScrollArrowSkin);
 downArrowUpSkin:
 ClassReference(com.westwind.skins.ScrollArrowSkin);
 downArrowOverSkin:
 ClassReference(com.westwind.skins.ScrollArrowSkin);
 downArrowDownSkin:
 ClassReference(com.westwind.skins.ScrollArrowSkin);
 downArrowDisabledSkin:
 ClassReference(com.westwind.skins.ScrollArrowSkin);
 thumbOffset: -1;
 }

 That's all normal, here's the hack. Inside ScrollThumbSkin,
 I set the alpha of the native thumb to 0 and then created a
 new round rect at the size I wanted. Since the real thumb
 still exists my new thumb doesn't get all the way to the
 end of the track (because the larger native one under it
 does but I found that from a user experience standpoint
 it isn't a horrible tradeoff... the presence of the scroll
 bar tells me there's content outside my view and the
 thumb and arrows both still work so cares if the thumbs
 never reaches the end of the track?

 This difference in behavior is most notable on pages with only
 minimal content outside the page, the case where you'd
 usually get a gigantic thumb that moved only a few pixels,
 IMO, an equally odd behavior  and one that requires your visual
 design to tolerate a gigantic scroll bar. Not so good for subtler
 visual looks.

 On long pages you *barely* notice the altered behavior, it at all
 Oddly, horizontal scroll bars seem to work fine with this trick,
 ie the behaviors above I've only seen in vertical scroll bars.
 If someone could explain why that is to me, I'd be grateful.

 You can see these scroll bars at:

 http://www.djethan.com/westwind/

 Note that it's a work in progress so you might bump into an
 occasional error, etc. Just dismiss and you should be fine.

 cheers, ethan



  On Fri, Apr 25, 2008 at 2:34 PM, Bob Wohl [EMAIL PROTECTED] wrote:
   I'm trying to adapt a skin to a scroll bar with out scaling the
  scrollThumb
   image.
 
  The proper way to do it would be to extend scroll bar, override
  setScrollProperties and copy or extend all the components that extend
  it or use it (or are expecting it) under different packages and etc.
  etc. ... potentially horrible.
 
  [...] All the searching I've done points me to editing the SDK
  which seems
   a bit hack-ish. Also, most of the info I found was on FB2 and not 3.
 
  Yeah, it's a hack, but if you want to try it out, I have an example
  here (that might save you from rolling your own from scratch):
  http://rojored.com/hacks/scroll-thumb-fixed-size/ScrollTest.swf
 
  The source example and the monkey patch is here:
  http://rojored.com/hacks/scroll-thumb-fixed-size/
 
  If you're not familiar with monkey patching, you should check this
  out first:
 
 http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/4/3/Flex-Component-Development
 
  This is a smelly hack you should use it only in case of
  emergency ;-)
 
  --
  gabriel montagné láscaris comneno
  http://rojored.com
  t/506.8392.2040
 
 


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






Re: [flexcoders] Stop Scaling scrollThumb - skinning

2008-04-28 Thread Bob Wohl
well the issue was that the graphic that the designer provided was not meant
to be scaled and the scroll bar would be used across most the app but not
the entire app. most of it are panels and canvases.

I started to extend upon the programmaticSkin class to swap out the image
and set the height/width but I really don' have the time to fight with
getting a bitmap to display in something I've never extended(I believe that
particular class only lets you create code based skins... though not to
sure).

thx!


On Mon, Apr 28, 2008 at 1:47 PM, gabriel montagné 
[EMAIL PROTECTED] wrote:

   Hey Bob,

 On Mon, Apr 28, 2008 at 11:19 AM, Bob Wohl [EMAIL 
 PROTECTED]bob.wohl%40gmail.com
 wrote:
  [...] Ah well, I talked the designer into

  redesigning it. I wish I had the time on this project to just roll my
 own.
 
 Do you need this scrollbar to be used on many different components? I
 mean, does this scrollbar appears in lists, combo boxes, canvases,
 etc. or is it just for a particular component or set of components?

 Because you can always extend (not hack) scrollbar, override that
 setScrollProperties and use that for that particular component you're
 working on. Remember that you can set the horizontal (or vertical)
 ScrollBar property on canvases and the like to your own external
 subclass.

 If you don't need to monkey patch the scroll for everything, you can
 use your own subclasses of scroll bar NP.

 --
 gabriel montagné láscaris comneno
 http://rojored.com
 t/506.8392.2040
  



[flexcoders] Stop Scaling scrollThumb - skinning

2008-04-25 Thread Bob Wohl
Hello all,

I'm trying to adapt a skin to a scroll bar with out scaling the scrollThumb
image. All the searching I've done points me to editing the SDK which seems
a bit hack-ish. Also, most of the info I found was on FB2 and not 3.

Does anyone know a way to kill the scaling of the scrollThumb? I'd roll out
my own scrollbar but time is short with so much to do!


Thanks!
B.


Re: [flexcoders] Re: Is SWFObject ready for prime time?

2008-04-22 Thread Bob Wohl
I just updated an application to use SWFObject 2.0 yesterday. Hopefully when
it gets to QA I won't get bombarded by failed browser issues. If so, I'll
just switch, so not to big of a deal.

Although, trying to remember, I've used SWFObject in a quite a few apps that
use ExternalInterface/JS in the past and only had to loop through the dom to
deal with IE,. Is it something internal to JQuery that was killing IE?
Or

B.

On Tue, Apr 22, 2008 at 11:02 AM, Cutter (Flex Related) 
[EMAIL PROTECTED] wrote:

   We switched over to SWFObject (then FlashObject) when the EOLAS patent
 stuff first came out, and it worked fantastic. Until we began to use
 JQuery. Some things were fine, but any page that had a flash object,
 renedered via SWFObject, would not be able to use any functions of
 JQuery. Wait, let me fix that statement: would not be able to use any
 functions of JQuery **in Internet Explorer** (go figure). We saw
 something similar with a legacy SWFObject call interfering with us using
 Ext on the same page. This took a little time to discover, and even
 longer to figure out, but basically SWFObject breaks the DOM in IE. We
 found that this wasn't an issue when we used the js that Flash bundles
 in when you compile your Flash movie, so we wrote a wrapper and started
 using that instead. It's worked flawlessly ever since.

 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer
 _
 http://blog.cutterscrossing.com

  



Re: [flexcoders] Drop anywhere to remove

2008-04-04 Thread Bob Wohl
Yes, would work the same as your 'drag to container', just a different
target to drop to.


B.

On Fri, Apr 4, 2008 at 3:09 PM, newflexer [EMAIL PROTECTED] wrote:

   Hi,

 We have a container we can drag and drop objects to, and would like to
 remove them by allowing users to drag and drop them anywhere outside
 of the container.

 Is this possible?

  



Re: [flexcoders] Flex Webcam Recorder

2008-04-03 Thread Bob Wohl
You will need to have FMS installed and attach the camera to the netStream
with a param record here's some really awesome code to help you get
started:

http://www.pmko.net/category/flash-media-server/


(props to the owner of this blog for converting the code to AS3/mxml!)

B.

On Thu, Apr 3, 2008 at 6:13 AM, sims.jones [EMAIL PROTECTED] wrote:

   Hi,

 I am new to Flex and I am currently developing a prototype webcam
 recorder using Flex Builder 3. I'm having trouble recording the actual
 video.
 I can access the webcam by attaching it to a VideoDisplay.

 var camera:Camera = Camera.getCamera();
 if (camera) {
 videoDisplay.attachCamera(camera);
 } else {
 Alert.show(You don't seem to have a camera.);
 }

 However I do not know how to record the video being captured. Also, I
 would like to store the videos on my localhost.

 Any help will be appreciated.

 Thanks.

  



Re: [flexcoders] Re: Flex Webcam Recorder

2008-04-03 Thread Bob Wohl
I'm thinking the same since it is the client side. The methods would be the
same, only the server side changes. Though I would check Red5 and WoWza's
documentation to find out for certain.

A couple of the people from both are on a few of these flash/flex list.
Maybe they will chime in :)

B.

On Thu, Apr 3, 2008 at 2:01 PM, Gilbert Mizrahi [EMAIL PROTECTED] wrote:

How that code will differ if using Red5 o Wowza?



 Gilbert



 The information transmitted is intended only for the person or entity to 
 which it is addressed and may contain confidential and/or privileged 
 material. Any review, retransmission, dissemination or other use of, or 
 taking of any action in reliance upon this information by persons or entities 
 other than the intended recipient is prohibited. If you received this in 
 error, please contact the sender and delete the material from any computer.

  



Re: [flexcoders] How to get flex popup modal dialog to fade entire browser window?

2008-04-03 Thread Bob Wohl
Well, unfortunately you will need to use javascript along with CSS and then
have your embeded content in that. Flex does not natively do this w/o the
other 2. Using lightbox you can embed your swf in one of their containers
and use flex to do the fade effect for you if so desired.

B.

On Thu, Apr 3, 2008 at 2:24 PM, janenemcc2424 [EMAIL PROTECTED] wrote:

   I have a flex app embedded in an html page and within the app I have a
 need to pop-up some content, in a flex application component. I need
 the pop-up to fade out the entire html page, however, which the flex
 pop-up does not do: it fades only the flex app.

 I've experimented with the javascript LightBox, which offers this
 functionality, but I'm a novice Flex person and I am mystified at how
 to integrate this functionality into my page, with the flex component
 embedded in the popup. Lightbox seems to accomplish this by the use of
 style sheets and div sections. My eyes are crossing trying to
 determine which pieces of what I need to use.

 Help?!

 Janene

  



Re: [flexcoders] Re: New Question: Component

2008-04-02 Thread Bob Wohl
Hmmm... Have you tried something like this:


mx:Script
![CDATA[
//call this on application creationComplete(or when ever after that)
 private function creationISComplete(e:Event):void{
   //foo is in essence a class with the method setTempMethod()
   foo.setTempMethod()
  }


]]
/mx:Script
c:MyComponent id=foo/


hth
B.


On Wed, Apr 2, 2008 at 6:17 AM, khan.ibraheem [EMAIL PROTECTED]
wrote:

   Thanks for the reply. But setTempMethod() lives in the Canvas, not in
 the label. However, I have reverfied and it is working.

 Your reply was indeed helping in the way, that I came to know that I
 was doing right thing. I just recheck it  there was nothing wrong in
 it. Maybe I havent saved the source code or something else.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Douglas
 Knudsen

 [EMAIL PROTECTED] wrote:
 
  you have a scope issue there, setTempMethod() lives in the Label not
  Canvas. Move this method up inside Canvas and teh outside world
 will have
  access.
 
 
  DK
 
  On Wed, Apr 2, 2008 at 8:02 AM, khan.ibraheem [EMAIL PROTECTED]

  wrote:
 
   Hello,
  
   I am creating a custom component and have 2 questions regarding it:
  
   1) One way, I am thinking is to create actionscript class and use
 it. I
   can add controls using addChild method. But how can I set absolute
 position
   of the control.
  
   2) The other way was to create MXML component and place all controls
   through the help of designer. But is it possible, that I can
 access methods
   created in MXML component.
  
   For example:
   ==
   ?xml version=1.0 encoding=utf-8?
   mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=356
   height=38
  
   mx:Label x=41 y=8 text=text fontFamily=verdana
 fontSize=12
   fontWeight=bold height=20/
   mx:Script
   ![CDATA[
  
   public function setTempMethod():void
   {
  
   }
   ]]
   /mx:Script
   /mx:Canvas
   =
  
   I have tried to access setTempMethod from application but it wasnt
   allowing me to do so. So, I need help so I can create methods in
 components
   which can be used outside the component.
  
  
  
  
 
 
 
  --
  Douglas Knudsen
  http://www.cubicleman.com
  this is my signature, like it?
 

  



Re: [flexcoders] TabContainer - how to get a reference to the module that is loaded inside a tab

2008-04-02 Thread Bob Wohl
http://livedocs.adobe.com/flex/3/html/help.html?content=navigators_3.html

the tab navigator is tied to a viewStack, so can't you use the
veiwstackID.selectedChild?


hth
B.



On undefined, guitarguy555 [EMAIL PROTECTED] wrote:

   I have a TabContainer and each tab contains a different module. When a
 tab button is clicked, the module loader from the main application
 loads the appropriate module.

 At times though, when on a selected tab, I may need to load in a new
 module for different functionality.

 From the TabNavigator object, is there a property to get a reference to
 the currently loaded module for a currently selected tab?

  



Re: [flexcoders] fading out a Box on removal?

2008-04-02 Thread Bob Wohl

http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html


hth

On Wed, Apr 2, 2008 at 4:15 PM, Anthony Ettinger [EMAIL PROTECTED] wrote:

   Is there an easy way to fade out a Box from ActionScript? Ie: when an
 error message appears, I just want it to show for 2.5 seconds, then
 fade out and removed.

 --
 Anthony Ettinger
 408-656-2473
 http://anthony.ettinger.name
  



Re: [flexcoders] Issues with SWF playing in Firefox but not in IE6 or IE7

2008-02-12 Thread Bob Wohl
Do you get the security error? IE doesn't like activeX embedded items that
use external data w/o a javascript embed method.


B.

On Feb 12, 2008 9:44 AM, Patrick Driggett [EMAIL PROTECTED] wrote:

   I have a small little Flex app that loads a local XML file and displays
 dynamically created objects based on that file on a custom timeline.  I've
 integrated it into an existing html file, here is the code snippet:

 td colspan=4 class=bodyText
   object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
 id=SimILE width=100% height=100%
 codebase=
 http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab;
 param name=movie value=TimelineTest.swf /
 param name=quality value=high /
 param name=bgcolor value=#869ca7 /
 param name=allowScriptAccess value=sameDomain /
 embed src=TimelineTest.swf quality=high bgcolor=#869ca7
 width=100% height=100% name=TimelineTest
 align=middle
 play=true
 loop=false
 quality=high
 allowScriptAccess=sameDomain
 type=application/x-shockwave-flash
 pluginspage=http://www.adobe.com/go/getflashplayer;
 /embed
   /object
 /td

 It works perfectly in Firefox, it doesn't even attempt to show up in IE6
 or IE7 on multiple computers all with Flash Player 9 installed through the
 Adobe website.

 Any ideas?

 Thanks,
 Patrick Driggett