[flexcoders] strange sandbox issue

2007-10-01 Thread zzwi89
My Flex app communicates over HTTP using an HttpService object. The
server has a crossdomain.xml file at its root, and when I run the app
from the workspace it was started in, I have no issues running it.

However, when I switch workspaces and import the project, as soon as
the HTTPService.send() call is made, the following is logged in the
debug console:

*** Security Sandbox Violation ***
Connection to https://path/to/localserver halted - not permitted from
file://path/to/workspace/project/bin/app-debug.swf

Any suggestions? As I said, the crossdomain.xml DOES EXIST, and this
error only occurs when I recreate the project in a new workspace. If I
import or duplicate it within the original workspace, the application
works without giving me the sandbox violation.






[flexcoders] Dynamically binding a dataprovider in AS

2007-06-08 Thread zzwi89
Apologies if this question has been posted; I couldn't find anything
similar in the archives.

Suppose I have the following in MXML:




How would I set that binding in AS?

Trying something like this:

mx.binding.utils.BindingUtils.bindProperty(bb, "dataProvider", vs, null);

Doesn't work, because I don't know what to set the chain property to.
I don't to bind just a property of the ViewStack, I want to bind the
ViewStack. 

Any thoughts?



[flexcoders] Re: Function to check if component supports a style?

2007-05-03 Thread zzwi89
Thanks, but I don't think it actually outputs style info. Unless one
of the following IS style information and I'm just overlooking it:

The class of the object 
The attributes of the class 
The inheritance tree from the class to its base classes 
The interfaces implemented by the class 
The declared instance properties of the class 
The declared static properties of the class 
The instance methods of the class 
The static methods of the class 
For each method of the class, the name, number of parameters, return
type, and parameter types 

Are there any negative effects to setting a nonexistent style? Will
they just build up in memory despite being useless?

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> describeType() can give you information about class's [Style] metadata.
> But you have to use the -keep-as3-metadata compilation option to tell
> the MXML compiler which metadata to compile into the SWF.
>  
> - Gordon
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of zzwi89
> Sent: Wednesday, May 02, 2007 7:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Function to check if component supports a style?
> 
> 
> 
> So I know there is a function to check if an object has a property
> (object.hasOwnProperty()), but is there a way of determining if an
> object supports a style? I want to allow the user to alter some style
> properties own their own through the UI, but I don't want to be
> setting nonexistent styles and was hoping there was a way of verifying
> if a style existed for a component.
> 
> So something like button.hasStyle("paddingLeft") should return true,
> but button.hasStyle("paddingg") should return false.
>




[flexcoders] Function to check if component supports a style?

2007-05-02 Thread zzwi89
So I know there is a function to check if an object has a property
(object.hasOwnProperty()), but is there a way of determining if an
object supports a style? I want to allow the user to alter some style
properties own their own through the UI, but I don't want to be
setting nonexistent styles and was hoping there was a way of verifying
if a style existed for a component.

So something like button.hasStyle("paddingLeft") should return true,
but button.hasStyle("paddingg") should return false.



[flexcoders] Set XML attribute?

2007-02-22 Thread zzwi89
I'm hoping someout out there can help me with this! 

So, I know how to get an attribute from an XML element:

xml.attribute("name")

But how do I saet the value of this attribute? 



[flexcoders] Re: Issues with modules and TabNavigator

2007-02-01 Thread zzwi89
--- In flexcoders@yahoogroups.com, "zzwi89" <[EMAIL PROTECTED]> wrote:
>
> There's an issue some people are having where including a TabNavigator
> in a Module causes a nasty error. A thread on Adobe's forums can be
> found here:
> 
>
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1236404&highlight_key=y&keyword1=module
> 
> In essence, loading the module with the TabNavigator can cause this
error:
> 
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
>   at
>
mx.managers::HistoryManager$/unregister()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\HistoryManager.as:127]
>   at
>
mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\ViewStack.as:622]
>   at
>
mx.containers::TabNavigator/mx.containers:TabNavigator::commitProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\TabNavigator.as:386]
>   at
>
mx.core::UIComponent/validateProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5300]
>   at
>
mx.managers::LayoutManager/mx.managers:LayoutManager::validateProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:517]
>   at
>
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:637]
>   at Function/http://adobe.com/AS3/2006/builtin::apply()
>   at
>
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909]
>   at
>
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852]
> 
> Has anyone experienced this and solved it?
>


Issue has been solved! See
http://tech.groups.yahoo.com/group/flexcoders/message/63448 for more
details.



[flexcoders] Re: Possible to edit and recompile Flex framework?

2007-02-01 Thread zzwi89
Hot damn, way out in left field but I'll be damned if it didn't work!

Simply calling this upon initialize worked:

private function init():void
{
 this.addChild(new TabNavigator());
 this.removeChildAt(this.numChildren-1);
}

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> This is way out in left field.
> 
> But it looks like you are loading the modules into the same
> ApplicationDomain and since the HistoryManager is a singleton based
in each
> domain.
> 
> Try including a tabnavigator in your shell application just for the
hell of
> it.
> 
> Left me know.
> 
> Make sure to addChild() it then remove it after creationComplete of the
> application.
> 
> Peace, Mike
> 
> On 2/1/07, zzwi89 <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> >
> > I have a sample online. Very scaled down, but replicates the error and
> > where it would occur in my application.
> >
> > http://seanrea.net/ModuleTest/ModuleTest.html
> >
> > Clicking on the two buttons will switch between children of a
> > viewstack. If you click on '2', you should get the HistoryManager
error.
> >
> > A RAR of the project is here:
> >
> > http://seanrea.net/ModuleTest.rar
> >
> > (sorry, couldn't put the source in one file since there are several
> > modules involved.)
> >
> > Although I load the modules using  > url="/path/to/module"/>, I did try loading them manually in AS and
> > still got the error.
> >
> > I have tried setting historyManagerEnabled = false on the TabNavigator
> > to no avail.
> >
> > --- In flexcoders@yahoogroups.com ,
Bjorn
> > Schultheiss
> >  wrote:
> > >
> > > forget about recompiling the framework.
> > >
> > > Give us some context in your application on where this error occurs
> > >
> > > On 02/02/2007, at 8:49 AM, zzwi89 wrote:
> > >
> > > > obj);
> > > > }
> > > >
> > > > I cannot simply override a manager, but as this is a null
object, I
> > > > wonder if a simple fix could be to do a null check against
impl and
> > > > obj in this function. Although I can figure out how to do this, I
> > > > can't figure out how to recompile the entire framework.
> > > >
> > > > I know this could be dangerous, but there doesn't seem to be
any other
> > > > fix.
> > > >
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com
> 
> Blog - Flex2Components
> http://www.flex2components.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




[flexcoders] Re: Possible to edit and recompile Flex framework?

2007-02-01 Thread zzwi89
Hot damn, way out in left field but I'll be damned if it didn't work!

Simply calling this upon initialize worked:

private function init():void
{
 this.addChild(new TabNavigator());
 this.removeChildAt(this.numChildren-1);
}

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> This is way out in left field.
> 
> But it looks like you are loading the modules into the same
> ApplicationDomain and since the HistoryManager is a singleton based
in each
> domain.
> 
> Try including a tabnavigator in your shell application just for the
hell of
> it.
> 
> Left me know.
> 
> Make sure to addChild() it then remove it after creationComplete of the
> application.
> 
> Peace, Mike
> 
> On 2/1/07, zzwi89 <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> >
> > I have a sample online. Very scaled down, but replicates the error and
> > where it would occur in my application.
> >
> > http://seanrea.net/ModuleTest/ModuleTest.html
> >
> > Clicking on the two buttons will switch between children of a
> > viewstack. If you click on '2', you should get the HistoryManager
error.
> >
> > A RAR of the project is here:
> >
> > http://seanrea.net/ModuleTest.rar
> >
> > (sorry, couldn't put the source in one file since there are several
> > modules involved.)
> >
> > Although I load the modules using  > url="/path/to/module"/>, I did try loading them manually in AS and
> > still got the error.
> >
> > I have tried setting historyManagerEnabled = false on the TabNavigator
> > to no avail.
> >
> > --- In flexcoders@yahoogroups.com ,
Bjorn
> > Schultheiss
> >  wrote:
> > >
> > > forget about recompiling the framework.
> > >
> > > Give us some context in your application on where this error occurs
> > >
> > > On 02/02/2007, at 8:49 AM, zzwi89 wrote:
> > >
> > > > obj);
> > > > }
> > > >
> > > > I cannot simply override a manager, but as this is a null
object, I
> > > > wonder if a simple fix could be to do a null check against
impl and
> > > > obj in this function. Although I can figure out how to do this, I
> > > > can't figure out how to recompile the entire framework.
> > > >
> > > > I know this could be dangerous, but there doesn't seem to be
any other
> > > > fix.
> > > >
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com
> 
> Blog - Flex2Components
> http://www.flex2components.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




[flexcoders] Re: Possible to edit and recompile Flex framework?

2007-02-01 Thread zzwi89
Hi,

I have a sample online. Very scaled down, but replicates the error and
where it would occur in my application.

http://seanrea.net/ModuleTest/ModuleTest.html

Clicking on the two buttons will switch between children of a
viewstack. If you click on '2', you should get the HistoryManager error.

A RAR of the project is here:

http://seanrea.net/ModuleTest.rar

(sorry, couldn't put the source in one file since there are several
modules involved.)

Although I load the modules using , I did try loading them manually in AS and
still got the error.

I have tried setting historyManagerEnabled = false on the TabNavigator
to no avail.

--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> forget about recompiling the framework.
> 
> Give us some context in your application on where this error occurs
> 
> On 02/02/2007, at 8:49 AM, zzwi89 wrote:
> 
> > obj);
> > }
> >
> > I cannot simply override a manager, but as this is a null object, I
> > wonder if a simple fix could be to do a null check against impl and
> > obj in this function. Although I can figure out how to do this, I
> > can't figure out how to recompile the entire framework.
> >
> > I know this could be dangerous, but there doesn't seem to be any other
> > fix.
> >
>




[flexcoders] Possible to edit and recompile Flex framework?

2007-02-01 Thread zzwi89
I am running into an issue where the HistoryManager is referencing a
null object and throwing an error (see:
http://tech.groups.yahoo.com/group/flexcoders/message/63423). It
appears to be on line 127, in the unregister function:

public static function unregister(obj:IHistoryManagerClient):void
{
impl.unregister(obj);
}

I cannot simply override a manager, but as this is a null object, I
wonder if a simple fix could be to do a null check against impl and
obj in this function. Although I can figure out how to do this, I
can't figure out how to recompile the entire framework. 

I know this could be dangerous, but there doesn't seem to be any other
fix.






[flexcoders] Issues with modules and TabNavigator

2007-02-01 Thread zzwi89
There's an issue some people are having where including a TabNavigator
in a Module causes a nasty error. A thread on Adobe's forums can be
found here:

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1236404&highlight_key=y&keyword1=module

In essence, loading the module with the TabNavigator can cause this error:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
mx.managers::HistoryManager$/unregister()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\HistoryManager.as:127]
at
mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\ViewStack.as:622]
at
mx.containers::TabNavigator/mx.containers:TabNavigator::commitProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\TabNavigator.as:386]
at
mx.core::UIComponent/validateProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5300]
at
mx.managers::LayoutManager/mx.managers:LayoutManager::validateProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:517]
at
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:637]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909]
at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852]

Has anyone experienced this and solved it?



[flexcoders] Re: Question on managing Flex libaries and Modules

2007-01-31 Thread zzwi89
I should add that for the two non-library projects, I have set the
project properties to include the library. I even tried setting the
link type of the library in each project to External, which has the
desired effect of decreasing file size, but causes this error:

VerifyError: Error #1014: Class IWatcherSetupUtil could not be found.
at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/::deferredNextFrame()
at mx.core::FlexModuleFactory/::update()
at mx.core::FlexModuleFactory/::moduleCompleteHandler()

Consequently, none of the modules are loaded.




[flexcoders] Question on managing Flex libaries and Modules

2007-01-31 Thread zzwi89
I have tried to split up my project in Flex Builder into three
separate 'projects'.

First, we have the library project I created. In this I've put
everything that gets reused a lot - meaning custom components and skin
classes.

Next, the module project. I created this following Adobe's module
guide. Essentially, I create applications in this project and retag
the root so they become Modules. Then, I redirect the build path to my
third project.

In the third project, I organize the modules into the various screens
that comprise my application. And now, my problem! I am finding that
the library project gets compiled into every module. This defeats the
point of it all, and I was wondering if there isn't a way to have the
modules reference the library but not include it each time.





[flexcoders] Modal PopUp without background blur?

2007-01-23 Thread zzwi89
I am using the PopUpManager to make a modal dialog out of a Canvas
subclass. I need the dialog to be modal, but I'd prefer not to blur
out the rest of the application. Is there any way to do this short of
subclassing the PopUpManager itself?



[flexcoders] Getting height of dynamically-adjusted component?

2007-01-12 Thread zzwi89
Here is what I am attempting to do:

I have a series of canvases that have a specified width. Each canvas
also has a different text string in it. The height of the canvas will
change based on the length of the text string. I would like to place
these in an HBox and have their heights equal to the tallest canvas.

All of this is being done programatically. When I try something like:

(hbox.getChildAt(0) as Canvas).height

I always get a return of 0. I know the height can't be zero, but there
it is. I would like to know the height, because I could then loop and
set the height of each canvas to the tallest.

An example I am working off of can be found here:
http://pastebin.com/857934

I appreciate any and all feedback!



[flexcoders] How to get height of a Panel's controlBar?

2007-01-11 Thread zzwi89
I am creating a RectangularBorder class which I plan on using with a
Panel object. I am drawing the controlbar so it does not take up the
full width of the panel (it looks sort of like a tab) and so I need to
know the specific height of the controlbar. Unforunately, it does not
seem that I can even read this property outside of the Panel class.
Anyone have some tips as to how I'd go about this?



[flexcoders] Re: How to include a Vertical & Horizontal gap in a DataGrid?

2007-01-09 Thread zzwi89
--- In flexcoders@yahoogroups.com, "zzwi89" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I would like to include a vertical and horizontal gap in my DataGrid
> so that the cells do not "touch" each other. I am eventually going to
> write custom renderers for the cells, but my first goal is to simply
> space them out by a few pixels. Does anyone know how to do this?
>


*bump*

anyone?



[flexcoders] How to include a Vertical & Horizontal gap in a DataGrid?

2007-01-08 Thread zzwi89
Hi,

I would like to include a vertical and horizontal gap in my DataGrid
so that the cells do not "touch" each other. I am eventually going to
write custom renderers for the cells, but my first goal is to simply
space them out by a few pixels. Does anyone know how to do this?



[flexcoders] Abnormal CPU usage?

2006-12-08 Thread zzwi89
My Flex application occasionally likes to ramp up the CPU usage. It
will jump to 30 or 40% and slowly increase to 70 or 80%. This seems to
happen when I generate components programatically. My code doesn't
generate anything like an infinte loop that I could imagine causing this.

Has anyone else experienced this, and if so, what did you do about it?




[flexcoders] How to get rid of VBox background color and shadow?

2006-11-27 Thread zzwi89
I am trying to create a popup menu using a VBox and series of
canvases. When the VBox is used as the base for a custom component, I
have noticed that Flex adds a grey background and a drop shadow. If I
simply create the VBox as a normal component within my application,
this does not happen. Does anyone know what would be causing Flex to
add this to my component?



