pupUpManager Problems
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: pupUpManager Problems

  1. #1
    Member
    Join Date
    Sep 2001
    Location
    Vienna
    Posts
    43

    pupUpManager Problems

    I am using an instance of the DateField and of the ComboBox components inside a MovieClip that I am loading dynamicaly using attachMovie. In both cases the popUpManager creates the dropDown Menu behind the MovieClip. Any ideas how to solve the problem?
    Attached Images Attached Images

  2. #2
    Member
    Join Date
    Sep 2001
    Location
    Vienna
    Posts
    43

    Ok so I found the problem!

    Ok, so I (kind of) found the problem!

    If you attach the movieClip with the components using for level the getNextHighestDepth() function the popUpManager seems to get confused and doesn't know where to show the pupUps.
    You have to attach the movieClip with an integer as level!!!!!

    No Idea why this happens but at least now is working.

  3. #3
    Junior Member
    Join Date
    May 2003
    Location
    NYC NY
    Posts
    1

    re

    Can you show me an example of how you solve this. I have the same situation

  4. #4
    Member
    Join Date
    Sep 2001
    Location
    Vienna
    Posts
    43
    I was looking at some code I did recently and I solve the problem like this:

    import mx.controls.*
    import mx.data.components.*;

    class MyContainerClass extends mx.core.UIObject{

    private var template_cb : ComboBox;
    private var startDate_df : DateField;

    public function MyContainerClass{
    this.createClassObject(mx.controls.DateField, "startDate_df", this.getNextHighestDepth());
    startDate_df.move(725, 2);
    ...

    this.createClassObject(mx.controls.ComboBox, "template_cb", this.getNextHighestDepth());
    template_cb.setSize(250, 22);
    template_cb.move(70, 66);

    }

    }

    By having your container extend the mx.core.UIObject class you have access to the createClassObject Method which seems to work much better than instancing the components using the attachMovie method.

    Hope that helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com