C :: Give The Path For The Associated Header Files In Alchemy?
Jan 11, 2011
I am converting a speexdecoder code to C in alchemy. The problem is that i am importing a header file #include <speex/speex.h>. Alchemy gcc gives an error that speex.h not found. I have placed the speex directory where my C code is.
I'm trying to use Adobe's OggVorbis library. But I can't seem to get the Sound object to loop. I even tried looping the _sound object inside the AudioDecoder.as in the "com.automatastudios.audio.audiodecoder" package. Do you really have to reload the file and stream it over and over?
So I try to compile ffmpeg as I described here after this patch I started seeing .l.bc files but no .swc files. So how to use alchemy completion suite to turn .l.bc into .swc?
I'm building a site that loads in various swfs for each section, which in turn load in videos, sounds, xml etc. Lets call these 'third level stuff'. Does anyone know how I can load the third level stuff into their swfs without having to put full paths in from the Main swf file? I hope that makes sense?! for example. A loaded swf pulls in a video from its own directory, so would look something like:
Does Flash look for .swc files only through library path or can I put .swc file to the .fla directory too? I tried that but It seems that Flash does not look for .swc files there, I guess only for .as files.
I'm trying to get this xml 'image_loader' (similar to kde wipes) rotation thing working for this page i'm working on. i have to make some adjustments with the path to the files according to how it is going to work on this site i'm working on. i'm not sure how or where to change the path in the actionscript to get to the path.
i've included a folder called '- example working without paths' which is to show how it is supposed to look. this works when everything is in one folder. but, when i setup the site structure the swf can't find the xml or the images to load...so i'm not really sure how to fix it. the 'root.hml' in the root folder represents the main html file that i'm using for the site.
I have done some coding in the past in .asp .aspx, but it is not my primary forte. I am working on a site that has a page for project photo galleries, and have been following a lot of the tutorials from this site. I have a directory structure as follows:
For testing purposes, in projects.fla, and resulting projects.swf, I have:
xmlData = new XML(); xmlData.ignoreWhite = true; xmlData.onLoad = loadXML;
[Code]....
how to code projects.fla with the correct path to the .xml file in the <root>projectsproject1 directory, and ideally, a way to make it dynamic so I can pass the path to the projects.swf file using a variable, and be able to direct the movie to use the intended xml file, thumbnails, and images based on the press of a button contained in a projects menu. Unless I have missed something, all of the tutorials I saw had the images and .xml file in the same directory as the .swf.
I have a website im making in which jpgs are loaded through the loader component (using flash pro 2004) and I set the path and to autoload but the jpg. files won't load; something to note I have many instances of one loader but with different paths for different pictures.
I was wondering if it would be possible to write a file, not to the local system, but to a connected server or other network path. Would i have to use an external php interface for this or can i entrust this to the AIR framework?
Is there a way to add paths to the Flash runtime search path for loading files? Say I want to load myXML.xml and its down in /myDir1/myDir2/myXML.xml. Is there any way I can add "/myDir1/myDir2" to the search path so I can just load using the string "myXML.xml" INSTEAD of loading by the full path "/myDir1/myDir2/myXML.xml"? My directory structure will be changing on a semi-regular basis so I can't hard-code the direct path to the file.
I have a strange problem: When I type the absolute URL to my SWF file it works fine; however, only the background image appears when the SWF is embedded in the home page.
So I've created a script where a mc is clicked on and the player can draw a path using the mouse. I'm trying to figure out how I can get the mc to follow the path drawn out by the player's mouse and when the player clicks again, it erases all of the path.my code is below
i need a simple python lib that check the uploaded files to my webserver are flash media (FLV), by reading the flv header (metadata) and not the mimetype extension.
While Alchemy supports compiling C++, it seems that using the using the STL is trouble, mostly due to a problem with std::string. What's strange is that Alchemy seems to be using GNU libstd++ v3.4.6. It's hard to believe that std::string is broken in GNU's STL.
I have a project that uses quite a few opencv libs to do some image processing tasks. Now I need to build a Flash app for it. I read that Alchemy allows compiling c++ libs for FlashI wonder if anyone has tried to build flash apps using opencv libs and dlls
I have a project I'm trying to compile with alchemy. It will compile .o and .a files, but when trying to create a .swc, it will fail. It appears to crash with this error:
I'm trying to use AS3_Shim in my alchemy code but it doesn't seem to be working.It always returns a NULL function pointer. There don't seem to be any examples of AS3_Shim's use, so I'm not sure what I'm doing wrong.Here is some example code:
I'm trying to port FLAC encoder using Adobe Alchemy for use in flash but can't figure out where the problem is. I'm using Alchemy for Cygwin on Windows. It is properly installed and configured. The following are the steps that I have followed in order to port FLAC encoder:
I am using Flex's Alchemy library to generate SWC's out of C files. I have a byte array (unsigned char buffer[size]) in the c-layer that I'd like to return to the ActionScript layer as a ByteArray. Do I have to iterate through the array and explicitly call AS3_Set on each element or is there a way to just return the entire C array at once?
Is it possible to connect c++ dll to .c file (with dllimport or something else) and convert it to .swc with adobe alchemy? If it does - how to do that?
Im calling a function in lua from actionscript using callstack : Array =
luaAlchemyInstance.doString("luafunction");
my function should return some values
function luafunction() return true, 125 end
When i look at the callstack array returned by the function in as3,I recieve only the success/fail part.The array length is 1, true, and contains none of my return values.
I am trying to send a bytearray extracted from a file to the C code and return that bytearray again from the C code..I am printing the contents of the return value from C in a text view contents.text but all i can see is the byte array object "OggS". I can't see the contents of the byte array. Can anyone say where i am going wrong?.. I have posted the C code and the AS code.
AS Code: private function copyByteArray(content:String):void{ try{
what i can't figure out is how to get a reference of that asm "buffer" variable into actionscript.
(i did think of one way... what i did was to throw the "buffer" from alchemy asm, and then catch it in actionscript, but unfortunately it seems to leak a lot of memory).
is there a better alternative to doing this?
note that performance is critical, and using default alchemy marshaling is way too slow.
I have C++ application that use OpenGL. Need to convert this app to flash app. Is it possible to do this with Adobe Alchemy? Is it will be possible to get from that swc current image (for example, with glDrawPixels) and print it on screen
I'm trying to do something simple: send a byteArray to a C library, fill up a buffer and read the memory, but I think I have float conversion problems.
Here is what I do in AS: var memory:ByteArray = gstate.ds; // get sound var soundBytes:ByteArray = new ByteArray(); _source.extract(soundBytes, 4096);