tag:blogger.com,1999:blog-36956413.post5172933162870110280..comments2023-06-18T04:43:52.152-07:00Comments on Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding using Embed tagSacrosanctBloodhttp://www.blogger.com/profile/01706617283053130814noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-36956413.post-3153788360337359022012-07-30T13:52:19.552-07:002012-07-30T13:52:19.552-07:004 years later and i was having the same problem wi...4 years later and i was having the same problem with ant 1.8.2 on flex builder...<br /><br />But this post solution worked like a charm =)<br /><br />@Anonymous1:39 AM<br />The error means that the compiler is reciving "${prop}" as a literal value, in the argument. You can see that appearing in the echo message as well:<br /><br />"-output ../libs/assets.swc -include-file ${prop} ..."<br /><br />This happens all the time when the propertyregex cant find the regular expression ur asking for. Modify "regexp" and "select" parameters to get the file names acording to the dir estructure of ur app. So keep an eye on the echo message.<br /><br />The autor of this post is assuming you already have ant-contrib, and that you're able to manipulate ant codes.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-36956413.post-35631472123093719492011-06-23T14:24:55.335-07:002011-06-23T14:24:55.335-07:00I found the solution for this problem:
The proble...I found the solution for this problem:<br /><br />The problem is with the underlying JDK.<br /><br />http://mytechieblog.blogspot.com/2011/06/error-unable-to-transcode-assetsxyzpng.html<br /><br />Cheers<br />AneeshAneesh Vijendranhttps://www.blogger.com/profile/02407345627270555120noreply@blogger.comtag:blogger.com,1999:blog-36956413.post-40452429481119979762010-07-19T07:19:59.745-07:002010-07-19T07:19:59.745-07:00sometimes you need to use ";" (semicolon...sometimes you need to use ";" (semicolon) in all variable description, at the start of the class, if you dont write code using this end-line delimiterRodislavhttps://www.blogger.com/profile/12536435344246300039noreply@blogger.comtag:blogger.com,1999:blog-36956413.post-55369042719087674322010-05-14T01:39:51.883-07:002010-05-14T01:39:51.883-07:00When I copy and paste your Step3 code in my build....When I copy and paste your Step3 code in my build.xml and execute it gives me the following errro<br /><br />command line: Error: configuration variable 'include-file' value contains unknown token 'prop'<br /><br />How to solve it ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-36956413.post-91938113057552267682010-02-03T12:35:41.804-08:002010-02-03T12:35:41.804-08:00"Its just a simple program that generates the..."Its just a simple program that generates the required argument for compc compiler and invokes it, any developer should be able to read and understand this script. Hence, I will leave out the explanations part of it."<br /><br />I think you should have left out that sentence.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-36956413.post-21839725273949138562009-08-28T13:31:29.330-07:002009-08-28T13:31:29.330-07:00I think you are using Flex builder option to copy ...I think you are using Flex builder option to copy the non-embedded files. I have never used that, we write ant script to build and copy all the required images to the output folder.SacrosanctBloodhttps://www.blogger.com/profile/01706617283053130814noreply@blogger.comtag:blogger.com,1999:blog-36956413.post-6970807691993776552009-08-28T04:19:44.132-07:002009-08-28T04:19:44.132-07:00Hi, I have a similar problem with images. When I u...Hi, I have a similar problem with images. When I use the same image in different parts of the project, in all cases with the Embed tag, it works fine (the image is not copied to output folder).<br />If I don't use the Embed tag (but check the 'copy non-embedded files to output folder) it also work (the image is copied to output folder).<br />However, if I use the same image, sometimes using the Embed tag I sometimes not, the image is not copied to output folder and only the references to the file using the Embed tag work.<br />Any ideas? ThanksRaulnoreply@blogger.comtag:blogger.com,1999:blog-36956413.post-33990894556956402182009-06-17T08:00:26.639-07:002009-06-17T08:00:26.639-07:00Hi, The code that I have put is being used in a pr...Hi, The code that I have put is being used in a production application. So, it works. <br /><br />I am sure there may be some things that you may have overlooked. Let me know what is the problem that you are facing, I will try to help because I know how frustrating this problem is.SacrosanctBloodhttps://www.blogger.com/profile/01706617283053130814noreply@blogger.comtag:blogger.com,1999:blog-36956413.post-87169775996593375832009-06-09T08:56:25.204-07:002009-06-09T08:56:25.204-07:00The ant build you have put doesn't explain any...The ant build you have put doesn't explain anything at all - it didn't work - I am sick and tired of people putting stupid posts that don't work at allAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-36956413.post-77143506061912501102009-02-12T17:42:00.000-08:002009-02-12T17:42:00.000-08:00I came across your post having the same error usin...I came across your post having the same error using the mxmlc command line compiler and got it to work, without using the swc library as you suggested. Note that I have embeds in various places, including CSS stylesheets just like you.<BR/><BR/>Here is my batch file if it helps<BR/>SET SDK=E:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.0.0<BR/>SET PROJ=C:\Projects\Thoropredictor<BR/>C:<BR/>cd %PROJ%\ThoroClient\src<BR/><BR/>"%SDK%\bin\mxmlc.exe" -locale en_US -o "%PROJ%\ThoroClient\bin\ThoroClient.swf" -sp %PROJ%\ThoroClient\src -context-root Thoropredictor -services %PROJ%\WEB-INF\Flex\services-config.xml -l "%SDK%\frameworks\locale\en_US" -l "%SDK%\Frameworks\libs" -l %PROJ%\ThoroClient\libs\ -title ThoropredictorClient ThoroClient.mxml > ..\build.log 2>&1Ghttps://www.blogger.com/profile/08755847738432270280noreply@blogger.com