List Info

Thread: Re: visible or not visible ? that is the question :)




Re: visible or not visible ? that is the question :)
country flaguser name
France
2007-04-01 14:35:33
yeah sorry!

that's coz BeanFactory agregates MovieClip instances and
when you set  
attribute of graphical node to false, you set hide
graphiclib  
instance (your mc container).

maybe, I'll change the behavior of this, it sounds not an
easy approach.
thanks for the report. 

francis

Le 26 mars 07 à 02:19, jerome quere a écrit :

> ok I find ^^
>
> I use the GraphicLibLocator.
>
> Code:
> .
> .
> .
>
> public function onShowPannel(e)
> {
>   Logger.LOG("[receive string] "+
e.getString(), LogLevel.INFO);
>
>   var isExist:Boolean =
BeanFactory.getInstance().isRegistered(
> e.getString() );
>
>   if(isExist)
>   {
>     var isVisible:Boolean =
>
GraphicLibLocator.getInstance().getGraphicLib(e.getString 
> ()).isVisible();
>
>     if(isVisible == true)
>     {
>       GraphicLibLocator.getInstance().getGraphicLib(
e.getString 
> () ).hide();
>     }
>     else
>     {
>       GraphicLibLocator.getInstance().getGraphicLib(
e.getString 
> () ).show();
>     }
>   }
> }
>
> .
> .
> .
> --------------------------
>
> But what is the purpose of "locate" in the
BeanFactory class ?
> And why I can't do this:
BeanFactory.getInstance().locate 
> ( e.getString()
> )._visible = true;
> when I have in the file applicationContext.xml:
> <swf id="uiActualite"
url="datas/uis/contenu/actualite.swf"  
> visible="false"
> />    ?
>
> Because if I set visible=true like this:
> <swf id="uiActualite"
url="datas/uis/contenu/actualite.swf"  
> visible="true"
> />
>
> this code is carried out correctly:
> BeanFactory.getInstance().locate( e.getString()
)._visible = false;
>
> ... ?
>
>
>
>
>> From: "jerome quere" <quere_jeromehotmail.com>
>> Reply-To: Pixlibosflash.org
>> To: Pixlibosflash.org
>> Subject: [Pixlib] [pixioc] visible or not visible ?
that is the  
>> question 
>> Date: Fri, 23 Mar 2007 02:08:53 +0100
>>
>> hello,
>>
>> I use pixioc to develop a site.
>>
>> I have a small problem: I have a menu with buttons,
each button gives
>> access
>> to part of the site.
>>
>> I thus developed a plugin which manages the menu.
>> On the supports of a button that brodcast on a
public channel the  
>> id of
>> this
>> button (referred in the file
applicationContext.xml)
>>
>> I have another plugin which listens on the channel
“menu”, it  
>> receive the
>> event of the button with in parameter the id of the
view being  
>> posted.
>>
>> in the file applicationContext.xml, I thus have
this line:
>> (By default, this sight is not visible:
visible=" false ")
>>
>> .
>> .
>> <swf id="uiActualite"
url="datas/uis/contenu/actualite.swf"  
>> visible="false"
>> />
>> .
>> .
>>
>> In my plugin which manages the views, I have this
method which is  
>> called on
>> reception of the event:
>>
>> .
>> .
>> public function onShowPannel(e)
>> {
>>   Logger.LOG("[receive event] "+
e.getString(), LogLevel.INFO);
>>
>>   var isExist:Boolean =
BeanFactory.getInstance().isRegistered(
>> e.getString() );
>>
>>   if(isExist)
>>   {
>>     Logger.LOG(e.getString(), LogLevel.INFO);
>>     var tmp = BeanFactory.getInstance().locate(
e.getString() );
>>     Logger.LOG(tmp._visible, LogLevel.INFO);
>>     tmp._visible = true;
>>   }
>> }
>> .
>> .
>>
>> I launch, my application: my view “uiActualite” is
quite invisible  
>> with
>> launching.
>>
>> I push my button to post it. BeanFactory finds me
well the view
>> but Logger.LOG (tmp._visible, LogLevel.INFO);
return me “true”… it is
>> judicious is nonvisible at this time. .oO
>>
>> But the view is never displayed. :(
>>
>> it is a bug or then I am mistaken ?
>>
>>
____________________________________________________________
_____
>> Personnalisez votre Messenger avec Live.com
>> http://www.windows
live.fr/livecom/
>>
>>
>> _______________________________________________
>> Pixlib mailing list
>> Pixlibosflash.org
>> http://osflash.org/mailman/listinfo/pixlib_osflash.org

>
>
____________________________________________________________
_____
> Gagnez des pc Windows Vista avec Live.com http://www.image-addict.f
r/
>
>
> _______________________________________________
> Pixlib mailing list
> Pixlibosflash.org
> http://osflash.org/mailman/listinfo/pixlib_osflash.org

>



_______________________________________________
Pixlib mailing list
Pixlibosflash.org
http://osflash.org/mailman/listinfo/pixlib_osflash.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )