Problem in loading swf within Flex 1.5

Hi all,
I'm working with a flex project.The logo of that project is a
spinning wheel created with flash tweens. I ve loaded that swf file
into Flex using a Loader component. But despite of whatever
framerate i ve specified, the wheel spins in a constant speed,
which is a little bit slower than the expected speed of the wheel.
Is there any option in flex to increase the framerate, or is there
any other way to do this. Pls.help.

And this for 1.5:
"In Flex or Flash, a loaded SWF takes on the FrameRate of the
parent SWF. In flex you can set the framerate value for the main
application with "framerate" attribute in the
<mx:Application> tag."
Tracy

Similar Messages

  • Strange problem in loading swf created in Flash Builder 4 !

    Hi
    I am facing a strange issue in all my flash builder projects.
    Here is a sample flex 4 project: http://flashvisions.com/demos/flexdemo/
    you will see when it loads, it showes the first progressbar as grey and then the next one covering it as per flex4's new preloader mechanism. The example given above is a new flex project, without any code. It shows the first preloader then hangs on that for quiet some time  without any indication that anything is happening. Then it shows the second phaze of preloader after some time. This is happening to all my Flash builder projects.
    can some one suggest anything ? If possible watch this link to a medium bandwidth, not too high : http://flashvisions.com/demos/flexdemo/

    And this for 1.5:
    "In Flex or Flash, a loaded SWF takes on the FrameRate of the
    parent SWF. In flex you can set the framerate value for the main
    application with "framerate" attribute in the
    <mx:Application> tag."
    Tracy

  • Problem with loading swf

    Hi,
            I've an AIR application which is loading an swf file to swfloader. Its working properly when its running from builder. But not showing the swf file after exporting  it as an air installer package and run it on  desktop.The swf   file is stored in src itself.The swf file was generated using flash.
    Any help will be appreciated.
    Thanks in advance.

    Hi,
    It might be security issue.Air uses application sandbox.
    You are trying to load the content from non-application sand box to
    application sandbox.
    Any one of the following may give solution to this error.
    1.using HTMLLoader to load swf files.
    2.using loadbytes.
    3.creating sandboxbridge.
    You can check the loadbytes method in the attachment.
    vamshi.
    2009/10/5 newflexcoder <[email protected]>
    >
    Hi,
    >
            I've an AIR application which is loading an swf file to swfloader.
    Its working properly when its running from builder. But not showing the swf
    file after exporting  it as an air installer package and run it on
    desktop.The swf   file is stored in src itself.The swf file was generated
    using flash.
    >
    Any help will be appreciated.
    >
    Thanks in advance.
    >

  • Problem in loading SWF file

    Hi All,
    I am facing a problem in file loading. I have a file
    https://shopping.easycite.com/admin/tree/main.swf and in that file
    loading another file named “editNodeFome.swf”. To load
    "editNodeFome.swf" i am using related path. But the file is not
    loading.
    mcLoader.loadClip("editNodeFome.swf", _root.tempForm_mc);
    Can any one help me to find out the solution?

    show your mcl code or use trace(mcLoader) to confirm it
    exists along with _root.tempForm_mc. and make sure editNodeFome.swf
    is in the same directory as the html file that embeds
    main.swf.

  • Please help - Problem with loading swf's (running very slowly)

    Hi
    I have posted this problem up in the last few days so I built a quick demo of my problem. Can somebody please download it and take a look at it and see what I'm doing wrong?
    You can download it here at:
    http://www.bounceworld.ie/download/Demo_Test.zip
    The external swf's when loaded.....run very very slow; sometimes unresponsive as if there is a script running in the background. I'm using keyboard commands to navigate through the screens - eg:
    on (keyPress "<Space>") {
    gotoAndStop("scene02", "firstframeLabel");
    Thank you for your help!!!!

    Hi
    I'm trying to use Key Listeners to solve my problem.
    I don't know much about key liseners so can somebody help me out.
    I have the following on a keyframe yet it still wont jump to the certain frames when I press the relevent keys. Am I missing something?
    stop();
    KeyListener = new Object();
    KeyListener.onKeyDown = function() {
    if (Key.getAscii() == 38) {  // UP key
    gotoAndStop(89);}
    if (Key.getAscii() == 40) {  // DOWN key
    gotoAndStop(91);}
    if (Key.getAscii() == 37)  // LEFT key
    gotoAndStop(88);}
    if (Key.getAscii() == 32) {  // SPACEBAR key
    loadMovie("application_01.swf", "container");}

  • Please Help with background color problem in loaded .swf

    I am stuck!
    This is Flash CS4...
    I created a flash application which loads in many other little flash applications (.swf files) based on menu selections.
    When I change one of the little applications the changes are viewable except when I change the background color.
    After the first time I view the application, the background color changes do not carry over to the main app.  I run the little ones stand alone and they show the new color, then I run the main app and any other changes I have made are there but not the color change.  When I remove the file and the load fails, the old backround color still displays in the container movie clip the .swf was previously loaded into.
    I have tried several different options and the only thing that worked was renaming and copying and deleting and making a big mess.  There has to be a way to force a refresh of this mysteriously saved color. doesn't there?
    Please help!
    Thanks!
    Vivian

    Hi Antonia
    I am loading the swf into an instance of a movie clip:
    var myLoader:MovieClipLoader = new MovieClipLoader();
    myLoader.loadClip("Capitalization.swf",  contCapitalization);
    it is the background of Capitalization.swf that will not change
    this is AS 2 since the app was created before I upgraded
    Any ideas?

  • TypeError: Error #1009 (loaded SWF)

    I'm pulling out my hair on this one!
    I'm just starting a site (full-Flash site) using CS3 and AS3.
    I'm pretty much accustom to the new AS3 changes. I built a rough
    structure to make sure the way I wanted to set the site up would
    work (loading in external SWFs, etc.). The tests worked.
    Now, I'm going in to make some things real, and I'm getting
    this error as soon as an external SWF loads in:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at test_fla::MainTimeline/test_fla::frame2()
    I've tried narrowing it down, couldn't find the exact culprit
    (had to remove every ounce of ActionScript before it started to
    function again). So I started to rebuild that movie entirely --
    cleared out the Library and deleted every layer. Didn't work.
    Couldn't even add a stop(); action in Frame 1.
    Then I started completely fresh File > New, rebuilt again.
    I tested after every single change. I finally built it up to the
    point where I first tested the original, and it worked. So, then I
    added a couple more things tested again, and got the error again.
    Ahh, so I removed EXACTLY what I had just added. Tested again. SAME
    ERROR -- now it won't go away no matter what I remove!
    Crazier yet is that I can still load in my other test SWF
    files and they have actions in them, and they're set up the exact
    same way -- but they work...
    The whole site is new, so every SWF is CS3/AS3. I'm not even
    doing anything crazy, so I'm getting pretty frustrated trying to
    build an all AS3 site and I can't even do basic stuff....
    I can upload/email the FLA files in question if anyone has
    time to look...
    Thanks,
    Brandon

    Well, when I test the loaded SWF within the Flash environment
    (by itself), it plays just fine.
    Then, I try to play the root containing movie (both within
    Flash and on the web server) and as soon as that section loads, is
    when the error occurs.
    I've tried tracing everything. even down to putting trace()
    actions between every layer. Can't determine what causes it...
    One thing I noticed (but I assume is a naming convention that
    Flash uses), is in the error above you see "test_fla", well, lets
    say I have these files:
    test-container.fla
    test-home.fla
    I don't have a test_fla, but the error code refers to it
    anyway...

  • Loaded SWF & hitTest

    Hi,
    I have a problem with loaded SWF's and hitTests that use X
    & Y. We're using content that originally was loaded into a
    Shell SWF at 0,0. All hitTests worked fine.
    Now we're creating a new project where this content loads in
    a window area that is not at 0,0. Because hitTest using X & Y
    uses the Global scope these hitTests now do not work.
    Is there a solution to making the hitTest use the scope of
    itself? I've tried _lockroot but this didn't solve it. Or is there
    another solution?
    Regards,
    Scott

    Scott,
    > Now we're creating a new project where this content
    loads in
    > a window area that is not at 0,0. Because hitTest using
    X & Y
    > uses the Global scope these hitTests now do not work.
    The MovieClip.hitTest() method doesn't really depend on
    scope -- unless
    I'm misunderstanding your use of the word -- but you might be
    facing an
    issue that could be addressed with the
    MovieClip.localToGlobal() or
    globalToLocal() methods.
    > Is there a solution to making the hitTest use the scope
    of itself?
    > I've tried _lockroot but this didn't solve it.
    The MovieClip._lockroot property, when set to true,
    instructs a loaded
    movie clip to interpret any references to _root (in its own
    code, that is)
    as if it *hadn't* been loaded into another SWF. It doesn't
    really affect
    the placement (x and y values) of visual objects on the
    stage.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • SWFloader loads SWF movie within Flex but not when compiled

    When I run my app in Flex, SWFLoader loads the SWF okay as a movie clip but as soon as I Export/Release Build, the new app SWF that is generated won't show the movie clip anymore.  If I take another SWF that is an app (not a movie clip) and give it the movie swf name, my compiled app will show the sub app in a frame.  Why would running something within Flex be any different than running a compiled version?
    Here is some of the code:
    button1 loads the swf.
    button2 loads a sound and when the sound is loaded, the sound is played and the swf is played in onSoundLoaded();
    public  function onSoundLoaded(event:Event):void{
    var localSound:Sound = event.target as Sound;localSound.play();
    var clip:MovieClip = MovieClip(swflodr.content);
    clip.play();
    private  
    function button1Handler(event:Event):void {Alert.show("test 1");swflodr.load(
    "dog.swf");Alert.show(
    "test 2");}
    private  
    function button2Handler(event:Event):void
    var s:Sound = new
    Sound();s.addEventListener(Event.COMPLETE, onSoundLoaded);
    var  
    req:URLRequest = new URLRequest("test.mp3");
    s.load(req);
     private function SwfLodrEventHandler(event:Event):void { 
    var clip:MovieClip = MovieClip(swflodr.content);clip.gotoAndStop(1);
    Alert.show(
    "The event loader is ready");}
    thanks, Mike

    Maybe timing?  The child SWF may not be fully loaded.  Sounds and SWFs are asynchronously loaded.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Loading external swf, how to deal with errors within the loaded swf?

    I have a Flex app that basically lets you browse a bunch of thumbnails that represent swf files, when you click a thumbnail it opens a window that loads the actual swf into an image control. The problem I have is that these swfs can be uploaded by our clients, so they may have actionscript errors being thrown, etc. We can't really predict what they may do. Is there a way I can load these swf in such a way as to ignore any errors that the loaded swf may generate within itself.
    For example, one such swf reads some text from a text file to display, but when they are viewing it in this manner the file isn't there so a stream error is generated. My parent Flex app doesn't care about this error and I don't want to see it thrown up in an actionscript error box (I have debug verison loaded on my PC obviously) or interfere with the parent app in any way.
    Would application domains help at all? Would it make a difference if I loaded the swf into a separate domain? Or is there some way I can generically trap any error coming from the loaded swf and just ignore them?
    Any help appreciated.
    Thanks,
    Marcus

    There is no way to catch errors thrown at random times.  Remember that most folks have the release player which does not show error dialogs.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • (MX04) Pausing a loaded swf with sound objects within it

    Hi,
    I'm working on a PowerPoint-esque presentation where a user
    watches and listens to a loaded swf in the main movie, clicks the
    next button (which unloads the swf, advances to the next frame and
    loads the next swf), and watches the next one. Lather, rinse,
    repeat. Some of the sections are rather long, and I'd like to give
    the user the ability to pause and play by button click.
    I know how to stop and start the container MC, but that
    doesn't stop the sound object (and the embedded MCs). I also know
    how to pause and start a sound object using the object's instance
    name. Is there a way to pause everything from the main timeline,
    and keep the AS general enough so that any sound object pauses when
    clicked?
    Any help is most appreciated! MX04 and AS2.0.
    Thanks!

    Kglad,
    I tried your code and ran into some problems with stopping
    the mc's, as the embedded mc's within the loaded swf need to stop
    as well. I found the attached code to stop the mc's, but now am
    having trouble with the sound objects.
    Here's the issue, I used this:
    this.soundPosition = currentMovie.loop1.position/1000;
    this.currentMovie.loop1.stop();
    ... for the sound object stop commands and listed a new one
    for each loop I was using. On the play button I started them back
    up again. This all works, but when I start them up again they all
    play, not just the one that is currently paused. Do you mind giving
    me some guidance with the for (obj in mc) loop? My loop experience
    is nil. What I want to do is have the code cycle through all of the
    loops to see which one is playing, then store that information in a
    variable, then pause and play the variable. Does that sound right?
    Thanks again for the help!
    -Sandy

  • Problem loading SWF

    Hi there,
    The following code is in my main FLA....
    quote:
    // Request the content
    var req:URLRequest = new URLRequest("PhotoViewer.swf");
    // Create a loader object
    var loader:Loader = new Loader();
    // Load the content
    loader.load(req);
    // Add loader into the Display List
    addChild(loader);
    // Check loading progress
    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
    checkProgress);
    // Update progress bar
    function checkProgress(e:ProgressEvent):void
    var percent:int = (e.currentTarget.bytesLoaded /
    e.currentTarget.bytesTotal) * 100;
    loadingBar.text = String(percent + '%');
    mcLoadingBar.width = percent;
    // Check when content is loaded
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    contentLoaded);
    // Remove the progress bar objects
    function contentLoaded(e:Event):void
    removeChild(loadingBar);
    removeChild(mcLoadingBar);
    removeChild(loadingBarBorder);
    The SWF "PhotoViewer.swf" is a file that another Flash
    developer built and released as an open-source tutorial and the
    file uses a Document Class to create a Photo Gallery from an XML
    file. The PhotoViewer SWF works fine on it's own, but when I try to
    load it within my main SWF I get the following error message....
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at PhotoViewer()
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at PhotoViewer/init()
    at PhotoViewer/frame1()
    I can post the code for the PhotoViewer.fla and
    PhotoViewer.as if it will help locate the problem as to why I'm
    getting the above error.
    NOTE: The PhotoViewer.fla and PhotoViewer.as file has been
    updated by myself. Originally the PhotoViewer.as file's constructor
    would call a function called "init();" and the init function would
    specify the url of the XML file to load, but I have removed this
    init() function call from the constructor and instead I have placed
    this in the first frame of the PhotoViewer.fla and also updated the
    function call so it specifies the XML file to load (e.g.
    init("Portfolio-Identity.xml");).
    I thought it might be some problem with my ActionScript code
    loading the PhotoViewer.swf file, but I changed the loading url to
    another SWF that I built myself and it loaded the file fine.
    I'm not sure why I'm getting this error?
    Any help really appreciated!
    Kind regards,
    Mark

    My main FLA that is loading in the PhotoViewer.swf file has
    the following code....
    quote:
    // Request the content
    var req:URLRequest = new URLRequest("PhotoViewer.swf");
    // Create a loader object
    var loader:Loader = new Loader();
    // Load the content
    loader.load(req);
    // Add loader into the Display List
    addChild(loader);
    // Check loading progress
    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
    checkProgress);
    // Update progress bar
    function checkProgress(e:ProgressEvent):void
    var percent:int = (e.currentTarget.bytesLoaded /
    e.currentTarget.bytesTotal) * 100;
    loadingBar.text = String(percent + '%');
    mcLoadingBar.width = percent;
    // Check when content is loaded
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    contentLoaded);
    // Remove the progress bar objects
    function contentLoaded(e:Event):void
    removeChild(loadingBar);
    removeChild(mcLoadingBar);
    removeChild(loadingBarBorder);
    The PhotoViewer.fla file has the following code....
    quote:
    init("Portfolio-Identity.xml");
    And the PhotoViewer.as file has the following code (see
    attached below)
    Hope this helps.
    Ta,
    M.

  • Ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    On the MBP, in iTunes, switch to Song view and enable the iCloud Status column by pulling down View > View options and selecting the option for "iCloud Status." Close the small window. Look for any tracks that have a status of "waiting." If you see several of them disable iTunes Match while holding down the Option key. Quit iTunes, wait a few seconds, then open it again and turn iTM back on. Let it compelete the scan. Wait until all tracks that are "waiting" have a status of either "matched" or "uploaded."
    On the iPad, turn off iTunes Match then launch the Music app and let the contents clear out. Power cycle the iPad for good measure, then re-enable the service once all the tracks in iTunes have been processed.

  • Problem in loading secondary swf

    Hi,
    I am trying load a font as swf for IOS application.i tried load to it from both application directory and application storage directory.but it always throws the following error.
    Fast debuging mode everything works fine.
    Air Sdk 3.8
    Flash Builder 4.7
    swf version 20
    Error 3747: Multiple application domains are not supported on the operating system.
    Code i used to load the swf.
    var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain,null);
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fontLoadComplete);
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    var strPath:String = "assets/fonts/font.swf"
    var urlReq: URLRequest = new URLRequest();
    urlReq = strPath;
    loader.load(urlReq, context);
    please correct me if i am doing any thing wrong in loading swf with as3 code.
    Regards,
    Saravanan

    Hi Nimit,
    Sorry for late reply.
    Actually problem is in my side.I am loading two swfs one with code in side another without code.
    I used loader content for only swf containing code inside but both the swfs requires to specify the loader content to same application domain.
    Its working fine after set the loader content to both swfs.
    sorry for trouble and thanks for the response.
    Regards,
    Saravanan.G

  • Calling a function in a flex app from a loaded SWF

    How can I call a function in a flex application from a loaded
    swf file?

    Two ways:
    Application.application returns a reference to the top-level
    application scope. You can access any public member, var, function,
    component, etc through that reference.
    Dispatch an event event form the loaded swf and use a event
    handler in the main app. All the gurus advise this as best
    practice, to ensure "loose coupling" It is also pretty easy,
    especially if you use a bubbling event.
    Tracy

