Re: [flexcoders] Setting width/height not affecting visual display?

2010-07-13 Thread Mayur Bais
Two things

1) Try setting the height and width of the "container".

2) I tried to read the adobe docs  and it says The SpriteVisualElement class
is a light-weight Sprite-based implemention of IVisualElement. and there are
no height and width property available for this class.
where are there are only write only protected properties available and that
are viewHeight and viewWidth (Which scales instance of IVisualElement
proportionately.)
You might want to check more in details
http://docs.huihoo.com/flex/4/spark/core/SpriteVisualElement.html



On Tue, Jul 13, 2010 at 6:44 PM, Oleg Sivokon  wrote:

>
>
> These properties may be overridden. My gut feeling says there should be
> something like commitProperties / validate or some similar method to apply
> all changes to the changed display object.
>
>  
>


[flexcoders] Re: Module's setup / ready event is not dispatched

2010-03-10 Thread Mayur
I have already taken such precautions.

See my code is something like this,

Note : As per module life cycle, if module loads fully
( i.e.   byetsLoaded = bytesTotal )
Module has fully arrived at client side. 
And there must be a ModuleEvent.SETUP  dispatched in between the load / 
progress of same meodule.
(as per my understanding )

//* code snippet start   *


private var moduleInfo:IModuleInfo; // variable at class level

// some function below

{
moduleInfo = ModuleManager.getModule( moduleURL );
moduleInfo.addEventListener( ModuleEvent.SETUP, onModuleSetup);
moduleInfo.addEventListener( ModuleEvent.PROGRESS, onModuleProgress);
moduleInfo.addEventListener( ModuleEvent.READY, onModuleReady );
moduleInfo.addEventListener( ModuleEvent.ERROR, onModuleError );

moduleInfo.load(ApplicationDomain.currentDomain);
}  //function ends


protected function onModuleSetup(moduleEvent : ModuleEvent ) : void
{
  Alert.show(moduleEvent.type ,"Module Setup Event");   
}

protected function onModuleProgress(moduleEvent : ModuleEvent ) : void
{
  Alert.show(moduleEvent.bytesLoaded +" / "+
moduleEvent.bytesTotal +" bytes ","Module Progress Event"); 
}

protected function onModuleError ( moduleEvent : ModuleEvent) : void
{
Alert.show(moduleEvent.errorText+" ::: " +   moduleEvent.type.toString()); 
}

protected function onModuleReady( moduleEvent:ModuleEvent ):void
{
var moduleInfo:IModuleInfo = moduleEvent.module;
var objModuleInfo : Object = moduleInfo.factory.info();
var moduleObject: Object = moduleInfo.factory.create();

if(moduleObject != null)
{
//some business logic
//
}
}

//* code snippet end   *

--- In flexcoders@yahoogroups.com, kris range  wrote:
>
> You might want to look at this:
> 
> http://bugs.adobe.com/jira/browse/SDK-14021
> 
> Make sure your module variable isn't local and instead saved somewhere so it
> isn't garbage collected!
> 
> 
> On Wed, Mar 10, 2010 at 4:11 PM, Peeyush Tuli  wrote:
> 
> >
> >
> > have you added an error event listener to the IModuleInfo reference from
> > getModule to see if there is an error in loading the complete module?
> >
> >
> > On Wed, Mar 10, 2010 at 6:45 PM, Mayur  wrote:
> >
> >>
> >>
> >> I am having a problem with Module - SETUP event is not dispatched.
> >>
> >> Though I am getting the mdoule's PROGRESS event fully - continuous until
> >> all the bytes of the specified module are loaded.
> >>
> >> That means, the required module has fully reached at client side but I
> >> still I am not getting module's READY event.
> >>
> >> I am using ModuleManager to load modules dynamically with RSLs.
> >>
> >> Thanking in Advance,
> >>
> >> Mayur
> >>
> >>
> >
> >
> >
>




