*accordianComponent.mxml --> this is my component*

<?xml version="1.0" encoding="utf-8"?>
<mx:Accordion xmlns:mx="http://www.adobe.com/2006/mxml";
resizeToContent="true"
     >
     <mx:Style>
        .Panel1 {
           headerHeight: 1;
           borderThickness: 0;
           roundedBottomCorners: true;
           backgroundAlpha: 1;
           borderAlpha: 1;
           highlightAlphas: 0.50, 0;
           headerColors: white, white;
           footerColors: white, white;
           borderColor: white;
           titleStyleName: "myTitleStyle";
        }

        .myTitleStyle {
               color: #ffffff;
           }

        .accHeader {
            fillColors: haloSilver, haloBlue;
            fillAlphas: 1.0, 0.5;
            selectedFillColors: Silver, Silver;
        }

        .menuHeader {
            fillColors: #89F694, #89F694;
            fillAlphas: 1.0, 0.5;

        }


        .lablePlace{
            color: blue;
            padding-left : 0px;
            font-weight:normal;
            font-size:12;
        }

     </mx:Style>
      <mx:VBox label="Investments"  styleName="lablePlace" >
            <mx:Label text="stocks" />
            <mx:Label text="Mutual Funds"/>
            <mx:Label text="ULIPs" />
            <mx:Label text="Bullion" />
            <mx:Label text="Fixed Income" />
            <mx:Label text="Loans"/>
            <mx:Label text="Property" />
            <mx:Label text="Assets" />
            <mx:Label text="Borrowings" />
         </mx:VBox>
         <mx:VBox label="Add Investments"  styleName="lablePlace">
            <mx:Label text="stocks" />
            <mx:Label text="Mutual Funds" />
            <mx:Label text="ULIPs" />
            <mx:Label text="Bullion" />
            <mx:Label text="Fixed Income" />
            <mx:Label text="Loans" />
            <mx:Label text="Property"/>
            <mx:Label text="Assets" />
             <mx:Label text="Borrowings" />
         </mx:VBox>

           <mx:VBox label="Info &amp; Updates"  styleName="lablePlace">
            <mx:Label text="Bids / Offers" />
            <mx:Label text="High / Lows" />
            <mx:Label text="Financial" />
            <mx:Label text="Quarterly" />
            <mx:Label text="PE" />
            <mx:Label text="Book Value" />
            <mx:Label text="Moving Averages" />
            <mx:Label text="Dividends" />
            <mx:Label text="News" />
            <mx:Label text="Notices" />
            <mx:Label text="Messages" />
        </mx:VBox>
        <mx:VBox label="Alerts"  styleName="lablePlace">
            <mx:Label text="MF Dividends" />
            <mx:Label text="Mail Alerts" />
            <mx:Label text="SMS Alerts" />
        </mx:VBox>
        <mx:VBox label="Settings"    styleName="lablePlace">
            <mx:Label text="Manage Accounts" />
            <mx:Label text="My Profile" />
            <mx:Label text="Change Password" />
            <mx:Label text="My Notes" />
        </mx:VBox>
</mx:Accordion>


  * test.mxml -->this will load mxml componet(accodianComponent)* -->*Actually
here i need both test.swf   and                   component   sizes are
same.
 so that i can load it another file in a particular space*

<?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
         layout="absolute"  backgroundColor="#ffffff"
        paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0"
       xmlns:myComponents="components.*" height="500" width="300">

     <mx:Script>
          <![CDATA[

           ]]>
        </mx:Script>


         <!-- * **is it possible here???*
         <mx:SWFLoader id="swfLoader"
source="components/accordianComponent.swf">
            </mx:SWFLoader>
        />
         -->

         <myComponents:accordianComponent id="accor">
         </myComponents:accordianComponent>

  </mx:Application>

*swfLoader.mxml* -->* this will load test.swf*

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
     layout="absolute"
    backgroundColor="#ffffff">
    <mx:Script>
        <![CDATA[
            import mx.controls.Button;

            private function loadShockWaveFile():void{
             loader.source = "testing.swf";
            }

        ]]>
    </mx:Script>
    <mx:VBox>
    <mx:HBox borderStyle="solid" borderColor="black" horizontalGap="0"
id="hbox">
    <mx:SWFLoader id="loader">
    </mx:SWFLoader>
    </mx:HBox>
    <mx:Button label="click to load"  click="loadShockWaveFile()"/>

    </mx:VBox>
</mx:Application>


On Thu, Oct 22, 2009 at 8:49 PM, <edwin.vgw...@gmail.com> wrote:

> Can you supply code?
>
>
>
> On Thu, Oct 22, 2009 at 11:09 AM, Renu <renud...@gmail.com> wrote:
>
>> You can create a component and embedd it in a new application and then
>> generate a swf from it. Load this swf through SWF loader in you main
>> application.
>> Hope this will help you.
>>
>> --
>> Thanks,
>> Renu
>>
>>
>> On Thu, Oct 22, 2009 at 6:58 PM, <edwin.vgw...@gmail.com> wrote:
>>
>>> Create A Module
>>>
>>>
>>> On Thu, Oct 22, 2009 at 8:42 AM, Gerald Anto <flex.gerald.a...@gmail.com
>>> > wrote:
>>>
>>>>
>>>> Shall we load a mxml component in SWFLoader.
>>>>
>>>> Actually i have a accordian container component(mxml componet).
>>>> now i want to load that component into another page using SWFLoader.
>>>> is it possible?
>>>> if so please give me some ideas.
>>>>
>>>> yes we can do like xmlns:namespace in the application(example
>>>> test.mxml)
>>>> now when i load test.swf it shows full page of test.swf.
>>>> so am asking solution
>>>>
>>>> Thanks&Regards,
>>>> Gerald A
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
> >
>


-- 
Thanks & Regards,
A  Gerald

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to