1078: Label must be a simple identifier.

I am trying to access the value of variable (which is written process function of Loc class in as file ) in text box, in my fla file I am trying to access that var action:int , but it is showing an error
1078: Label must be a simple identifier.
this is my code
var loc:Loc = new Loc();
myTxt.text=Loc.process.action:int;

Loc:  public class Loc extends MovieClip
process: is public function in Loc class
action : is var in process function and its deta type is int
Trying to display the valu of  action:int in text box 

Similar Messages

  • Array: Label must be a simple identifier

    Hi,
    I'm getting the "Label must be a simple identifier" when trying to add to my array, any ideas why?
    thanks,
    // var roundOne:     set outside of function on main timeline
    // var allRoundWinners:Array ;    is declared outside of the function on main timeline
    // both reside where all the code is created.. frame 1 -> layer "actions".
    Here is the code with the problem? Am I spelling/doing something wrong?
    Line: 974   if(roundOne!="Blank"){
    Line: 975       allRoundWinners.push(roundOne):
    Line: 976    }
    Line: 975   1078: Label must be a simple identifier.

    I think it is because you have colon - not semicolon at the end of line:
    allRoundWinners.push(roundOne):
    Should be:
    allRoundWinners.push(roundOne);

  • Label must be an Identifier and Expecting identifier before rightbrace?

    Hi guys, i've become stuck, i'm trying to populate a list box with xml titles can you look at my code and see why i'm getting said errors (see title)
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onLoaded);
    var xml:XML;
    function onLoaded(e:Event):void
              xml = new XML(e.target.data);
              var il:XMLList= xml.channel.item;
              for (var i:uint=0; i<il.length(); i++)
                        lb.addItem({data:il.title.text()[i],
                                  label:il.title.text()[i]}):
    loader.load(new URLRequest ("http://www.skysports.com/rss/0,20514,12433,00.xml") );

    you have a typo:
      label:il.title.text()[i]}):
    ends with a full colon, and should be a semi-colon.

  • There must be a simpler way ( from start to finish ). .

    ( I did a search, but the keywords must have been too broad )
    What i describe below worked, but i know a more experienced editor would smile at the unnecessary amount of effort . . .
    At a recent School Centenary I was contracted to spend the whole day collecting stories
    I kept some rough paper notes on the start and stop times of each group interview sessions over 6 tapes
    so
    To reduce wear and tear on the camera transport I captured each tape as low grade clips of about 25 min each ( equated roughly to each interview session )
    from there I:
    a - set up a sequence named as Seq # and dragged only each 1 long clip into it
    b - used the razor tool on THE TIMELINE to cut each clip containing one anecdote per slice
    c - deleted stuff that was obviously unusable
    d - set up a bin titled something like "session #"
    e - dragged the whole of the remaining clips in that sequence # into the bin
    f - repeated the above steps 10 more times .
    so then :
    g - I set up about 20 bins, named to match categorizations that the anecdotes could be "collected" into
    h - took one slice ( from b ) at a time from each Interview session into THE VIEWER
    i - trimmed the in and out points closer to where i wanted them
    j - dropped them back into one of the 'subject' bins set up in (g) according to content
    k - there were some that needed markers to cut away long pauses, flights of irrelevancies etc, and i made a sub-clip of each
    l - spent some time renaming clips, filling text in log note and label fields in case things went awry later
    then for recapture:
    m - I set up a new sequence named for each category to match (g)
    n - dragged the whole contents of each of those bins on to it
    o - did the media manager cut down thing
    p - opened the original bins at (d) and made all the [ now discrete ] clips offline
    q - re-captured that tape.
    at the end of all that ( 11 times over ) I did the final polish and went from there.
    It looks long, and in a sense it was, but I was trying to avoid problems that I usually have with relying too much on Sub-clips.
    Indeed, between steps (p) and (q), some clips had different In/Out points but shared media start and finish, so I manually added offline clips, and with some fancy dancing, got them to replace the disobedient clips that were sending my deck into infinity.
    You'll spot a better way to do things, and no doubt it may involve a different handling of Sub-clips.
    suggestions, anyone?
    thanks
    ~rob v

    sorry not to get back sooner - I've been too flat busy
    Mostly after creating subclips from markers, when time came to recapture, they would run the deck (cam) over and over the same parts of the whole clip for just their little extent to be lifted, even though their defined regions were not overlapping and indeed nowhere near each other. I also remember a tim ewhen they'd recapture the full amount of the parent clip anywaywith the I/O markers set as per prior to recapture.
    In essence, what i've described in a very verbose manner from (a) to (l) above is all the stuff along the way of rough cutting. Admittedly i didn't need to do (m) or (n) and could have done the recapture after Making Clips Offline without the need for setting up sequences in parallel.
    As it was when i did do the deed from the different tapes, they all nicely uprez'd in their positions in the sequences i wanted them - so in that regard i did do it all in one swoop.
    What I choose to do however is always have my work at such a self-explanatory stage so that if my assistant or even i get interrupted for a few weeks on something else and have to return, we dont want to spend any time readjusting our head-space to what we were were doing ( and risk a costly mistake if we interpreted wrongly where the project was at )
    And besides i never trust any machine, code routine or whatever other smarts presented before me. I like things where i can keep track of what the programme is doing in the background, in case i need to snaffle the very thing from the disk cache manually. Its happened! and I didn't lose time or money. I'll pay the price of doing things the long way round.
    however i will take advice if there is a more elegant way of being so-minded.

  • Label must be in front of branching statement?

    even Sun does not say "must", I have a little code about it.
    class LittleFaint{
         public static void main(String args[]){
              System.out.println("before or after label of test");          
              test:
              //System.out.println("before or after label of test");
              do{
                   if(true)
                        continue test;
              }while(false);
    ok, but a little change
    class LittleFaint{
         public static void main(String args[]){
              //System.out.println("before or after label of test");          
              test:
              System.out.println("before or after label of test");
              do{
                   if(true)
                        continue test;
              }while(false);
    F:\xiejava>javac LittleFaint.java
    LittleFaint.java:7: undefined label: test
    continue test;
    ^
    1 error
    how do you think about it ((w98||w2kp||w2ks||w2la)&&((jdk1_3_1)||(jdk1_4_0)))
    thank you for your attention

    The original poster was asking about labelling - which is a syntactical language concept - not about Label, which is a GUI component.
    My understanding is that you can add a label to any statement, but you can only "continue" or "break" out of labelled blocks; so whilst it is syntactically ok to have "test:System.out(...);", you can't use this label in a continue or a break
    (since it's not a block).
    Consider:
    public class testing {
    public static void main(String[] args) {
    boolean out = false;
    if (args[0].equals("true")) {
    out = true;
    } else {
    out = false;
    testing:{
    System.out.println("hello");
    if (out) {
    break testing;
    System.out.println("world");
    System.out.println("outside");
    This works fine, and displays "hello \n world \n outside" when passed argument "false" and "hello \n outside" when passed true.

  • Moving blog entries from one blog to another - there must be a simple way

    It was suggested by my local Mac "Creative" that I establish more than one blog on my site, each concentrating on a particular topic. I did that. I'm not wild about the idea, though, and +*would like to move the entries from one blog to another.*+ I am unable to figure out how to do it. I've tried selecting the entry and dragging it to a different blog, to no avail. I've tried different key combinations to do it, to no avail. The Help file wasn't helpful.
    What's the simple way to accomplish this?
    Thanks,
    Barb, Minneapolis

    There isn't sorry...
    Just copy and paste the content text field by text field...
    I know you now will say "Oh great... Thanks for that" in kind of a sarcastic way like I would...
    But there really isn't any other solution...
    Regards,
    Cédric

  • I cannot get sound on some of apps, I know it must be something simple, any help

    I have downloaded several apps, but cannot get sound on them, any simple answer!!!

    You can't use transitions the way you want to effectively between video tracks.  The best way to do it would probably be to manually keyframe the opacities of each.  You could also try doing a fade out transition on one track and a fade in transition on the other, then align them so they happen at the same time.

  • This must be so simple...

    I have a static method in a class. It needs to be able to get the name of its own class. How can it do this? One way would be to create an instance of its own class then call xxx.getClass().getName() but that would call the constructor as a side effect and I don't want to do that. I'm sure this is easy - in fact I'm fairly sure I've done this before - but right now I just can't see it.

    use the class field, like java.lang.String.class, and so in your case my.package.toto.class

  • Must be a simple answer, but don't know where to find it ( ! )

    Greetings,
    I've imported a PDF file from the clipboard, have pasted it and locked it as a master object, but now I want to create separate text boxes for each line item as shown on the imported PDF image. Unfortunately, I can't seem to just use text boxes, as yet, because they get too close to each other and blank each other out!
    Anyway, I'm looking for a setting that allows me to overlay text boxes so they don't wipe each other out. Can anybody help? Thanks for your expertise, if you can!

    You can change the behavior of new objects in your template. Create your blank document with the fonts, margins, etc. Then insert any object or photo & set it to not wrap. Now, go to Format > Advanced & select Define Default Shape Style, then delete the object, save the blank document as a template & set Pages to use this template in Pages > Preferences. You can make similar settings for default tables, too.

  • I have no status bar, no menu bar, no maneuverability at all. There appears to be only the center of the webpage and I have to ctl-alt-del to close firefox. There must be a simple solution to correct this.

    Problem began this am- opened firefox 4 and have lost all the manageability buttons-tabs-toolbars. It appears that all I have is the center of the page and the frames around the edge are out of sight or gone. Can't grab a corner/edge to make screen smaller or scroll up/down. Tried reloading and reinstalling FF4 but still same problem

    I mucked about and solved the issue myself by uninstalling FF4 then installing FF3.16.... it still opened up wrong. I deleted something from Mozilla FF ( I had 3 sets of search engine folders) and then managed to get back online with FF instead of Chrome. Will keep your advice in mind should the problem occur again - I never run anything in full screen mode and dumb me does not even know how to do that with FF. Thanks for the answer.....

  • When downlading a particular webpage the print does not seem to fit. I am sure there must be a simple solution to this but not for me!!

    Print does not seem to fit in any downlaoded webpage - please help

    I'm not sure what you mean by downloaded.
    * Is the problem with Firefox displaying the page on the screen, and part of the text is off the right side of the screen? If everything is gigantic, your Firefox icon might be set up to start in a low resolution. If only the page content is too big, it could be an issue with Zoom.
    * Is the problem with printing the web page, either to paper or PDF? If you use Print Preview and adjust the scaling setting (e.g., change Shrink to fit to something like 90%), perhaps you can get it to work. There are some sites that do not Shrink to fit.

  • Please help with a Poster Frame

    I have imported an FLV into Flash using "Video Import" and selected a prebuilt skin that gives play, volume and caption control. The movie has autoplay turned off so when I viewed on the webpage it shows a black first screen and the skin beneath it. I would like to insert a poster frame that will hide when the user presses play on the skin. I was a novice with AS 1 and 3.0 is making me facepalm. Please help, I've already tried Flashkit and Actionscript.org and not gotten any answers. Thanks!!

    Okay in Frame 1 I have an AS layer I copied your code into, layer two is the movie clip with the image named 'myPoster' and the third layer contains the FLV playback named 'myVideo' so I changed the names in the code to:
    mvVideo.addEventListener(MouseEvent.CLICK,f):
    function f(e:MouseEvent):void{
    removeChil((myPoster);
    I get the following compiler errors and publish preview shows just the image:
    Scene1,Layer 'Action Script', Frame 1, Line 1 1078: Label must be a simple identifier.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1084: Syntax error: expecting rightparen before semicolon.
    So I tried modifying the code to:
    mvVideo.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    removeChil((myPoster));
    Which fixed the original errors but still only the image shows and I get new compiler errors.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1180:Call to a possibly undefined method removeChil.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1120: Access of undefined property myPoster.
    Scene1,Layer 'Action Script', Frame 1, Line 1 1120: Access of undefined property myPoster.
    Thanks for your patience and help!

  • How to run an external TimeDate class

    package
         public class TimeDate
    var my_date:Date = new Date();
    trace(my_date:Date);
    mc_time.txt_displayDateTime.text = my_date:Date;
    Hi, I have a rough idea about displaying TimeDate in actionscript external class. Something like that above, but Im not sure what things did I miss out. I actually want it to display in mc_time.txt_displayDateTime(located at my main.fla stage). I'm not sure how to retrieve the TimeDate from the external class in my main.fla. Also displaying the TimeDate in mc_time.txt_displayDateTime and update the time every sec?

    Hi,
    I'm getting these errors:
    1046: Type was not found or was not a compile-time constant: Event.
    1078: Label must be a simple identifier.
    Warning: 1060: Migration issue: The method fscommand is no longer supported.  Moved to flash.system package. Also, please see flash.external.ExternalInterface class for Javascript/ActionScript communication..
    Warning: 1060: Migration issue: The method clearInterval is no longer supported.  This method has moved to the flash.utils package..
    Warning: 1060: Migration issue: The method setInterval is no longer supported.  Moved to the flash.utils package.  Consider using the Timer class instead..
    package
    public class TimeDate
    public function TimeDate(){
    this.addEventListener(Event.ADDED_TO_STAGE,init);
    private function init(e:Event):void{
    var my_date:Date = new Date();
    trace(my_date);
    mc_time.txt_displayDateTime.text = my_date:Date; <- error 1078 pointing to this line

  • Dynamic Tween Variable Declaration?

    Is there a way to declare a new dynamically named tween variable inside a for loop?  For example, I am trying to declare xTween1, xTween2, xTween3 in this for loop, but this is obviously the wrong way because it does not work:
    for (var i:Number=0; i<3; i++) {
         var ["xTween"+i]:Tween=new Tween(getChildByName("man"+i),"x",None.easeNone,xPos,xDest,movementSpeed,true);
    How would I go about dynamically generating these new tween variables inside of my for loop?
    Ben Erlichson

    I have gotten somewhere, but I am still having trouble:
    this["manXTween"+counter]:Tween =new Tween(man,"x",None.easeNone,xPos,xDest,speed,true);
    I get the following error:
    "1078:Label must be a simple identifier"
    If I remove the ":Tween", the error message goes away but then the tween cannot be executed.  Please help me

  • Listen for stream with a poster frame

    Hi,
    I am a newbie... I just got the whole live RTMP stream going, using the Flash Media Live Encoder, Red5 and the strobe Player.
    I have a poster Frame setup, now:
    I would like the user to see the posterframe when he opens the webpage, when I hit start on the FMLE I want the player to start the stream without the user having to refresh the browser or clicking the play button. If the stream gets stopped I would like the player to display the Poster again...
    I am using the player setup page.
    Is it possible, thank you very much for your help!
    Krisc

    Okay in Frame 1 I have an AS layer I copied your code into, layer two is the movie clip with the image named 'myPoster' and the third layer contains the FLV playback named 'myVideo' so I changed the names in the code to:
    mvVideo.addEventListener(MouseEvent.CLICK,f):
    function f(e:MouseEvent):void{
    removeChil((myPoster);
    I get the following compiler errors and publish preview shows just the image:
    Scene1,Layer 'Action Script', Frame 1, Line 1 1078: Label must be a simple identifier.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1084: Syntax error: expecting rightparen before semicolon.
    So I tried modifying the code to:
    mvVideo.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    removeChil((myPoster));
    Which fixed the original errors but still only the image shows and I get new compiler errors.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1180:Call to a possibly undefined method removeChil.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1120: Access of undefined property myPoster.
    Scene1,Layer 'Action Script', Frame 1, Line 1 1120: Access of undefined property myPoster.
    Thanks for your patience and help!

Maybe you are looking for