|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
[flex_india:26369] Aditya Birla Group interview questionsWanted to share some of the questions asked in Aditya Birla Group interview . Appreciate if someone please answers these questions. I am even unsure if these questions are correct or not 1. How to display popup windows without using PopupManager class 2. How to create and dispatch a custom event class without subclassing any of the class hierarchies in Event class. 3. From Flash player 9 and 10, how to bypass the security sandbox settings to write into the local file system 4. How to create custom RSL (Runtime shared library) files, i.e. We are not permitted to create swc files 5. How to refresh the browser window using ActionScript These were the questions asked. - Prem --~--~---------~--~----~------------~-------~--~----~ 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@... To unsubscribe from this group, send email to flex_india+unsubscribe@... For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
[flex_india:26382] Re: Aditya Birla Group interview questionsnow addchild your popup component on canvas. while removing popup dont forget to remove canvas too :) 5) include following code in to ur .html file <script language=JavaScript> function refreshPage(){ window.location.reload(true); } </script> and ur application will call getURL("javascript:refreshPage()"); or you can simply use navigateToURL(new URLRequest("your app url"),"_Self");
this will reopen the application too On Wed, Nov 4, 2009 at 3:29 PM, prem <premasis@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ 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@... To unsubscribe from this group, send email to flex_india+unsubscribe@... For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
[flex_india:26387] Re: Aditya Birla Group interview questionsAnswer 2 : Proof of Concept
Make a separate MyEvent class with the property "type" in it, you can also add more. Make a singleton class, take an array or Dictionary variable (eventMap). Define three functions. dispatchEvent(obj:Object):void { var handlers:Array = eventMap[obj.type]; for each (var fn:Function in handlers ) { fn(); } } addListener(evenType:String, handler:Function):void { if(eventMap[eventType]) { eventMap[eventType].push(handler); } else { var tempArr:Array = new Array(); tempArr.push(handler); eventMap[eventType] = tempArr; } } removeListener(evenType:String, handler:Function):void { var tempArr:Array = eventMap[eventType]; if(tempArr) { tempArr.remove(handler); // logically } } But for all the event handling you need to use the Singleton Object. Eg. singleObj.dispatchEvent(...); singleObj.addListener(...); singleObj.removeListener(...);
On Wed, Nov 4, 2009 at 6:32 AM, manish sankhe <sankhe.manish@...> wrote: 1) create new canvas on top of ur application with height and width equals to application's height and width , also keep the alpha=0 -- Thanks, Vaibhav Seth. --~--~---------~--~----~------------~-------~--~----~ 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@... To unsubscribe from this group, send email to flex_india+unsubscribe@... For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
[flex_india:26388] Re: Aditya Birla Group interview questionsAnswer 4:
I am not sure whether this is the correct answer or not, but Module can also be treated like a RSL.In one module you can make just common components and can refer them in other modules. And each module is .swf in itself, so logically, it can be treated as a RUN time library. On Wed, Nov 4, 2009 at 4:59 AM, prem <premasis@...> wrote:
-- Thanks, Vaibhav Seth. --~--~---------~--~----~------------~-------~--~----~ 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@... To unsubscribe from this group, send email to flex_india+unsubscribe@... For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
[flex_india:26421] Re: Aditya Birla Group interview questions5 ) call from anywhere in ActionScript:
flash.net.navigateToURL(ownReloadingUrl, “_self”); 4) how to create a swf a) get your swc , open it with your favorite zip extractor (may be winrar / 7zip.. or what ever you like) , extract library.swf b) run the optimizer with flex command prompt on the extracted swf, here {FLEX_SDK}\bin\optimizer -keep-as3-metadata="Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient" -input {PATH}\library.swf -output {PATH}\output.swf c)get the output.swf if you need you can rename it to myNewlyCreated.swf :) d) run the digest tool to update the SWC digest information since the RSL has been modified. and you are ready to use. note each update will need the whole process redone. use you can run mxmlc main.mxml -runtime-shared-library-path={path} \ {swf} where application would be able to load the library on runtime, if you want you can add a fail over with cross-domain for give privileged o load the fail over one -runtime-shared-library-path={swf},{path-this can be a url} , //next is the fail over url with cross-domain http://a.com/path/crossdomain.xml,{swf} 3) beats ..me :-) 2) even all the
i would really love know if somebody knows how to do this.... any interviewers....who raised this question happens to be in the list ..anyone ;-) [but this will be like reinventing the wheel] 1) most probably a method like manish's :) cheers... dinukx On Wed, Nov 4, 2009 at 9:28 PM, Vaibhav Seth <seth.vaibhav.08@...> wrote: Answer 4: --~--~---------~--~----~------------~-------~--~----~ 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@... To unsubscribe from this group, send email to flex_india+unsubscribe@... For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
[flex_india:26429] Re: Aditya Birla Group interview questionsHi,
Answer-1 Use TitleWindow class instead of PopUp,
and its done.
Answer-2 Create a local instance of the
base-class(dont inherit the class, but make a instance of that in the active
class), and than set the META-Data for that, and finally apply the
dispatchEvent(), with the parameters....it done.
Answer-3 Use CrossDomain.xml to by pass Sandbox
security.
Answer-4 --no idea--
Answer:5 this.refresh() (using AS-3)
I would like to thank you, for sharing some such
good questions and i request all of the mates(community-friends), to share (if
any) such good-experiences.
Regards
Abhinav Mehta
MSRIT- Bangalroe
|
|
|
[flex_india:26449] Re: Aditya Birla Group interview questionsHey abhinav ;
could you explain a little bit more on your second answer , i would really like to try that out :) cheers dinukx On Thu, Nov 5, 2009 at 7:39 PM, Abhinav Mehta <mehta.88036@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ 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@... To unsubscribe from this group, send email to flex_india+unsubscribe@... For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |