Flash Builder embed video in different stages

Hi, I'm Paulinho Cé from Brasil and i have a problem to embed youtube videos on my site in different stages FlashBuilder.
I have 10 videos and want to display them in the event of each button corresponding to a different stage.
This code works in the main application but not in the stages of the site, because the functions and variables are global and can not change the url of the video to a video display differently at each stage.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" verticalAlign="top"
creationComplete="Init();" >
<mx:Script>
<![CDATA[
private function Init():void
var url:String = "http://www.youtube.com/v/zlfKdbWwruY&hl=en&fs=1"; //url extracted from embed code
Security.allowDomain(url); //allow domain
youtubevid.load(url); //load video
]]>
</mx:Script>
<mx:VBox width="100%" height="100%" horizontalAlign="center" verticalAlign="top" verticalGap="0">
<mx:Label text="YouTube Video Embedded Inside Flex" width="100%"  color="#060809" textAlign="center" fontSize="16" fontWeight="bold"/>
<mx:SWFLoader id="youtubevid" verticalAlign="top" horizontalAlign="center"  width="425" height="344"/>
</mx:VBox>
</mx:Application>
<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/kdhuQJRW6kA" frameborder="0" allowfullscreen></iframe>
Because this solution is of extreme importance to me, I requestthe help of experts, which immensely grateful.
Thanks for all,
Congrat's
Paulinho Cé

This appears to be Flex question. Please try posting this to the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion for better response.

Similar Messages

  • Flash Builder Embed FXG - Problem

    Hi,
    I am working on creating an asset library using AS 3 project in Flash builder. I want to embed the fxg graphics referencing with a Class,
    [Embed(source='Sample.fxg')]
    private var myInstance:Class;
    I get the following error :
    no transcoder registered for mimeType 'text/fxg'    Main.as    /Project/src    line 9    Flex Problem
    The flex sdk version is  4.1.0.16076 and this doesn't with previous versions either.
    I can create instance of SpriteVisualElement to have fxg embedded, but this requires a flex project and I don't it is the best way to create a library for managing assets.
    Unable to create a AS3 project seems to be a quite limitation for traditional flash/flex development.
    Any help would be appreciated.
    Thanks,
    Kiran

    Hi Kiran,
    Usually I do put my reusable assets in a Flex Library Project (and also the FXG converted to MXML graphics). I don't embed the FXG documents.
    I usually convert the FXG documents to MXML graphics so that I can use it as a component in my application.
    Regards,
    Pablo Souza

  • Library Projects compiled using Flash Builder and ANT have different outputs

    Hi Guys.,
    I am really having hard time to get something work right with RSL projects in Flex 3.2 SDK. Here is my weird problem.
    I have a library projects which has the following settings in Flash Builder
    Link Type : External
    airglobal.swc
    framework.swc
    datavisualization.swc
    rpc.swc
    utilites.swc
    applicationupdater.swc
    applicationupdater_ui.swc
    Link Type: Merged into code
    airframework.swc
    servicemonitor.swc
    Compiler settings
    -directory=true -output=../../lib/core -debug=true -optimize=false -define+=CONFIG::bindingdebug,false -define+=CONFIG::frameworkdebug,false -define+=CONFIG::flexspy,true -define+=CONFIG::debug,true -define+=CONFIG::release,false -define+=CONFIG::logtoconsole,false -allow-source-path-overlap=true  -keep-as3-metadata+=Metadata,DefaultProperty,Required,Event,AssignableTo,Inject,InjectCon structor,Publish,Subscribe,PublishSubscribe,Factory,Init,Destroy,Observe,AsyncInit,Managed Events,MessageDispatcher,MessageHandler,MessageBinding,MessageInterceptor,MessageError,Com mand,CommandComplete,CommandResult,CommandError,CommandStatus,ResourceBinding,Selector,Tar get,Autoremove,Internal,ObjectDefinition,DynamicObject
    When I compile my library projects I get a MyLibraryproject.swc. The SWC has the following files in it
    mx/controls/HTML.png
    mx/core/Windows.png
    library.swf
    Note: airframework.swc and servicemonitor.swc has a many png files and properties files in it. But these properties and png files are not included when compiled in Flash builder.
    But when the same project is compiled using ANT compc task, i get all the png and properties files from airframework.swc and servicemonitor.swc files into my library project SWC file.
    Here is the ANT version which is used to compile the library project
    <compc output="${project.output.dir}/${project.name}.swc"
       include-classes="${as} ${mxml}"
       use-network="false"
       directory="false"
       allow-source-path-overlap="true"
       incremental="${build.incremental}"
       debug="${build.debug}"
       locale="${build.locale}"
       optimize="false"
       >
    <define name="CONFIG::bindingdebug" value="${build.bindingdebug}" />
    <define name="CONFIG::logtoconsole" value="${build.logtoconsole}" />
    <define name="CONFIG::frameworkdebug" value="${build.frameworkdebug}" />
    <define name="CONFIG::flexspy" value="${build.flexspy}" />
    <define name="CONFIG::debug" value="${build.debug}" />
    <define name="CONFIG::release" value="${build.release}" />
    <keep-as3-metadata name="Metadata" />
    <keep-as3-metadata name="DefaultProperty" />
    <keep-as3-metadata name="Required" />
    <keep-as3-metadata name="Event" />
    <keep-as3-metadata name="AssignableTo" />
    <keep-as3-metadata name="Inject" />
    <keep-as3-metadata name="InjectConstructor" />
    <keep-as3-metadata name="Publish" />
    <keep-as3-metadata name="Subscribe" />
    <keep-as3-metadata name="PublishSubscribe" />
    <keep-as3-metadata name="Factory" />
    <keep-as3-metadata name="Init" />
    <keep-as3-metadata name="Destroy" />
        <keep-as3-metadata name="Observe" />
        <keep-as3-metadata name="AsyncInit" />
        <keep-as3-metadata name="ManagedEvents" />
        <keep-as3-metadata name="MessageDispatcher" />
        <keep-as3-metadata name="MessageHandler" />
        <keep-as3-metadata name="MessageBinding" />
        <keep-as3-metadata name="MessageInterceptor" />
        <keep-as3-metadata name="MessageError" />
        <keep-as3-metadata name="Command" />
        <keep-as3-metadata name="CommandComplete" />
        <keep-as3-metadata name="CommandResult" />
        <keep-as3-metadata name="CommandError" />
        <keep-as3-metadata name="CommandStatus" />
        <keep-as3-metadata name="ResourceBinding" />
    <keep-as3-metadata name="Selector" />
    <keep-as3-metadata name="Target" />
    <keep-as3-metadata name="Autoremove" />
    <keep-as3-metadata name="Internal" />
    <keep-as3-metadata name="ObjectDefinition" />
    <keep-as3-metadata name="DynamicObject" />
    <load-config filename="${air.config}"/>
    <compiler.include-libraries dir="${flex.frameworks.dir}/libs/air" append="true">
         <include name="servicemonitor.swc" />
         <include name="airframework.swc" />
    </compiler.include-libraries>
    <external-library-path dir="${build.compc.dir}" append="true">
         <include name="TriGeoFlexFramework/TriGeoFlexFramework.swc" />
         <include name="TriGeoLibrary/TriGeoLibrary.swc" />
         <include name="TriGeoRPCFramework/TriGeoRPCFramework.swc" />
         <include name="Degrafa_Beta3.1_Flex3" />
         <include name="parsley-flex3-2.4.0.swc" />
         <include name="spicelib-flex-2.4.0.swc" />
    </external-library-path>
    <external-library-path dir="${flex.frameworks.dir}/libs" append="true">
         <include name="framework.swc" />
         <include name="datavisualization.swc" />
         <include name="utilities.swc" />
         <include name="rpc.swc" />
         <include name="air/airglobal.swc" />
         <include name="air/applicationupdater.swc" />
         <include name="air/applicationupdater_ui.swc" />
    </external-library-path>
    <source-path path-element="${basedir}/src" />
    </compc>
    </target>
    </project>
    Any insights is greatly appreciated.!

    #1, If it compiles then you have no issue. There's no reason at this point not to use 4.6. You should bundle a captive runtime to assure the users computer won't need to have AIR installed at all.
    #2, Papervision is old. Use the Stage3D and/or a wrapper framework. As far as the generic "If I download lots of data will it take the user more time to load it", well, of course. Just don't make the loading experience painful. Entertain them while they way or find ways of displaying data sooner than later. If it's desirable on the web has more to do with the context of the app and the device displaying it. In other words, a phone user would find it easy but obviously not a desktop user.
    #3, Definitely referring you to Google on that one.
    #4, Size always matters, it's common sense. The more you process the harder it is. While I haven't done AR I've used the Microsoft Kinect SDK and ANE and tracking was extremely fast but limited. From what I've seen and your basic built in location and direction hardware on any mobile device you shouldn't have much trouble. Depends on what you're doing.
    #5, This discussion would be way too large for a forum. You'd need to consult a firm experienced in AR development.
    #6, "Applications using the commercial license do not have to provide source code, but must pay a licensing fee. Contact ARToolworks at [email protected] for more information." They will base your price on your product, there is no single price.
    #7, The models could be huge and elaborate or tiny and simple which changes the answer. Consult the answer in #4. Ultimately most people are getting on fast networks with mobile and excessively fast on desktop/wifi. Size matters a lot less than 3 years ago.
    #8, Depends on what you're doing. You have to explain it.

  • Unable to install Flash Builder Premium: a beta version exists on this computer

    Hi,
    I'm a user of Flex since version 2 and i'm still currently using it everyday. Some days ago I uninstall Flash Builder Premium 4.7 because i did a mess installing some external packages so I dedided to uninstall it and install everything from scratch.
    The problem is that installing using Creating Cloud on my iMac, I always receive the same error: "a beta version exists on this computer".
    I have already used the "Adobe Creative Suite Cleaner Tool" and I removed the "Adobe Flash Builder" having the same icon as the other applications installed by Creative Cloud and now I have another "Adobe Flash Builder" with a slightly different icon but I'm scared to use it because waiting to repair Flash Builder 4.7 I'm using Flash Builder 4.6 and I cannot think I cannot work because Flash Builder is not working (I use it every day !).
    I removed Flash Builder 4.7 using the uninstaller, so the uninstalled didn't completed its job.
    On the machine I have currently installed Flex Builder 3, Adobe Flash Builder 4.6, Adobe Gaming SDK 1.0 (no uninstaller for it !), Adobe Flash C++ Compiler (no uninstaller for it too!).
    So, the question is, where I can find the log file containing the reason of the error message ? I have already checked the followimg folders:
         \Library\Logs\Adobe\Installer: I cleaned the folder and the error happens before a file is created in this folder
         \Users\<my account>\Library\Logs: it seems that the error isn't logged here
    Please help me, I need to use Flash Builder 4.7 for a presentation I have to do next Wednsday (almost 2 years of working !!!)
    Thank you
    Diego Novati

    Hi novatiitm,
    Please search for Flash Builder in Spotlight and if find simply uninstall it or delete the folders containing the software.
    Regards,
    Abhijit

  • Cannot edit the manifest.xml in flash builder extension builder 2.1

    In flash builder I installed the extension builder 2.1 to build a photoshop extension. The basic structure created automatically the manifest.xml file but i cannot edit this file in the editor and If I edit outside of the flash builder it does not reflect the changes.
    What I want is to add an icon for my extension.

    SOLVED!!
    ===========
    When creating an adobe extension project in Adobe extension Builder with Flash Builder 4.6, a folder ".stage-extension" is created but not listed in the directory in the Package Explorer Tab. However the manifest.xml file in the bin-debug folder is shown giving the impression that it could be edited.
    To edit the manifest.xml file, locate the location of your project and find: YourPorjectName>.stage-extension>CSXS>manifest.xml
    Edit this manifest.xml for the changes to apply.

  • Flash catalyst 5 file opened in flash builder gives "Error #2032"

    Hi there,
    As the title suggests I created a file in Flash catalyst 5 and to give it resizeability I edited it in flash builder to add preinitialize="systemManager.stage.scaleMode='showAll'" in main.xhtml as I found suggested in the forums.
    The problem is when I try to load this in my web browser I get the #2032 error and nothing happens.
    Does anybody more knowledgeable than me have any ideas as to why I might be getting this error?
    Best regards,
    Gareth

    I'll give you the short answer, Flash Catalyst is built on top of the Flex Framework and it's libraries. When you launch or load a FC swf, it will contact the Adobe servers to check the status of various libraries. Since you are loading this into a standard Flash Professional created swf, you are by passing some of the fallbacks that exist.
    If the movieClip that you are creating is just a filler image, and you are just centering the FC swf, then I also recommend using CSS to display the filler and some HTML/CSS to center the content.
    Hope this helps a little.
    If you did the loading of the FC swf from a Flash Builder based project, you should not have the issue, since it is a Flex based SWF, the framework checks are already handled for you.
    Chris

  • Adobe Flash Builder

    Adobe Flash Builder programında görüntülü konuşma ve konferans programı gelitirdim.Web tarafında görüntü kalitesi FullHD ekranlarda da doğru dürüst çalışıyor.Ama masa üstü uygulamasına geçirdiğimde 1600x900 de ve diğer pc lerde normal ama FullHD ekranlarda ve üstünde video görüntüsünün boyutu küçülüyor neden olabilir? ve nasıl bir çözümü vardır? Teşekkürler
    Adobe Flash Builder program, video call and conference program gelitirdim.web side of the image quality FullHD screens also properly çalışıyor. update desktop applications onto the I 1600x900 as well and other pc s normal but FullHD display and on the video image size is shrinking may cause? and how there is a solution? Thanks

    Hi guys,
    Please try the following steps found in the Flash Builder Release Notes:
    If Flash Builder Beta fails to launch successfully after installation,
    or if you receive a Licensing error message during launch, here's the
    recommended workaround:
    Quit all running applications.
    Uninstall Flash Builder Beta.
    Making sure that there are still no other applications running, install Flash Builder Beta.
    In most cases, steps 1-3 should be enough, but if it still won't launch, a reboot can help as a follow-up.
    If that doens't work, there are further suggestions in the release notes and in this thread which will hopefully help: http://forums.adobe.com/thread/440762?tstart=0

  • HttpServices not working Online but working with Flash Builder

    I am using Flash Builder and worked on different modules. it works perfectly
    when am testing with Flash Builder
    but once i close it, the httpservices stop working. I search and now got
    error message i.e.
    ===============================================
    Can't load data: (mx.messaging.messages::ErrorMessage)#0
      body = ""
      clientId = "DirectHTTPChannel0"
      correlationId = "A10EF203-C28B-A5C6-73D6-1C765EAA0714"
      destination = ""
      extendedData = (null)
      faultCode = "Server.Error.Request"
      faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false
    cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:
    http://localhost:37813/1/users/show.xml?screen_name=charagh?hostport=api.twitter.com&https =N&id=A10EF203-C28B-A5C6-73D6-1C765EAA0714"].
    URL: http://api.twitter.com/1/users/show.xml?screen_name=charagh"
      faultString = "HTTP request error"
      headers = (Object)#1
        DSStatusCode = 0
      messageId = "542DB993-AA3F-7E05-636C-1C7662BB7FFF"
      rootCause = (flash.events::IOErrorEvent)#2
        bubbles = false
        cancelable = false
        currentTarget = (flash.net::URLLoader)#3
          bytesLoaded = 0
          bytesTotal = 0
          data = ""
          dataFormat = "text"
        errorID = 0
        eventPhase = 2
        target = (flash.net::URLLoader)#3
        text = "Error #2032: Stream Error. URL:
    http://localhost:37813/1/users/show.xml?screen_name=charagh?hostport=api.twitter.com&https =N&id=A10EF203-C28B-A5C6-73D6-1C765EAA0714
        type = "ioError"
      timestamp = 0
      timeToLive = 0
    ===============================================
    my code i.e.
    ==================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           width="550" height="58" backgroundAlpha="1.0"
    backgroundColor="#000000"
                           borderVisible="false" creationComplete="init(event)"
    layout="absolute">
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  import mx.rpc.events.FaultEvent;
                                  import mx.rpc.events.ResultEvent;
                                  import mx.controls.Alert;
                                  import mx.rpc.http.HTTPService;
                                  private var twitterText:String;
                                  private var twitterCount:String;
                                  private var tweetdate:String;
                                  private var twitterImage:String;
                                  protected function
    image1_clickHandler(event:MouseEvent):void
                                            navigateToURL(new URLRequest("
    https://twitter.com/charagh"),"_blank");
                                  protected function init(event:FlexEvent):void
                                            twitterText = "charagh";
                                            tweetUser.url="
    http://api.twitter.com/1/users/show.xml?screen_name="+twitterText;
                                            tweetUser.send();
                                  protected function
    tweetUser_resultHandler(event:ResultEvent):void
                                            tweetdate =
    event.result.user.status.created_at;
                                            twitterCount =
    event.result.user.status.text "  "tweetdate;
                                            twitterImage =
    event.result.user.profile_image_url;
                                  protected function
    tweetUser_faultHandler(event:FaultEvent):void
                                            Alert.show("Can't load data: " +
    event.message);
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <s:HTTPService id="tweetUser" method="GET"
    result="tweetUser_resultHandler(event)"
    fault="tweetUser_faultHandler(event)">
                        </s:HTTPService>
              </fx:Declarations>
              <s:Image  buttonMode="true" width="48" height="48" x="5" y="5"
    click="image1_clickHandler(event)" source=""/>
              <s:Label id="twitterNumber" x="56" y="5" width="488" height="47"
    color="#EDEDED"
                                   fontFamily="Georgia" fontSize="12"
    fontWeight="normal" text=""
                                   textAlign="center" verticalAlign="middle"/>
    </mx:Module>
    ===================
    Regards,
    Asim Ahmed
    ~ http://www.charag.com ~

    updated code: with cross domain policy! but still getting error
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           width="550" height="58" backgroundAlpha="1.0" backgroundColor="#000000"
                           borderVisible="false" creationComplete="init(event)" layout="absolute">
              <fx:Style>
                        @namespace s "library://ns.adobe.com/flex/spark";
                        @namespace mx "library://ns.adobe.com/flex/mx";
                        @font-face{
                                  src: url("./module/font/fonts/DroidSans.ttf");
                                  fontFamily: "Base02";
                        mx|Alert {
                                  titleStyleName: "alertTitle";
                                  messageStyleName: "alertMessage";
                                  buttonStyleName: "alertButton";
                                  cornerRadius: 0;
                                  embedFonts: true;
                                  fontFamily: Base02;
                                  backgroundColor:aqua;
                        .alertButton {
                                  letterSpacing: 0;
                                  fontSize: 11;
                                  cornerRadius: 10;
                                  fontWeight: normal;
                                  textRollOverColor: white;
                                  color: red;
                                  skin: ClassReference(null);
                        .alertTitle {
                                  letterSpacing: 0;
                                  fontSize: 14;
                                  color: red;
                        .alertMessage {
                                  letterSpacing: 0;
                                  fontSize: 10;
                                  fontWeight: normal;
                                  color: black;
              </fx:Style>
              <fx:Script>
                        <![CDATA[
                                  import module.user_logged;
                                  import mx.collections.ArrayCollection;
                                  import mx.collections.XMLListCollection;
                                  import mx.controls.Alert;
                                  import mx.events.FlexEvent;
                                  import mx.rpc.events.FaultEvent;
                                  import mx.rpc.events.ResultEvent;
                                  import mx.rpc.http.HTTPService;
                                  private var twitterText:String;
                                  [Bindable]
                                  private var twitterCount:String;
                                  [Bindable]
                                  private var tweetdate:String;
                                  [Bindable]
                                  private var twitterImage:String;
                                  [Bindable]
                                  private var tweetArray:ArrayCollection;
                                  [Bindable]
                                  private var datalist:XMLListCollection;
                                  private var a:Alert;
                                  protected function image1_clickHandler(event:MouseEvent):void
                                            navigateToURL(new URLRequest("https://twitter.com/charagh"),"_blank");
                                  protected function init(event:FlexEvent):void
                                            Security.allowDomain( "charag.com" );
                                            Security.loadPolicyFile( "./module/crossdomain.xml" );
                                            var request:URLRequest =
                                            new URLRequest( "./module/crossdomain.xml" );
                                            var loader:URLLoader = new URLLoader();
                                            loader.load(request);
                                            twitterText = "charagh";
                                            tweetUser.url="http://api.twitter.com/1/users/show.xml?screen_name="+twitterText;
                                            tweetUser.send();
                                            tweetUser.addEventListener(ResultEvent.RESULT,tweetUser_resultHandler );
                                  protected function tweetUser_resultHandler(event:ResultEvent):void
                                            Alert.buttonWidth = 120;
                                            var x:XML = event.result as XML;
                                            var childName:String = "status";
                                            //Alert.show(x.child(childName).text);
                                            yourmessage = x.profile_image_url;
                                            a = Alert.show( yourmessage,title);
                                            a.mx_internal::alertForm.mx_internal::textField.selectable = false;
                                            twitterImage = x.profile_image_url;
                                            twitterText = x.status.text;
                                            tweetdate = x.status.created_at;
                                            twitterCount = twitterText+"  "+tweetdate;
                                  protected function tweetUser_faultHandler(event:FaultEvent):void
                                            var faultstring:String = event.fault.faultString;
                                            a = Alert.show(faultstring);
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <fx:String id="title">Error Message</fx:String>
                        <fx:String id="yourmessage"></fx:String>
                        <s:HTTPService id="tweetUser" useProxy="false" method="GET" fault="tweetUser_faultHandler(event)" resultFormat="e4x">
                                            </s:HTTPService>
              </fx:Declarations>
              <s:Image  buttonMode="true" width="48" height="48" x="5" y="5" click="image1_clickHandler(event)" source="{twitterImage}"/>
              <s:Label id="twitterNumber" x="56" y="5" width="488" height="47" color="#EDEDED"
                                   fontFamily="Georgia" fontSize="12" fontWeight="normal" text="{twitterCount}"
                                   textAlign="center" verticalAlign="middle"/>
    </mx:Module>

  • Stage Video Using Flash Builder 4.51

    Hi,
    I am using Flash Builder 4.51, and I cannot get StageVideo to run. My machine is capable of playing StageVideo as I tested the Big Buck Bunny example and saw the change when flicking between StageVideo and normal Video.
    Flash Builder shows that the build that I have is 4.5.1.313231. All the tutorial examples I have seen are built using Flex Hero build 18623 which I believe is earlier. So my question is was StageVideo removed somehow when Flash Builder 4.5 and 4.51 were released?
    If it should work on 4.5.1, can anybody give me some tips on what to check or provide some minimal code and instructions to get the expression stage.stageVideos.length to be something different to 0?
    I have changed made sure the wrapper uses wmode="direct", I am using version 11 of the Flash Player, I have a parameter on the compiler for " -swf-version=11".
    When I export the swf from Flash Builder to my web page I still can't get StageVideo to work either locally or on the server.
    I've run out of ideas with this one.
    Any ideas?

    Hi Claudiu
    I'm glad its working for you, that's encouraging.
    I'm just trying to confirm that we are using the same setup. When you say you have installed the eclipse plugin, does that mean you install Flash Builder or are you using the Flex SDK through eclipse? I agree that FP11.2 is not the issue since StageVideo works if I run the Big Buck Bunny example.
    Also, just to confirm we are talking about the same thing, if you create a new project in Flash Builder and put in the following two methods, are you able to get the "str" variable in the second method to show "Available". If so, what additional steps do you take after create project?
    protected function application1_creationCompleteHandler(event:FlexEvent):void
         this.systemManager.stage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILAB ILITY, onStageVideoState);
    private function onStageVideoState(event:StageVideoAvailabilityEvent):void
         var str:String = event.availability;

  • How do I use Embed with an environment variable in an Actionscript AIR project Flash Builder 4.7

    I am using Flash Builder 4.7 to build an Actionscript AIR project.  The project embeds a number of png files from my local directory and I have been using absolute paths which all works fine.
    I have a laptop with which I want to start developing the same project - I set up a git repository that both the laptop and main pc can pull from and so I can get the source where I need it and push it back to the central repository.
    My problem is that the absolute paths for the embed commands don't work on the laptop as it has a different filesystem setup (Windows 8 with one drive as opposed to Windows 7 with a SSD and a data drive).  I thought the solution would be as easy as using an environment variable to specify the path which could then point to a different physical directory on both machines, i.e:
    [Embed(source = "DEVELOPER_RESOURCES/graphics/are/here.png"]
    I did a bit of research and there was quite a lot mentioned about setting up resource directories using path variables which I worked through but I just can't get it to compile.  The Actionscript compiler just won't find the png files however I specify the path.  I tried something with a FLEX project and the compiler didn't complain but I think this is because the compiler for FLEX uses a different convention.
    [Embed(source ="/Project Name/DEVELOPER_RESOURCES/graphics/are/here.png"]  works with FLEX but not Actionscript.
    So does anyone have a recipe for using the Embed command referencing assets using an environment variable that works across multiple machines with different file structures?

    I managed to find a solution on Windows which was to use symlinks and absolute paths.  You an basically point one directory to another so I did something like:
    mklink c:\developer_resources c:/the/local/path/to/my/resources
    and then reference all resources as c:\developer_resources\...
    Now as long as a developer machine has the right link (from c:\developer_resources to the place where the resources are kept) then it seems to work. 
    This doesn't however work for Mac and certainly isn't a solution for passing files between Mac and windows

  • If AME 2014 no longer allows .flv export, how am I supposed to import videos to the stage for use in Flash CC?

    Flash CC will notimport .mp4 videos for use on the stage, only .flv. This seems like an ENORMOUS oversight, so maybe I am missing something. But if I'm not missing anything, WHEN THE **** WILL ADOBE UPDATE FLASH TO MATCH THE STUPID FORCED WORKFLOW UPDATE THEY'VE DONE WITH AME AND AFTER EFFECTS? I HAVE TO USE SOME RANDOM 3RD PARTY WEBSITE TO CONVERT .MOV OR .MP4 FILES TO .FLV FOR USE IN FLASH!?!?!?!?!?!!?!?!? ARE YOU KIDDING ME?!?!?!?!?!?!!?!?

    This forum is for Flash Media Server Developers so most likely you migth get much traction here. I would recommend you to post your query on Flash Builder forum: http://forums.adobe.com/community/flash_builder/using_flash_builder
    Also you can try posting here:
    Flash Platform Services For Promotion - http://forums.adobe.com/community/promotion
    Flash : http://forums.adobe.com/community/flash/flash_general

  • How do I move a video project from Encore to AIR via Flash Builder?

    I've got a rather complex video project with lots of submenus (that works as a DVD - so it is "debugged") that I need to be able to export from Encore into an app to upload on the iTunes store and Android Market. So far, I've managed to export the project via Encore's Flash output and test the results using a web browser (it works). Everything got saved in a new folder structure with an index.html file pointing to the flashdvd.swf file pointing to the AuthoredContent.xml file that actually holds all the information on the file structure (there are 99 files in the Sources subfolder) and uses the default generated Theme.xml file.
    What I need to do is to somehow import all this into Flash Builder as a project so it can become the source for the various "app" platforms. My questions are:
    1. I've got Flash Builder 4.5 - do I need to upgrade to 4.7 in order to import the project or can this be done in 4.5?
    2. Is there some intermediate step that I'm missing?
    3. Will Flash Builder be able to repackage all these files into the file specs required by each target platform (I'm assuming it will - is that a valid assumption)?
    And moving downstream a bit...
    4. Since this is a video based project with over 200 megabytes of F4V content, how will the content arrive on the end user device? Will it have to be  streamed or can it be downloaded? - this is a big issue should the app become popular and we be forced to maintain a streaming server somewhere. What about server sizing in such an event? For example: is there a way to estimate how much bandwidth is required per 1,000 instances?

    Oh, no i think i clicked Solved but it's not at all solved and i don'tt see a way to reverse it and clicked unsolved.
    I'v tried reading the Manuals but still don't see the solution. 
    I think I've misworded my question.  Perhaps i shall have to start a new question.
    What i want to know is very basic.
    How do i take a video i see on either youTube or another side and put it either on my iPod (i guess via iTunes) or put it into a document or an email??
    Do i copy some link?  Copy what exactly?  Do i click and drag something?
    I think if i knew how to get a video to iTunes I could be able to sync it. 
    But i don't know the first thing, how to get a video onto iTunes, or email, or a document.
    Thank you both.

  • Flash Builder 4.7 Embed Error

    I originally posted something similiar in the "Using Flash Builder" section but decided to post something here thinking it would get more coder eyes.
    This worked in Flash Builder 4.5 using the Flex 4.6 SDK with the AIR 3.5 SDK.
    However in Flash Builder 4.7 using the Flex 4.6 SDK with the AIR 3.5 SDK the following:
    package
              import flash.display.Sprite;
              public class TestProject extends Sprite
                        [Embed(source = "Image.png", mimeType = "image/png", compression="true", quality="80")]
                        private static var _imageClass:Class;
                        public function TestProject()
    Is generating these errors:
    Error 1:
    Internal error in outgoing dependency subsystem, when generating code for: C:\Users\users\Adobe Flash Builder 4.7\TestProject\src\Image.png: java.lang.ArrayIndexOutOfBoundsException: 0
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnit.analyze( EmbedCompilationUnit.java:224)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnit.handleOu tgoingDependenciesRequest(EmbedCompilationUnit.java:193)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processOu tgoingDependenciesRequest(CompilationUnitBase.java:886)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$50 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:378)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:374)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          Image.png          /TestProject/src          line 0          Flex Problem
    Error 2:
    The definition of base class Bitmap was not found.
    With a warning:
    Definition flash.utils.Bitmap could not be found.
    If you drop the quality param:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/png", compression="true")]
             private static var _imageClass:Class;
             public function TestProject()
    The errors change to:
    Internal error in ABC generator subsystem, when generating code for: C:\Users\user\Adobe Flash Builder 4.7\TestProject\src\TestProject.as: java.lang.NullPointerException
              at com.adobe.flash.compiler.internal.embedding.transcoders.JPEGTranscode r.equals(JPEGTranscoder.java:220)
              at com.adobe.flash.compiler.internal.embedding.EmbedData.equals(EmbedDat a.java:522)
              at java.util.WeakHashMap.eq(Unknown Source)
              at java.util.WeakHashMap.get(Unknown Source)
              at com.adobe.flash.compiler.internal.workspaces.Workspace.getCanonicalEm bedData(Workspace.java:933)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etEmbedData(EmbedCompilationUnitFactory.java:120)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etCompilationUnit(EmbedCompilationUnitFactory.java:62)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:116)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:126)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:43)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.c ollectEmbedDatas(EmbedCompilationUnitFactory.java:136)
              at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generate(AB CGenerator.java:184)
              at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleABCBy tesRequest(ASCompilationUnit.java:374)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processAB CBytesRequest(CompilationUnitBase.java:870)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$30 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call( CompilationUnitBase.java:309)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call( CompilationUnitBase.java:305)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          TestProject.as          /TestProject/src          line 0          Flex Problem
    Internal error in outgoing dependency subsystem, when generating code for: C:\Users\user\Adobe Flash Builder 4.7\TestProject\src\TestProject.as: java.lang.NullPointerException
              at com.adobe.flash.compiler.internal.embedding.transcoders.JPEGTranscode r.equals(JPEGTranscoder.java:220)
              at com.adobe.flash.compiler.internal.embedding.EmbedData.equals(EmbedDat a.java:522)
              at java.util.WeakHashMap.eq(Unknown Source)
              at java.util.WeakHashMap.get(Unknown Source)
              at com.adobe.flash.compiler.internal.workspaces.Workspace.getCanonicalEm bedData(Workspace.java:933)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etEmbedData(EmbedCompilationUnitFactory.java:120)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etCompilationUnit(EmbedCompilationUnitFactory.java:62)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:116)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:126)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:43)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.updateEmb edCompilationUnitDependencies(CompilationUnitBase.java:946)
              at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleOutgo ingDependenciesRequest(ASCompilationUnit.java:458)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processOu tgoingDependenciesRequest(CompilationUnitBase.java:886)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$50 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:378)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:374)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          TestProject.as          /TestProject/src          line 0          Flex Problem
    If you try to set compression to false:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/png", compression="false")]
             private static var _imageClass:Class;
             public function TestProject()
    You get the following:
    The attribute compression can't be used with the mime type: image/png
    Change it to jpeg:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/jpeg", compression="false")]
             private static var _imageClass:Class;
             public function TestProject()
    You get the following:
    The attribute compression can't be used with the mime type: image/jpeg
    Is anyone else getting these same results with Flash Builder 4.7 with Flex SDK 4.6 and AIR SDK 3.5? I expect that we still should be able to compress embedded assets within Flash Builder?

    Upgraded Flex 4.6 SDK to use the new AIR 3.6 SDK and the Flash Builder 4.7 to use the new AIR 3.6 SDK with the new compiler and I am still getting this. I had some other people try these steps and they got the exact same error so it doesn't seem to be just me. Is noone here getting this or am I the only one trying to embed a png directly into a Flash Builder project? =/

  • Please give me some examples of video chat with adobe flash builder 4 or adobe flex 3.5

    I'm a newbie for flex. I had a project from my college to made a video chat application using Adobe Flash Builder 4 and used Red5.  please help me, give me some examples of video chat source code, so that i may to learn it. thanks a lot friends.

    As you are starting at the beginning you may as well start with FB4. When you install FB4 you will find that its start page has links to documentation tutorials and examples through the tour-de-flex. There are some great blogs that continue to offer advice and examples, nothing beats well written examples for learning. If you are on face book there is an Adobe Flex page that is continually giving links to examples and information about e-seminars.
    And of course there is here. So jump on board and have a bit of fun.
    David

  • How do i embed fonts in flash builder 4?

    how do i embed fonts in flash builder 4?
    thanks,
    daniel

    Try http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/
    I also answered in your other thread, http://forums.adobe.com/thread/482315.
    Let us know if you're still having problems and we can try and help you get started.
    Peter

Maybe you are looking for

  • How to change the blog posts view when navigating through categories?

    Hello, currently I've been struggling for a while with the following problem: In my SharePoint blog site I have the following default view of posts: http://s16.postimg.org/yvmu0j51x/Default_site.jpg When I click on a category, I get the following vie

  • MVM_*.tmp files locking portable drive(s) when editing gifs

    I have a bunch of random files named *MVM_*.tmp randomly split between my second internal drive and a portable drive (or more if another external drive is connected) when editing or opening a .GIF file in PS CS5. These files make it impossible to rem

  • Importing only most recent photos

    I do not always want to erase photos from my camera after importing them onto the computer, but when I want to import the next batch, iPhoto wants to import the entire collection I have kept on the camera. Is there some way I can import only those ph

  • RE: Forte with OpenVMS

    Forte uses the standard VMS user privileges of TMPMBX and NETMBX, although you may consider them restrictive, these are normal non-privileged account settings. If you have a wrapped C routine, then this will show up as a shared library. You could ins

  • How to export/Import default prefs and object styles with no project open?

    I would like to export my preferences and object styles with no projects open and them import them on my team's machines so that no matter what project we create, we all start from the SAME set of defaults.  When I open captivate and check both with