Maybe you are looking for

  • How to use the portal Calendar

    Hi, I want to post a calendar of events for my portal users and I'm looking for documentations or tutorial in using the portal calendar feature. Thanks, Leonard

  • Picking mails from a particular sender using mail sender adapter

    Hi Everyone, I want to create a scenario in which i want to pick mails from a particular sender and send it to XI. I don't want all the unread mails to be sent to XI but only those belonging from a particular sender. How should i configure the mail s

  • CSS DoS illegal Src Attack

    Hi, On my CSS 11506, logs are full of these kind of error messages: "NETMAN-5: Enterprise:DOS Attack:Illegal Src -> 5 times". It also generates a trap every seconds, flooding our syslogd and trapd server. The first information one would obviously req

  • ORACLE EXPORT FAILING ON A WINDOWS SERVER

    Hi All I have a windows server 2003 sp2. Recently i reinstalled oracle software on it. Since then my exports have started failing with the following message Message 206 not found; No message file for product=RDBMS, facility=EXP: Release 10.2.0.4.0 It

  • How do I register for the Mac OS X Mountain Lion Up-to-Date Program?

    I purchased my Mac on Friday and saw on the Apple website I can register for a free upgrade to Mountain Lion when it comes out. Sadly I cannot work out how to do this, can someone please help.