1 person found this helpful
I'm not sure what controls Flash Catalyst provides for its design-time tool,
but you can always set the frameRate on the Application tag in the MXML and
that will affect the frame rate at runtime.
which mxml file contains the application tag for modifying the frame rate?
1 person found this helpful
like flex hard ui said something like this
<mx:Application frameRate="50" xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="left" minWidth="600" minHeight="600" width="100%" height="100%" backgroundSize="100%" backgroundColor="#ffffff" paddingLeft="45" paddingRight="45" paddingBottom="35" paddingTop="10" applicationComplete="onApplicationComplete()">
look at second line.
i did a search in the FC folder (i am using a Windows machine
) for application tag and many files come up. i pretty new at this so i am probably not understanding your directions. i really appreciate you taking the time to help me.
i did a search for the string 'mx:Application' nad found this file - app.mxml.html
but i do not see framerate in it all i see is:
mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" height="400" viewSourceURL="srcview/index.html">
public function testFunc(val1:String = "defaultParam" ):void
Alert.show(val1, "called remotely");
// these just force datagrid to be linked into the application
public var refs:Array = [DataGrid, DataGridColumn, ColumnChart, ColumnSeries, LineSeries, CategoryAxis, SeriesInterpolate, SeriesSlide, SeriesZoom ];
<mx:Panel width="100%" height="100%" id="panel" paddingLeft="20" paddingTop="20" >
<mx:Text width="100%" height="16">
<mx:CheckBox x="49" y="34" label="Checkbox" id="check"/>
<mx:HSlider snapInterval=".01" id="slider" liveDragging="true"/>
<mx:Button id="button" label="generic button" />
<fab:FABridge xmlns:fab="bridge.*" />
forgive me i am still learning!
kirk no need to apologize im still learning myself.
just try this.
mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" height="400" viewSourceURL="srcview/index.html" frameRate="50">
you should be able to adjust your framerate for you flex app to move faste or slower. try that and post back up here.
it still runs fast. i have tried framrate = 1 and tried frame rate = 50. there is no change at all. here is the file i modified:
thanks again for all the help!
Show us the code that loads the 6 swfs.
I have a Project named Test.fxgp. I imported just one .swf file (named Depth_resize.swf) to make it easy to work with. Is it the Code from Flash Catalyst when you go from "Design" view to "Code" view? If so here it is:
<?xml version="1.0" encoding="utf-8"?>
xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:fclib="com.adobe.flashcatalyst.components.*" backgroundColor="#FFFFFF" height="600" preloaderChromeColor="#FFFFFF" width="800">
<fx:DesignLayer d:userLabel="Layer 1">
<fclib:SWFController height="578" loadForCompatibility="true" source="assets/images/Depth_resize.swf" width="778.05" x="9.95" y="10"/>
That code does not have a frameRate attribute in the Application tag. Try
adding one. You may have to use Flash Builder to do it.
Awesome! Thanks that worked! I used Flash Builder and it ran fine! You guys rock and i really appreciate your help with this!
Ok one more question for now:
I imported the .fxp in to Flash Builder (FB). It asked me weher to put the new project so i made a new folder.
the new .swf that runs at the speed i wanted is located in a folder called *\bin-debug.
I also exported teh .fxp to a new file, but it wont open in FC anymore FC says since it has been modified it wont open. my question:
how do i get the project to look like it came out of FC? teh new project folder has so many sub folders and files.
i tried renaming the folders but the project wont run then, i als owant ot be able to use AIR to package it like i do from FC.
I would ask that question on the Flash Builder forum.
Thanks again for all your guidance! my project is working
just the way i want it to! peace