Eval() problem in actionscript 3.0

Hey, im re coding my old web site from AS2 to AS3 but im strugeling with the eval() function.
The eval() converts my string to a object witch is passed to my function, but now AS3 doesnt support the eval() function any more.
Kan anyone help me. . .
var pageName:String = "home_mc";
var currentPage:String = "home_mc";
//---------BUTTON FUNCTIONS---------\\
function rollover(movieName) {
if (currentPage != movieName) {
  eval(moviename).gotoAndPlay("_in");
function rollout(movieName) {
if (currentPage != movieName) {
  eval(moviename).gotoAndPlay("_out");
function stick(movieName) {
if (currentPage != movieName) {
  eval(moviename).gotoAndPlay("_out");
currentPage = movieName;
eval(moviename).gotoAndPlay("_stick");
button_mc.addEventListener(MouseEvent.MOUSE_OVER, rollover);
button02_mc.addEventListener(MouseEvent.MOUSE_OVER, rollover);
button03_mc.addEventListener(MouseEvent.MOUSE_OVER, rollover);
button04_mc.addEventListener(MouseEvent.MOUSE_OVER, rollover);
button_mc.addEventListener(MouseEvent.MOUSE_OUT, rollout);
button02_mc.addEventListener(MouseEvent.MOUSE_OUT, rollout);
button03_mc.addEventListener(MouseEvent.MOUSE_OUT, rollout);
button04_mc.addEventListener(MouseEvent.MOUSE_OUT, rollout);
//----------------------Button  End ---------------------\\
//---------Page functions--------------------\\
function animateOff(page:String):void
eval(page).gotoAndPlay("_out");
function animateOn(page:String):void
eval(page)gotoAndPlay("_in");
//----------------------Page End ---------------------\\
//---------Button OnRealese Functions-------------------\\
button_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick01);
function mouseClick01(Event:MouseEvent):void
   if (pageName != "home_mc")
      stick("button_mc");
   animateOff(pageName);  
   animateOn("home_mc");
   pageName = "home_mc";
//---------------------------END----------------------\\

Hey, ive tried the this[movieClip].gotoAndPlay("_in")
But i get this error as soon as i click, hove over or roll out:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ProactiveMedicServices_fla::MainTimeline/loading()
TypeError: Error #1010: A term is undefined and has no properties.
at ProactiveMedicServices_fla::MainTimeline/rollover()
TypeError: Error #1010: A term is undefined and has no properties.
at ProactiveMedicServices_fla::MainTimeline/rollout()
TypeError: Error #1010: A term is undefined and has no properties.
at ProactiveMedicServices_fla::MainTimeline/rollover()
TypeError: Error #1010: A term is undefined and has no properties.
at ProactiveMedicServices_fla::MainTimeline/animateOff()
at ProactiveMedicServices_fla::MainTimeline/mouseClick02()
TypeError: Error #1010: A term is undefined and has no properties.
at ProactiveMedicServices_fla::MainTimeline/rollout()
TypeError: Error #1010: A term is undefined and has no properties.
at ProactiveMedicServices_fla::MainTimeline/rollover()
TypeError: Error #1010: A term is undefined and has no properties.
at ProactiveMedicServices_fla::MainTimeline/animateOff()
at ProactiveMedicServices_fla::MainTimeline/mouseClick01()
This is my new code afer i aplied the answers:
var pageName:String = "home_mc";
var currentPage:String = "home_mc";
//var movieName = ;
//stick("button_mc");
button_mc.addEventListener(Event.ENTER_FRAME , nameButtons);
function nameButtons(event:Event):void
var num1:Number = 1;
button_mc.t1_mc.gotoAndStop(num1);
var num2:Number = 2;
button02_mc.t1_mc.gotoAndStop(num2);
var num3:Number = 3;
button03_mc.t1_mc.gotoAndStop(num3);
var num4:Number = 4;
button04_mc.t1_mc.gotoAndStop(num4);
  var page2 = 2;
  var page3 = 3;
  var page4 = 4;
  ser_mc.ti2_mc.gotoAndStop(page2);
  rev_mc.ti2_mc.gotoAndStop(page3);
     con_mc.ti2_mc.gotoAndStop(page4);
     home_mc.gotoAndPlay(19);
  //trace(pageName)
//---------BUTTON FUNCTIONS---------\\
//---------BUTTON FUNCTIONS---------\\
function rollover(movieName) {
if (currentPage != movieName) {
  this[movieName].gotoAndPlay("_in");
function rollout(movieName) {
if (currentPage != movieName) {
  this[movieName].gotoAndPlay("_out");
function stick(movieName) {
if (currentPage != movieName) {
  //var buttonTest:Object = movieName;
  this[movieName].gotoAndPlay("_out");
currentPage = movieName;
//var buttonTest:Object = movieName;
this[movieName].gotoAndPlay("_stick");
/*function rollover1(event:MouseEvent):void
  button_mc.gotoAndPlay("_in");
function rollover2(event:MouseEvent):void
  button02_mc.gotoAndPlay("_in");
function rollover3(event:MouseEvent):void
  button03_mc.gotoAndPlay("_in");
function rollover4(event:MouseEvent):void
  button04_mc.gotoAndPlay("_in");
function rollout1(event:MouseEvent):void
  button_mc.gotoAndPlay("_out");
function rollout2(event:MouseEvent):void
  button02_mc.gotoAndPlay("_out");
function rollout3(event:MouseEvent):void
  button03_mc.gotoAndPlay("_out");
function rollout4(event:MouseEvent):void
  button04_mc.gotoAndPlay("_out");
button_mc.addEventListener(MouseEvent.MOUSE_OVER, rollover);
button02_mc.addEventListener(MouseEvent.MOUSE_OVER, rollover);
button03_mc.addEventListener(MouseEvent.MOUSE_OVER, rollover);
button04_mc.addEventListener(MouseEvent.MOUSE_OVER, rollover);
button_mc.addEventListener(MouseEvent.MOUSE_OUT, rollout);
button02_mc.addEventListener(MouseEvent.MOUSE_OUT, rollout);
button03_mc.addEventListener(MouseEvent.MOUSE_OUT, rollout);
button04_mc.addEventListener(MouseEvent.MOUSE_OUT, rollout);
function animateOff(page:String):void
this[page].gotoAndPlay("_out");
//trace(pageName);
function animateOn(page:String):void
this[page].gotoAndPlay("_in");
button_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick01);
function mouseClick01(Event:MouseEvent):void
   if (pageName != "home_mc")
   //home_mc.gotoAndPlay("_in");
      //stick("button_mc");
   animateOff(pageName);  
   animateOn("home_mc");
   pageName = "home_mc";

Similar Messages

  • [Flash 8] Problema de actionScript

    Hola, hace mucho que no me pasaba por aquí. Tengo un
    problema de actionscript:
    Un botón que necesito que al hacer clic la primera vez
    vaya a un sitio, y al voler a hacer clic vaya a otro sitio.
    Sólo me obedece la primera parte:
    BTN4.onRelease=function( )
    var active:Boolean = false;
    if (active = true)
    this.gotoAndPlay( "over" );
    else
    this.gotoAndPlay( "out" );
    Gracias y saludos,
    XL

    Hola de nuevo Xiskya, hacía bastante que no te
    leía...
    Bien, tu función tiene un problema y es que siempre te
    va a marcar la
    variable como false, ya que cada vez que entras en la
    función la defines
    como tal, además en ningún punto del código le
    cambias el valor, una posible
    solución sería:
    var active:Boolean = false;
    btn4.onRelease = function {
    if (active == true) {
    this.gotoAndPlay("over");
    active != active;
    }else {
    this.gotoAndPlay("out");
    active != active;
    Ten en cuenta que este código te irá alternando
    entre active = true y active
    = false, si quieres que sólo se ejecute una vez el false
    entonces sácale la
    línea de active != active; del condicional true.
    Espero que esto te sirva de ayuda.
    Un saludo, Álvaro.
    "xiskya_lucy" <[email protected]>
    escribió en el mensaje
    news:fnfjoe$d6r$[email protected]..
    > Hola, hace mucho que no me pasaba por aquí. Tengo
    un problema de
    > actionscript:
    >
    > Un botón que necesito que al hacer clic la primera
    vez vaya a un sitio, y
    > al
    > voler a hacer clic vaya a otro sitio. Sólo me
    obedece la primera parte:
    >
    >
    > BTN4.onRelease=function( )
    > {
    > var active:Boolean = false;
    >
    > if (active = true)
    > {
    > this.gotoAndPlay( "over" );
    > }
    > else
    > {
    > this.gotoAndPlay( "out" );
    > }
    > }
    >
    > Gracias y saludos,
    >
    > XL
    >

  • [JS] Eval problem with scriptUI

    Hello,
    I want to build an scriptUI Interface with a specific group of buttons.
    This group will be repeated accordingly to a an external txt file (telling the script how many groups are needed).
    My script uses a for loop in the dialog construction like this :
    for(i=0; i<n; i++)
         //Repeat the group of buttons with i as an ID;
         eval(addBtn(i));
    to get the construction of the button, I created a addBtn(btnId) function.
    It returns the code string to create my group of buttons with i as an ID.
    function addBtn(btnId)
            myBtnString = "rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=" = rapidDlg.add('group',undefined); ";
            myBtnString+= "rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=".alignment = ['left',' '];";
            myBtnString+= "rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=".checkBoxItem = rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=".add('checkbox',undefined,undefined);";
            myBtnString+= "rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=".aFile = rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=".add('button',undefined,\'a File\');";
            myBtnString+= "rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=".aFile.size= [245,20];";
            myBtnString+= "rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=".removeItem = rapidDlg.Group";   
            myBtnString+=String(btnId);
            myBtnString+=".add('button',undefined,\'-\');";
            myBtnString+= "rapidDlg.Group";
            myBtnString+=String(btnId);
            myBtnString+=".removeItem.size= [30,20];";
            return myBtnString;
    But my loop doesn't seem to wok, and as the dialog appears, my groups are not created :-(
    Am i wrong using eval() or do I misuse it ?
    Thanks a lot for your help :-)
    Regards,
    Loic
    Attached the fulle script

    Dave,
    Thanks for the reply.
    I'm not sure what you mean by "convert the references on the fly." You mean find a way to advance two characters forward and tag that? In the script I submitted here I am only searching for "abc," which of course I would not search or at all  in real life. The script uses grep to search for about twenty different typographical errors that typically appear and tags them all.
    Reiterating backwards seems, at first sight the way to go. But I haven't a clue as to how to reverse the order of the stories. I can get an array of stories, and array.reverse() them, but am not sure how to then make the script put this reversed order into the xml structure. Any hints?
    There, of course is bigger problem with the stories. If the document is written with one story created after another then the order of them is top to botom. But if say a text frame edited into the middle of all this, that story is still the last one in the xml structure. At least in one test, that was so. Maybe the way to solve this is to build an array of stories that have as one xml attribute the page it first appears on. Then order the array according to that attribute.
    Any advice you give will be appreciated.
    Thanks,
    Tom

  • CS5 Publishing Problem about ActionScript

    Hi ,
    I prepared a project and i can published it without any error.Action folder includes actionscript files.But when i decompile the swf file there isn't action folder and actionscript files are missing.Please help me it's too important for me.
    NOTE : On CS4 I didn't face a problem like this and i could see Action folder when i decompile the swf file.

    No ,as I say on CS4 I didn't face any problem but on CS5 this problem occured.
    NOTE : On CS3 there isn't any problem too..Only on CS5..

  • Tween problems in ActionScript 3.0

    Hello!
    I'm stuck with my problem and I have no idea what is wrong. I'm making movement of movie clip via creating new Tween in Action Script 3, Flash CS4 and it happens, when I mouse over button in another movie clip. The problem is that movement sometimes work perfectly, but sometimes it gets stuck in middle of movement and continues only if I mouse over again. Here is the code of function of first frame in main scene:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    function btnOver(I:Number) {
    var tw: Tween = new Tween(somemovieclip, "x", Strong.easeOut, somemovieclip.x, I, 1, true);
    Here is how I'm calling that function from another movie clip when I mouse over a button: 
    function over(eventObject:MouseEvent) {
    (root as MovieClip).btnOver(288);
    btn.addEventListener(MouseEvent.MOUSE_OVER, over);
    I have several motions like this - for each button different variable for x position (number "I"). I also have another movie clip playing at the same time, but it isn't connected with any of movie clips mentioned above. 
    Does anybody have an idea what is wrong?
    P.S.: I'm on Mac with latest flash player and movie works better in Windows - it has less mistakes, but still they happen very rare. Probably the problem is somewhere inside player or something like that?
    Thanks!

    It looks like the problem is that you only have one Tween instance to work with. If you start one tween and start another before the first has completed, the first one has to stop working because that one Tween instance has to jump over to the new tween that's just been called.
    You probably want to set up an individual tween for each button. You might also want to look into using something like TweenLite/TweenMax instead of the built in Flash tweening. Have a look at: http://blog.greensock.com/tweenmax/

  • Problem with actionscript window in Flash CS3 IDE

    The actionscript window doesn't open up for any frames on the
    timeline. When I press 'F9' or try to access via context menu the
    action window tab appears at the top in minimized form. No matter
    how many times I click on it or on the maximize button the window
    doesn't open up. I tried reinstalling Flash CS3 but it didn't help.
    Any help with this issue is appreciated.
    Thanks!

    Found a solution for this atlast ! Delete the Users/AppData
    folder for flash CS3 and things will be back to normal. It seems
    the Flash IDE screws somewhere while saving the local users
    settings. Clearing these settings restored my action window
    !

  • Having a problem with Actionscript. Need help

    I'm trying to set up the first page in my project so that I capture a person name... and I can use it again later on. I had discussed this in a previous thread with Ned Murphy:  
    http://forums.adobe.com/message/3319540#3319540
    I half way have this working. For some reason when I type in the name, only parts of it appear when I retrieve it.
    Here's a look at my actionscript on the first page:
    stop();
    //Setting Up Name TextInput Field and Variable
    var userInput:String="";
    //Enter Button Setup
    enter_btn.addEventListener(MouseEvent.CLICK, copyText);
    function copyText(e:MouseEvent):void
             userInput=name_ti.text;
               gotoAndPlay(2);
    And here's the actionscript on the retrieval page
    //Textbox Greeting
    greeting_txt.text="Hello "+userInput+(!);
    Where am I going wrong?

    Have you tried embedding the font of your input text area?  If you're using Flash CS5 Pro this is very important.

  • Sound problem in actionscript 3

    Hi
    I'm still a total newbie to Flash & building my first website.
    I've gotten stuck on a sound issue where I want the sound to play when the mouse passes over a symbol, which I've managed to get working, but unfortunately it is also playing when the page first opens, which I certainly do not want.
    The script is:
    cow.addEventListener(MouseEvent.MOUSE_OVER,gomoo);
           function gomoo(evt:MouseEvent)
            var entermoo:Sound = new Cowmoo();
            entermoo.play();
    Any help with this would be greatly appreciated.

    Holeycow wrote:
    Hi
    I'm still a total newbie to Flash & building my first website.
    I've gotten stuck on a sound issue where I want the sound to play when the mouse passes over a symbol, which I've managed to get working, but unfortunately it is also playing when the page first opens, which I certainly do not want.
    The script is:
    cow.addEventListener(MouseEvent.MOUSE_OVER,gomoo);
           function gomoo(evt:MouseEvent)
            var entermoo:Sound = new Cowmoo();
            entermoo.play();
    Any help with this would be greatly appreciated.
    Hi!
    10 minutes ago I had this same problem with buttons.
    When I imported the sound direct to the library I though it was only at the library, so I exported the sound to AS, just the way you did.
    What should be happening is that this sound is also inside a frame in your timeline and is there that it's playing.
    Look for it and remove it and your problem will be gone. I didn't know how to do so, so I made a copy of the frame, removed the one with the sound and realocated the frame copy to the right place.
    Change the size of your timeline so you can find the sound more easily.
    Hope it helps!

  • Problem With Actionscript Working in Player 7 and Up

    Can some one please help me, I have been working with an old
    action script file that works in flash player 6 but not any thing
    above that. Any help would be great. As a side note the spline
    function no longer works either.
    onClipEvent (load) {
    function x(t) {
    var __reg1 = t;
    if (__reg1 != 0 && __reg1 != 1) {
    xspline = Math.pow(1-__reg1, 3)*x0+3*Math.pow(1-__reg1,
    2)*__reg1*x1+3*(1-__reg1)*Math.pow(__reg1, 2)*x2+Math.pow(__reg1,
    3)*x3;
    if (__reg1 == 0) {
    xspline = x0;
    if (__reg1 == 1) {
    xspline = x3;
    return xspline;
    function y(t) {
    var __reg1 = t;
    if (__reg1 != 0 && __reg1 != 1) {
    yspline = Math.pow(1-__reg1, 3)*y0+3*Math.pow(1-__reg1,
    2)*__reg1*y1+3*(1-__reg1)*Math.pow(__reg1, 2)*y2+Math.pow(__reg1,
    3)*y3;
    if (__reg1 == 0) {
    yspline = y0;
    if (__reg1 == 1) {
    yspline = y3;
    return yspline;
    function evalangle(x1, y1, x2, y2, linedist) {
    lineangle = Math.asin((y2-y1)/linedist)*180/3.14159;
    if (x1-x2>0) {
    lineangle = 180-lineangle;
    return lineangle;
    function drawLine(xp1, yp1, xp2, yp2, linedepth) {
    var __reg1 = lineDepth;
    _parent;
    var __reg3 = xp1;
    linedist =
    Math.sqrt((xp2-__reg3)*(xp2-__reg3)+(yp2-yp1)*(yp2-yp1));
    lineangle = evalangle(__reg3, yp1, xp2, yp2, linedist);
    _parent.attachMovie("line","line"+__reg1,__reg1);
    _parent["line"+__reg1]._x = __reg3;
    _parent["line"+__reg1]._y = yp1;
    _parent["line"+__reg1]._rotation = lineangle;
    _parent["line"+__reg1]._xscale = 10*linedist;
    function drawSpline() {
    i = 0;
    while (i<nsplinepoints) {
    xpspline
    = x(t);
    ypspline = y(t);
    t = t+step;
    ++i;
    i = 0;
    while (i<nsplinelines) {
    drawLine(xpspline
    ,ypspline,xpspline[i+1],ypspline[i+1],i);
    ++i;
    var t = 0;
    function moveflower() {
    _parent;
    var crdzx = _parent._xmouse;
    if (_parent._ymouse<0) {
    var crdzy = _parent._ymouse;
    if (crdzx>crdx) {
    crdx = crdx+(crdzx-crdx)/20;
    if (crdzx<crdx) {
    crdx = crdx-(crdx-crdzx)/20;
    if (crdzy>crdy) {
    crdy = crdy+(crdzy-crdy)/20;
    if (crdzy<crdy) {
    crdy = crdy-(crdy-crdzy)/20;
    if (crdx == 0) {
    crdx = 1;
    if (crdy == 0) {
    crdy = 1;
    distance = Math.sqrt(crdx*crdx+crdy*crdy);
    angle = Math.asin(crdx/distance)*180/3.14159;
    x3 = radius*crdx/distance;
    y3 = radius*crdy/distance;
    _parent.dragme._rotation = angle;
    _parent.dragme._x = x3;
    _parent.dragme._y = y3;
    var nsplinepoints = 11;
    var nsplinelines = nsplinepoints-1;
    var step = 1/nsplinelines;
    var t = 0;
    var x0 = 0;
    var x1 = 0;
    var x2 = 0;
    var y0 = 50;
    var y1 = 33;
    var y2 = 0;
    var radius = 40;
    var xpspline = [];
    var ypspline = [];
    onClipEvent (enterFrame) {
    moveflower();
    drawspline();

    OK. I was replying to you being a smart *** first. Because
    you have posted 31000 comments you rule the forums? When last I
    posted on this forum there was no attach code function. Im sure
    your good but don't get full of yourself because some where there
    are a dozens of kids that grew up with this stuff and can beat the
    pants off both you and I. Im sure there is no less than 10,000
    other people that can help me most likely better than you. So
    thanks for being a smart *** first but like I said before I will
    wait for some one else.
    Thanks
    Jahue

  • Problem with ActionScript

    hello I encountered this error while I running an action
    script file in flash cs3:
    1013: The private attribute may be used only on class property
    definitions.
    and this is the function that make this error:
    private function clickListener(e:MouseEvent):void{
    var phase:String;
    switch(e.eventPhase){
    case EventPhase.CAPTURING_PHASE:
    phase = "Capture";
    break;
    case EventPhase.AT_TARGET:
    phase = "Target";
    break;
    case EventPhase.BUBBLING_PHASE:
    phase = "Bubbling";
    break;
    trace("Current event phase: "+ phase);
    thank you very much and I appreciate you .sincerly yours
    Mohsena

    Hello Kglad ,I tried to send it to two messege:
    part 1:
    package{
    flash.display.Sprite;
    public class TestEventPhase extends Sprite{
    public function TestEventPhase():void{
    var t:TextField = new TextField();
    t.text = "click here";
    t.autoSize = TextFieldAutoSize.LEFT;
    stage.addChild(t);
    stage.addEventListener(mouseEvent.CLICK,clickListener,true);
    stage.addEventListener(mouseEvent.CLICK,clickListener,false);

  • ActionScript parameter in reportserver url not working

    I am trying to get a javascript call back on any action that is performed on a report. I am using URL access to get a report. Url  looks like this:
    http://localhost/ReportServer/Pages/ReportViewer.aspx?MyReport&rs:Command=Render&rc:ActionScript=alert
    Documentation for the rc:ActionScript url parameter at
    http://msdn.microsoft.com/en-us/library/ms155395.aspx says that the parameter "Specifies the name of the JavaScript function to use when an action event occurs,
    such as a drillthrough or bookmark click. If this parameter is specified, an action event will trigger the named JavaScript function instead of a postback to the server."
    The report renders fine. Actions on a report work - clicking on a text box that has "go to report" action defined takes me to the right report. However, the alert function mentioned in the url doesn't seem to be called. 
    I know I can use a "go to URL" action to invoke a javascript of my choosing, but I'd rather keep using "go to report" action in 70+ reports that we have already written as it is cleaner and makes development and testing in VS easier.
    Any ideas how to get the ActionScript parameter working? I have tried passing in "window.alert" as opposed to just "alert". Doesn't seem to work.
    Thanks!

    Same problem with ActionScript-Setting in DeviceInfo. I'm getting only normal hyperlinks with href. Any ideas?

  • Audio problems preloaded Captivate swfs in custom player

    I have a slideshow-like custom Flash player that uses
    standard preloader code - it loads external swf movieclips into a
    holder clip, and stores references to them in an array. Once all
    external swfs are loaded, the first clip starts playing and
    navigation buttons allow the user to go through the "slides" at
    will.
    The problem: some Captivate-generated swf files have audio
    that starts playing as the clips are preloading, and the audio does
    not stop except with a stopAllSounds call. As needed, each loaded
    swf is copied (so to speak) from the array to a clip on the stage,
    loadedClip_mc, to be played and controlled. The player's pause
    button, which works as follows:
    loadedClip_mc.stop()
    has no effect on the sound of the loaded Captivate clips.
    Furthermore, the audio doubles-up when trying to play any
    slide, and clicking play (loadedClip_mc.play() )
    HERE IS THE MOST CONFUSING PART: this ONLY happens when the
    player and the movies to be loaded are uncached - after the files
    are visited for the first time, everything works great. Anytime you
    revisit the player it is fine. However, if it is the first time
    someone is visiting the custom player, or the browser cache is
    cleared, once you visit the page the audio for all Captivates start
    playing during preloading simultaneously and cannot be controlled.
    Thank you in advance for your help!

    Hi. I've experienced the same problem with audio and preload.
    Sorry for my english, but - I dont know if I've understood the
    matter- I think you are talking about to fix this problem using
    actionscript code. Please, would you answer me one question? If I
    can't change the code of the base clip generated by Captivate, is
    it possible to add some code in my loaded clips to stop that audio
    embedded in them when they are preloading? What would this code
    be?.
    I hope you understand me!
    Thank you.

  • Problem loading swfs.

    Hello, I got a problem with actionscript, I am not that good at it, but I know many programing languages so I guess its not that hard to understand
    what it does, however.
    What I want is, I have 2 swfs exported from Adobe After Effects, the one is continiously looping and the other is simply running just once,
    and I want these 2 swfs to play the one after the other.
    I try to load them as seperated frames so that the last frame loops again and again. But it seems I can't. I tried many techniques. So tell me urs.

    Danis0 wrote:
    Hello, I got a problem with actionscript
    Then why not post in the ActionScript forum?

  • Actionscripting bugs?

    I am by no means an actionscripting guru - much heavier on
    the 'eye candy' side of things. I don't ever get much past the
    basics like "stop" "gotoplay" and "geturl" - which brings me to a
    question to ask the gurus.
    Have any of you had problems with actionscripting locking up
    on FLA's - suddenly - when it's never happened before in a
    particular file or project? I'm using Pro 8 and things have been
    fine - but just within the last few days - I went to update a
    website FLA that I update every month and publish and WOW! It
    drained all my resources - took a long time to 'fire up' and took a
    long, long time to publish. It was a 4 meg FLA. It does have some
    "geturl" linking on it as well as quite a few "stops" - "gotoplay"
    - but nothing like long lengthy scripts.
    I decided to fire up some other FLA from other projects and
    noticed that the ones that had the least actionscripting - fired
    right up - even the larger CD project FLA's (75 meg) - but the ones
    with any url type linking or lots of linking within the FLA seem to
    be giving me fits - out of the blue! Anyone else experienced this
    and can it have anything to do with actionscript 1 vs. actionscript
    2 deal or using to the new (old) actionscripting "prompt" feature
    when in Pro 8?

    embedding fonts also lag your compiling time.
    Try this.
    create a new flash document, don't do anything else other
    than embed all fonts.
    see how long it takes you to compile
    as far as i can tell, i hadn't got any issue with compiling
    and 99% of my stuff are in scripts (yeah, i even script draw my
    buttons,
    or you could upload the fla somewhere and let others see if
    they have any problem with compiling. who knows if something's
    corrupted.

  • Help with ynamic variable evaluation

    Hi guys,
    If someone can point me out to how to evaluate variables as
    part of an expression.
    for ex:
    event.result.reporting.series[0].eval("y"+j+"Label");
    basically how do i write the equivalent of eval in
    flex/actionscript
    Thanks a ton,
    Pranay

    Thanks Greg, saved my day................
    1 more question
    Problem:
    My flex httpservice returns an xml file in the "object"
    resultFormat.
    How could I get the count of all childNodes of an object in
    that returned object tree.
    For example, in the xml file below:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reporting>
    <series>
    <title>Edge Page Views, in Page Views per
    Second</title>
    <xLabel>startdatetime</xLabel>
    <y1Label>sum(pageviews)</y1Label>
    <data>
    <x>1216233600</x>
    <y1>79.605</y1>
    </data>
    <data>
    <x>1216233900</x>
    <y1>78.076</y1>
    </data>
    </series>
    <series>
    <title>Total Bandwidth, in Mbits per
    Second</title>
    <xLabel>startdatetime</xLabel>
    <y1Label>sum(egress_bytes_mbps)</y1Label>
    <y2Label>combined_midgress_bytes_mbps</y2Label>
    <y3Label>ovh_bytes_mbps</y3Label>
    <y4Label>sum(ingress_bytes_mbps)</y4Label>
    <data>
    <x>1216233600</x>
    <y1>36.160352</y1>
    <y2>66.48362700000001</y2>
    <y3>66.48362700000001</y3>
    <y4>96.01235200000002</y4>
    </data>
    <data>
    <x>1216233900</x>
    <y1>34.260794</y1>
    <y2>62.10649799999999</y2>
    <y3>62.10649799999999</y3>
    <y4>88.902323</y4>
    </data>
    <data>
    <x>1216234200</x>
    <y1>35.329617</y1>
    <y2>62.77339099999999</y2>
    <y3>62.77339099999999</y3>
    <y4>89.30751</y4>
    </data>
    </series>
    </reporting>
    The first series element has 4 children
    I am able to get the number of data elements as:
    "resultObj.reporting.series[0].data.length"
    How do I effectively retreive:
    "resultObj.reporting.series[0].childNodes().length"
    Apparently this does'nt work, I also tried Nodes, children().
    Any documentation or help with this would be awesome
    Thanks a ton
    Pranay

Maybe you are looking for

  • Can i delete an apple id?

    I need to delete an apple ID so that I can use that email address for my current account without loosing all my songs. Any help?

  • JAVA Application Error in BI 7.0

    Hi All, I am encountering a peculiar problem in BI Quality System. It is an ABAP + JAVA stack with ABAP being the datasource.The problem I am facing is as below: 1.> I create a userid for eg testdm in my ABAP engine using su01. 2.> Now when I login i

  • Corporate Account/Group Key field in SD Reports?

    Hi, We would like to start populating the Corporate Account field on the General Data > Internal Control tab of the customer master.  This field is available in FI reporting (FBL5N  - as Group Key) but does anyone know if it is available in SD report

  • How to display two item groups Side by Side (Horizontal)

    I'm using Designer 9.04 and Hradstart 6.5 updated for designer 9.0.4. I have two item groups defined in one of the forms module. I wand to display them side-by-side but the generated form shows the item groups one below the other. Any idea how to sol

  • Firefox is running in the back ground, how can I turn it off to reinstall it?

    I tried to get into the save mode but Firefox still will not come up. I have uninstalled the program and reinstalled and still I can not get Firefox to come up on the screen. But when I shut down my computer it says it is running. It must e running t