[flexcoders] Module's setup / ready event is not dispatched

2010-03-10 Thread Mayur
I am having a problem with Module - SETUP event is not dispatched.

Though I am getting the mdoule's  PROGRESS event fully - continuous until all 
the bytes of the specified module are loaded.

That means, the required module has fully reached at client side but I still I 
am not getting module's READY event.


I am using ModuleManager to load modules dynamically with RSLs.



Thanking in Advance,


Mayur 



[flexcoders] How to preload RSL

2009-11-23 Thread Mayur
I am facing some problem with RSL.

I have an application contains many different modules.
(One base main swf file 
and
  other module swf files )

I have created RSL of my some Flex Library projects as well as some third party 
open source APIs e.g. Papervision3D, Degrafa etc.

The problem comes of - RSL not available - while loading / instantiating a 
module dynamically run time.

So, I need to have an RSL to be available at the client side, Before my module 
is loaded / ready.


Thanking you in advance.


Mayur 




[flexcoders] Issue of RSL for a Module

2009-11-22 Thread Mayur
I have an issue of RSL  with  Module.


code snippet
-

private var moduleInfo:IModuleInfo;

public var moduleURL : String = "MyPersonalHomePage.swf";


moduleInfo = ModuleManager.getModule( moduleURL );
 

moduleInfo.addEventListener( ModuleEvent.READY, onModuleReady );
  

moduleInfo.addEventListener( ModuleEvent.ERROR, onModuleError );

moduleInfo.load();


protected function onModuleReady( moduleEvent:ModuleEvent ):void
{
var moduleInfo:IModuleInfo = moduleEvent.module;
   
var objModuleInfo : Object = moduleInfo.factory.info();

//var dictionaryOfModule : Dictionary = moduleInfo.factory.preloadedRSLs;

// upto above point things are fine ( in debug I can see that module is 
loaded="true" ready="true" ) 
// - as soon as I run the below line ( create() on factory ) the module 
instance returned ' null '
// can some one explain me what's going wrong internally 

var moduleObject: Object = moduleInfo.factory.create();
 

if(moduleObject != null)
{
if(moduleObject is IDummyInterface)
{
  var dummyContent: IDummyInterface = moduleObject  as IDummyInterface;
  dummyContent.setParameter("xyzstring");
dummyContent.setDP(testXML);
}
else
{
  Alert.show(" +-+-+-+-+-+  module is not available  +-+-+-+-+-+");
}
 
 }

~
   Module : MyPersonalHomePage
~
http://www.adobe.com/2006/mxml";
implements="IDummyInterface"
focusEnabled="true" >

// some open sournce flex libraries are used here

// e.g.  Papervision, Tweener, Degrafa etc.   






Mayur



[flexcoders] Re: cropping image under mask

2009-02-24 Thread Mayur Bais
any suggestions 

On Mon, Feb 23, 2009 at 3:53 PM, Mayur Bais  wrote:

> I am trying to crop image in different different shape,
> for this , I am trying to use the technique of masking
>
>
> here is what i am trying to do
> :
> function drawBMP(): void {
>
> var bd:BitmapData = new
> BitmapData(maskedImage.width, maskedImage.height, true, 0);
> bd.draw(maskedImage); target.source = new Bitmap(bd);
> }
>
> 
>
> 
> 
> 
>
> 
>
>   source="small.jpg">
>
> 
>   
> borderStyle="solid" backgroundColor="#ff"/>
>
> 
>
>
>
> It works when  we set x, y of the images to 0,0... it gets screwed up when
> u increase the x and y of the image..
> its because of masking.. can any body please suggest me the solution
>
>


[flexcoders] cropping image under mask

2009-02-23 Thread Mayur Bais
I am trying to crop image in different different shape,
for this , I am trying to use the technique of masking


here is what i am trying to do
:
function drawBMP(): void {

var bd:BitmapData = new
BitmapData(maskedImage.width, maskedImage.height, true, 0);
bd.draw(maskedImage); target.source = new Bitmap(bd);
}









 


  
   





It works when  we set x, y of the images to 0,0... it gets screwed up when u
increase the x and y of the image..
its because of masking.. can any body please suggest me the solution


[flexcoders] Re: HTML editor for Flex Builder 3?

2009-02-18 Thread Mayur

Hi Go to Flex Builder -> windows -> install / update... -> here you
can select " Europa Discovery site " ->  

and press " Finish " ( select automatic choose mirrors.. not
compulasry but recommended )

On next screen Search Results an Europa Discovery Site...
Expand and select your required stuffs only.

Now, the twist ...  system may show you some red(erroneous message )
don't worry just finish selection of  your required stuffs(options)
and then click on " Select Required " button on right side.

then Next... and Finish...

Woi... its done. :)


--- In flexcoders@yahoogroups.com, "huu...@..."  wrote:
>
> Sam, how do I select a Europa-only update site?
> 
> I added this URL (http://download.eclipse.org/webtools/updates/), but
> I'm confused about how to select a Europa-compatible update.
> 
> --- In flexcoders@yahoogroups.com, Sam Lai  wrote:
> >
> > That's definitely an option - go to Help -> Software Updates -> Find
> > and Install. At least select the Europa Discovery Site when prompted
> > for update sites. Click next and that should give you a list of things
> > to pick to install. The names are pretty cryptic, and the descriptions
> > aren't descriptions, but I think the Web Standard Tools should give
> > you want you need.
> > 
> > This way lets you be even more picky about what to install, and what
> > not to (e.g. if you don't need PHP support).
> > 
> > 2009/2/18 Jeffry Houser :
> > >
> > >  What's the difference between the two options?
> > >  And/or why wouldn't you be able to install PDT as a plugin to Flex
> > > Builder?   (Instructions for that seem to be here:
> > > http://wiki.eclipse.org/PDT/Installation#From_Update_Site )
> > >
> > >  Whether good or bad, I do most of my HTML editing in CFEclipse
> which is
> > > designed for ColdFusion / CFML.
> > >
> > > huuuze@ wrote:
> > >
> > > Thanks Alan.  I appreciate the response.  Unfortunately, I'd
prefer to
> > > use Flex Builder stand-alone and augment it via plugins rather than
> > > download Eclipse and augment it with the Flex Builder plugin.
> > >
> > > Any other suggestions?
> > >
> > > --- In flexcoders@yahoogroups.com, Alan K  wrote:
> > >
> > >
> > > Download Eclipse PDT and install Flex Builder as a Plug ­in.
> > >
> > > You will have code hinting and debugging for HTML, XML, PHP as well
> > >
> > >
> > > as other
> > >
> > >
> > > nifty stuff.
> > >
> > > http://www.eclipse.org/pdt/release-notes/pdt2_0.php
> > >
> > >
> > >
> > > Alan
> > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
> > >
>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Jeffry Houser, Technical Entrepreneur
> > > Adobe Community Expert: http://tinyurl.com/684b5h
> > > http://www.twitter.com/reboog711  | Phone: 203-379-0773
> > > --
> > > Easy to use Interface Components for Flex Developers
> > > http://www.flextras.com?c=104
> > > --
> > > http://www.theflexshow.com
> > > http://www.jeffryhouser.com
> > > --
> > > Part of the DotComIt Brain Trust
> > >
> > >
> >
>




[flexcoders] Re: Module Issue....

2009-02-18 Thread Mayur

Eric,

there is error in you code,
in closing Tag of 

Rectify it may solve your problem.


--- In flexcoders@yahoogroups.com, Eric Dunn  wrote:
>
> I am a newbie and not sure what type of listeners you mean... 
> 
> The thing that stands out the most for me is the Module swf file is
never compiled I moved both the main mxl and module mxl into the
root to insure they are where they aught to be... 
> 
> Have any ideas as to why the module is not compiled? 
> 
> Eric W Dunn 
> Adaption Technologies 
> 281-465-3326 
> ed...@... 
> 
> - Original Message - 
> From: "Alex Harui"  
> To: flexcoders@yahoogroups.com 
> Sent: Tuesday, February 17, 2009 5:14:13 PM GMT -06:00 US/Canada
Central 
> Subject: RE: [flexcoders] Module Issue 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Make sure the SWF is where you think it is. Other than that, looks
ok. Attach listeners to events and see what’s happening. 
> 
> 
> 
> 
> Alex Harui 
> 
> Flex SDK Developer 
> 
> Adobe Systems Inc. 
> 
> Blog: http://blogs.adobe.com/aharui 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of Eric Dunn 
> Sent: Tuesday, February 17, 2009 10:48 AM 
> To: flexcoders 
> Subject: [flexcoders] Module Issue 
> 
> 
> 
> 
> 
> 
> 
> I have done this twice before and apparently I am forgetting
something.. 
> 1) Create a main app with add a ModuleLoader and a button to load
module. 
> 2) Create Module - added some text field to display data.. 
> 3) Run app and click button to load module.. 
> I click the button and nothing happens... 
> 
> What have I forgotten to do? Am I not importing something I need to
declaring something? I have looked at the other code and don't see any
difference other than lots more stuff... 
> 
>  
> http://www.adobe.com/2006/mxml";
layout="absolute"> 
>  
>  
>  
>  
>  
>  
>  
>  
> 
>  
> http://www.adobe.com/2006/mxml";
layout="absolute" width="400" height="300"> 
>  
>  
>  
>  
> 
> 
> 
> 
> Eric W Dunn 
> Adaption Technologies! 
> 281- 465-3326 
> ed...@...
>




