[Flashcoders] TextIndex component

2008-06-09 Thread natalia Vikhtinskaya
Hi
I cannot find solution to put cursor in TextIndex component. I use
this component as password input and want that cursor is ready for
typing. I tried Selection.setFocus(password_txt),
password_txt.SetFocus(). But this does not work for TextIndex
component.
I don't see cursor in text box. It looks it is not possible.
This is AS2.
Thanks in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 3 level drop down menu - AS3

2008-06-09 Thread Ashim D'Silva
XML will solve all your troubles. With as3 flash now natively handles the
E4X syntax. You'll be able to run through everything that way.

2008/6/9 Vayu Robins [EMAIL PROTECTED]:

 Hi.

 I am struggling with something I never thought would be an issue.

 I'm trying to develop a 3 level drop down menu in as3 and I am connected to
 a database where all the menu items are stored.  I am getting the stored
 data with the help of amfphp.

 I naively assumed I could just run the data I got from the database in some
 for loops and have the following structure:

 Topmenu1
Submenu1
Submenu2
SubSubmenu1
SubSubmenu2
 Topmenu2
Submenu1
Submenu2

 Etc.

 The top menus have a parent_id = 0. The submenus have parent_id = its
 parents id and so on.

 Could anyone please help me out of this pickle?

 Cordially
 Vayu


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Random Lines 3D
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Close current browser from flash without alert message.

2008-06-09 Thread natalia Vikhtinskaya
Hi
I want to close my current(main) browser from flash when a new pop up
browser appears(first page I use for choosing language).
I use this code for new window:
getURL (javascript:window.open('main_eng.html','mainPage','fullscreen=yes,
scrollbars=no, status=no, menubar=no, titlebar=no, toolbar=no,
location=no');void(0););
As I know it is not possible without alert message if I try to close
current page. But maybe there is a solution?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Pls help, I am stuck - Slideshow Issue

2008-06-09 Thread Glen Pike

Hi,

   I have had a quick look at your code, but I am not really sure what 
you are trying to do.


   Did you post all the code?

   Do you load a single XML file or one for each menu level?

   I am away on holiday later today, so if I don't get back to you, 
then that's why, sorry.


   Glen

Rajiv Seth (Pixelated) wrote:

Hi Glen,
I have updated the link http://dev.epsilonium.com/flashforum/ with code.
Please see if you can suggest me something better. Which I am sure you will.

If you can tell me the basic approach and some important
methods/functions/classes, I will try it out.

Recently I saw this site
http://www.liquidjourney.com/flash/lq3.html

It has similar type of portfolio, but not the slide show.

Thanks
Rajiv

On Fri, Jun 6, 2008 at 8:25 PM, Glen Pike [EMAIL PROTECTED] wrote:

  

Hi,

  I don't know of any samples, but maybe post some code and we will try to
help you if the examples below are no help...

  Are you using trace commands to see where things happen and don't
happen - if so, can you walk / talk us through it or post the bit that does
not work.

  Off the top of my head - are you implementing the EventDispatcher
interface for any class that dispatches events?
(AS2)
  //e.g.  a simple class that extends MovieClip, uses the EventDispatcher
mechanism and sends an event when the movie clip reaches the last frame.

  import mx.events.EventDispatcher;

  class MyClassSendsEvents extends MovieClip {

  function MyClassSendsEvents() {
  EventDispatcher.initialize(this);
  }
private function onLoad():void {
//Sometimes your _parent class cannot access child clips until they
are initialised, here is a fix to make sure that the children all tell the
parent they are loaded
_parent.register(this);
  }
private function onEnterFrame():void {
   if(_currentframe == _totalframes) {
  dispatchEvent( { type: end } );
   }
  }

  public function addEventListener(event:String, listener):Void {}
public function removeEventListener(event:String, listener):Void {}
public function dispatchEvent(eventObject:Object):Void {}
  }
Are you using the Delegate class to make sure that the functions that
listen for events are scoped to the right function and class?

  e.g.
  //A class that listens for events on the above example...
  import MyClassSendsEvents;
  import mx.utils.Delegate;

  class MyClassReceivesEvents extends MovieClip {
 function MyClassReceivesEvents() {}

 function onLoad() {
//normally you could add event listeners to child clips here, but I
have had many problems with uninitialised clips in the past, so use the
register function...
 }

 public function register(obj:MyClassSendsEvents):void {
obj.addEventListener(end, Delegate.create(this, _end));
 }

 private function _end(evt:Object):void {
trace(an object sent an end event  + evt.target +  was the
object  + evt.type +  was the event);

 }
  }

Rajiv Seth (Pixelated) wrote:



Hi,

yes you are right. I do have this basic idea. And I have used something
like
that only. But it doesn't seem working. Is there any possibility, that I
can
get some small running sample similar to this. Then I will  be able to
handle it.

Thanks

Rajiv

On Fri, Jun 6, 2008 at 6:23 PM, Glen Pike [EMAIL PROTECTED]
wrote:



  

Hi,
   Are you doing this in AS2 or AS3?

 How are you on OOP  Events?  This will affect how you interpret the
stuff below, but here is an idea from what you have said:

 I would suggest using some kind of Event mechanism, so that when your
slideshow reaches the end of the current list of images, it will tell the
application that is has finished - the application should then load the
slideshow with the next list of images and update the menu.

 That's a simple description, but I think that's the way I may approach
it
- using events and separating stuff into blocks that send events
around.

 Hope this helps?


 Glen

Rajiv Seth (Pixelated) wrote:





HI Glen,

Thanks for responding. Following is the link. I have put some details
there
too.

http://dev.epsilonium.com/flashforum/

Rajiv
-
On Fri, Jun 6, 2008 at 5:01 PM, Glen Pike [EMAIL PROTECTED]
wrote:





  

Hi,

 Your attachments get scrubbed by the list.  Do you have a link to an
online image?

 Glen

Rajiv Seth (Pixelated) wrote:







Hi,

I am working on menu driven (which has submenu too) flash portfolio.
And
it's working fine. It has xml data. I want to have a Slide show
feature
for
this portfolio. Please refer to layout image attached. I want my
slideshow
run in a way that all menu  submenu should also increment as the show
proceeds. Can anyone help me in this?




 

___
Flashcoders mailing