Hi Brendan
I tried the following:
public function openWin():void{
if(vkey!=null && vkey!=""){
openVideo();
isViewOpen = true;
} else if(channel!=null && channel!=""){
openChannels();
isChannelOpen = true;
} else if(!isOpen) {
openMain();
isOpen = true;
}
now.. it always loads openMain() regardless of the existence of a
"vkey" value..
Rohan
http://opentube.info
--- In [email protected], "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Try component1 != null && component1 != ""
>
> Also, if you set component1 = '' when you're defining it, you'd only
need to
> test for != '' inside the openWin function...
>
> Brendan
>
> On 6/4/07, Rohan Pinto <[EMAIL PROTECTED]> wrote:
> >
> > Hi Folks,
> >
> > I'm passing component ID's into my app using flashvars.
> >
> > in my main Application, I procure the values as follows:
> > [Bindable]
> > public var component1:String;
> >
> > [Bindable]
> > public var component2:String;
> > component1=this.parameters.component1;
> > component2=this.parameters.component2;
> >
> > in the function as defined in my main Application :
> > creationComplete="openWin()"
> >
> > I have the following:
> > public function openWin():void{
> > if(component1!=null||component1!=""){
> > openComponent1();
> > } else if(component2!=null||component2!=""){
> > openComponent2();
> > } else {
> > openMain();
> > }
> >
> > the behaviour i see using this method is that everytime I load the
> > application (regardless of the flashvars) it always loads Component1.
> >
> > What am I doing wrong here ?
> > Please advise...
> >
> > Rohan
> > http://opentube.info
> >
> >
> >
>
>
>
> --
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>