Quantcast
Channel: Adobe Community : Discussion List - Using Flash Builder
Viewing all 1802 articles
Browse latest View live

How to solve "Error: Invalid Embed directive in stylesheet - can't resolve source" while building using mxmlc.exe on command prompt

$
0
0

Hi,

 

Currently, I am developing a powershell script for Flex build automation.

I found some problem and have been trying to search any references and tried any ways to fix it but It did not work.

 

I am using compc.exe for compiling the libraries and it works fine.

I compiled css files into swf files using mxmlc.exe and it works fine.

However, I have a problem while building my main application (mxml file).

It complains about embedded resources.

 

I run this command, it works fine:

"C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\styleLang.css" -output "C:\{somePath}\FlashClient_deploy\styleLang.swf"

 

However, when I tried to run these command on cmd for testing:

"C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\FlashClient.mxml" -load-config "C:\{somePath}\FlashClient\src\dump_config_temp.xml" -output "C:\{somePath}\FlashClient_deploy\flashclient_test.swf"

 

I got a lot of this error message:

cmd error messages-cropped.jpg

 

this is my folder structure:

  FlashClient

  |

  |---assets

  |---src

      |

      |---FlashClient.mxml

      |---FlashClient.as

      |---FlashClientStyleLoopup.css

      |---styleLang

 

Already tried to add / at the beginning of the relative paths but It did not work.

Also tried to compile one of the image to a swc file and include it on the dump_config, but also did not work. something similar with Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding using Embed tag

Does anyone know how flex builder resolve the relative path to make the embedded resources work? or how to fix this?

I've been trying to work on it for days but haven't had any luck.

Will be really appreciate it if someone could help me with this.

Many Thanks.


How to migrate a flex app from Flex Builder 3 to Flash Builder 4.7

$
0
0

Hello,

 

I have written an extensive application using Flex Builder 3. I have maintained the app for several years using FB3. In the mean time I have created several mobile apps using Flash Builder 4.7. So I am very familiar with the the new framework. However, my client has requested some big changes to the app. I figured this would be a great opportunity to migrate the app to FB4.7. I would like to keep the mx structure for the time being. So, are there any good documents concerning this migration path? What SDK should I use. Should I start using the Apache Flex SDK?

 

Thanks,

--randu

Why are manual changes in design mode being reflected in my State declaration

$
0
0

I am using the following to create 2 states..

<mx:states>

     <s:State name = "default"/>

     <s:State name = "fileUpload"/>

</mx:states>

When I move an object or make any other changes to controls in the Design view those changes are reflected in the source as follows...

<mx:states>

     <s:State name = "default">

          <mx:SetProperty name="x" target="{bUploadRegForm}" value="642"/>

          <mx:SetProperty name="y" target="{bUploadRegForm}" value="654"/>

     </s:State> <s:State name = "fileUpload"/>

</mx:states>

I want the change being made in design mode to be reflected in both states, but the changes as they are being applied in the source would only be reflected in the default state.

I can work around the problem by either making the changes directly to the source or by cutting the mx:state statement out of the source before manually moving anything in Design mode, then pasting it back in after making the changes. Kind of a pain.

Can someone explain this behavior and possibly suggest a way to prevent it from happening.

Thanks,

John

How to update Flex Builder 4.7 to the latest apache SDK

$
0
0

I have googled and searched and I can find lots of out-of-date instructions for how to update the version of flex used in Flash Builder 4.7.  They all seem to refer to older Adobe releases of the SDK.  I haven't been able to find any instructions for how to update to the latest Apache version. (I need the latest so I can submit my app to Apple).  (Before someone tries to tell me to use the Apache installer, I tried that and it dies half way through with an error 2038  - and even then I'm not convinced its installing the right stuff for Flash Builder).

 

So can someone please tell me how to update FB 4.7 to Flex 4.13??

i'm building a app to read comic . I using navigator.pushview (appview.mxml ) to refesh image, but image display so slow, then i consider about caching image . So have problem with that , plz give me some solution for this app, thank you.

$
0
0

Myfirstapp.mxml

 

<?xml version="1.0" encoding="utf-8"?>