[flexcoders] Automatic resize of panel when layout="absolute" - how?

2006-11-17 Thread zzwi89
I have a panel that needs to resize vertically when child panels are
minimized/maximized. This works until I set layout = absolute. I would
like to use absolute layout so that I can use parameters like
top/left/right/bottom for its child panels.

Is there a way to do this?




[flexcoders] Re: Tab label filter

2006-11-16 Thread zzwi89
--- In flexcoders@yahoogroups.com, "zzwi89" <[EMAIL PROTECTED]> wrote:
>
> Does anyone know how to apply a filter to the text inside a tab?
>

I found out one way:

TabBar.getTabAt(i).getChildAt(1).filters = arrayOfFilters;

Messy, but it works I suppose.




[flexcoders] Tab label filter

2006-11-16 Thread zzwi89
Does anyone know how to apply a filter to the text inside a tab?




[flexcoders] Programmatic Tabskin / CSS

2006-11-16 Thread zzwi89
Hello,

I am using programattic skinning for some tabs in a TabBar. Rather
than write a class for the selected tab, one for the deselected tab,
etc.., I would like to use the same tab class but change CSS styles to
alter the style.

In my CSS file, rather than specify tab styles like this:

disabledSkin: ClassReference("...");

I would rather specify

disabledSkin: styleName

.styleName
{
 disabledSkin: ClassReference("...");
 attribute1: value;
 attribute2: value;
}

Unforunately, I do not know of a way to do this? Do you?

Thank you in advance!




[flexcoders] Force redraw of component?

2006-11-02 Thread zzwi89
Hi,

I have been trying to get components to switch skins during runtime.
Although I can change the value of styleName, this has no visual
effect. However, if I create a new component that matches the type of
the old one, copy all its children and attributes that I care about
(x,y,width,height, etc.. at the moment), give it the new style, and
then add it back to the original parent, I essentially get what I'm
looking for. 

However, this is cumbersome and leads me to believe I could achieve
the reskinning effect if I could just force the component to redraw
itself. Does anyone know of a way to do this?

Thanks!




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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Change skin during runtime?

2006-11-02 Thread zzwi89
Hi,

