Flex :: Asdocs Seems Unable To Find Embedded Assets?

Jul 25, 2010

I'm running asdocs from a .bat file with flex sdk 3.2.0 (I have replaced my long project root folder with PROJECTROOT):"C:Program Files (x86)AdobeFlex Builder 3sdks3.2.0inasdoc" -source-path . "C:Program Files (x86)AdobeFlex Builder 3sdks3.2.0" "_PROJECTROOT_Componentssrc" "C:\_PROJECTROOT_assets" -doc-sources .PAUSE"Unforunately, I keep getting errors similar to this:"_PROJECTROOT_assetsstyles.css(344): Error: Invalid Embed directive in stylesheet - can't resolve source 'Embed(source = "close_button.png")'.downSkin: Embed(source="close_button.png");"I really don't understand this as "close_button.png" is in the same folder as styles.css. When I build the project from within flexbuilder, it compiles it fine and does not throw any errors.

View 2 Replies


Similar Posts:


Flex :: ANT Tasks Can't Find My Assets?

Mar 18, 2010

I'm attempting to compile my Flex project with an ANT build script.One of my MXML components references an external XML data file, like this:

<mx:XML id="treeData" source="assets/data/help.xml" />

When I build the project using Flex Builder, it compiles fine. However, when I try to compile it using ANT, I get the following error:

Error: Problem finding external XML: assets/data/help.xml

How come ANT isn't finding the XML file? Apparently it knows the source path otherwise it would not have found the component to begin with. I added the source path to the target anyway, but it doesn't seem to have made any difference:

<source-path path-element="${SRC}" />

View 1 Replies

Flex :: How To Get Embedded SWF To Interact With Project Assets

Jan 13, 2011

I have a Flex project in which I am embedding a Flash SWF containing an image viewer. The SWF file I'm embedding is supplemented by an XML file, which contains a list of images to show, and an images folder containing the images. The problem I'm running into is that the embedded SWF file is unable to load the pictures. I am able to see the forward/backward navigation buttons, but there are no loaded images. When I view the SWF file outside of the Flex project it works fine. Is this because Flex isn't allowing the SWF to reach outside and access other project assets?

Here's my code for embedding the SWF:
<mx:Script>
<![CDATA[
import mx.controls.Image;
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
[Code] .....

View 2 Replies

Actionscript 3 :: Use Timeline Scripting On Embedded SWF Assets W/ The Flex SDK?

Sep 11, 2009

I've embedded a SWF into a class using this syntax above my class definition:

[Embed (source='/../assets/MyMovieClips.swf', symbol='SpecialMovieClip')]
public class SpecialMovieClip extends MovieClip

The MovieClip asset seems linked with my class okay, and instantiates along with it, and is visible, but:

I can't access instances placed on stage within that clip. The timeline scripting seems non-functional.

Is this the drawback of embedding SWF files at compile-time with the Flex SDK? So, maybe I should just go back to compiling with the Flash IDE if I want timeline scripting or instances positioned on-stage?

View 2 Replies

Flex :: Does Compiler Automatically Optimize Embedded PNG Assets?

Jun 29, 2010

I was trying to further reduce the filesize of a SWF file by optimizing the embedded PNG graphics (using ImageOptim tool). To my surprise, this didn't yield any effect, so I created two test Images:

Original (433883 bytes)
Optimized (273723 bytes)

When embedding either of these assets in a simple ActionScript project, the compiled SWF is ~274kb in size. Which raises the question: Does Flex optimize embedded PNG assets during compile-time? If yes, is there some documentation about the optimization going on? It can't be because of the SWF compression alone, because zipping the images doesn't reduce filesize at all.

Here's the Code for completeness:
package {
import flash.display.Sprite;
public class SizeTest extends Sprite {
[Embed("/assets/original.png")]
private var ImageAsset:Class;
public function SizeTest(){
}}}

View 2 Replies

Wcf :: Flex - Unable To Find Definition For Type From WCF Service

Nov 9, 2011

I have a WCF Service running SOAP and allowing Flex / Flash to connect to it using basicHttpBinding by using the 'Data' 'Import Web Service' option. Unfortunately when I consume and invoke this service within Flex it throws the following error...

Error: Cannot find definition for type
'http://schemas.datacontract.org/2004/07/System.Drawing::Size' at
mx.rpc.xml::XMLDecoder/decodeType()

...when using the following code...

// This will return an array of presentations
var service:PresentationAuthoring = new PresentationAuthoring();
var token:AsyncToken = service.getAllPresentationByClientId(

[code]. ..

This method returns an array of Presentation objects that are retreived by the service. At the moment there are no DataContracts and I'm allowing the POCO Presentation object to be serialised and punted out by the service that works fine. However, this class has a readonly property of the type System.Drawing.Size that derived from appropriate height and width properties. Looking through the generated code, it doesn't register a 'Size' class in the base import schema although it still seems to create a Size class.

An alternative has been to stop the derived property from being serialised using the [XmlIgnore] but that has not worked. I need a way of allowing my Flex application to communicate with my WCF service but it seems to choke on the System.Drawing.Size type and while I could change this, there are other framework types such as Point, Rectangle, etc, etc. that are utilised within the project.

View 1 Replies

Flex - Generate The ASDocs For The API?

Oct 7, 2009

I have an API that inherits flash.display.Sprite .When I try to generate the ASDocs for the API, The ASdoc shows that my class inherits from flash.display.Sprite, but doesnt link or there is no click-able link to the Sprite's ASDoc. Can anyone tell me what I am missing.

[Code]...

View 3 Replies

ActionScript 3.0 :: SWC With Embedded Assets?

Jan 27, 2010

I used to be able to create distributable components in AS2 (swc files) containing class code and assets (movieclips). And it used to be really easy.Now I am struggling with Flash CS4 and AS3 and all my attempts were frustrating, as no matter what I try it simply doesn't work. I am starting to assume that maybe it is not possible anymore to do in AS3? Maybe this kind of thing is deprecated in Flash now???

Let's see what I have tried:

1) I started with a new FLA and named it 'MyComponent.FLA'. Then I drawed a green square, converted it to a mc and named it as 'MySquare'. Then I tagged 'Export for ActionScript' and 'Export in Frame 1'. Then I named the class as 'MySquare' and set the base class to 'flash.display.MovieClip'. This is my asset (a green square movieclip).

2) Created an empty movieclip and dragged the asset within it. Then I named it as 'MyComponent'. Then I tagged 'Export for ActionScript' and 'Export in Frame 1'. Then I named the class as 'MyComponent' and set the base class to 'flash.display.MovieClip'.

3) Right-clicked it in the library and chose 'Component Definition'. Then in class field I typed 'MyComponent' and tagged 'Display in Components Panel'.

4) Crated a new AS file, called it 'MyComponent.AS' and typed the following code:

Code:
package {
import flash.display.MovieClip;
public class MyComponent extends MovieClip

[code]....

5) Back to 'MyComponent.FLA', right-clicked the 'MyComponent' object in the library and chose 'Export SWC file'. That was ok, no warnings, no errors. Then I just copied this new SWC to my components folder.

6) Created a new FLA and named it 'test.FLA'.

7) Reloaded the components panel, and my new component showed up. Then I dragged it into library.

8) Then I type the following code:

Code:
var test:MyComponent = new MyComponent();
trace (test.visible)

9) I ran the new app and it was ok, no errors and no warnings. The trace statement spit out 'true' what means that the new class is really there, but... I cannot see the green square. But when I click onto the 'MyComponent' in the library, the preview shows up the green square, what means that it IS THERE in the component. So, why it doesn't show up in the stage after the class be intantiated?

View 4 Replies

ActionScript 3.0 :: Embedded Swf Not Loading Assets?

Oct 3, 2011

I have a site that contains a page with a fancybox pop up which contains a .swf.This swf loads a sound file and a thumbnail (mp3 and jpeg). When I view this by double clicking the swf it works fine, when I navigate directly to the swf in the browser it works fine, however when I try to view the embedded swf it does not load the jpeg or the sound file. I have another page which does the exact same thing except it loads a different swf which only loads a video file and this works perfectly.

AS3 code :

Code:
package www.elementalstudios.co.za {
import flash.display.Sprite;[code].....

Where the $theInner is a javascript variable that is used to set the innerHTML value of the div that I want to have containing the swf and $jUrlArray is an array of filepaths to various folders containing different sound files and thumbnails (each folder also contains the swf).The thinking is that the swf looks for the files as "sound.mp3" so the swf would assume that file is in the same folder it is in, therefore I'm only loading the swf from the different folders.

View 1 Replies

Actionscript 3 :: Clear Out Embedded Bitmap Assets In AIR?

Mar 15, 2012

I'm creating an AIR 3.0 app.

For a lot of my graphical assets I'm using the Flex embed metadata to embed bitmap objects as Classes and then instantiating them.

The problem is that it seems these never get garbage collected. I haven't found much info online but I've seen a couple of posts that seem to confirm this.

Anytime one of my classes gets instantiated that has these embedded assets, they always create new instances of the Bitmaps and BitmapDatas rather than reusing what's already in memory. This is a huge problem for memory. And I can't find any way of de-referenciong them or getting them to leave memory.

So the only solution I can think is to just load the graphics from disk rather than using the embed tag. But I'd rather not do this seeing as how when the app is packaged and installed, all of those graphcial assets will be on the end users computer rather than contained within the SWF.

View 2 Replies

ActionScript 3.0 :: Executing Code Before Loading Embedded Assets?

May 27, 2011

Is there a way to execute code (like a preloader) before loading the embedded assets? I'm using the [embed] tag with CS5, and I'd like to avoid using an external preloader.

View 9 Replies

ActionScript 2.0 :: FLV Playback - Xml - Error "unable To Make Connection With Server Or Unable To Find Flv On Server"

Jul 16, 2011

I have a site that plays either .mp3 or .flv files depending on what is selected from the menu. Menu loads in from xml. I get "unable to make connection with server or unable to find flv on server" when I try to play the video. But the video and audio files are all in the same directory and the mp3 files play fine. I think I'm having a problem with the setMedia command. Here's the code that loads the video and audio files.

[Code]...

View 9 Replies

FlexMojos "unable To Resolve 'assets/**/*.png' For Transcoding"?

Jul 27, 2011

I'm trying to mavenize a Flex project using Flash Builder 4 as IDE. I'm using flexmojos 4.0-beta-7 with flex sdk 4.5.0.19786.

[Code]...

Here it is my complete ${basedir}/pom.xml and here the output from $>mvn clean package.

View 1 Replies

Flash 4 :: Unable To Find The Properties Menu ?

Apr 10, 2009

I can't find the properties menu in flash 4, my text book references flash 3.

View 1 Replies

ActionScript 3.0 :: Unable To Find An Align Command?

Mar 29, 2011

I been given some banners to adapt, unfortunately on not very familiar with AS3 and im trying to align a word to the left but for the life of me i cant figure out what to change. Can anyone please shed some light? I can get letter spacing to work but I can't find an align command.

ActionScript Code:
import flash.events.EventDispatcher;
  import flash.text.StyleSheet;
  import flash.text.TextFormatAlign;[code].............

View 1 Replies

ActionScript 3.0 :: Flash Unable To Find New Class File

Jun 28, 2010

C:alexflashportfolioimagesDualGallery.as, Line 15001: The name of package 'portfolio.images' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:alexflashportfolioimagesDualGallery.as

My class file is located here: C:alexflashportfolioimagesDualGallery.as
My class file is defined as:
package portfolio.images
{.....

My FLA is importing it as :
import portfolio.images.DualGallery;

Normally I use portfolio.classes and I have no trouble. My AS3 prefs are set to the alexflash folder.

View 1 Replies

ActionScript 3.0 :: Flash Unable To Find Document Class

Jul 13, 2010

I have a App.fla file on a path and a App.as file on the same path. On the Class field I put "App" and on the ActionScript Settings Source path there is "." which means the same path of the .fla file, right? I open the App.fla file and click on the little "pencil" icon in order to edit App.as but then Flash whether tells me there's no class file associated or it opens a new ActionScript file.

So I can't do nothing , I even copied all code into the App.as , and pasted into the new ActionScript file it generates when I click the little pencil button. It still cannot find the god damned class. A little detail, I'm using Mac OS X 10.6.2. I've been working full time with flash on a Windows and that never happened to me before. That hasn't happend to me on Mac either (though I have hardly used it to do FLASH/AS).

View 3 Replies

Professional :: Unable To Change/find Instance Of Movieclip?

Sep 10, 2011

I adopted and existing site, and am making some changes.
 
Publish settings:
Flash 8
Actionscript 2
 
A seperate movieclip named page4 shows in the library to have 6 uses.  On the clip are two text boxes both static and one has a movieclip button overlayed.  Selecting any of the three changes the propery panel for allowing editing.  However.  Even though I can see the reference point (the cross) of the movieclip page4, I can find no way to get flash (CS5) to show me the properties to allow giving it an instance.

View 7 Replies

IDE :: Unable To Find Methods To Just Diplay A Random Image?

Feb 17, 2009

This should be rather simple, but for some reason i'm only able to find methods to just diplay a random image, but i want the image to change once a day not every time you load the page.

All i have atm are a empty movieclip to load the photos, an upload system in flash that uploads photos to a specified directory, but now i have to figure out the AS to make the movieclip load a random photo from a specified directory once a day.

View 2 Replies

ActionScript 2.0 :: Unable To Find HMAC Encryption Method?

Jul 20, 2009

i'm need HMAC-SHA1 for doing some encryption, but so far i'm able to found SHA1 in meychi crypto library, but until now i'm still not able to found HMAC encryption method so far.i'm trying to refer to hurlant crypto library, but it's quite confuse as it's using ByteArray which only available on AS3.

View 1 Replies

ActionScript 3.0 :: Unable To Play Embedded Flv Video On Stage?

May 5, 2009

I have embedded a flv video onto the stage. I then have loaded in an image which is transparent enough to see the video through it. The problem is I cant now access the video player to control it. Is there anyway to bring the embedded video on the stage above the loaded in image so I can actually click play on the control bar and play the video?

View 3 Replies

Actionscript 3 :: Unable To Listen For An Event Dispatched From An Embedded Swf?

Aug 2, 2011

I have an as3 class with an embedded swf. I need the embedded swf to dispatch an event and have the as3 class action on that event. This used to work fine when the embedded swf was embedded and had been loaded as an external swf, however now that it's embedded the listener never picks up on the dispatched event.

I've created a simplified example below, the 'onMovieComplete' function is never called.

/* I have an external swf file 'movie.swf' with a simple animation in it.
* When the animation hits a frame (frame 70 in this case) it fires a
* Event.COMPLETE (using:- "this.dispatchEvent(new Event(Event.COMPLETE));" )
*/

[Code]....

why the event dispatched from the embedded swf is never picked up by the listener?

View 2 Replies

Flash :: Find Which Embedded Files Take Large Size In A Swf

May 5, 2011

How do I find which all embedded files are taking up sizes in a specific swf file. I am looking for something like Windirstat for swf files.

View 3 Replies

ActionScript 3.0 :: Find Out Current Page Url From Embedded Player

Jun 14, 2010

How to find current page url from flash without calling javascript function. I was trying to get the url of the current page where my player has been embeded. I wrote this function.

function getCurrentUrl():String{
var Url:String = ExternalInterface.call("function get_url(){return document.location.href;}");
return Url;
}

This function works in firefox and chrome but doesn't works in IE.

View 0 Replies

Flash :: Self Updating Air Application Assets Without Re-downloading Assets Already Downloaded

Feb 10, 2011

I want an air application to be able to update the assets it uses, but minimizing the download needed, so only downloading files added since it last updated.I'm thinking this would include a server portion which would zip the needed files based on a version number? Has anyone implemented anything similar / got any thoughts on the best approach to building this sort of system?

View 1 Replies

Flash :: Html - Unable To Hide A SWF Object Embedded In An Iframe?

Apr 12, 2012

On my HTML page, I have <div> with an <iframe>, which references another page, that contains a Flash SWF object. If I set any of these:

display:none;
visibility:hidden;
opacity:0;
filter:alpha(opacity=0);

on the <div> that wraps the <iframe>, the SWF object sometimes remains in plain sight, while the <div>and <iframe> go out of view as expected.

[Code]...

This should work in the latest versions of Safari, Chrome and Firefox on a Mac and in the latest versions of Chrome, Firefox and Internet Explorer on a Windows 7 machine, and it should fail (no errors but the hiding behavior doesn't occur) in Safari on a Windows 7 machine.

It might be pertinent to note that one thing I've noticed about the SWF objects that have passed and failed are that the ones that have failed all revolve around video content whereas the ones that have passed don't. Granted I haven't tested more than a half-dozen objects, but that's quite a coincidence. :)

View 1 Replies

ActionScript 3.0 :: VideoError: 1000: Unable To Make Connection To Server Or To Find FLV?

May 26, 2009

I keep getting this error in my output panel when I switch from one flv to another. I am loading up multiple flvs from an xml file.

VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/pause()
at fl.video::FLVPlayback/pause()

[Code].....

My flv componenets name is obviously myFLVPlybk and the list is myList ...

View 6 Replies

ActionScript 2.0 :: Unable To Find Good Tutorials Or Hints On Terrain Scrollers That Isn't Random

Aug 15, 2005

I was unable to find any good tutorials or hints on terrain scrollers that isn't random.. like a huge world, and a map that points where on the map you are.

View 4 Replies

Flash :: ASDocs Omitting Private Members?

Feb 16, 2011

I'm developing a framework for my coworkers and I'm having trouble documenting it.ASDocs as omitting the private members (even without @private directive).

View 1 Replies

Actionscript 3 :: Generate An SWC File In Flash That Contains ASDOCS?

Jun 2, 2011

I can create SWC files. I can create ASDOCs.

Is there any way of combining this in Flash IDE or FlashDevelop? I would like the ASDOCs to "live" in the SWC.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved