[flexcoders] Flex popup module ignores context menu

2012-02-20 Thread Adnan Doric
Hi all,

I followed the Alex's Popup Dialogs as Modules blog entry:
http://blogs.adobe.com/aharui/2007/08/popup_dialogs_as_modules.html

It works with mx.containers.TitleWindow as intended, the context menu 
shows and I can copy/paste text in a TextArea.

But if I try to use spark.components.TitleWindow, the context menu does 
not shows at all when right clicking in spark TextArea.

Application code:
?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
 xmlns:s=library://ns.adobe.com/flex/spark
 xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 
minHeight=600

fx:Script
![CDATA[
 import mx.core.IVisualElement;
 import mx.events.ModuleEvent;
 import mx.modules.IModuleInfo;
 import mx.modules.ModuleManager;

 private var info:IModuleInfo;

 protected function loadModule(event:MouseEvent):void
 {
 info = ModuleManager.getModule(HelloModule.swf);
 info.addEventListener(ModuleEvent.READY, modEventHandler);
 info.load(null, null, null, moduleFactory);
 }

 private function modEventHandler(event:ModuleEvent):void
 {
 addElement(info.factory.create() as IVisualElement);
 }

 ]]
/fx:Script

s:Button label=loadModule click=loadModule(event) /

/s:Application

module code:
?xml version=1.0 encoding=utf-8?
local:ModuleTitleWindow xmlns:fx=http://ns.adobe.com/mxml/2009;
 xmlns:s=library://ns.adobe.com/flex/spark
 xmlns:mx=library://ns.adobe.com/flex/mx
 xmlns:local=*
 width=400 height=300

s:TextArea width=100% height=100% /

/local:ModuleTitleWindow

package
{
 import spark.components.TitleWindow;

 [Frame(factoryClass=mx.core.FlexModuleFactory)]
 public class ModuleTitleWindow extends TitleWindow
 {
 public function ModuleTitleWindow()
 {
 super();
 }
 }
}

Any thoughts? Is there a workaround?

Thank you


[flexcoders] Re: Upload app to Apple

2012-02-20 Thread DavidWolpe

From everything I've researched, here's the answer. You can NOT upload an .ipa 
via the web. You've got to download XCode and there are a couple of ways to do 
it. The simplest is by using Application Loader, which is (on a mac) here:

[OSX DRIVE]/Developer/Applications/Utilities/Application Loader.app

-- David


--- In flexcoders@yahoogroups.com, DavidWolpe davidwolpe@... wrote:

 I've used Flash Builder 4.6 to create a mobile app.  I've got everything 
 prepared and successfully uploaded -- screenshots, contracts, bank accounts, 
 etc. etc. The final step is to upload the actual app in iTunes Connect. 
 But I can't. There is no upload button. Anywhere. Not in version 
 information, app summary, app details, app Localizations, or anywhere else 
 that I can find. 
 
 Here's a good link for AIR development and iOs:
 
 http://devgirl.org/2011/06/20/flexair-for-ios-development-process-explained/
 
 It says: App Store Distribution – If it's an app store ready distribution 
 package, then you will use the iTunes Connect site to submit your 
 application. You'll need to fill out a bunch of information, be as explicit 
 as possible to avoid issues with rejection. Upload your application on the 
 Upload page as a renamed .zip file and upload the 512×512 image separately as 
 the large icon. This will be used for your application presence in iTunes.
 
 Has anyone successfully uploaded a .ipa file to iTunes Connect? Has anyone 
 seen this issue before? 
 
 Possibilities: maybe  you have to upload the .ipa at the same time along with 
 everything else?
 
 Or maybe you actually need xCode to upload the app.
 
 THanks




Re: [flexcoders] Flex popup module ignores context menu

2012-02-20 Thread Alex Harui
Set mouseEnabled=true on the TitleWindow


On 2/20/12 3:29 AM, Adnan Doric astronaute@gmail.com wrote:






Hi all,

I followed the Alex's Popup Dialogs as Modules blog entry:
http://blogs.adobe.com/aharui/2007/08/popup_dialogs_as_modules.html

It works with mx.containers.TitleWindow as intended, the context menu
shows and I can copy/paste text in a TextArea.

But if I try to use spark.components.TitleWindow, the context menu does
not shows at all when right clicking in spark TextArea.

Application code:
?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
 xmlns:s=library://ns.adobe.com/flex/spark
 xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955
minHeight=600

fx:Script
![CDATA[
 import mx.core.IVisualElement;
 import mx.events.ModuleEvent;
 import mx.modules.IModuleInfo;
 import mx.modules.ModuleManager;

private var info:IModuleInfo;

protected function loadModule(event:MouseEvent):void
 {
 info = ModuleManager.getModule(HelloModule.swf);
 info.addEventListener(ModuleEvent.READY, modEventHandler);
 info.load(null, null, null, moduleFactory);
 }

private function modEventHandler(event:ModuleEvent):void
 {
 addElement(info.factory.create() as IVisualElement);
 }

]]
/fx:Script

s:Button label=loadModule click=loadModule(event) /

/s:Application

module code:
?xml version=1.0 encoding=utf-8?
local:ModuleTitleWindow xmlns:fx=http://ns.adobe.com/mxml/2009;
 xmlns:s=library://ns.adobe.com/flex/spark
 xmlns:mx=library://ns.adobe.com/flex/mx
 xmlns:local=*
 width=400 height=300

s:TextArea width=100% height=100% /

/local:ModuleTitleWindow

package
{
 import spark.components.TitleWindow;

[Frame(factoryClass=mx.core.FlexModuleFactory)]
 public class ModuleTitleWindow extends TitleWindow
 {
 public function ModuleTitleWindow()
 {
 super();
 }
 }
}

Any thoughts? Is there a workaround?

Thank you





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui