-
1. Re: I am looking for FLASH Action Script Assistance.
Rob Dillon Sep 23, 2014 12:23 PM (in response to JayBebe)The best source would be if the person next to you was an Actionscript expert. The next best thing is to show us your code and the error that you get. The more information that you share, the more complete the response will be.
-
2. Re: I am looking for FLASH Action Script Assistance.
JayBebe Sep 24, 2014 2:04 PM (in response to Rob Dillon)Compiler errors: I have attempted to correct Source according to the suggestions by the compiler errors to no avail.
The SOURCE CODE appears below the COMPILER ERRORS.
Symbol 'slidingMenu', Layer 'as', Frame 1, Line 32, Column 17 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 46, Column 10 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 62, Column 17 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 77, Column 10 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 94, Column 17 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 95, Column 17 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 95, Column 21 1084: Syntax error: expecting rightparen before leftbrace. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 125, Column 32 1084: Syntax error: expecting rightparen before and. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 127, Column 36 1084: Syntax error: expecting rightparen before and. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 147, Column 28 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 147, Column 34 1084: Syntax error: expecting rightparen before _root. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 170, Column 17 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 171, Column 17 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 171, Column 21 1084: Syntax error: expecting rightparen before leftbrace. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 186, Column 32 1084: Syntax error: expecting rightparen before and. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 188, Column 36 1084: Syntax error: expecting rightparen before and. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 208, Column 28 1084: Syntax error: expecting identifier before greaterthan. Symbol 'slidingMenu', Layer 'as', Frame 1, Line 208, Column 34 1084: Syntax error: expecting rightparen before _root. ========================================================================================== ================================
Source for slidingMenu
slidingMenu.RollOverBoxes = function(boxNumber:Number) {
if (_root.link<>boxNumber) { _root.my_motion_finished = 0; var cBox:MovieClip = eval('box'+boxNumber); cBox.title_main.gotoAndPlay("s1"); for (var i = 1; i<=7; i++) { var cBox:MovieClip = eval('box'+i); xkoord = cBox.my_x; if (_root.splash_flag == 1) { if (boxNumber == 1) { slidingMenu.move_all(126); } else { slidingMenu.move_all(-126); } } if (i<>boxNumber) { if (i<boxNumber) { _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, xkoord-small_height_over, time_for_animation2, false); cBox.my_x = xkoord-small_height_over; } else { _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, xkoord+small_height_over, time_for_animation2, false); cBox.my_x = xkoord+small_height_over; } _root.myTween.onMotionFinished = function() { _root.my_motion_finished = 1; }; } } } };
slidingMenu.RollOutBoxes = function(boxNumber:Number) {
if (_root.link<>boxNumber) { _root.my_motion_finished2 = 0; var cBox:MovieClip = eval('box'+boxNumber); //cBox.title_main.gotoAndPlay("s2"); cBox.title_main.gotoAndPlay("s2"); for (var i = 1; i<=7; i++) { var cBox:MovieClip = eval('box'+i); xkoord = cBox.my_x; if (_root.splash_flag == 1) { if (boxNumber == 1) { slidingMenu.move_all(-126); } else { slidingMenu.move_all(-126); } } if (i<>boxNumber) { if (i<boxNumber) { _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, xkoord+small_height_over, time_for_animation2, false); cBox.my_x = xkoord+small_height_over; } else { _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, xkoord-small_height_over, time_for_animation2, false); cBox.my_x = xkoord-small_height_over; } _root.myTween.onMotionFinished = function() { _root.my_motion_finished2 = 1; }; } } } };
// Functions
slidingMenu.moveBoxes = function(boxNumber:Number) {
if (_root.link<>boxNumber) { if (boxNumber<>7) { small_height = 568; small_height_over = 0; } else { small_height = 208; small_height_over = 360; } if (boxNumber == 7) { _root.splash_flag = 1; slidingMenu.move_all(-126); } else { _root.splash_flag = 0; if (boxNumber == 5) { //slidingMenu.move_all(196-boxNumber*593+780); slidingMenu.move_all(136-(boxNumber-1)*593); } else { if (boxNumber == 1) { //slidingMenu.move_all(196-boxNumber*593+320); slidingMenu.move_all(136-(boxNumber-1)*593); } else { slidingMenu.move_all(136-(boxNumber-1)*593); } } } _root.my_motion_finished3 = 0; k = 1; //-1239.0 //eval('box'+_root.link).title_main.gotoAndPlay("s2"); for (var i = 1; i<=7; i++) { var cBox:MovieClip = eval('box'+i); if (_root.start_status == 0 and i<>boxNumber) { //cBox.title_main.gotoAndPlay("s3"); } else if (_root.link_prev == 0 and i == boxNumber) { //cBox.title_main.gotoAndPlay("s6"); } if (i == boxNumber) { _root.link_prev = _root.link; _root.link = boxNumber; cBox.pages.gotoAndPlay("s1"); //if (_root.link<>0) { //cBox.title_main.gotoAndPlay("s2"); //} var cBox2:MovieClip = eval('box'+_root.link_prev); cBox2.title_main.gotoAndPlay("s2"); _root.pic_num_prev = _root.pic_num; _root.pic_num = 1; _root.pic_num2_prev = _root.pic_num2; _root.pic_num2 = 1; _root.pic_num3_prev = _root.pic_num3; _root.pic_num3 = 1; _root.pic_num4_prev = _root.pic_num4; _root.pic_num4 = 1; if (_root.pic_num_prev<>1 or _root.pic_num2_prev<>1 or _root.pic_num3_prev<>1 or _root.pic_num4_prev<>1) { cBox2.title_main.area.gall.play(); } cBox2.pages.gotoAndPlay(cBox2.pages._totalframes-cBox2.pages._currentframe); _root.scroller.gotoAndStop(2); } xkoord = cBox.my_x; if (i<=boxNumber) { _root.myTween = new Tween(cBox, "_x", Back.easeOut, cBox._x, (k)*(small_height)-200, time_for_animation, false); cBox.my_x = (k)*(small_height)-200; } else { _root.myTween = new Tween(cBox, "_x", Back.easeOut, cBox._x, (k)*(small_height)+big_height-232, time_for_animation, false); cBox.my_x = (k)*(small_height)+big_height-232; } _root.myTween.onMotionFinished = function() { _root.my_motion_finished3 = 1; }; k++; } _root.start_status = 1; } };
slidingMenu.appearBoxes = function(boxNumber:Number) {
if (_root.link<>boxNumber) { if (boxNumber<>7) { if (boxNumber == 1) { slidingMenu.move_all(396-boxNumber*93); } else { slidingMenu.move_all(336-boxNumber*93); } } else { slidingMenu.move_all(-426); } _root.my_motion_finished3 = 0; k = 1; //-1239.0 //eval('box'+_root.link).title_main.gotoAndPlay("s2"); for (var i = 1; i<=7; i++) { var cBox:MovieClip = eval('box'+i); if (_root.start_status == 0 and i<>boxNumber) { //cBox.title_main.gotoAndPlay("s3"); } else if (_root.link_prev == 0 and i == boxNumber) { //cBox.title_main.gotoAndPlay("s6"); } if (i == boxNumber) { _root.link_prev = _root.link; _root.link = boxNumber; cBox.pages.gotoAndPlay("s1"); //if (_root.link<>0) { //cBox.title_main.gotoAndPlay("s2"); //} var cBox2:MovieClip = eval('box'+_root.link_prev); cBox2.title_main.gotoAndPlay("s2"); _root.pic_num_prev = _root.pic_num; _root.pic_num = 1; _root.pic_num2_prev = _root.pic_num2; _root.pic_num2 = 1; _root.pic_num3_prev = _root.pic_num3; _root.pic_num3 = 1; _root.pic_num4_prev = _root.pic_num4; _root.pic_num4 = 1; if (_root.pic_num_prev<>1 or _root.pic_num2_prev<>1 or _root.pic_num3_prev<>1 or _root.pic_num4_prev<>1) { cBox2.title_main.area.gall.play(); } cBox2.pages.gotoAndPlay(cBox2.pages._totalframes-cBox2.pages._currentframe); _root.scroller.gotoAndStop(2); } xkoord = cBox.my_x; if (i<=boxNumber) { _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, (k)*(small_height)-200, 5+int(70-k*5), false); cBox.my_x = (k)*(small_height)-200; } else { _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, (k)*(small_height)+big_height-232, time_for_animation+int(k*20), false); cBox.my_x = (k)*(small_height)+big_height-232; } _root.myTween.onMotionFinished = function() { _root.my_motion_finished3 = 1; }; k++; } _root.start_status = 1; } };
slidingMenu.StopBoxes = function() {
for (var i = 1; i<=7; i++) { var cBox:MovieClip = eval('box'+i); //_root.myTween = new Tween(cBox, "_x", Back.easeOut, cBox._x, xkoord-small_height_over, 1, false); _root.myTween.continueTo(1, 1); } };
slidingMenu.move_all = function(num) {
var cBox:MovieClip = _root.box1; _root.myTween_move_all = new Tween(cBox, "_x", Back.easeOut, cBox._x, num, 25, false); };
//slidingMenu.moveBoxes();
-
3. Re: I am looking for FLASH Action Script Assistance.
Rob Dillon Sep 25, 2014 10:31 AM (in response to JayBebe)OK.
I''m going to guess that this is supposed to be Actionscript 3. If that's true then there are some fundamental problems.
1. All of those references to "1084: Syntax error: expecting identifier before greaterthan." are referencing your use of "<>". This is not a logic operator in AS3. The logical operator for not equal to is "!=".
2. You didn't provide any variable declarations with your code, so I'll have to guess again: "_root" is not a keyword of any sort in AS3. Actually nothing with a leading underscore is. You can define a variable with a name such as _root if you like, but, again, I'm guessing that you did not do that. Here's a link to a short description of the problem: http://techgyo.com/index.php/_root-in-as3-actionscript-3/
3. "And" is used diffrently in AS3. If you want to evaluate the value of two comparisons: "if (_root.start_status == 0 and i<>boxNumber) {" then in AS3 it will look something like this: if((root.start_status == 0) && (i != boxNumber)) { . Aside from the use of "&&" note that there are additional parens used in the comparison.
If you sort those problems out, you should be well on your way to success.
-
4. Re: I am looking for FLASH Action Script Assistance.
JayBebe Sep 25, 2014 10:38 AM (in response to Rob Dillon)Rob are you available to make the fix on a fee basis?
-
5. Re: I am looking for FLASH Action Script Assistance.
Rob Dillon Sep 26, 2014 6:52 AM (in response to JayBebe)Thanks for the offer. If you are serious about your request, please send me a private message and include a description of the project, an explanation of the work that you want me to perform, your budget and a timeline for the project.
-
6. Re: I am looking for FLASH Action Script Assistance.
JayBebe Sep 26, 2014 9:36 AM (in response to Rob Dillon)Scope
I have an existing website published to Image Direct Sales: Purveyors of the Art of Direct Sales
The sliding menu can be demonstrated.
I would like to get the address changed that is currently published to the Contact.
But the Flash CC compiles with the errors that you have seen.
Therefore, I would like to send the FLA and source to a person that can change the address, recompile the FLA so I can make future changes using Flash CC.
I would like to get this done ASAP.
Please provide a quote to perform the scope of work described above. I will consider any reasonable offer.
You can reach me at jtbogle@gmail.com (aka JayBeBe)
-
7. Re: I am looking for FLASH Action Script Assistance.
Rob Dillon Sep 26, 2014 11:36 AM (in response to JayBebe)The reason that your file won't compile in Flash CC is that the Actionscript was created using AS2. Flash CC won't use that. This means that the whole file will need to be re-written in AS3. Since it needs a complete re-write, you should consider leaving Flash and writing the whole file in HTML5. This will give you both greater longevity and allow site visits from tablet and phone users.
You should be able to find any number of people who can do this work for you, in Flash or HTML5, close to you. I'm all the way across the country.


