Professional :: Path To XML & Caurina Library Not Working
Mar 6, 2012var strXMLPath:String = ("Volumes/MacintoshHD2/XML/Slideshow/slideshow-data.xml"); (This is my path to XML within my FLA)
[Code]...
var strXMLPath:String = ("Volumes/MacintoshHD2/XML/Slideshow/slideshow-data.xml"); (This is my path to XML within my FLA)
[Code]...
I am one of a team of designers/coders and the team are a mix of PC and Mac users. The Flash version we work in is 8. We all take on each others Jobs from time to time and it's
becoming a problem when we need to update media in the Library as the FLA can't find them. Is there a preference or system file that we need to change etc etc? I know we can manually locate the files but at present we are designing a JSFL that automatically updates, sizes our media within the FLA and the path issue is causing a problem.
[Code]....
I've been working on this project for sometime and finally have everything working to the point of showing it. So when I go to publish and view it in the browser the caurina transitions don't show up. There are now errors coming up during the compile and I am at a lost.
View 2 Repliesthe same class is passed to the mxmlc compiler in SWF library as a symbol linkage class and again in a source-path. But the compiler uses the definition from the source-path so creating new instance of that class won't create new instance of the library symbol. How do I tell the compiler to prefer the definition linked to the symbol (the one dfrom SWC)?
I have my design assets in an FLA file and they are linked to classes (e.g. [URL]. Then I export those assets to a SWC library and pass it to the compiler. Now when I create an instance of the class (new MyAsset();) it will be a new instance of the library object.
But there are other classes too in the source folder (e.g. "com.myproject.model.*" so I need to pass the source folder to the compiler too. And that is the problem, now the compiler will use the MyAsset.as definition from the source path, not from the SWC where it is assigned to the library object so if I create new instance of MyAsset now it won't duplicate the library object.
I am making a flash app where I want to have a user defined viewport like the stage in the flash IDE which the user can use to define objects that have a starting postition somerwhere off or on the stage and an ending position either or on or off the stage with the object then tweening between the two points. My question is this: I want the user to be able to define a curved path for the object to tween along. Is there a library of code that I can use to define curved paths for the app?
Ideally I would like something similar to the functionality available in Flash, so a bezier curve sort of path that is subdivided into handles that can be dragged to define the path of the tween. If there isn't an existing library, then do you know of the functions that I would need to define (mathematical equations related to drawing curves etc)?
I am using Flash CS4 installed on my c drive. All of my flash files are on a local network. I got a new PC yesterday and now none of my files will publish without the code. The files and locations on the network have not changed. Everything worked fine before the PC was changed.The error I get is: 1172: Definition com.caurina.transitions:Tweener could not be found.
View 5 RepliesI want to:
1) Place symbols on the stage manually in loaded.fla
2) Exclude these symbols from the swf because they will already be in loading.swf
So I:
1) Created a component.fla
2) Created a "comp" symbol in the fla
3) Turned that symbol into a component via Component Definition
4) Exported the comp.swz into Configuration/Components/MyComps
5) Opened up loaded.fla
6) Pulled the comp component onto the stage
7) Went to file AS settings and added Configuration/Components/MyComps to the External Library Paths
8) Compiled loaded.swf and played it
BUT the swf includes the comp component on the stage...which is NOT what I wanted. I only want the swf to work and have a reference to comp when it it loaded into loading.swf.Why haven't the classes in comp been excluded?Obviously this is a workaround for runtime shared libraries, which is unpredictable, time-wasting and generally painful. Is there a better way to retain WYSIWYG and share symbols? I don't want to do dynamic placing.
I've downloaded the tweener.swc from their google project page I create my fla file put it in a folder and put in the same folder the tweener.swc file.
I go to ActionScript settings > Library path > hit the + button > I type the relative path which should be just tweener.swc or not sure but just a dot (.) or / to get all the classes and libraries from the same folder in which the fla is located.
But it says it can't load the swc or my imports don't find the classes.
P.S. With absolute path it works.
When I drag and drop images in flash library, the path is sometimes relative (./somefolder/someimage.png), and sometimes it is absolute (D:lahsomefoldersomeimage.png).
How can I use only relative paths in flash library in order to be able to update all images from any computer and/or from any folder ?
I know how to use Source Path ( which is just an another source folder). But could never figure out how to make use of library path.I know using SWCs too.. but how can i use a bunch of classes which are not in SWC form, in my library path ?
View 1 RepliesWhat I have is some actionscript that displays an image from an external folder. All I have to do is specify the location of the folder, e.g,
Code:
var path = "icons/"
However, this is going to be used as a widget that people can embed on their site, I can specify the full URL to the icons folder and the app works, but to save bandwidth I've imported the images into the flash library under the folder "icons". All I need to do is set the path variable to the icons folder in library and it should work by the loading the images from the library rather than loading the images from my site.
In an IDE project what is the difference between choosing "library path" and "external library path" Is this how you would add greensock.swc to a project?
View 0 RepliesDoes 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.
View 3 RepliesIs there a way to dynamically change the path of the Bitmap on the Library? Using actionscript?
View 9 Repliesin Flash CS4 I created two FLA file.
In the First File:
- I draw a shape;
- I convert it to a MovieClip;
- I link a MyClip class with a simple trace in the constructor;
- I export the whole file as MyClip.SWC;
In the Second File:
- I go to Edit > Preferences > ActionScript > ActionScript 3 settings and I add
-in the Library Path- the file MyClip.SWC;
- on the first frame of this swf I write var myClip:MyClip = new MyClip(); addChild(myClip);
I don't know what I'm doing wrong but when I compile (export swf) the class gets loaded (I see the trace in the output window) BUT I can't see the graphics associated to MyClip. It seems MyClip.SWC only contains the code of that clip.
I would like to do something like this URl...but have the individual lines animate and show progress along a route. It needs to be a 'real' map so that I can feed in LAT/Longs for for the polylines. This is also a similar effect URL... but I don't need the map panning.I am aware of the google maps api for Flash but there doesn't seem to be any animation other than panning.
View 1 RepliesI'm using Flash Builder 4.6 and in one of my ActionScript projects, I have a referenced .swc library file.The way I added it was Project > Properties > Flex Library Build Path > Library Path tab > Add SWC...Here a popup occurs and I must select a .swc file by browsing through my machine and selecting one. Once I do that, it'll display the added library like this:
somelibrary.swc - /Full/Path/to/the/swc/here/lib/somelibrary.swc
What I want to be able to do is use a relative path instead, like:
somelibrary.swc - ../../lib/somelibrary.swc
Does anyone know a way to do this or a workaround to be able to use relative paths for swc libraries in Flash Builder?
I am trying to create a class library in the documents folder on my mac to save reusable .as classes. I tried following the tutorial on gotoandlearn about this, but it doesn't seem to be working out. I set the path in the prefs in flash using the browse button, and then set up the import line in my .fla. When I test, I get errors that say that flash can't find the dir that I am trying to use. Here are some details...
This is the dir structure that I am trying to use to store my classes.
This is how I am trying to link up to the classes using import in flash.
Here is the preference settings that I am using to get flash to look in the dir structure above to find classes to import.
I recently switched a Flex project over to using RSLs. It built fine for quite a while but has recently dug its heels in and is giving me this error:configuration variable 'runtime-shared-library-path' requires a value for 'rsl-url'I went through all the flex XML files I could find and either this value doesn't exist or there are entries available for it. Nowhere did I see a <rs-url></rs-url> with no value.
View 1 RepliesI'm trying to compile a project using compc from command line.[code]Any ideas why adding to the library path a folder with the swc I want to use generates an error?
View 1 Replieshow to import a SWC file directly in ActionScript, without setting a library path to the file.To exemplify, I need something like this:
package
{
[Embed(source = 'Library.swc')] // This line won't work, of course...
import ClassInsideSWC;
[code]....
Besides, I don't want to (I can't, in fact) import the SWC by loading it with Loader class.
Edited Just to add more info about the problem, I'll showcase my scenario with more details...I have a class SubClass that wil be independent from the rest.It will extend a class SuperClass that is inside the SWC/SWF...This SWC/SWF have the whole framework.I can't compile every class inside a single SWF.Every part of my framework is a SWF apart and will be downloaded by Loader class on runtime.
I am working in two different applications, one to be compiled for desktop use (AIR) and one to be compiled for the web. They are part of the same project and use the same visual components, but they are completely different apps. When a visual component is changed in one application then it should also change in the other one. Is this a good situation to use a shared library fla? I am new to the concept of shared libraries and I am considering the options.
On one had I would not have to update 2 applications everytime I change something, on the other, I would always have to recompile the library folder when I do the smallest changes to a component.
use the mxmlc task of the Flex Ant tasks with a user-definable list of source path or library paths? The idea is that the user can define an arbitrary list of source paths and/or library (swc) paths into an Ant properties file and the build file takes these values and evaluates them for use in the mxmlc task. Just wondering if there are any tricks (maybe utilizing filtering/string replacing) to get this working?
View 2 RepliesI am having trouble getting a relative path to my video to work.It plays when I link to the video on the server or when I use the absolute path from my hard drive but I need this to play on someone els's computer so looking to enter a realtive path but then the video fails. I am using AS3 CS4. I used to do this using AS2 CS3 so something must have changed.
View 3 Repliesi want to make a movieclip & use it in many path & places & i want to work with linkage in that mc as i make a change in that mc , the mc change in every and any places without indicating various path for every mcs.
View 0 RepliesAlright, so I've tried quite a few things with no luck. I have a scrollbar that works in the swf fine, but when loaded into my mainmovie container I get this error...
Target not found: Target = "/scrolling text " Base = "_levelO.swf container"
Basically I understand this to mean that the externally loaded movie cannot find the instance name /scrolling text. The code is as follows that I have set to the scrollbar button in the externally loaded swf....
on (rollOver) {
tellTarget ("/scrollingtext") {
nextFrame();
} gotoAndStop("down1");
}
I tried changing the target to _root.scrollingtext with no luck. Also tried _parent.
I have a big problem : My gallery ( with xml) was working perfect until yesterday . I uploaded my files to my server to test them. This morning I reopened the fla to make modif and big surprise : only the big image appears but no thumbs anymore in the scroller. I tried to trace the xml nodes but thay are now undefined. WHY? Everything is in the same folder.Nothing changed. I turned everything upside down but nothing. Does a uploading can affect some configuration ? Are the xml modified modified after being uploaded ?
View 3 RepliesI made a site using the Caurina Tweener class with AS3 and it works great in IE and Chrome, but for some reason in FireFox it loads really choppy and some of the color tweens dont work properly.I looked up the FAQ and info on the tweener and it doesnt say anything about trouble with FireFox, has anyone else encountered problems with Caurina Tweener class in FireFox?
View 6 RepliesSo 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
Code:
import flash.display.Sprite;
import flash.events.MouseEvent;[code].....
I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this :
<runtime-shared-libraries>
<url>some-lib.swf</url>
<url>some-other-lib.swf</url>
[Code]....