Use ANE to tie AS3 UI to Objective-C++ engine?
I'm a long time Flash user, (since Future Splash Animator) and though I've got some familiarity with other languages, my main development strength is with using Flash Pro and Flash Builder together to create AS3 websites or AIR apps (iOS or desktop).
Earlier this year, I learned enough C++ to start creating plugins for the music software/DAW Reason. I'd now like to create an iPad version of one of these plugins so that it can be used on an iPad as a MIDI source for other DAWs/MIDI devices.
From what I've read, I can use my C++ code with Objective-C (the result is referred to as Objective-C++ apparently), so I don't need to rewrite the entire software in Objective C. However, the Rack Extension (what Reason calls its proprietary plugins) SDK took care of the interfacing between the GUI and the C++ code, so I cannot "re-use" the UI portions and will need to rewrite the UI for the iPad.
I don't know how to code in Objective-C, and for the time being, would prefer not to have to learn (or at least in-depth). Rather, if possible, I would love to use AS3 to create the UI.
NativeExtensions seem like they might be the solution. I've not yet used any ANEs though, so I don't have first-hand knowledge of their capabilities and their limitations.
The way I envision this working is the following:
Write my front-end/GUI in AS3 and interface with an ANE to send UI changes to the ANE, and receive events from the ANE to update the UI. The ANE will be written in Objective-C just enough to handle the events to/from the UI, and interface with the CoreMIDI iOS api, and then will rely on the C++ code I already have for the actual functional engine.
Does that sound like it will work?
Thanks,
Brian
CountShockula - Good stuff!! Thank you. Your interface outline and sample code are going to help lots of developers. For the future, you can format your code here by putting it between two {code| tags like this:
Paste your code here.
Note the tags aren't xml; the begin and end are the same. You can see how your post will appear by clicking the Preview tab just above the Reply editor panel. I hope you'll be helping us here again soon.
Chris - Please take this advice in the spirit it's intended (to help you out!). At this end it seems like you're spinning your wheels now by trying to develop an understanding of the Cocoa interface without any knowledge of Cocoa. I'm sorry I said "passing familiarity" previously. I did you a disservice as it was tongue in cheek. I understand what you're after. You want to system engineer this design before getting into the details. I took that class too, and it's wonderful when the black boxes are plug compatible like the ones on the white board, but this job isn't gonna work that way.
I would advise you to bite the bullet and learn some Cocoa before trying to draw a box around the interface. You can do that after your engine is built and running on other platforms, or you can do it now. Now would be better in my opinion. But you need to do that. Even if someone wants to give you the complete source for their Cocoa interface, you won't be able to touch one line until you've built some Cocoa projects yourself. You'll find out that hooking C++ up to Obj-C is the least of your design issues. Making a Cocoa interface look the same as a MFC interface is--as I said--not rocket science, but it requires some proficiency with both.
If you're a manager just trying to scope out the job, I'd give you the same advice. Get a Cocoa programmer on the case before you tell anyone the OS/X port has already coded itself.
Sure hope that helps!
Similar Messages
-
Is there inbuild Handler in weblogic using which i can get the MessageContext object
HI,
I need MessageContext object in my application but i dont want to use the Handler,As
there is AxisEngine in axis soap engine,is there any similar implementation in
weblogic.
AxisEngine.getCurrentMessageContext() we can get the MessageContext what about
in weblogic..any body any idea???
Regards,
Akhil NagpalHI,
yeah i had to make use of Handler to get the MessageContext object and play with
that.
Thanks & Regards
Akhil Nagpal
"manoj cheenath" <[email protected]> wrote:
You can get to MessageContext from a handler. Check out an example of
handler
to see how you can get Message out of MessageContext.
-manoj
"Akhil Nagpal" <[email protected]> wrote in message
news:[email protected]..
HI manoj,
Thanks for your reply.otherwise i thought that i wont get any morehelp
on this
forum :-) ...
anyway its good that we will have such thing in next version,duringthe
development
i feel that more functioanlity should be in build in appserver. Likeone
more
thing i could not find out is how we can get the "message" object inweblogic
like we can in axis using its MessageContext class's static method.if it
is there
can you please let me knwo about that.
The other problem i had to make use of handler and my appl is workingas of
now :-)
Regards
Akhil Nagpal
"manoj cheenath" <[email protected]> wrote:
You can not do this in WLS 7.0. The next major release (WLS 8.1) will
fix
this problem.
-manoj
"Akhil Nagpal" <[email protected]> wrote in message
news:[email protected]..
HI,
I need MessageContext object in my application but i dont want
to
use
the Handler,As
there is AxisEngine in axis soap engine,is there any similarimplementation in
weblogic.
AxisEngine.getCurrentMessageContext() we can get the MessageContextwhat
about
in weblogic..any body any idea???
Regards,
Akhil Nagpal -
Issue: Detected use of SPRequest for previously closed SPWeb object
I have a solution to create web site by a custom web template. I used ULS Viewer to monitor the sharepoint error log during the process. I see some unexpected error(Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb
objects when you are done with all objects obtained from them, but not before.)
I believe that It will bring up a memory leak issue in anytime future. so I spend some time to find the root cause. It has no unexpected issue by creating web site with out of the box template(BLOG,WIKI, etc). I will get only get it with custom
template. Does anyone know the reason and soltuon for this issue? Thanks.protected void Button2_Click(object sender, EventArgs e)
string Client = "Client";
string creatorId = "UserId";
string creatorname = "Robin Hung";
string rreatorEmail = "[email protected]";
SPSecurity.RunWithElevatedPrivileges(delegate()
using (
SPSite newSite =
new SPSite("http://localhost/sites/" + Client))
SPWebTemplateCollection WTC =
newSite.GetWebTemplates(1033);
SPWebTemplate webTemplate =
newSite.GetWebTemplates(1033)["SubSite"];
newSite.AllowUnsafeUpdates = true;
SPDiagnosticsService.Local.WriteTrace(0,
new SPDiagnosticsCategory
("Log",
TraceSeverity.
Verbose,
EventSeverity.
Verbose),
TraceSeverity.Verbose,
"Test 2", "Called");
using (SPWeb spWeb = newSite.OpenWeb())
SPDiagnosticsService.Local.WriteTrace(0,
new SPDiagnosticsCategory
("Log",
TraceSeverity
.Verbose,
EventSeverity
.Verbose),
TraceSeverity.
Verbose,
"Test 21",
"Called");
spWeb.AllowUnsafeUpdates = true;
spWeb.Webs.Add("Robin4", "Robin2", "test", 1033,
webTemplate, false, false);
SPDiagnosticsService.Local.WriteTrace(0,
new SPDiagnosticsCategory
("Log",
TraceSeverity
.Verbose,
EventSeverity
.Verbose),
TraceSeverity.
Verbose,
"Test 211",
"Called");
spWeb.Webs.Add("Robin5", "Robin2", "test", 1033,
WTC["SubSite"], false, false);
SPDiagnosticsService.Local.WriteTrace(0,
new SPDiagnosticsCategory
("Log",
TraceSeverity
.Verbose,
EventSeverity
.Verbose),
TraceSeverity.
Verbose,
"Test 212",
"Called");
spWeb.Webs.Add("Robin6", "Robin2", "test", 1033,
WTC[30], false, false);
SPDiagnosticsService.Local.WriteTrace(0,
new SPDiagnosticsCategory
("Log",
TraceSeverity
.Verbose,
EventSeverity
.Verbose),
TraceSeverity.
Verbose,
"Test 213",
"Called");
spWeb.AllowUnsafeUpdates = false;
SPDiagnosticsService.Local.WriteTrace(0,
new SPDiagnosticsCategory
("Log",
TraceSeverity
.Verbose,
EventSeverity
.Verbose),
TraceSeverity.
Verbose,
"Test 22",
"Called");
newSite.AllowUnsafeUpdates = false;
//currentSite.AllowUnsafeUpdates = false;
SPDiagnosticsService.Local.WriteTrace(0,
new SPDiagnosticsCategory
("Log",
TraceSeverity.
Verbose,
EventSeverity.
Verbose),
TraceSeverity.Verbose,
"Test 4", "Called"); -
How to open epub file in iBooks using ANE(iOS) ?
hello,
I tried to open epub file in iBooks using Native Extensions.
But, AIR app has crashed when calling ANE method (following: OpenEpub).
Have problems with how to access the epub file?
Or another problem?
MacOS:10.6.8
Xcode:4.2
FlashBulder:4.6
FlexSDK:4.6.0(default bundle version)
TestDevice:1st iPad (OS 5.0.1)
iOSNativeCode(this code works on native iOS app):
#import <UIKit/UIKit.h>
FREObject OpenEpub(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]){
id delegate = [[UIApplication sharedApplication] delegate];
UIWindow* window = [delegate window];
UIButton* uiBtn = [[[UIButton alloc] init] retain];
[window addSubview:uiBtn];
NSString *fileToOpen = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"epub"];
NSURL *url = [NSURL fileURLWithPath:fileToOpen];
UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];
[docController presentOpenInMenuFromRect:CGRectZero inView:uiBtn animated:true];
[docController retain];
const char *str = "Success";
FREObject retStr;
FRENewObjectFromUTF8(strlen(str)+1, (const uint8_t *)str, &retStr);
return retStr;
ANE packaging directory:
ane/
extension.xml
key.p12
platform/
iOS/
iOSNativeCode.a
library.swf
test.epub
extension.xml
<extension xmlns="http://ns.adobe.com/air/extension/3.1">
~~~~
Thanks!hi, i can open epub in iBooks using ANE !
UIWindow *keyWindow= [[UIApplication sharedApplication] keyWindow];
UIViewController *mainController = [keyWindow rootViewController];
NSString *epubFileName= [[NSBundle mainBundle] pathForResource:@"test01" ofType:@"epub"];
[epubFileName retain];
NSURL *url = [NSURL fileURLWithPath:epubFileName];
[url retain];
UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];
[docController retain];
CGRect rectDocC = CGRectMake(800, 0, 0, 0);
[docController presentOptionsMenuFromRect:rectDocC inView:mainController.view animated:YES];
thanks! -
Hello, I have the usual issue to use AcroExch.PDDoc/AcroExch.App/AcroExch.AVDoc objects in Visual Basic (MS EXCEL). On my company's machine I have Acrobat X and everything works fine. I am looking for the cheapest solution to get the stuff running on another machine... is there any way to do that with the Acrobat SDK, or do I need to purchase a full version of Acrobat XI ($$) ?
The Acrobat SDK is nothing by itself. It is just information on how to automate Acrobat - just as the Office SDK doesn't include Office, but is for people who already have purchased Office but want to automate it.
These automation things are MARKETING TOOLS FOR ACROBAT. Consider this and the technical limitations make a lot more sense.
So, yes, you need to buy Acrobat. Standard is cheaper than Pro. -
i use to be able to scale down objects highlted in box by clicking any corner holding down mouse and scaling down, that option is gone, is it an error on my settings or has that option been removed I now have to go to menu option click edit, then scale, and then manually have to scale down a percentage.
Copy cat.
-
Revision: 9493
Author: [email protected]
Date: 2009-08-23 16:09:56 -0700 (Sun, 23 Aug 2009)
Log Message:
Applying patch (SDK-22435) submitted by Aaron Boushley which updates ObjectUtil to use toXMLString rather than toString for XML objects.
QE notes: None
Doc notes: None
Bugs: SDK-13919
Reviewer: N/A
Tests run: Checkin
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-22435
http://bugs.adobe.com/jira/browse/SDK-13919
Modified Paths:
flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/utils/ObjectUtil.as -
Using PHP Data Services to create an object and accessing that objects data in an unbound way in AS
Hello,
I've been able to use the php data services and bind the results of a function to a component. However I am having a hard time figuring out the syntax to use the data services to create an object out of the results, and then use that object as an array of filenames to provide the current index of the filename to a new sound object.
My problem is obviously in not being able to figure out the specific syntax, I have declared the service and and object of the services returned type and in the creationComplete() function I have assigned object.token = service.getData();
I've tried various ways of then pulling that data out of the object, with no success.
Can someone point me in the right direction?
This code probably looks horrible because it doesn't work yet.
- Joel
import flash.media.Sound;
import flash.media.SoundChannel;
import mx.controls.Alert;
var playing:Sound = new Sound();
var channel:SoundChannel = new SoundChannel();
var sndIndex:int=0;
var skpTr:String;
public function init():void{
mp3Array.token = mp3service.getData();
currentTrack(mp3Array.lastResult.filename);
trace(mp3Array.lastResult.filename[sndIndex]);
public function currentTrack(t:String):void{
playing = new Sound();
playing.load(new URLRequest("mp3/" +t));
public function skip():void{
stop();
if (sndIndex != mp3Array.lastResult.length-1){
sndIndex++;
var skipTr:String=mp3Array.lastResult.filename[sndIndex].data;
currentTrack(skipTr);
play();
} else {
sndIndex=0;
skipTr=mp3Array.lastResult.filename[sndIndex].data;
currentTrack(skipTr);
play();
public function stop():void{
channel.stop();
public function play():void{
channel = playing.play();
<fx:Declarations>
<s:CallResponder id="mp3Array"/>
<mp3services:Mp3Service id="mp3service" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>Hello Joel;
In retrieving your data - what is your php returning to FB, an object, object array, an array? Either way, I have a brief example below that an object(s) is being returned. Pull the data from the lastResult in a ResultEvent. The object instantiated in the resultEvent will contain your data and you can do what you want from there.
Also, I always use Network Monitor to see what data (if any) is being returned from the server, you can also see how it is being sent back.
John
private function init():void
mp3Array.token = mp3service.getData();
mp3Array.addEventListener(FaultEvent.FAULT, faultHandler);
mp3Array.addEventListener(ResultEvent.RESULT, mp3Array_resultHandler);
protected function faultHandler(event:FaultEvent):void
Alert.show("There was a fault error!" + event.message, "Fault Error", Alert.OK);
protected function mp3Array_resultHandler(event:ResultEvent):void
// Not sure if your service is sending back an object or an array or ?
var info:Object = mp3Array.lastResult;
doSomeFunction(info)
protected function doSomeFunction(data:Object):void
trace(info.filename); -
HI
i am keep seeing this message in ulsviewer of splogs in a webfront end server
Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before. Stack trace:
at Microsoft.SharePoint.SPWeb.get_Exists()
at Microsoft.SharePoint.WebControls.CssLink.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP._layouts_icc_icc_scan_view_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
adilHi,
Your SPweb object is not disposed properly.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3a25eb86-8415-4053-b319-9dd84a1fd71f/detected-use-of-sprequest-for-previously-closed-spweb-object-please-close-spweb-objects-when-you?forum=sharepointdevelopmentprevious
http://sharepoint.stackexchange.com/questions/50793/detected-use-of-sprequest-for-previously-closed-spweb-object-after-spquery
Please remember to click 'Mark as Answer' on the answer if it helps you -
Who can explain what I need to do when actionScript doesn't seem to work in my trial cc version of flash professional, sometimes I use cs5.5 related AS3?
thanks for a reply,
mikedid you get my earlier message? Here's what I wrote;
I also meant to add the way the instructor for the course showed how to
write the code
for example; home_btn.addEventListener(Mouse...................) as so
on You mention no period after the btn unless a width or something how
could I change the code to be proper.
and also one for {
content_pg.gotoAndStop(2);
same period example. should there be a space and no period after home_btn?
thanks again for your assistance.
mike
On Wed, Aug 27, 2014 at 7:00 PM, -mikey1969- <[email protected]> -
I have develop a custom solution for SharePoint Foundation 2010 that provide PDF documents filled with lists data and attachemnts.
If the Customer run the solution to get the PDF we found in the ULS log following entry:
03/07/2014 12:07:20.69 w3wp.exe (0x0B10) 0x18EC
SharePoint Foundation General 90hv Unexpected
Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before. Stack trace: at Microsoft.SharePoint.Utilities.SPUtility.GetLocalizedString(String
source, String defaultResourceFile, UInt32 language) at Microsoft.SharePoint.SPFieldCollection.get_DisplayNameDict() at Microsoft.SharePoint.SPFieldCollection.GetFieldByDisplayName(String strDisplayName, Boolean
bThrowException) at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException) at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)
at Microsoft.SharePoint.SPListItem.get_Item(String fieldName)
at ECM_PDF_Excel.ListClicked.GetECOs(Dictionary`2 searchedEC... e918ecd4-7ed6-44bb-9e4f-d764586a2f79 ...RECONumber)
at ECM_PDF_Excel.PDF.Create() at ECM_PDF_Excel.Layouts.ECM_PDF_Excel.ECMPDFExcel.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 f... e918ecd4-7ed6-44bb-9e4f-d764586a2f79
03/07/2014 12:07:20.69* w3wp.exe (0x0B10) 0x18EC SharePoint Foundation
General 90hv Unexpected ...lags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32
flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) e918ecd4-7ed6-44bb-9e4f-d764586a2f79
We check the method
/// <summary>
/// Returns the ECOs in a Dictionary: ECO Number, Suffix
/// </summary>
/// <param name="searchedECRECONumber">Dictionary, with the search ECR/ECO Number</param>
/// <returns>Dictionary ECO Number, Suffix</returns>
public static Dictionary<string, string> GetECOs(Dictionary<String, String> searchedECRECONumber)
SPSite siteContx = SPContext.Current.Site;
SPWeb webContx = siteContx.RootWeb;
Dictionary<string, string> listECOs = new Dictionary<string, string>();
string ecoNumber = string.Empty;
string ecoSuffix = string.Empty;
if (searchedECRECONumber.ContainsKey(ConstantData.listClickedECONumberDictionary))
ecoNumber = searchedECRECONumber[ConstantData.listClickedECONumberDictionary];
else
return listECOs;
// Ich suche die ECO Nummber bei gegebener ECR Nummer
// Ich brauche den Listen Namen der in den Spalten Realtion ECR Number & Realtion ECO Number einen Wert hat
SPList dataList = webContx.Lists.TryGetList(ConstantData.listName_ECMExcelTemplateDataLists);
if (dataList != null)
SPListItemCollection dataListItems = webContx.Lists.TryGetList(ConstantData.listName_ECMExcelTemplateDataLists).Items;
foreach (SPItem dataListItem in dataListItems)
Object relationECRColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECRNumber];
Object relationECOColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECONumber];
if (relationECRColumnName != null && relationECOColumnName != null)
// Ich habe den Listennamen gefunden in dem Spalten Realtion ECR Number & Realtion ECO Number einen Wert haben
string searchedListName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_Title];
string searchedECOSuffixColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECONumber];
// Get the List from variable listName
listECOs = GetECOsDictionary(searchedListName, searchedECOSuffixColumnName, ecoNumber, relationECOColumnName);
return listECOs;
- What take we wrong?
- How can we avoid this message?
Regards
Jonnyenglisch
Ralf Happe - Christobal Colón N° 1 ES 07670 Portocolom Tel.: +34 6961 0375 7 @: [email protected] Skype: ralfhappe msm: [email protected] www.ralfhappe.com ralfhappe | soluciónesHere the code of GetECOsDictionary:
/// <summary>
/// Fill the dicionary with related ECO Numbers/Suffix
/// </summary>
/// <param name="searchedListName">String: the name of the list</param>
/// <param name="ecoNumber">String: the ECO Number</param>
/// <param name="relationECOColumnName"></param>
/// <returns>Dictionary</returns>
private static Dictionary<string, string> GetECOsDictionary(string searchedListName, string ecoNumber, Object relationECOColumnName)
SPSite siteContx = SPContext.Current.Site;
SPWeb webContx = siteContx.RootWeb;
Dictionary<string, string> listECOs = new Dictionary<string, string>();
SPQuery oQuery = new SPQuery();
oQuery.Query = "<OrderBy>" +
"<FieldRef Name='" + "Title" + "' Ascending='TRUE'></FieldRef>"
+
"</OrderBy>" +
"<Where><BeginsWith>" +
"<FieldRef Name='" + "Title" + "'/>" +
"<Value Type='Text'>" + ecoNumber + "</Value>" +
"</BeginsWith></Where>";
SPListItemCollection searchedListItems = webContx.Lists.TryGetList(searchedListName).GetItems(oQuery);
foreach (SPItem searchedListItem in searchedListItems)
// Wenn die geclickte ECO Nummer gleich der Listen ECO Nummer ist dann setze die gefundene ECO Nummer
string foundECONumber = (String)searchedListItem[relationECOColumnName.ToString()];
string[] splitECONumber = foundECONumber.Split(ConstantData.splitBy_Slash);
if (ecoNumber == splitECONumber[0])
ecoNumber = splitECONumber[0];
if (splitECONumber.Count() == 1)
listECOs.Add(foundECONumber, "0");
if (splitECONumber.Count() > 1)
listECOs.Add(foundECONumber, splitECONumber[1]);
return listECOs;
Ralf Happe - Christobal Colón N° 1 ES 07670 Portocolom Tel.: +34 6961 0375 7 @: [email protected] Skype: ralfhappe msm: [email protected] www.ralfhappe.com ralfhappe | soluciónes -
Drawbacks of using ane with debuggable swc
Are there any drawbacks of using ane (air native extension) with debuggable swc in release build?
Can such extension impact performance in any way?
Adobe Scout keeps detecting my release build as debug (SWF Type: debug) if I include in it any extension with debuggable (-debug=true) swc.
Is it wrong warning?I was trying to do the same thing, and thought I'd share even though this post is old.
1. Couldn't get dynamic framework working, went with static.
2. We put the static framework in the packagedDependencies tag just like the OP did.
3. We also had problems with assets, so we followed this: Adobe Flash Platform * Including resources in your native extension package
We put the assets in the iPhone-ARM directory in the ANE, and they do get copied to the root directory of the IPA. We have been able to use storyboards, images, etc stored in the custom framework without problems. Since assets from EVERY ANE get copied to the top level of the IPA, yes, we did have to change asset names to avoid conflicts. Annoying but doable.
I'm probably missing some details of how we did it but I at least wanted to share that after much pain and Googling, we did get a custom framework in an ANE to work, even on iOS7. -
How to use tile map with AS3?
I have a file that contains a bunch of isometric tiles that I need to make a map with, much like a sprite sheet but not for making animations. So using AS3, how can I divide that file into the different tiles, knowing the coordinates of each of them. Or can it be done automatically in Flash itself, so I can access each tile from AS3?
Furthermore I've been a programmer for a couple of decades but I am new to Flash. I know there are a ton of DisplayObjects like Bitmap, Sprite, Shape, MovieClip, Symbol etc. But which one would be better to use for that file? I need to access it from AS3 as described above, but I don't need it to react to mouse events, stretch or have children, just extract each tile and move it onto the stage with AS3.
It seems to be down to a choice between Bitmap and Shape, since they're both lightweight, but I couldn't find out what the advantages and disadvantages of them are, as there was no comparison between those two on Google, though between a lot of the other objects. And Symbol seems like an idea too, since when I googled this, I found a lot of pages saying that you should convert a Bitmap to a Symbol, but I never found out why.
Oh, and since I'm building an isometric map, all the tiles and all other graphics I'll be using, will be Bitmap and not Vector since I'm drawing the graphics in pixelart.create one tile symbol (movieclip or sprite so you can use actionscript to reference tile properties - like its x and y) and arrange them (using code or by hand) into your map.
enable the cacheAsBitmap property of your map (that has some number of tile children).
assign the mouseEnabled property of the map to false and its mouseChildren property to false. -
Using ANE in iOS Simulator for debugging
Hello everyone,
I’m developing on a MAC mini with Flash Builder 4.7 and AIR 3.4. I am working on an ANE and I like to debug it with the XCode simulator. To do that, I am using this template:
https://github.com/divijkumar/xcode-template-ane/blob/master/AIR%20Native%20Extension/AIR% 20Native%20Extension%20for%20iOS.xctemplate/generateANE.sh)
I tried to change the <extensions.xml> to refer to "iPhone-x86" and creating the ANE by using ADT command like
"$AIR_SDK_PATH"/bin/adt -package -target ane "$TARGET_NAME" extension.xml -swc "$EXTENSION_SWC_FILE_NAME" -platform default library.swf -platform iPhone-x86 -platformoptions platformoptions.xml "$NATIVE_EXTENSION_STATIC_LIB_NAME" library.swf
Then in Flash Builder (with Debugger) I am trying to debug my application with the XCode Simulator with this command:
adt.jar -package -target ipa-debug-interpreter-simulator -connect 192.168.1.54 -hideAneLibSymbols no -storetype pkcs12 -keystore ios_development.p12 Test1.ipa Test1-app.xml DebugHostInfo.xml Test1.css Test1.swf -extdir /Users/admin/Documents/Adobe Flash Builder 4.7/.metadata/.plugins/com.adobe.flexbuilder.project.ui/ANEFiles/Test1/com.adobe.flexide. multiplatform.ios.platform -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator6.0.sdk
I always get Error:
Error occurred while packaging the application:
ld: warning: could not create compact unwind for __Unwind_Resume: non-standard register 0 being saved in prolog
ld: warning: could not create compact unwind for __Unwind_ForcedUnwind: non-standard register 0 being saved in prolog
ld: warning: could not create compact unwind for __Unwind_RaiseException: non-standard register 0 being saved in prolog
ld: warning: could not create compact unwind for __Unwind_Resume_or_Rethrow: non-standard register 0 being saved in prolog
My questions are:
1. Is my ANE creation process above correct? Or do I have to use "iPhone-ARM" in the ADT Command for parameter "-platform"?
2. Do I need to add i386 architecture to my build settings in XCode under "Valid Architectures" in order to debug it on my MAC mini with Xcode simulator?
3. Is the Flash Builder debugging ADT command correct?
4. And what about this linker problem described here: forums.adobe.com/message/4319610#4319610
thx
marcoHello,
thanksk so far. I can now create an ANE, hopefully it is correct...
Now, while trying to use it in my mobile application, calling the Constructor of my SWC interface > call initNativeExtension() I get an:
Type Error #1009 cannot access a property or method of a null object reference
It seems that my code cannot load the ANE because I cannot instatiate the extension object.
Can you help me ?
THX
marco -
I'd just like to check something. When I was trying out a bit
of as3, I tried having as3 objects, but as2 code on the timeline,
so I'm guessing that you can't nest or load as3 objects inside as2
movieclips because it probably treats everything like it's as2, so
as3 objects don't work..
But does it work the other way around? To have as3 objects
nesting as2 "objects" or loading as2 swfs?
Or is it either-either, no mixing whatsoever?you can load as2 swfs into as3 swfs. to communicate between
the two, use the localconnection class.
Maybe you are looking for
-
How to attached class or function module in FD03
Hi Guys I want to attached CL_ATTACHMENT_LIST for retriving attachment list from fd03 please help to attached the function module in my program? regards Piroz report zfir_aged_debtors no standard page heading line-size 255. T
-
Hello everybody, I searched over the net and in this support section for a solution to my problem, but i didnt find any, so...here I am asking you experts. Through a particular use of different actions I make a logo "compose" in the first slide of my
-
SAP Business Objects 4.0
Dear All, How to connect the Bex query through WebI Rich Client in Business Objects 4.0 if i need to do any thing in universe,if any one explain step by step its great. Regards Lingaiah
-
Help in setting up a clustered scalable JMS env
hello I have two separate machines I have created a cluster spanning the two machines, with 2 managed servers The cluster is working well I am experimenting with JMS and i want to utilize the two machine for scalability reasons I have created One JMS
-
Express 2.0 Template Files
(436.3 7-23-1997)) id 8525653D.005BAED9 ; Mon, 27 Oct 1997 11:41:25 -0500 X-Lotus-FromDomain: WORLDBANK Can anyone direct me on how to modify a Forte Express .tpl file? I found the corresponding .pex file but I need to know how to generate a new .tpl