<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

  xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.MyFirstAppHomeView" applicationDPI="240"

  splashScreenImage="@Embed('Images/Sflash.jpg')"

  >

  <fx:Declarations>

  <!-- Place non-visual elements (e.g., services, value objects) here -->

  <s:ContentCache id="ldr" enableQueueing="true"

  maxActiveRequests="1" maxCacheEntries="2"/>

  </fx:Declarations>

  <fx:Script>

  <![CDATA[

  [Bindable]

  public var key:int = 0 ;

  import mx.collections.ArrayCollection;

  [Bindable]

  public var content:String= "http://3.bp.blogspot.com/-rcT0v_RCYUA/U-LrLDfTkHI/AAAAAAAAGLs/X3X7NerJG8Y/s1600/93-01.jpg; http://3.bp.blogspot.com/-zptSl-1evzI/U-LrMuVjoZI/AAAAAAAAGL0/cfJRVsobXEg/s1600/93-03.jpg; http://3.bp.blogspot.com/-IGO-Nk1UeQw/U-LrNzLb9II/AAAAAAAAGL8/X1iTBQi0CYs/s1600/93-07.jpg; http://3.bp.blogspot.com/-b8DnW4v_J0w/U-LrPWv1WRI/AAAAAAAAGME/ZdowJF3PupM/s1600/93-11-12.j pg;http://3.bp.blogspot.com/-5YLUaHt8wZE/U-LrQtbVvUI/AAAAAAAAGMM/yaEUkT7zqWY/s1600/93-19-2 0.jpg;http://3.bp.blogspot.com/-C61dLZllc8g/U-LrSLhcMJI/AAAAAAAAGMU/xQcLN4nVYQw/s1600/QQ%2 525CD%2525BC%2525C6%2525AC20140725150818.jpg;http://4.bp.blogspot.com/-6qIzw-bawt8/U9jZTZl ZabI/AAAAAAAAiMY/1VgFP8-Y8Qs/s1600/2.jpg;http://4.bp.blogspot.com/-GuunEyx0yGk/U9jZYHvi19I /AAAAAAAAiMg/ZfJyACVSSPk/s1600/3.jpg;http://1.bp.blogspot.com/-knLsbpCKhsw/U9jZcnNFOQI/AAA AAAAAiMs/OMf3AMjMHL0/s1600/4.jpg;http://2.bp.blogspot.com/-HkqIs8VJ9w4/U9jZcTcH2JI/AAAAAAA AiMo/AsYhWKypK0k/s1600/5.jpg;http://1.bp.blogspot.com/-mg4Ef7TG7Es/U9jZkwU1eQI/AAAAAAAAiM4 /YWDTMucZ6eM/s1600/6.jpg;http://1.bp.blogspot.com/-VHmeWpro-qM/U9jZso2hIbI/AAAAAAAAiNI/Hcb -JYeR18k/s1600/8.jpg;http://4.bp.blogspot.com/-QcpT9HebUIA/U9jZyoBxHgI/AAAAAAAAiNQ/2XgEOjy 11d8/s1600/9.jpg;http://2.bp.blogspot.com/-Hyar0cCpAu8/U9jYOIOuG7I/AAAAAAAAiLE/L34L59FTSsw /s1600/10.jpg;http://2.bp.blogspot.com/-eJCkT8E771k/U9jYfyfGdpI/AAAAAAAAiLY/exSiD2GkFYA/s1 600/12.jpg";

  [Bindable]

  public var tempAc:ArrayCollection=new ArrayCollection(content.split(";"));

  ]]>

  </fx:Script>

</s:ViewNavigatorApplication>

 

========MyfirstappHomeView.mxml==============

 

<?xml version="1.0" encoding="utf-8"?>

<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

  xmlns:s="library://ns.adobe.com/flex/spark" title="My First App"

  creationComplete="init()">

 

  <fx:Style>

 

  @namespace s "library://ns.adobe.com/flex/spark";

  @namespace mx "library://ns.adobe.com/flex/mx";

  s|Image {

  enableLoadingState: true;

  }

  </fx:Style>

 

  <fx:Script>

  <![CDATA[

  import mx.collections.ArrayCollection;

  import mx.collections.ArrayList;

  import mx.core.FlexGlobals;

 

  protected function init():void

  {

  //add listener

  addEventListener(TransformGestureEvent.GESTURE_SWIPE , swipeHandler);

  //label1.text= FlexGlobals.topLevelApplication.tempAc.getItemAt(FlexGlobals.topLevelApplication.key).toS tring();

  //label2.text= FlexGlobals.topLevelApplication.tempAc.getItemAt(FlexGlobals.topLevelApplication.key +1 ).toString();

  //caching image array

  var rand:String = new Date().time.toString()

  var arrcaching:Array = [];

  arrcaching.push({src: FlexGlobals.topLevelApplication.tempAc.getItemAt(FlexGlobals.topLevelApplication.key + 1).toString() + rand, cache:ldr});

  arrcaching.push({src: FlexGlobals.topLevelApplication.tempAc.getItemAt(FlexGlobals.topLevelApplication.key).toS tring() + rand, cache:ldr});

 

  var arrList:ArrayList = new ArrayList();

  arrList = new ArrayList(arrcaching);

  // dataGrp.dataProvider = arrList;

  show.source = arrcaching.pop().src;

 

  // show the first picture

  // images.source= FlexGlobals.topLevelApplication.tempAc.getItemAt( FlexGlobals.topLevelApplication.key ).toString();

  }

  protected function swipeHandler (event:TransformGestureEvent):void

  {

  // Swipe was to the right

  if (event.offsetX == 1 ) {

  if (FlexGlobals.topLevelApplication.key == 0)

  {

  FlexGlobals.topLevelApplication.key = 0;

  }

  else

  {

  FlexGlobals.topLevelApplication.key = FlexGlobals.topLevelApplication.key - 1 ;

  //label1.text= FlexGlobals.topLevelApplication.tempAc.getItemAt(FlexGlobals.topLevelApplication.key).toS tring();

  navigator.pushView(MyFirstAppHomeView);

  }

  }

  // Swipe was to the left

  if (event.offsetX == -1 ) {

 

 

  if (FlexGlobals.topLevelApplication.key == FlexGlobals.topLevelApplication.tempAc.length-1)

  {

  FlexGlobals.topLevelApplication.key = FlexGlobals.topLevelApplication.tempAc.length-1;

  }

  else

  {

  //no caching

  FlexGlobals.topLevelApplication.key= FlexGlobals.topLevelApplication.key +1 ;

  // label1.text= FlexGlobals.topLevelApplication.tempAc.getItemAt(FlexGlobals.topLevelApplication.key).toS tring();

  navigator.pushView(MyFirstAppHomeView);

  

  

  // caching

  //label1.text= FlexGlobals.topLevelApplication.tempAc.getItemAt(FlexGlobals.topLevelApplication.key).toS tring();

  // navigator.pushView(MyFirstAppHomeView);

  

  }

  }

  }

 

  ]]>

  </fx:Script>

 

  <fx:Declarations>

  <!-- Place non-visual elements (e.g., services, value objects) here -->

  <s:ContentCache id="ldr" enableQueueing="true"

  maxActiveRequests="1" maxCacheEntries="2"/>

  </fx:Declarations>

  <s:Image id="show" left="0" right="0" top="0" bottom="0" contentLoader="{ldr}" />

 

</s:View>

FlashBuilder 4.7 Flex Module "Output SWF" path not working.

$
0
0

I would like to use the Flex Module feature in FlashBuilder to easily compile some child SWF which are Modules.  The problem is that the "Output SWF" path is not respected, when I compile FlashBuilder 4.7 aways compiles the file default path.

 

Cheers,

Hays

Flash to my site

$
0
0

Hi I am new to adobe. I have the site epiplapapathanasiou.gr and I want to replace the slider by flash player. The web expert that has constructed my site told me that is not good for google ranking. Is it so? because many sites have flash and the ranking is very good.

how can i use caching image. I have ten images, when app start, two image will be load to cache .App will display the first image taken from cache , when i swipe ( left ) , the second image will display, parallel the third image will be load to cache


Why doesn't flash builder recognize that I have local file changes?

$
0
0

I have to clean my project after nearly every file modification for the new code to be recognized. This is extremely frustrating, and basically makes the IDE useless since it doesn't correctly reflect the state of my code.

Unable to install ipa to iphone5s and ipad retina by Flash Builder 4.6 using latest Flex sdk 4.13

$
0
0

I am using Apache Flex 4.13 FP11.1 AIR14.0 for my Flash Builder 4.6 in my windows 7. attatched is the code. I am using provisining profile and my iphone5 and ipad retina UDID is added in that. But exported application via flash builder for ios is not installing in my ipad retina display and iphone5. I including following default images.

 

 

Default-568h@2x.png

Default-Landscape.png

Default-Landscape@2x.png

Default-Portrait.png

Default-Portrait@2x.png

Default.png

Default@2x.png

 

 

my test-app.xml files contents is as follows.

 

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<application xmlns="http://ns.adobe.com/air/application/14.0">

  <id>com.miracle.Saraplayer</id>

  <filename>Sara Player</filename>

 

  <!-- The name that is displayed in the AIR application installer.

  May have multiple values for each language. See samples or xsd schema file. Optional. -->

  <name>

  <text xml:lang="en">Sara Player</text>

  <text xml:lang="zh">Sara Player</text>

  <text xml:lang="cs">Sara Player</text>

  <text xml:lang="nl">Sara Player</text>

  <text xml:lang="fr">Sara Player</text>

  <text xml:lang="de">Sara Player</text>

  <text xml:lang="it">Sara Player</text>

  <text xml:lang="ja">Sara Player</text>

  <text xml:lang="ko">Sara Player</text>

  <text xml:lang="pl">Sara Player</text>

  <text xml:lang="pt">Sara Player</text>

  <text xml:lang="ru">Sara Player</text>

  <text xml:lang="es">Sara Player</text>

  <text xml:lang="sv">Sara Player</text>

  <text xml:lang="tr">Sara Player</text>

  </name>

 

  <customUpdateUI>false</customUpdateUI>

  <supportedLanguages>en zh cs nl fr de it ja ko pl pt ru es sv tr</supportedLanguages>

  <versionNumber>0.0.0</versionNumber>

  <versionLabel>One</versionLabel>

  <description>Nothing here now</description>

 

 

  <!-- Settings for the application's initial window. Required. -->

  <initialWindow>

  <!-- The main SWF or HTML file of the application. Required. -->

  <!-- Note: In Flash Builder, the SWF reference is set automatically. -->

  <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>

 

        <aspectRatio>portrait</aspectRatio>

        <renderMode>auto</renderMode>

  <autoOrients>false</autoOrients>

        <fullScreen>true</fullScreen>

        <visible>true</visible>

        <softKeyboardBehavior>none</softKeyboardBehavior>

    </initialWindow>

 

  <!-- The icon the system uses for the application. For at least one resolution, specify the path to a PNG file included in the AIR package. Optional. -->

  <icon>

  <image16x16>_icons/16.png</image16x16>

  <image32x32>_icons/32.png</image32x32>

  <image36x36>_icons/36.png</image36x36>

  <image128x128>_icons/128.png</image128x128>

     <image29x29>_icons/Icon-Small.png</image29x29>

     <image48x48>_icons/48.png</image48x48>

     <image57x57>_icons/Icon.png</image57x57>

     <image72x72>_icons/Icon-72.png</image72x72>

     <image114x114>_icons/Icon@2x.png</image114x114>

     <image512x512>_icons/iTunesArtwork.png</image512x512>

     <image50x50>_icons/Icon-Small-50.png</image50x50>

     <image58x58>_icons/Icon-Small@2x.png</image58x58>

     <image100x100>_icons/Icon-Small-50@2x.png</image100x100>

     <image144x144>_icons/Icon-72@2x.png</image144x144>

     <image1024x1024>_icons/iTunesArtwork@2x.png</image1024x1024>

  </icon>

 

  <!-- Whether the application can be launched when the user clicks a link in a web browser.

  Optional. Default false. -->

  <allowBrowserInvocation>true</allowBrowserInvocation>

 

    <!-- iOS specific capabilities -->

  <iPhone>

        <InfoAdditions><![CDATA[

  <key>UIDeviceFamily</key>

  <array>

  <string>1</string>

  <string>2</string>

  </array>

  <key>UIStatusBarStyle</key>

            <string>UIStatusBarStyleBlackOpaque</string>

            <key>UIRequiresPersistentWiFi</key>

            <string>YES</string>

  ]]></InfoAdditions>

 

  <Entitlements>

         <![CDATA[

             <key>aps-environment</key>

             <string>development</string>

         ]]>

     </Entitlements>

    

        <requestedDisplayResolution>high</requestedDisplayResolution>

    </iPhone>

  

</application>

 

 

The problem is that when i sync it via itunes. it shows Waiting... then it shows progress for installing. when i click the app icon in device it shows Installing... as shown in these images but never shows finished process.

 

Dropbox - 1.jpg

Dropbox - 2.jpg

Dropbox - 3.jpg

 

source: Dropbox - test.fxp

 

i am a bit confused and project is stuck. i am helpless now.

Flash Builder 4.7 + OSX 10.10 Yosemite + File Dialogue Box = CRASH :-(

$
0
0

Problem Description:

When attempting to use a Flash Builder File Dialogue Box under OSX 10.10 Yosemite will immediately crash the application. This bug essentially now renders Flash Builder 100% useless!

 

 

Steps to Reproduce:

1. Open Flash Builder 4.7 on OSX 10.10 Yosemite

2. Attempt to use any File Dialogue Box, such as "Browse.." etc

 

 

Actual Result:

The application immediately crashes.

 

 

Expected Result:

You should be able to conduct the action, such as loading a Flex Project, adding an SDK etc.

 

 

Any Workarounds:

None

I need to check a value of variable which is in my php file in my adobe air application.

Database Listing And Paging With Flash Builder

$
0
0

Hello ;

 

i trying to develop an android application with flash builder.

i have a database and connected it, selected a table and created a service.

 

my table have a four coloumn. id - img - tag - date

 

1758723738.png

 

id : as you know. table id coloumn auto increment.

img : long text area. i want to listed to page when clicking the menu item.

tag : tag is title of the img.

date : standart date coloumn.

 

i want to listing all data with menu style. i added to spinner list and it get to value at database tag (title) .

 

389118714.png

 

how can i listing to text (long text area) in to the img coloumn when selected the tag (title) at spinner list. 

 

877797218.png

 

thanks

 

bye.

flash builder4.7 Crossbridge_1.0.1 flex_sdk_4.6 unable to combine pthread and as file together.

$
0
0

flash builder4.7 Crossbridge_1.0.1 flex_sdk_4.6 

i made a swc according the sample of 09_Pthreads of the Crossbridge_1.0.1. the swf could generate and it could not run.

the sample under 09_Pthreads directory also could not run. it is make swctest flag. it could generate pthread_swc1.swf and pthread_swc2.swf two files.

pthread_swc1.swf works fine. but pthread_swc2.swf could not run.

How may I purchase a license of Flash?

$
0
0

I spent a hour on your site trying to understand how to purchase a license of Flash (not the player but the builder) but I found only the Cloud Creative program. No prices, no promotions, no info at all. I am not interested in Cloud version. Can you please give me a link to the page where I can order a license of product? Do you confirm to me that I can use it to convert Flash to HTML5 too?


Workflow; from (illustrator) design to Flash Builder (with no room for interpretation)

$
0
0

Dear all,

 

A couple of years ago, we've made quite a bold move to start developing a large ERP application using Flex. The workflow was straight forward; functional and graphic designs were developed almost simultaneously (using Illustrator for the graphic part) and subsequently Catalyst would be used to convert the illustrator designs to usable code in Flash Builder.

 

Since Catalyst has been discontinued, we've been dealing with a real gap which is recently been widened due to the fact we've started using later versions (Adobe CC). Thus, we are in need of some advice. We need solutions to move from an illustrator design to flash builder without our developers having to execute design tasks or interpret designs while coding. Basically my questions are as follows:

 

- How do I get .ai files over to Fb leaving no room for interpretation (dimensions, colors, gradients, blends, padding, etc)?

- What is the best flow in case we want to also add some interactivity / animation to our designs without having to dive into the code, in order to convey our ideas to our developers?

 

I have browsed forums and watched several training videos, but all I can find are workflows from design to web. Surely, you guys can help me out!

 

Thanks,

David

Flash Builder crashes on loading Workbench - Mac 10.7.4

$
0
0

Flash Builder crashes whenever it starts loading the workbench. Is there anyway to fix this? I searched for a possible solution and only found one, cleaning the workspace. I would try it if I knew where to go. This happened all of the sudden and I did nothing to flash builder previously.

I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

$
0
0

I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?

Currency Formatter problem in IOS with 0 values

$
0
0

I have built a datagrid in a web based Flash Builder 4.6 app. It works fine on Windows based pc's and in everybrowser I have tested. However when I test on macs, i get a different behavior. In the datagrid on creation, i set most of the cells to 0. Certain cells contain currency and number formatter in the <s:GridColumn> tag. So in windows 0 will show as $0.00 but in IOS it shows as 0. Any ideas what may be causing this behavior and if it is fixable?

 

<s:GridColumn dataField="Total"   headerText="Total l$" editable="false" sortable="false" width="104" headerRenderer="renders.DGHeaderRenderer">

  <s:formatter>

  <s:CurrencyFormatter useCurrencySymbol="true" />

  </s:formatter>

  <s:itemRenderer>

  <fx:Component>

  <s:GridItemRenderer>

  <s:Label id="labelDisplay" textAlign="right" right="3" height="100%" verticalAlign="middle"/>

  </s:GridItemRenderer>

  </fx:Component>

  </s:itemRenderer>

 

  </s:GridColumn>

how do i get rid of the 'required Adobe Flash version not installed' Message

$
0
0

Hello. I have been trying to get rid of this message. I have installed The latest flash player several times. However I don't know how to find it or put it in the right place to stop this message from popping up every time that I build a project. Thanks.

 

help1.jpg

Viewing all 1802 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>