How to use frame lable in flex
I made a movie clip in flash cs4, and a set a frame lable for a frame in this movieclip, but I don't know how to use this frame lable. For example, I want to use the gotoAndStop function to stop at that frame, but it doesn't work.
Hi
Here I am placing the syntax and example
syntax:
movieclip.gotoAndPlay("framelabel");
example:
mc1.gotoAndPlay("intro");
for further details:
http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_1.html
If this post answers your question of helps. Please mark it as such
Similar Messages
-
How to use virtual keyboard in flex application
hi..
i am using flash builder 4,
how to use virtual keyboard in flex?
if any one aware of this pls reply me.......
saran rhi,
how to code for these buttons "control,alt,delete,insert and spacebar".
can u help me how to program?
i have attached the mxml code with this,
virtualkeypad1.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)" viewSourceURL="srcview/index.html">
<fx:Script>
<![CDATA[
import flash.utils.getQualifiedSuperclassName;
import mx.events.FlexEvent;
private var inpText:String = 'inp1';
private var shiftState:Boolean = false;
private var capsState:Boolean = false;
protected function keyboard_clickHandler(event:MouseEvent):void
this[inpText].text = this[inpText].text+(event.currentTarget as Button).label;
if (shiftState == true) shift_clickHandler(null);
protected function caps_clickHandler(event:MouseEvent):void
capsState = !capsState;
if (capsState == true)
currentState = "SHIFTED" else currentState = "PRIMARY";
protected function tab_clickHandler(event:MouseEvent):void
this[inpText].text = this[inpText].text+" ";
protected function shift_clickHandler(event:MouseEvent):void
shiftState = !shiftState;
if (shiftState == true)
currentState = "SHIFTED" else currentState = "PRIMARY";
protected function enter_clickHandler(event:MouseEvent):void
this[inpText].text = this[inpText].text+"\n";
protected function backspace_clickHandler(event:MouseEvent):void
var tmpStr:String = this[inpText].text;
this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
protected function application1_creationCompleteHandler(event:FlexEvent):void
inp1.setFocus();
protected function focus_enterHandler(event:MouseEvent):void
inpText = event.currentTarget.id;
]]>
</fx:Script>
<s:states>
<s:State name="PRIMARY"/>
<s:State name="SHIFTED"/>
</s:states>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:TextInput id="inp1" y="36" width="151" horizontalCenter="0" click="focus_enterHandler(event)" y.PRIMARY="239" horizontalCenter.PRIMARY="42" width.PRIMARY="199" height.PRIMARY="31"/>
<s:Group id="keyboard" width="661" height="184" horizontalCenter="0" y="300" focusEnabled="false">
<s:Button x="5" y="5" label="~" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="`"/>
<s:Button x="49" y="5" label="!" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="1"/>
<s:Button x="93" y="5" label="@" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="2"/>
<s:Button x="137" y="5" label="#" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="3"/>
<s:Button x="181" y="5" label="$" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="4"/>
<s:Button x="225" y="5" label="%" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="5"/>
<s:Button x="269" y="5" label="^" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="6"/>
<s:Button x="313" y="5" label="&" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
<s:Button x="357" y="5" label="*" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="8"/>
<s:Button x="401" y="5" label="(" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="9"/>
<s:Button x="445" y="5" label=")" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="0"/>
<s:Button x="489" y="5" label="_" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="-"/>
<s:Button x="533" y="5" label="+" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="="/>
<s:Button x="577" y="5" label="Backspace" height="43" width="80" fontSize="11" fontWeight="bold" click="backspace_clickHandler(event)"/>
<s:Button x="5" y="48" label="Tab" height="43" width="67" fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
<s:Button x="72" y="48" label="Q" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="q"/>
<s:Button x="116" y="48" label="W" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="w"/>
<s:Button x="160" y="48" label="E" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="e"/>
<s:Button x="204" y="48" label="R" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="r"/>
<s:Button x="248" y="48" label="T" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="t"/>
<s:Button x="292" y="48" label="Y" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="y"/>
<s:Button x="336" y="48" label="U" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="u"/>
<s:Button x="380" y="48" label="I" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="i"/>
<s:Button x="424" y="48" label="O" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="o"/>
<s:Button x="468" y="48" label="P" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="p"/>
<s:Button x="512" y="48" label="{" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="["/>
<s:Button x="556" y="48" label="}" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="]"/>
<s:Button x="600" y="48" label="|" height="43" width="57" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="\"/>
<s:Button x="5" y="91" label="CapsLock" height="43" width="80" fontSize="12" fontWeight="bold" click="caps_clickHandler(event)"/>
<s:Button x="85" y="91" label="A" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="a"/>
<s:Button x="129" y="91" label="S" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="s"/>
<s:Button x="173" y="91" label="D" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="d"/>
<s:Button x="217" y="91" label="F" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="f"/>
<s:Button x="261" y="91" label="G" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="g"/>
<s:Button x="305" y="91" label="H" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="h"/>
<s:Button x="349" y="91" label="J" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="j"/>
<s:Button x="393" y="91" label="K" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="k"/>
<s:Button x="437" y="91" label="L" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="l"/>
<s:Button x="481" y="91" label=":" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=";"/>
<s:Button x="525" y="91" label=""" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
<s:Button x="569" y="91" label="Enter" height="43" width="88" fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
<s:Button x="5" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
<s:Button x="111" y="134" label="Z" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="z"/>
<s:Button x="155" y="134" label="X" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="x"/>
<s:Button x="199" y="134" label="C" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="c"/>
<s:Button x="243" y="134" label="V" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="v"/>
<s:Button x="287" y="134" label="B" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="b"/>
<s:Button x="331" y="134" label="N" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="n"/>
<s:Button x="375" y="134" label="M" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="m"/>
<s:Button x="419" y="134" label="<" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=","/>
<s:Button x="463" y="134" label=">" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="."/>
<s:Button x="507" y="134" label="?" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="/"/>
<s:Button x="551" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
</s:Group>
</s:Application>
thanks in advance,
saran r -
How to use AMFPHP Objects in Flex
Hi,
I have been successful in getting amfphp to return PHP objects, the question now is how can I make Flex aware of the objects?
I am invoking a remote object and the objects are returned as a result. Can they be used directly or should I use XML?Hmm, your code seems a bit to complicated. Here's what I do:
The RemoteObject:
<mx:RemoteObject id="PHPGateway" source="yourAMFPHPClassName.ThePHPFile" destination="amfphp" showBusyCursor="true">
<mx:method name="theFunctionYouWantToCall" result="myFunctionResultHandler(event)" fault="myFunctionFaultHandler(event)"/>
</mx:RemoteObject>
Observations:
1. yourAMFPHPClassName is the name of the folder in amfphp\services that contains the PHP classes.
2. ThePHPFile is the PHP class file (without the extension) in the yourAMFPHPClassName folder.
3. You need the <mx:method name="..." .../> to define the function in the PHP class you want to call. The theFunctionYouWantToCall must be the exact name of the function in the PHP class (case sensitive).
The ActionScript part:
//THE BELOW EXAMPLE ONLY WORKS IF THE PHP FUNCTION RETURNS A SINGLE VALUE
//This means the PHP function has a return statement like this: return $value; or return "Test";
private function myFunctionResultHandler(event:ResultEvent):void
var PHPResult:String=String(event.result);
Alert.show(PHPResult);//will show what the PHP class returned
//THE BELOW EXAMPLE SHOWS HOW TO PASS MULTIPLE DATA TO FLEX
//This means the PHP function has a return statement like this:
//$returnValue=array();
//$returnValue['name']="George";
//$returnValue['age']=$age;
//return $returnValue;
private function myFunctionResultHandler(event:ResultEvent):void
Alert.show("Name: "+event.result.name);
Alert.show("Age: "+event.result.age);
//THE FAULT HANDLER
private function myFunctionFaultHandler(event:FaultEvent):void
Alert.show("Data could not be acquired."); -
How to access frame lable on main stage from a nested symbol
All-
I have two buttons
btnA on the main stage
btnB is nested inside btnA
How do I access a frame lable on the main stage from btnBok i figured this one out.
i created a button symbol 'BTN-NAV-INTRO' and placed it on the main stage.
i created a mouse over/out effect on it's timeline with an object on top called 'MC-HIT-AREA'
i placed the mouse over graphics inside the button and animated them on their own timelines
coded the MC-HIT-AREA to play those timelines 'MC-HIT-AREA' is nested inside the button
then on the main stage (this is what threw me) i set the button ('BTN-NAV-INTRO') to cursor and coded it to call the other button form the main stage. Nesting it wasn't necessary. I didn't realize you could have multiple mouse over/out effect below a mouse over effect from the main stage
Edge rocks when i get it to do my bidding! -
How to use fla file in Flex Builder 3?
Is there a way to do it?
I got these files also. But how to use Flash's fl.transitions. package with Flex.
Flash and Flex are doing transitions very differently.
In Flex, for example,
Define a transition effect: <mx:WipeLeft id="wl"/>
Use it: <mx:Canvas id="home" ... showEffect="wl">
Flash uses TransitionManager:
import fl.transitions.*;
import fl.transitions.easing.*;
var myTM:TransitionManager = new TransitionManager(my_mc);
myTM.startTransition({type:Wipe, direction:Transition.OUT, duration:3, easing:Strong.easeOut, startPoint:1});
How to define the MovieClip - "my_mc"? Both Flex and Flash have flash.dispaly.MoiveClip. Are they the same? -
How to use cairngorm framework in flex 4?
Hi Everyone!
Right now i am working with Flex 3.5 sdk using cairgorm architecture. Now i want to move to Flex 4 sdk with cairgorm architecture. I tried to use the cairngorm architecture in flex 4 sdk. But i did not get the output.
Please anyone let me know how to use the cairngorm artchitecture in flex 4 sdk.
Thanks in advance.!Read about Presentation Model. Refactor towards that and you should fine.
C -
How To use fckeditor HTML with flex
I am using coldfusion server technlogy.
I am trying make demo site Flex with coldfusion.
I want to know how to use html code with my mxml application.
Privious i am using FCK TEXT editor with my HTML File
Currently flex have small text editor But i need full text
editor with all feture which include FCK Editor
Please let me know how to integrate Fck Editor with flex
application . Or any html file with Flex ApplicationFlex has a very limited support for HTML, thus you cannot
create a full featured editor within flex. The only work arounds I
have seen are done using IFRAME's over your app.
Not sure if it an option, however Apollo does a good job of
addressing this issue by allowing full feature Javascript and HTML.
Allen -
hi,
Can someone share some sample codes about using win32 API in Flex if possible ?
ThanksHi
Here I am placing the syntax and example
syntax:
movieclip.gotoAndPlay("framelabel");
example:
mc1.gotoAndPlay("intro");
for further details:
http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_1.html
If this post answers your question of helps. Please mark it as such -
How to use portlet:namespace in flex files?
Hi,
Iam developing a portlet whose UI is flex. using MXML and action script.
Portlets require that their UI elements be unique to each portlet, so we use <portlet:namespace> for each ID, vars, functions etc..
My question is how should i use this tag in my UI?
Is this the right place to ask this question, if NO, the please direct me to the right forum.
Thank you,application-param tag in weblogic-application.xml may be used to define parameters:
webapp.encoding.default
webapp.encoding.usevmdefault
webapp.getrealpath.accept_context_path
http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
"Harshad Nanal" <[email protected]> wrote:
>
When we build an ear file , Weblogic-application.xml provides application-param
tag?
are they similar to env-entry in ejb-jar.xml.
Can I use application-param tag to define a configurable params
say myName and value as "Harshad"
How do i read it in the application say a simple java class that is included
in
a jar inside the ear file. -
How to use URL parameters in Flex?
Hello Everyone,
I wanted to know how can the parameters passed in a URL be used in our Flex application. I searched in the forum and tried these links:
http://forums.adobe.com/message/217950#217950
http://www.danvega.org/blog/index.cfm/2009/2/5/Flex-FlashVars-in-local-development
In the second link, this is the solution provided:
1. // if we've detected an acceptable version
2. // embed the Flash Content SWF when all tests are passed
3. AC_FL_RunContent(
4. "src", "ffManager",
5. "width", "100%",
6. "height", "100%",
7. "align", "middle",
8. "id", "ffManager",
9. "quality", "high",
10. "bgcolor", "#869ca7",
11. "name", "FFManager",
12. "allowScriptAccess","sameDomain",
13. "type", "application/x-shockwave-flash",
14. "pluginspage", "http://www.adobe.com/go/getflashplayer",
15. "flashvars","username=dvega"
16. );
private function init():void {
// grab the username so we can track who is logged in
[Bindable] private var:username= Application.application.parameters.username;
But here, I am getting the hardcoded value (ie.,dvega) as the data inside my flex application. Instead I would need the dynamic data that is passed through the URL. For Ex: if I use the URL, http://172.22.41.154/MH_2.html?myName=Arush
I need would need to use the name 'Arush' inside the application. Can you please help me on how and what part of the code is to be modified?
Thank you,
Warm regards,
DeepakThat would come within flex.
In my case, there is a SAP CRM web application which has a push button. On click of this button, flex URL is called(ie., http://172.22.41.154/MH_Bluebook_Integration2.html). On click of that button I need to pass an Object ID, which is passed withing that flex URL, something like this:
http://172.22.41.154/MH_Bluebook_Integration2.html?objID=abcd
I need to receive 'abcd' in the flex. Any way we could modify the HTML wrapper to send this value to swf? -
Hi all,
I am using Struts framework.
I have two part in a jsp page, in which i am getting data from previous page by using request.getParameterValues("date");
i.e i am getting multiple date.
Now in first part of jsp page i have checkbox tree ,where user can select checkbox, then click on submit .Now on click submit data will pass second part of jsp page.where with checked data
and date i have to do some process.
it is like frame type structure, where data from one frame will pass in second frame in jsp page.
I request to all JGuru to guide me how to do it.
DeepakJust let it access the request parameters the same way? Using HttpServletRequest#getParameter() and so on.
-
How to use LDAP validations in flex
Hi All,
I am working with Flex 2.0. in my application i have to
validate the controls of LDAP. Suppose if i enter wrong dn in a
textInput field it has to show the alert message.
please give some suggestions how to validate the ldap
controls within flex application.
Thanks,
RagaHi
Here I am placing the syntax and example
syntax:
movieclip.gotoAndPlay("framelabel");
example:
mc1.gotoAndPlay("intro");
for further details:
http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_1.html
If this post answers your question of helps. Please mark it as such -
How to use frames in a jsf page
hi all,
I need my page to be divided into three frames each frame with scrollable option. Each page should be able to display different jsp pages.Can anyone give a solution how can i implement this in a jsf page
regards,
PrasantHello Prasant,
I think page fragments is what your after, one of the Sun guys did a good blog on page layout with jspf but i can't access the weblogs, but you could try this tutorial in the meantime:
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
Then search the weblogs when its available. i hope this helps
Cheers
Gaz -
How to use the lcds in flex and how use the messageing serviecs in blazeds ?
I have a problem with messageing servies in Blazeds i used the romte and proxy very well but messaging services ?
Hi
Dont know, you dont say which commercial video conference software is involved.
Tony -
How to Use Frame Animation for CS6
I'm trying to do basic frame animation, but when I try to draw on a single frame, it always copies what I draw on the other frames. Is there a way to only draw on one frame at a time?
Thanks.For example this animation was made with two layer. The top layer the jjmack linked letters has a layer mask that is not linked to the layers content. The other layer is the background layer. The first frame I created was both layers visible with the jjmack layers content positioned off canvas upper left and the second frame I created was both layers visible with the jjmack layer content lower and off canvas to the right. I had Photoshop generate all the frames tween them.
Maybe you are looking for
-
Gnome Black Screen with Mouse Cursor after Login
I am using Archlinux 64bit with a Gnome Desktop Environment. Everything was running normally uptill today. When i ran "sudo fc-cache", my system froze. I couldnt open any other app but i was able to access terminal. I restarted using "reboot" command
-
What is the best setting to import songs from a CD. Right now I'm using the Apple Lossless, but is there one that will take up less memory?
-
Toast audio disc not read by other mac
I burned some CDs with Toast 10 Titanium for my disabled sister. The discs were burned from apple lossless rips I had in iTunes. Once burned they appeared on my desktop as an audio disc with the album title and the tracks appeared in iTunes. So, all
-
What is the importance of "CONTROLLER" in proxy structures generated
Hi, i have created a proxy for service interface in ESR. i can see one field "CONTROLLER" of type PRXCTRLTAB (Control Flags for Fields of a Structure ) in all of structures generated for proxy. i have given functional specification where in one of th
-
Hello, I recently tried to update firefox to v. 31.0, but permissions issues prevented it. I found answer here and installed full version as it advised. No problem. I chose "English" as the language, but in the browser and all subsequent windows/butt