[flexcoders] Re: hideing a tab in a TabNavigator

2009-01-02 Thread Mayur
Hi, 

If you know which Tab (UI child) not to show.
Then it is much easier.

visible = "false";
includeInLayout = "false";

Beware : This neither removers your object nor frees memory.

Happy Flexing

 ~ Mayur

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> I would use a TabBar whose dataProvider content was dynamically 
driven,
> to show or hide tabs as desired.  I would have that TabBar drive a
> Viewstack.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
> Behalf Of Mario Vieira
> Sent: Friday, January 02, 2009 6:49 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] hideing a tab in a TabNavigator
> 
>  
> 
> editing the display list is a way, or simply trying to set the 
tabNav
> children visible to true/false is also a goal 
> 
>  
> 
> you can create your UI with a method, and so perform checks to see 
who
> will be added at run time or not
> 
> you can create item renderers that uses XML, and perform further 
checks
> based on the UI
> 
> or, or...
> 
>  
> 
> HOWEVER, I would not remove and add child without a more developed 
way
> of doing this so (what about the info you may have in this tab
> container?)
> 
>  
> 
> On 31 Dec 2008, at 15:46, btroop202 wrote:
> 
> 
> 
> 
> 
> How can I hide a with AS3 when a if condition is true.  So it would 
> show in the TabNavigator sometimes. 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-
> 1e62079f6847
> <https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf
> -1e62079f6847> 
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
> <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! 
Groups
> Links
> 
> 
>(Yahoo! ID required)
> 
>mailto:flexcoders-fullfeatu...@yahoogroups.com
> <mailto:flexcoders-fullfeatu...@yahoogroups.com>
>





[flexcoders] Re: Serverside swf compile

2008-10-03 Thread Mayur
Hi...

To generate swf at server side.

  1.  Use ' mxmlc ' and ' compc ' command line tool at server side ( 
you may use any server side technology e.g. .Net, java, php, ROR etc. 
)
  2.   Search on adobe labs there is one utility for compilation on 
fly for Apache and IIS

  http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS

  3.   Through LCDS, also, you can get compiled swf on fly.


