Runtime Sharing & Component Inspector Bug
I'm not sure if this is a bug with Flash or me doing something wrong. Here are the steps to reproduce:
1) Create "Source.fla"
draw a box on the stage and convert it to a movie clip. Call it "Component"
export Component for actionscript. Give make the class name "Component"
also, check "Export for runtime sharing" and put "Source.swf" in the URL. Click OK.
Next, right click the Component in the library and select "Component Definition..."
click the "+" button to add a parameter, give it the name "label" with type "String". Click OK
Save and test the movie so "Source.swf" is compiled out.
2) Create "Destination.fla" in the same directory
close Source.fla
go to File > Import > Open External Library...
select Source.fla. Click OK
you should see another Library panel show up with the Component symbol in it.
drag the Component symbol from that library onto the stage
save and run it. Everything should be fine: you should see your Component symbol from Source.fla should up on Destination.fla's stage.
3) The Bug!
now, click the imported Component symbol on Destination.fla's stage. And go to the component inspector.
you should see the "label" property we created earlier in step 1
change the value to something other than the default
save and run it.
you should see this compile time error: "Scene 1 1046: Type was not found or was not a compile-time constant: Component."
What's up with that eh? Seems like a Flash bug to me. Unless I'm missing something.
FYI: I'm using Adobe Flash Professional CS5 (11.0.2.489)
Message was edited by: RovertNnud
Yep, the problem definitely still exists in CS6 12.0.2.529. I have hundreds of source files for lessons being used by students from PA to TX, and this BUG is making it impossible to work with the files.
First of all, if a library object is imported for runtime sharing, then it shoudl be loaded from that external source when the file is opened, and flash should keep a file system watcher on the source RSL file so that when it changes, it automatically updates the library definition.
Furthermore, the "Authortime Sharing" seems to handle these updates automatically, but it requires a source FLA file, and once you set one, there's no way to unlink from it. If you decide you don't want to use Authortime Sharing, and just use the "import for runtime sharing" option instead, you're screwed. There is no way to unassociate a file from a source FLA once you choose one. This needs to be fixed immediatly, or RSL and Authortime sharing are useless in Flash CS6.
Did you guys somehow patch CS5.5, without carrying the fixes forward to CS6? lol. This is confusing.
Similar Messages
-
ARGH. I would've hoped they'd've fixed this by now. In the
component inspector, if I make the "Name" column wider, and if I've
got an array item in there with several items, when I click on the
Value column for anything, it scrolls the whole table of data to
the far right (accomodating the width of the array item, but
pushing the variable names off out of the left side of the window,
so I can't see them. It's really annoying when I'm just trying to
access a boolean or other droplist and can't see the variable name
to the left. It's not the end of the world, but really annoying.
Anybody know how to make it stop?
Dan P.It gives you a wider variety of parameters than you would see
in the properties pane; and sometimes there are wizards for the
particular component, available when you click the button with the
wand/star on it.
That's enough for me to use it! -
Flash Pro CS 5.5 Runtime Sharing Bug - Fonts
I have an issue with an apparent bug in Flash Pro CS5.5
I have recently upgraded to CS5.5 Master Collection from my previous version of 4.0
The bug is when I create a fonts FLA file with fonts embedded in it that I want to use throughout an entire site. I correctly configure those fonts as export for runtime sharing.
In any other FLAs in which I wish to use the shared fonts, I either (a) drag the assets from one library to the other, or (b) add them to the new fla and configure them as import for runtime sharing (both of which achieve the same result).
The second FLA simply embeds the outlines of the fonts, and does not use the shared asset at all.
There are a few references online that offer work-arounds, one of which is to port all my actionscript 2 code to actionscript 3 and then use the actionscript 3 font loading library. This is unacceptable.
The other option is not to use runtime sharing for my fonts. This is also unacceptable as it is a feature I have always relied on.
CS 5.0 has no problem with any of this procedure.
I have been 'On Hold' to Adobe Support for about 4 hours over the last 3 weeks - promised twice for a call back from a Senior Technician, which I am still yet to receive. Speaking with people unqualified to answer my issue has been frustrating and a complete waste of time.
If there are any Adobe Flash Techs reading this, I would appreciate some help, advice, acknowledgement, anything...
The suggestion in http://forums.adobe.com/message/3739427#3739427 that offers no resolve from Adobe is no help.
The software is used for commercial services, which I cannot currently deliver to clients. In the time I have waiting for this case to be resolved, my trial version of CS5.0 has expired - and now I'm being crippled by a software provider I have loyally built my service around.Yep, the problem definitely still exists in CS6 12.0.2.529. I have hundreds of source files for lessons being used by students from PA to TX, and this BUG is making it impossible to work with the files.
First of all, if a library object is imported for runtime sharing, then it shoudl be loaded from that external source when the file is opened, and flash should keep a file system watcher on the source RSL file so that when it changes, it automatically updates the library definition.
Furthermore, the "Authortime Sharing" seems to handle these updates automatically, but it requires a source FLA file, and once you set one, there's no way to unlink from it. If you decide you don't want to use Authortime Sharing, and just use the "import for runtime sharing" option instead, you're screwed. There is no way to unassociate a file from a source FLA once you choose one. This needs to be fixed immediatly, or RSL and Authortime sharing are useless in Flash CS6.
Did you guys somehow patch CS5.5, without carrying the fixes forward to CS6? lol. This is confusing. -
3.0 Shared Component - Report Format - all PDF
Greetings,
Details
I have been working with the REPORTS - REPORT QUERIES section of APEX 3.0
The testing I have been doing is very simple, but I am running into a bit of a stumper.
I have created 4 report queries on the EMP table (SELECT * FROM EMP) that all use the same REPORT LAYOUT. The RTF file which is the template is a very simple - show all columns and rows for the EMP table (14 rows).
I have set each of the 4 report layouts to a different format.
1 - PDF
1 - EXCEL
1 - WORD
1 - HTML
I am NOT using the ITEM to dynamically set the format.
I can TEST each of the reports in the shared component area, and they test OK with a success rate of 75%.
The EXCEL format does not export correctly. (using Excel 2002 on the client) It is a bit of a mess. (Works in the XML publisher template builder on the client.. so the format is not the issue.)
More curious is the behavior when I put this application. I have created a LIST of the 4 report formats. All 4 return the PDF format when used.
To see the Application:
http://apex.oracle.com/pls/otn/f?p=34096
Question Summary:
1 - Has anyone run with and tested the RTF style report layouts out to Excel?
2 - The approach described usees 4 report queries against 1 layout. Is this a VALID use of the report functionality?
3 - Why would all the reports try to use PDF when they test in the correct formats?
Best Regards and Thank You.
-- TimTim,
The Excel output is not strictly XLS, it's actually HTML formatted in a way that Excel understands and through setting the MIME-types we make it open in Excel. I have to try reproducing your specific problem with Excel 2002. If you could send me your RTF layout and the end-result ([email protected]), I can take a look.
Your approach using 4 different queries with the same layout is perfectly fine. Ideally of course, you would not have to replicate them same query four times, so we are considering a shared query concept for future version of Application Express.
You specific problem with the output format being PDF at runtime appears to be a bug, I'll investigate further. Meanwhile one work-around would be to use a report region instead. If you're using the same SQL query as the source, you can associate the same report layout (on the report print attributes page). You could also create a "container" page for that report region, that's never actually called by the end user, and then have a button pointing to the URL below for printing. It would then work just like your report queries, only that you now would get the requested format:
f?p=&APP_ID.:[REPORT PAGE ID]:&SESSION.:FLOW_XMLP_OUTPUT_R[REPORT REGION ID]
so if your app ID is 34096 and your "container" page e.g. 99, and on page 99 your report region ID would be 1234567890, then use this URL as the button target:
f?p=&APP_ID.:99:&SESSION.:FLOW_XMLP_OUTPUT_R1234567890
Hope this helps,
Marc -
Bind Variables and Shared Component Report Query
I have a query in a region report which I have replicated to a shared component report query.
Both queries reference page items as bind variables in the where clause.
The report region on screen shows the correct results but the report query shows "no data". This is the case when running "Test Query" and "Download XML data" from the shared component report query definition. If I hardcode the variable names I get rows returned, If I use bind variables - and specify the values for these variables I get no data. THe XML file contains the tags for each bind variable I have specified but has no data between the tags. I have Ticked the box to include application and session state but it appears that the bind variables are not being used.
When I use my report query in the application (URL tied to a button) I get the same problem, the binds are not being passed to the report query.
Can someone please clarify if this is a bug or not? And if not, how can I get it to work.
I am using Apex 4.0.2
Thanks
KathrynHi
To confirm, yes I selected the bind variables. I used these in the report layout, but the xml file has them as empty i.e.
<P0_START_DATE><P0_START_DATE/> with nothing in between.
IN the Test Query section, if I put real values in the boxes for the bind variables, I get no data found. If I hardcode the values into the query, I get the data.
I've repeated the create report query many times and have created a report layout in RTF. I can use the layout with my region - in the print attributes and the layout works with the query but I need to create a PDF using 2 queries - ROWSET1 and ROWSET2. I can generate the XML but the values in the rows are all empty. When I use the layout with a report query instead of the region, I get no data even though I have used the same sql and have selected the bind variables. I was using variables from page items on page zero but have also tried using page items on the current page, the result is the same.
I need to use a report query and a report layout as I need data from 2 queries in the PDF.
I looked at your demo - what happens if you add a second sql query to the report query - is there any chance I can look at the back end (developer access?)
Thanks for your input
Kathryn -
Either components or runtime sharing?
Hi,
I've got problem with simultaneous using runtime library
import and using
components form User Interface group in Flash 8 Pro. What
I've done:
1. I have created library containing one MC with just simple
circe. Next in
linkage section of symbol I set up option "export for runtime
sharing", gave
name "circlesymbol" and typed in URL "blabla" (it seems that
this field is
not used but must be filled up). I tried to use proper URL
address of this
SWF but it has no influence on anything.
2. Then I created second SWF with any UI component (e.g. list
component). It
works fine. Next I decided to create new symbol "Symbol 1" in
library panel.
In the linkage section, option "import for runtime sharing"
has been
selected and field "name" was filled up with "circlesymbol".
SWF still works
fine but when symbol "Symbol 1" was dragged and dropped into
to the stage
all UI components stopped working. I can see only its frames
without any
details, just rectangles surrounding white areas. Imported
symbol looks fine
in the stage. Since imported symbol was removed from the
stage (not from the
library), components started working properly again.
Is any solution to this problem?
Regards,
MarekHi Kelvin
Please see: Crystal Reports 2008 (12.x) Updates & Runtime Downloads
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Flash CS5.5 - font outlines still get embeded while using runtime sharing
I have a project where I use several SWFs and have the fonts outlines stored into a seperate SWF. Within the .fla file's I have checked the Import for runtime sharing with the various font definitions.
In the library the linkage part shows for every font the Import: classname
To get a correct idea how things look within the IDE, I've checked several character ranges within the font properties so the preview renders correctly.
In Flash CS5 everything was working correctly; no font outline was included within the SWF. The size report also shows this.
When I create the SWF with Flash CS5.5 font outlines of the selected ranges still get embedded into the SWF. The file size of the SWF is much larger and the font outline information shows up in the size report.
Anyone has a solution for this problem?I've just stepped into the same problem. Quick analysis of SWF content showed that all "import" tags have been removed and replaced by "font" tags (sometimes empty (empty - meaning no glyphs are there), sometimes not). I am publishing SWFs for Flash 8/ AS 2.0, thus, the SWFs should be FULLY compatible with old players. Technically speaking, importing of fonts is totally busted in CS5.5 and makes the CS5.5 completely unusable for us.
Seems VERY much like a nasty bug. I am going to play a bit more with it in order to find a workaround. If not - I'll go back to CS5. I really hope Adobe will fix this bug ASAP. I have submitted a bug report about this issue.
A bit more info about repro the issue: create font.fla and export font $Font from it. Create the second fla (main.fla) that imports the font $Font from the font.swf. Publish all the swfs. Look inside the main.swf and instead of "ImportAsset" tag for font you'll see the regular "Font" tag (like it was never imported). However, the "ExportAsset" tag exists in font.swf and it looks completely fine.
AB: Added some info -
Runtime shared library in Flash CS5
I'm trying to use OSMF as a runtime shared library in Flash CS5, but Flash keeps on crashing all the time I'm trying to change that swc from Merged into code to runtime shared library. Whatever URL / policy file Im using, Flash always crashes at compilation, and then after that there's no way to reopen the FLA without Flash crashing. Very annoying. I'm glad it's just a test project and not production files... Anyone already experienced the same kind of bug?
UPDATE: just tested it on Win XP SP2, same behavior, same nasty resultFunny, I have the same problem with a shared library (documentation on this site makes no sense to me, that is). And the Adobe Help desk refers me to this forum!
What I know is that an item in a shared library cannot have names with spaces, so should be like "btn-up" and not "btn up".
Further you should while activating the item in Libraries look for "Properties" (on the right hand side of the pull down of the Library) and define them as "Export for sharing" (my version is in Dutch and for Mac so these labels are named differently and in a different place).
Then in the movie you want to use them in, you open import (under file) and open the .fla of your first document as external library.
In the beginning it is as easy as that, but then creating a library in movies that are in use for an extended period of time (using spaces in their names, etc.) is a whole new ball game.
Lucie -
AIR crashes on loading swf with 'Imported for runtime sharing' fonts
Hello everybody,
I have a trouble with an AIR application developped with Flex but the error seems to come from the Flash/AIR, after some searches a staff member (Flex harUI) said me that I could find more help for my trouble here.
I'm developping an AIR application which loads an external swf. This swf contains 'Imported for runtime sharing' fonts from another swf to reduce its size.
When the AIR application has finished to load (see message below) the whole application crashes without giving any error message except the usual "Process terminated unexpectedly" error message.
End Loading: [SWF] C:\Users\dev02\myProject\index.swf - 83,930 bytes after decompression
Error Message:
Process terminated unexpectedly.
Launch command details: "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\runtimes\air\win" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug\Language_Editor-app.xml" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug"
I use Flash Builder 4 (build 272416) with sdk 4.6.
Full discussion here.
I tried to load the external swf with the most basics codes, it works with a Flash web app but not with a Flex/AIR app or a Flash/AIR app.
Thanks for the help !Thanks for the anwser.
In fact, I cannot specify a swc because my main application is an editor of sub-applications where each one has its own library.
The bug remains when sharing a simple MovieClip too.
Maybe, if I explain my project it will be a little more clear.
I'm developping a multi-languages module / application.
For each module, I have an external xml for texts. So in order to add a new language we don't need to recompile, just to change texts in the xml. But, I had to externalize my fonts, (imagine if each swf contains the whole characters set like latin, cyrillic, etc.).
And then, I have my main text editor application above the module, which loads texts xmls and a preview of the page where we need to change the text. (This is where it crashes, during the process of loading the preview).
My editor works great for translating, changing texts, modify images but without the preview, what is really frustrating.
(not so ergonomic, I know...)
I hope it will help you to understand my trouble.
regards -
Build GUI like component inspector in FORTE
I want to make GUI that used swing. But I 've problem to realize my design. I've choosed to create main window with toolbar and target area. When I clicked toolbar, the target area will be changed (like component inspector in FORTE). I didn't use mdi, because it does't suitable with my project.
Thank you
Faisal I. M.coope69 - perhaps you mistook my reply as hostile? If so, I
apologize, as it was not intended to be so.
If the keyboard shortcuts do not work for you, it could very
likely be a bug with your specific install of the IDE. I have
confirmed that the keyboard shortcuts work fine in my Mac version
of Flash CS3.
It is true, I come from a PC background, but I use both Mac
and PC on a regular basis. One of my pet peeves about the Mac OS my
entire life was the non-contained window, so I am clearly in favor
of having a singular contained window (I find that when it is not
in a singular contained window, I tend to accidentally click on the
desktop, or other applications that are open, severely hindering my
workflow. Something I considered, and still do consider a very
large bug in the Mac workflow. But this is personal preference, and
I know that many others consider it better to not have a contained
window)
Regardless of my personal preferences for what it looks like,
I feel that a uniform application identity is a step forward. There
is no reason an application should look completely different when
running on a Mac vs a PC.
I know there was no public beta for Flash, I am an avid beta
tester for Adobe, and always download software as soon as its
available. I recently signed up to be included in private beta
testing as well. My statement about the public betas being out for
months is very relevent, though, as the singular window is a
Creative Suite wide change, and was in all 3 of the applications
that were out for beta. If the community as a whole had rejected
it, I am certain that Adobe would have made sure to correct the
concerns. -
The term "Shared Components" confused me a bit.
Is this true:
When App:A and App:B BOTH use Template X
and I change App:A-Template X --- App:B-Template X is NOT touched.
So a "Template" being a "Shared Component" means H-DB dishes out a COPY of it to requesting App, correct ?
So that each app has its own copy of templates and that they are NOT shared in the sense that changing template in one app effects all apps that use that same template.
Correct ?Robert - Mostly correct. Shared Components are those that are shared between pages within an application, not between or among applications. A separate concept is the publish/subscribe feature available for some shared component types. When you copy or copy/subscribe to these shared components between applications in the same workspace, the behavior is exactly as you described it. The subscribing application never gets its copy modified unless it "pulls" it or unless the master application "publishes" it. At runtime, every application is self-contained and never accesses any application metadata outside its own definition.
Scott -
Unable to load external swf which has runtime sharing with another swf.
Hi,
I am getting issues on loading external swf say "importer.swf" file into another swf file say "loader.swf" for second time like
ReferenceError: Error #1065: Variable testSymbol is not defined. VerifyError: Error #1014: Class testClass could not be found.
at global$init()
In the external swf "importer.swf", i am trying to import the symbol "testSymbol" from another swf file say "exporter.swf", which exports through runtime sharing option for the symbols.
I am having some buttons in loader.swf file and on each button click i am loading different swf files into the loader.swf after unloading the previous one.
I am able to load and unload different swf files but unable to load the importer.swf file which is sharing symbols from external swf and that too for the second time i.e., when i click the button twice.
When trying to debug with flash debugger, all the other swf files are being unloaded before loading of another swf but the swf which is sharing symbols/classes with another swf is not getting unloaded.
Output when i am trying to load two files example and importer files into loader.swf file on two different button clicks. On first button click example.swf is loaded. On second button click , example.swf is unloaded and importer.swf is loaded which is successful. On first button click again importer.swf is unloaded and example.swf is loaded. On second button click again, example.swf is unloaded and importer.swf is loaded, here i am getting issues shown above.
Attemping to launch and connect to Player using URL D:\runtime issue\loader.swf
[SWF] D:\runtime issue\ loader.swf - 8181 bytes after decompression
[SWF] D:\runtime issue\example.swf - 441708 bytes after decompression
[UnloadSWF] D:\runtime issue\example.swf
[SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
[SWF] D:\runtime issue\importer.swf - 441708 bytes after decompression
[SWF] D:\runtime issue\ example.swf - 441708 bytes after decompression
[UnloadSWF] D:\runtime issue\ example.swf
[SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
ReferenceError: Error #1065: Variable xxxxxx is not defined.
Debug session terminated.
Code i am using
b1.addEventListener(MouseEvent.CLICK, b1Clicked);
b2.addEventListener(MouseEvent.CLICK, b2Clicked);
var ldr:Loader;
function b2Clicked(e:MouseEvent)
if(ldr != null)
ldr.unloadAndStop(true);
ldr = new Loader();
ldr.load(new URLRequest("importer.swf"));
addChild(ldr);
function b1Clicked(e:MouseEvent)
if(ldr != null)
ldr.unloadAndStop(true);
ldr = new Loader();
ldr.load(new URLRequest("example.swf"));
addChild(ldr);
If i try to open the swf using IE, i am not getting any issues at all. But i need to open this loader.swf in a air application. Also when i use loaderContext for the loader instance i am able to get rid of this issue but i cant use it in my application.
So, please help me in resolving this issue.
ThanksI got my answer. I had to append the photo url to the 'movie' value of the javascript embed method. Like this:
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '550',
'height', '400',
'src', 'lesson2',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'lesson2',
'bgcolor', '#ffffff',
'name', 'lesson2',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','always',
'movie', 'lesson2?photo=http://www.flash-mx.com/images/image1.jpg',
'salign', ''
); //end AC code
</script>
Thanks,
srb. -
Setting a bind variable in a Shared Component Report Query
I have defined a Shared Component Report Query in APEX using a bind variable similar to below
Select name, id , ....
from asset
where id = :id
I have also created a Report Region that displays a table where one of the columns contains a value I would like to be a link column that can launch the Report Query and pass its value to the bind parameter :id in the report query. This in turn would generate a pdf report for the details associated with that column. I am having problems setting the :id bind parameter. How do I do this?
Can anyone help?
ThanksThe bind values are set from session state. So if try something like this:
Select name, id , ....
from asset
where id = :P1_ID
With P1_ID being a page item, for which you set the session state / value before generating the PDF file. So assuming you already have a page with a report and a page item, and that page item is already used in your report, then you could just create a button to download the PDF, make sure the button is a submit button, and create a branch pointing to the report query URL (or in 3.1 use the create button wizard, to do this declaratively.)
Regards,
Marc -
CS5.5 Import for runtime sharing and preview problem
Hello
I'm having a strange issue with CS5.5 and the import for runtime sharing settings. Here's what I'm doing: I create two .fla's, Export.fla and Import.fla. In Export.fla, I create a shape, select it, press F8 and tick export for runtime sharing, to create a really simple exported movie clip. I click the exported symbol in the library, press Ctrl-C, switch to Import.fla and press Ctrl-V. Everything ok so far, the symbol is imported for runtime sharing.
The first problem I have at this stage is that changes I do to the exported symbol in Export.fla are not reflected in Import.fla, only in the final .swf's I can see the changes. Also, unlike in CS4 and CS5 I cannot "Update" the imported symbol in the library right-click menu, to make changes to Export.fla visible in Import.fla. The menu entry is just greyed out...
So I tried to use Authortime sharing, in the Symbol Properties for the imported symbol in Import.fla. I link the source to the symbol in Export.fla, and once I do that, everything is completely borked. The previously imported symbol is no longer imported. Whenever it is changed in Export.fla, it gets an "Export for Runtime Sharing" tick in its Properties in Import.fla, and worst, it is not shared at runtime, like I need it to.
Can anyone tell me how to get the "normal" CS/4/5 behaviour in CS5.5: a runtime shared symbol, that can be updated in Import.fla (I dont care if manually or auotmatically) when I change it in Export.fla, and which also is runtime shared?
Cheers
UlfHi, JonnyDiamond
Thank you for reporting the issue for runtime sharing settings affected by authortime sharing. It is fixed for parent symbols in Flash Pro CS6, but we just recognized it is not for nested items.
As an alternative to deleting and re-copying the symbol, we see the following steps restore the original settings of the nested bitmap symbol (png in your case) for importing runtime shared library. After you open Bitmap Properties dialog of the bitmap symbol, go to ActionScript section and:
1. Uncheck Export for ActionScript
2. Check Import for runtime sharing
3. Input the path to Library.swf in URL
4. Click OK twice
Please try these steps to see if they work for you. If they do, the simalr steps can be processed via JSFL script. It would be something like this:
//// To restore the settings to import runtime shared library //////
// Get Library items
var myItems = fl.getDocumentDOM().library.items;
// Store an item from myItems
var myItem;
// Path to runtime shared library. Change this to your path
var pathToRSL = "Library.swf";
// Go through Library
for (var i = 0; i < myItems.length; i++)
myItem = myItems[i];
// Change the condition to suit to your Library
if(myItem.itemType == "bitmap" &&
myItem.name.split(".").pop() == "png" &&
myItem.linkageExportForRS == true )
switchRSSettings(pathToRSL);
// Disable Export for runtime sharing and
// enable Import for runtime sharing
function switchRSSettings(path)
myItem.linkageExportForRS = false;
myItem.linkageExportInFirstFrame = false;
myItem.linkageExportForAS = false;
myItem.linkageImportForRS = true;
myItem.linkageURL = path;
///////////////////////// End of Script ////////////////////
We hope this would help you workaround the issue. Again, thank you for your report!
Thanks
Toshi -
Flash Runtime Sharing Challenge 2008
Hi everyone!
So I've been looking more into the "Import/Export for runtime
sharing" of flash, and have run into some frustrating behavior. The
problem I'm running into is that Flash's management of swf paths is
confusing, and there is not a lot of documentation as to how the
engine links files together.
First some background; forgive me if it's verbose, I just
want to make sure I supply enough information for this complex
scenario.
Basically, I'm trying to make a simple 2D fighting game like
Street Fighter, so I'll use a character... Let's say... Ryu(cause
he's the coolest!)
I'm using external linking to try and reduce the sizes of the
swfs from the FX in the game w/o having to create a complex dummy
system. I've got most of the research completed, the final hitch
that I've encountered is how Flash CS3 handles the linkage setup.
Here's the setup I have with Ryu:
/game/rsrc/characters/ryu/flash/Impact.fla
/game/rsrc/characters/ryu/flash/
Impact.swf
/game/rsrc/fx/
ImpactFX.fla
/game/rsrc/fx/
ImpactFX.swf
/game/bin-debug/Game.swf
So ImpactFX is the VFX that will be used in all character's
animations. It's a dust cloud that appears when ryu hits the
ground.
Ryu's Impact file references ImpactFX's library. There will
probably be others like WallImpact, etc.
Game is the main game.
So if I have 200 Impact animations with Ryu, w/o using
runtime sharing, I have to take the size hit, roughly 200 * sizeof(
ImpactFX.swf), since the assets are burnt into each
individual Impact animation's swf. With runtime sharing, I only
have to download
ImpactFX.swf, so I get major savings over that VFX. Right?
I've been able to get runtime sharing to work in specific
instances, but not in a general system.
So the first thing I did:
I setup the shared symbols in
ImpactFX.fla to 'Export for runtime sharing'. I used the
default symbol names, and used the URL '
ImpactFX.swf.'
Dragged the folder that contained the shared symbols from
ImpactFX.fla to
Impact.fla. This setup all the symbol's correctly.
Added them to my scene and ran(
Impact.swf). No dice! I got this error:
Error opening URL
'file:///H|/flash/game/rsrc/characters/ryu/flash/ImpactFX.swf'
From this, I ascertained that
Impact.swf was looking for
ImpactFX.swf in the same directory as it.
As a quick test I copied the
ImpactFX.swf to the same directory as
Impact.swf. Re-ran, and success! The swf savings are there,
but it's not ideal at all, I have to copy the swfs to the same
directory???
From there I changed the linkage up a bit. From the library
in
Impact.fla, I changed the Import URL to
../../../fx/ImpactFX.swf. Still success! But... Some more
weirdness here, I only changed it on one symbol, and during runtime
it worked for all symbols... Even though the other symbols still
point to just
ImpactFX.swf...
So this works fine when I run and test the animation from the
fla. However, when I try to run it from the
Game.swf, DISASTER! This one was even more frustrating; the
flash player doesn't seem to give the previous error message(even
though it's the same issue.) I traced this problem down before and
found that the
Impact.swf would never return a 'loaded' event. Not cool. Of
course, copying the
ImpactFX.swf to the appropriate path fixes this and it runs
beautifully.
So where does that leave me? There's a way to get this to
work, but it's not pretty at all, especially for artists. The ideal
setup I would like to have the artist working is:
1. Open the FX library fla, pin the library, and drag drop
the appropriate symbols for the animation.
2. Save and export.
3. Run and confirm in the fla's test frame work.
4. Run and confirm in the game.
Unfortunately, with all the swf location copying and pathing
this adds too much complexity for an art pipeline.
So that's my dilemma. The main question I am trying to figure
out now is, what's the best pipeline solution for this scenario? I
want to be able to runtime share these files with multiple shell
programs. A solution is forming, but I don't think it's the best.
It seems like when you setup a symbol to 'export for run-time
sharing', the URL defines the path the parent importing swf uses to
find the runtime resources, which seems a little backwards...
I tried loading
ImpactFX.swf before
Impact.swf. That didn't work, even though they are in the
same security sandbox.
Other questions:
1. Is there a way to make loading swfs throw that 'Error
opening URL' error?
2. Is there a way to say 'hey flash player, the file you are
looking to link is over here!'
3. Or even better, 'hey load these runtime assets before you
load the assets that reference them!'
4. Is this necessary? I'm assuming this is a required
savings, because if we have a lot of animations with FX, we're
going to want to cut down on our download size. Figuring out this
pipeline may also allow us to load one large library file for the
game animations, and just load that.
5. Does the security sandbox system have anything to do with
this.
Any thoughts or ideas? Feel free to point me towards
documentation, I haven't had much luck finding any detailed
documentation for this topic.Hi Legos,
Did you ever solve this problem? I'd like to organize my flash files similarly, but I too have had weird issues with runtime sharing.
Also, how do you debug into the imported symbol?
Aaron
Maybe you are looking for
-
ITunes won't open. Error (-200)? 9/30/11
I now have Lion and am totally updated, but I keep getting this error message (-200). I've read other similar reports od people who tried every normal thing to no avail, but I haven't found an answer yet. Can someone help? Thanks
-
I am trying to consume a base model which is available in the Customer.jws (AppCmmnCompActivitiesPublicModelActivityManagement) to my Mobile UI project available in Sales.jws (SalesMobilePublicUi). We have added proper Databindings.cpx entry for acce
-
How can I use an exsiting Apple ID without a credit card?
Hi, I'm trying to use my already made Apple ID with iTunes, but I don't want to use a credit card. I know that you can make a free account in the Apps Store, but every time I type in my email address and password then click Sign in, a message display
-
Macbook pro key lost sensitivity
My friend spilled a sugary drink on part of my keyboard, and now my touch pad is a bit weird but more annoyingly, the space bar is substantially post it's sensitivity. It's because the key is a little sticky and takes more pressure to push down the b
-
.psd file size does not make any sense to me
I am hoping someone can explain the huge .psd file sizes I am seeing. I have a Canon 7D and shoot raw. I have a raw file that is 24.6 Mbytes and is a 3456 x 5184 pixel image. I then open with ACR and do nothing but save it as a 16-bit .psd file with