I would like to give the user the option to choose one of several
skins for my application. I am providing these via CSS and external
.swf file (as per Adobe's tutorial.) However, when I run something
like Panel.styleName = "newStyle", there is no change. 

Is there any way to accomplish this or is the skin set at runtime?




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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: Skinning woes

2006-11-01 Thread zzwi89
nj,

Thank you for the response! This is what I'd been leaning towards
believing but was holding out hope that because in Flash, the Panel
skin, for example, is broken into 3 parts, that Flex would be able to
resize them. Oh well!

Now, does anyone know how to reskin a component during execution? I
would like to call a function that does Panel.styleName = "newStyle",
but this has no effect.

Thank you!

--- In flexcoders@yahoogroups.com, "rictushep" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "zzwi89"  wrote:
> 
> > I am attempting to skin my components using the method shown here:
> > http://www.adobe.com/devnet/flex/articles/flex_skins.html.
> > 
> > Even when I simply publish the default Flash skin file and use it in
> > my application, I can no longer change the size of a panel's border,
> > for instance.
> > 
> > Is this simply a limitation of Flex or is there a way around it? I
> > feel like the skinning at first seems promising and then turns out to
> > be a letdown.
> 
> Hi,
> 
> The intent of graphical skinning (which is what the templates in that
> article provide) is that it allows you to replace the default
> component skin with specific custom artwork.  Because this is custom
> artwork, Flex doesn't know anything about its internal structure, so
> it doesn't know what part of the artwork is the "border" that you want
> to make thicker.  
> 
> The default component skins (HaloAeon) can respond to styles set on
> the component (border thickness, background color, etc.) because
> they're implemented programmatically--in other words, they draw
> themselves at runtime based on those style values.  When you replace
> the default programmatic skin with a graphical skin, most of these
> styles no longer apply; the assumption is that you've "baked" the
> exact appearance you want into the graphical skin.
> 
> If you need to create custom Panel skins that have different border
> thicknesses, you have a couple of options:
> 
> -- Draw multiple graphical skins that have the different border
> thicknesses you want, and create CSS rules for the various skins using
> "." names (e.g. ".thinPanel", ".thickPanel").  You can then attach
> them to different Panels using the "styleName" property (e.g.
> , ).
> 
> (Note that if you do this, you will still need to set the
> borderThickness styles as well for each skin.  Even though the
> borderThickness styles don't change the appearance of the graphical
> artwork you provide, they do tell Flex how much padding to put around
> the content so it doesn't overlap the borders you drew into the
> artwork.  See "Setting the Panel content area" on this page:
> http://www.adobe.com/devnet/flex/articles/flex_skins_08.html
> )
> 
> -- Create a programmatic skin that draws the artwork at runtime using
> ActionScript based on the styles you set on the component.
> 
> Thanks,
> 
> nj
>





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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Skinning woes

2006-10-31 Thread zzwi89
Hello all,

I am attempting to skin my components using the method shown here:
http://www.adobe.com/devnet/flex/articles/flex_skins.html.

Even when I simply publish the default Flash skin file and use it in
my application, I can no longer change the size of a panel's border,
for instance.

Is this simply a limitation of Flex or is there a way around it? I
feel like the skinning at first seems promising and then turns out to
be a letdown.





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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Get Tab from TabBar?

2006-10-19 Thread zzwi89
Does anyone know how to retrive a tab from a TabBar? If I use
getChild() it returns a child of the associated ViewStack.
TabNavigator, which I do not want to use, has a getTabAt() function. I
checked out the code, and it simply does this:

return Button(tabBar.getChildAt(index));

If I do this on my tabBar, it pops up an error stating I can't cast a
VBox to a Button. Why is it that TabNavigator can do this, but I
cannot do this on my TabBar's children?




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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: Flash Player 9 Beta Available

2006-10-19 Thread zzwi89
Now that the player is available on Linux, is there any chance of
getting Flex Builder to run on Linux as well?




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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Set icon without using @Embed?

2006-10-19 Thread zzwi89
Instead of using text to label a set of tabs, I am using some images.
Currently I use the following syntax:

component.icon = @Embed(source);

When component is placed into a viewstack, and a tabbar assigned to
the viewstack, the icon shows up in the tab. However, I would like to
assign different icons (which are really text labels that have a look
and feel I cannot replicate in Flex.) Preferably, the application
loads in an XML document with the source of the appropriate images,
but so far I have not been able to get this to work. Must I really
embed each image and use if/then logic to determine which of the
embedded images I want to display?




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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Items in VBox still take space even when visible=false, but I don't want them to

2006-10-18 Thread zzwi89
Hello,

I have several panels arranged in a VBox. I would like to be able to
hide some based on user input, but when I disable their visibility,
they  no longer appear but the panels below them do not move up
accordingly. When they are resized the other panels below will move
up, but I would prefer to be able to just make them invisible. Is
there any way of achieving this functionality?




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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Resize Panel automatically?

2006-09-28 Thread zzwi89
I have put a tabbar and a viewstack inside of a panel. My goal is to
have the panel resize based on the current state of the viewstack so
it is just big enough to encompass it and the tabbar.

Here is a simple example which illustrates my problem:


http://www.adobe.com/2006/mxml";
layout="absolute">


















I have given the panel no width or height in the hope that it will be
determined by the dimension of the children. I would also like to use
contrainsts to prevent the tabbar and viewstack from being flush with
the panel edge (i.e. I would like a 10 px margain all around.)

Unforunately, when the panel is resized, it adds scroll bars, even
though I have not requested them! 

Secondly, in order for the panel to resize automatically, I cannot use
an absolute layout, which means my constrainsts do not work!

If anyone has suggestions or can point out what I'm doing wrong here I
would appreciate it very much.






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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/