If you more elloborate, it will be better to understand the problem  
properly. 


Happy Flexing,
 Mayur Rami

--- In flexcoders@yahoogroups.com, "horizens" <[EMAIL PROTECTED]> wrote:
>
> Hi, I'm about to being working on a skin configurator. I'm wondering
> how to approach generating swfs serverside that could in turn be
> loaded at runtime into a separate Flex app. Ideally, I'd like to 
have
> a library of assets and color picker that a user could choose from 
in
> order to create their unique skin.
> 
> Anyone have insight into how this would be possible?
>





[flexcoders] Flv not playing ..please help

2008-09-29 Thread Mayur Bais
Hi all,
here is my code for flv player..
Flv gets loaded but it does not play at all..
can any Plz tell me what i am doing wrong





http://www.adobe.com/2006/mxml"; width="100%"
height="100%"
xmlns:controls="com.fxcomponents.controls.*" creationComplete="init()"
verticalScrollPolicy="off" horizontalScrollPolicy="off"
 xmlns:view="ms.imfusion.util.view.*"
 borderColor="#9C9C9C">





















Calling the function setFlv('video.flv') load the flv but does not play
it...
Can somebody please help


Re: [flexcoders] error while extending dictionary error ..

2008-05-13 Thread Mayur Bais
ah..ok... got it :) thanks

On Wed, May 14, 2008 at 11:03 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   I'm not speaking from authority, but I'm 99% sure that Dictionary either
> partly is, or relies on some native code that lives in the flash plug-in
> rather than in the Flex SDK library in order to provide the weakKeys
> functionality, and that's why you can't subclass it.
>
> -J
>
>
> On Wed, May 14, 2008 at 3:04 PM, Mayur Bais <[EMAIL PROTECTED]> wrote:
>
> >   :) :) sure ...there is nothing that I could not do without extending
> > dictionary...
> > with singleTon , I wanted to have the only once reference across the
> > application ..
> >
> > I tried once extending it..and ran into a problem..and then solved it by
> > not sub classing it (directly returning)..
> > But the curiosity was there in my mind ..hence put up the question
> > here...
> >
> > Here is the class which i had tried extending dictionary: (though it did
> > not worked...)
> >
> > package ms.imfusion.model {
> >
> > import flash.utils.Dictionary;
> > import ms.imfusion.Constants;
> >
> > public class MemberList extend dictionary
> > {
> >
> >private static var instance:MemberList; // instance of self.
> >
> >
> >
> > /**
> >  * property memberList of type Dictionary
> >  */
> > public  var  memberList:Dictionary;
> >
> >
> > /**
> >  * constructor
> >  */
> > public function MemberList(){
> > super();
> > }
> >
> >
> > /**
> >  * Returns the reference to self
> >  */
> > public static function getInstance():MemberList {
> > if(instance == null){
> > instance = new MemberList();
> > }
> > return instance;
> > }
> >
> >
> >  /**
> >   * Append to memeberlist
> >   * @param tempMember
> >   * @returns void
> >   */
> > public function appendtomemelist(tempMember:MemberObject):void {
> > var userId:int = tempMember.userId;
> > memberList[userId] = tempMember;
> >  }
> >
> >
> > /**
> >  * Creating memberlist
> >  * @param obj from server
> >  * creates MemberObject object and adds to memberlist dictionary
> >
> >  * @returns void
> >  */
> >  public function addToMemberlist(obj:Object):void {
> >for(var i:int=0;i >  var tempMember:MemberObject = new MemberObject()
> >  tempMember.fill(obj[i]);
> >  appendtomemelist(tempMember);
> >  }
> >  }
> >
> >
> >  /**
> >  *Set instance of memberList null on logout
> >  */
> >  public static function setInstanceNull():void{
> >  instance = null; // clear mermber information in the
> > current session
> >  }
> > }
> > }
> >
> >
> >  On Wed, May 14, 2008 at 10:19 AM, Josh McDonald <[EMAIL PROTECTED]>
> > wrote:
> >
> > >   If it's not giving away any business secrets, why on earth would you
> > > want to subclass Dictionary? Flex already has some sort of built in 
> > > support
> > > for singletons, I believe.
> > >
> > > -J
> > >
> > >
> > > On Wed, May 14, 2008 at 2:43 PM, Mayur Bais <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > >   Any specific reason why we should not extend dictionary..?
> > > > I got it working by writing one getter method in the class which
> > > > returned dictionary...
> > > > just curious
> > > >
> > > >
> > > > On Tue, May 13, 2008 at 11:11 PM, Alex Harui <[EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > >Don't extend dictionary, just return a Dictionary.
> > > > >
> > > > >
> > > > >  --
> > > > >
> > > > > *From:* flexcoders@yahoogroups.com [mailto:
> > > > > [EMAIL PROTECTED] *On Behalf Of *Mayur Bais
> > > > > *Sent:* Tuesday, May 13, 2008 2:11 AM
> > > > > *To:* [EMAIL PROTECTED]; flexcoders@yahoogroup

Re: [flexcoders] error while extending dictionary error ..

2008-05-13 Thread Mayur Bais
:) :) sure ...there is nothing that I could not do without extending
dictionary...
with singleTon , I wanted to have the only once reference across the
application ..

I tried once extending it..and ran into a problem..and then solved it by not
sub classing it (directly returning)..
But the curiosity was there in my mind ..hence put up the question here...

Here is the class which i had tried extending dictionary: (though it did not
worked...)

package ms.imfusion.model {

import flash.utils.Dictionary;
import ms.imfusion.Constants;

public class MemberList extend dictionary
{

   private static var instance:MemberList; // instance of self.



/**
 * property memberList of type Dictionary
 */
public  var  memberList:Dictionary;


/**
 * constructor
 */
public function MemberList(){
super();
}


/**
 * Returns the reference to self
 */
public static function getInstance():MemberList {
if(instance == null){
instance = new MemberList();
}
return instance;
}


 /**
  * Append to memeberlist
  * @param tempMember
  * @returns void
  */
public function appendtomemelist(tempMember:MemberObject):void {
var userId:int = tempMember.userId;
memberList[userId] = tempMember;
 }


/**
 * Creating memberlist
 * @param obj from server
 * creates MemberObject object and adds to memberlist dictionary
 * @returns void
 */
 public function addToMemberlist(obj:Object):void {
   for(var i:int=0;i wrote:

>   If it's not giving away any business secrets, why on earth would you
> want to subclass Dictionary? Flex already has some sort of built in support
> for singletons, I believe.
>
> -J
>
>
> On Wed, May 14, 2008 at 2:43 PM, Mayur Bais <[EMAIL PROTECTED]> wrote:
>
> >   Any specific reason why we should not extend dictionary..?
> > I got it working by writing one getter method in the class which
> > returned dictionary...
> > just curious
> >
> >
> > On Tue, May 13, 2008 at 11:11 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> > >Don't extend dictionary, just return a Dictionary.
> > >
> > >
> > >  --
> > >
> > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> > > *On Behalf Of *Mayur Bais
> > > *Sent:* Tuesday, May 13, 2008 2:11 AM
> > > *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com
> > > *Subject:* [flexcoders] error while extending dictionary error ..
> > >
> > >
> > >
> > > Hi all,
> > > I have class extending a dictionary class:
> > >
> > > public class mydict extends Dictionary
> > > {
> > >  publicstatic instance:mydict // done to maintain singleton
> > > class
> > >  function mydict (){
> > >   super();
> > >   }
> > >
> > >public static funtion getInstance():mydict {
> > >  return instance;
> > >   }
> > >
> > > function addTodict(id:int,val:String):void{
> > > mydict [id] = val // its giving me error here...can not create
> > > proeprty 26..(if  id was 26..) on mydict
> > >}
> > >   }
> > >
> > >
> > >
> > > Any work around??
> > >
> > > Regards
> > > Mayur
> > >
> > >
> >
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 
>


Re: [flexcoders] error while extending dictionary error ..

2008-05-13 Thread Mayur Bais
Any specific reason why we should not extend dictionary..?
I got it working by writing one getter method in the class which returned
dictionary...
just curious

On Tue, May 13, 2008 at 11:11 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Don't extend dictionary, just return a Dictionary.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Mayur Bais
> *Sent:* Tuesday, May 13, 2008 2:11 AM
> *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com
> *Subject:* [flexcoders] error while extending dictionary error ..
>
>
>
> Hi all,
> I have class extending a dictionary class:
>
> public class mydict extends Dictionary
> {
>  publicstatic instance:mydict // done to maintain singleton class
>  function mydict (){
>   super();
>   }
>
>public static funtion getInstance():mydict {
>  return instance;
>   }
>
> function addTodict(id:int,val:String):void{
> mydict [id] = val // its giving me error here...can not create
> proeprty 26..(if  id was 26..) on mydict
>}
>   }
>
>
>
> Any work around??
>
> Regards
> Mayur
>
>  
>


Re: [flexcoders] Maintaining styles and locales(proeprties files)

2008-05-13 Thread Mayur Bais
can u not keep the styles and text file..in once folder..
and add that folder as a external source path ..to all ur locale project..
and there by only one copy gets used across all projects...


On 5/13/08, mydarkspoon <[EMAIL PROTECTED]> wrote:
>
>   Hi,
> I'm currently working on a project where both styles and language
> content are externalized and loaded at runtime.
> The same application is supplied to all clients from the same code
> base, and the changes are only made on the locales/styles.
>
> As the styles and the locales are compiled for every client
> differently, they're located on separated projects:
> -Main application project (Same code base for all clients)
> -Styles flex project (per client)
> -Locale project (per client)
>
> Since the main app is rapidly being developed, new styles and texts
> are added.
> Whenever new text is added to the app, it needs to be added to each
> and every locale project, even if all clients share the same text.
> same goes with styles.
>
> This is a quite maintenance issue and I'm looking for ways to make
> this proccess easier.
>
> I'll be really glad to get get some advices regarding maintenance of
> such architecture.
>
> Thanks in advance,
>
> Almog Kurtser.
>
>  
>


[flexcoders] error while extending dictionary error ..

2008-05-13 Thread Mayur Bais
Hi all,
I have class extending a dictionary class:

public class mydict extends Dictionary
{
 publicstatic instance:mydict // done to maintain singleton class
 function mydict (){
  super();
  }

   public static funtion getInstance():mydict {
 return instance;
  }

function addTodict(id:int,val:String):void{
mydict [id] = val // its giving me error here...can not create
proeprty 26..(if  id was 26..) on mydict
   }
  }



Any work around??

Regards
Mayur


Re: [flexcoders] state enter /exit

2007-09-21 Thread Mayur Bais
So, It means not to use state...I could it working by hiding and making
visible
Thanks


On 9/21/07, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>If the canvas gets destroyed and recreated, then it will call init() as
> it gets recreated.  You would need to prevent re-creation by hiding and
> showing the canvas instead.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *learner
> *Sent:* Thursday, September 20, 2007 8:59 PM
> *To:* flexcoders@yahoogroups.com
> *Cc:* Flex India Community
> *Subject:* Re: [flexcoders] state enter /exit
>
>
>
>
> It is getting destroyed and re-created.but the intialization variables
> that are kept on
> init() ..are getting initialized again and again...
> how to avoid that..
>
>  On 9/20/07, *Alex Harui* <[EMAIL PROTECTED]> wrote:
>
> You sure the Canvas isn't getting destroyed and re-created?
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On
> Behalf Of *learner
> *Sent:* Thursday, September 20, 2007 1:25 AM
> *To:* flexcoders@yahoogroups.com; Flex India Community
> *Subject:* [flexcoders] state enter /exit
>
>
>
> Hi All,
> I observed that the creationComplete event of the compoent  is fired
> everytime the state of the component is changed.
>
> Ex:
>
>  creationComplete= init() xmlns:mx=" http://www.adobe.com/2006/mxml"; >
>
> 
>public function init(){
>// some action
>
>}
> 
>
> 
> 
> 
> 
>  
>
> 
> 
>   
> 
> 
>
> 
>
> if i change the state of this  compoenet ... the creation complete gets
> fired everytime
> is there any work arround to avoid this ??
>
> Regards
> PS
>
>
>
>  
>


Re: [flexcoders] Re: compiling java classes for flex data services

2007-05-28 Thread Mayur Bais

Thanks for replying, but  for compiling java class why would i need swc?
though I have one in my class library path.
Regards
PS ε

On 5/28/07, simonjpalmer <[EMAIL PROTECTED]> wrote:


  I think you are probably missing fds.swc from your library path.

If you are using the Eclipse IDE, search for it on your computer and
then add it to the Flex Build Path / Library Path in your Flex project.

--- In flexcoders@yahoogroups.com , learner
<[EMAIL PROTECTED]> wrote:
>
> I have trying the sample examples for the flex data service and
following
> the CRM samples .
>
> I could write good value object class in both AS and JAVA , and also the
> class to communicate with database(my-sql in my case).
>
> but while looking at the EmployeeAssembler.java in the sample and
tried to
> modify to suit my needs
> I am getting following error
>
> samples\crm\EmployeeAssembler.java:21package flex.data does not
exist import
> flex.data.ChangeObject;
>
> samples\crm\EmployeeAssembler.java:22package flex.data does not
exist import
> flex.data.DataSyncException;
>
> samples\crm\EmployeeAssembler.java:23package flex.data does not
exist import
> flex.data.DataServiceTransaction;
>
> samples\crm\EmployeeAssembler.java:23 package flex.data does not exist
> import flex.data.assemblers.AbstractAssembler;
>
> Can any body put light on this?
>
> Regards 
> PS å
>

 



Re: [flexcoders] var in Loop

2006-10-11 Thread Mayur Bais



yeah thanks it was helpfull :)
On 10/11/06, EECOLOR <[EMAIL PROTECTED]> wrote:






Hello,
 
Its not that the concept of the for..in loop has changed (i think), but the way classes are defined internally has changed.
 
Properties and methods of classes that are defined inside the class definition will not change at runtime. This is (i think) why they are stored in a different place, it might even help prove performance (again, i think). So for the runtime player they are actually something else then the dynamic properties of an object (or an array). 

 
I hope this helps in any way.
 
 
Greetz Erik
 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] icons in tile list

2006-09-18 Thread Mayur Bais



hello all ,
 
I am trying to display images in the Tilelist component whose path is given in the xml. The xml is located on the harddrive which is loaded in my mxml application as follows : 
 
    import flash.events.*;    import flash.net.URLLoader;    import flash.net.URLLoaderDataFormat;    import flash.net.URLRequest;
    
    public var myXML :XML;
 
 var XML_URL:String = "templateList.xml"
     var myXMLURL:URLRequest = new URLRequest(XML_URL);     var myLoader:URLLoader = new URLLoader(myXMLURL);    myLoader.addEventListener("complete", xmlLoaded);  
     function xmlLoaded(evtObj:Event):void{        myXML = XML(myLoader.data);
   }    
 
I am using this myXML object as the dataProvider for tileList as follows  :
 
       
 
the strucutre of the xml templateList.xml  is : 
 
    sample1.jpg       sample1    sample1.jpg
  sample2 
  :
  :
  :
 
 
Please help me.
Thanks in advance 
Mayur
 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___