Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6368887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:43:57+00:00 2026-05-25T00:43:57+00:00

I load a cal swf file in another swf files mdi_window. So the window

  • 0

I load a “cal” swf file in another swf files mdi_window. So the window is moveable inside the application.

The issue is with the x y axis for the popups that open up in cal swf.
The code for the function that opens popup is:

private var eventPanel:ElixirEventPanel = null;
        private function showEventEditPanel(item:CalendarItem,x:int,y:int):void{            
            eventPanel = ElixirEventPanel.sharedInstance;       
            eventPanel.setStyle("modalTrasparancy",0);
            eventPanel.setStyle("modalTransparencyBlur",0);
            eventPanel.setStyle("modalTransparencyColor",0xffffff);
            eventPanel.setStyle("modalTransparencyDuration",0);
            PopUpManager.addPopUp(eventPanel,DisplayObject(super), false);       
            eventPanel.calendarItem = item;

            eventPanel.x = x - eventPanel.width;
            eventPanel.y = y - eventPanel.height/2;
            if(eventPanel.y < this.parent.scaleY + 100)
                eventPanel.y = this.parent.scaleY + 100;


        }

Now as this swf is being loaded in another file using : (as you can see I am trying to convert the local co-ordinates to Global, using localToGlobal function, but I guess I am doing something wrong in that)

<s:SWFLoader id="template" source="Cal.swf" loadForCompatibility="true" width="100%"  height="100%" scaleContent="true" complete="dump(event);"/>
<fx:Script>
            <![CDATA[   
        private function dump(event:Event): void {              
            var panel:MovieClip = MovieClip(template.content);
            var pt:Point = panel.localToGlobal(new Point(panel.x, panel.y));                
        }
    ]]>
</fx:Script>

The x & y axis of the popup act wired based on the location of the mdi_window in which the Cal.swf is being loaded. The x & y axis work fine if I move the mdi_window all the way on the top left corner of the application.

The first image shows how the popup opens when I double-click on the 10:00 AM purple color event on my calendar. enter image description here

and now when I move my window the popup moves to the side as well. I clicked on the same 10:00Am purple event again here: enter image description here
How can I solve this issue.

Any suggestions are appreciated.

Best
Zee

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:43:58+00:00Added an answer on May 25, 2026 at 12:43 am

    Have you tried localToGlobal() to translate a local point to a global point? It should work but I’ve never tried it with SWFLoader.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I load local data inside a UIWebView. That instance of UIWebView is added to
Load multile SWF files from XML data and upon NEXT and BACK button it
I load a single instance of a window on php-gtk, I have a button
I have a class in my Prism/CAL application which generates a form for users
using .load(url) , but is there an Ajax .reload() function that can be used
I have this application using CAL. All the modules derive from a special class,
I load a swf into a movie clip and have several problems with it:
I load an SWF with SWFLoader. Within the loaded .SWF, this.parentApplication is returning NULL.
I'm trying to load a jsp-file into a jQuery UI dialog http://jqueryui.com/demos/dialog/ . The
I have a partial page in my application named _dashboard.html.erb. Inside of the dashboard,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.