Action Script Master Required

Can someone please help with this action script below.
I have a flash banner similar to the one on this website
www.grisoft.com except my script is setup to rollover the button
and automatically go to the url. I would like to roll over the
buttton, change the photo and then click to get url. I have attched
the action script below, also where do I put the url information?
If anyone can help, it would be greatly appreciated!
THE ACTION SCRIPT IS BELOW
function setSub(state)
for (i = 0; i <= _global.menuCnt; i++)
_root["sub" + state]["btn" + i].ii = i;
_root["sub" + state]["btn" + i].onRelease = function ()
getURL(_root["subURL" + state][this.ii - 1], "_self");
} // end of for
} // End of the function
function control(num)
if (num != 1)
_root.subBar.gotoAndPlay(2);
else
_root.subBar.gotoAndStop(1);
} // end if
_root.createEmptyMovieClip("enter", 1);
_root.enter.onEnterFrame = function ()
_root.select._x = _root.select._x + speed * (_root["mainBtn"
+ num]._x - _root.select._x);
_root.photo._x = _root.photo._x + speed * ((num - 1) * -800
- _root.photo._x);
_root.copyphoto._x = _root.copyphoto._x + speed * ((num - 1)
* 800 - _root.copyphoto._x);
TX = (num - 1) * -800;
if (Math.round(_root.photo._x) <= TX &&
Math.round(_root.photo._x) >= TX)
subView(num);
delete _root.enter["onEnterFrame"];
} // end if
} // End of the function
function ini()
var i = 1;
while (i <= _global.menuCnt)
_root["sub" + i]._visible = false;
i++;
} // end while
} // End of the function
function subView(num)
_root["sub" + (num - 1)]._visible = true;
} // End of the function
function imgSort()
num = 0;
var i = 1;
while (i <= _global.menuCnt)
_root.photo["photo" + i]._x = num * _root.photo["photo" +
i]._width;
_root.copyphoto["photo" + i]._x = num * -1 *
_root.copyphoto["photo" + i]._width;
num++;
i++;
} // end while
} // End of the function
mainURL = new Array("", "", "", "", "");
subURL1 = new Array("88.html", "88.html", "88.html",
"88.html");
subURL2 = new Array("88.html", "88.html", "88.html",
"88.html");
subURL3 = new Array("88.html", "88.html", "88.html",
"88.html");
subURL4 = new Array("88.html", "88.html", "88.html",
"88.html");
_global.menuCnt = 5;
for (i = 1; i <= _global.menuCnt; i++)
_root["mainBtn" + i].ii = i;
_root["mainBtn" + i].onRelease = function ()
control(this.ii);
ini();
setSub(this.ii);
getURL(mainURL[this.ii - 1], "_self");
} // end of for
_root.onLoad = function ()
ini();
imgSort();
speed = 0.300000;
setSub(1);
setSub(2);
setSub(3);
setSub(4);

You could use Flash vars to pass in a URL, so you can specify what the URL should be for any particular page.
//SET A FLASH VAR ON THE HTML PAGE
<PARAM NAME=url VALUE="http://lakelawnmetairie.com/plan_ahead/preplanning.html">
<EMBED src="your.swf" FlashVars="url=http://lakelawnmetairie.com/plan_ahead/preplanning.html"></EMBED>
//SET A VARIABLE FOR THE FLASH VAR INSIDE OF FLASH
linkURL = root.loaderInfo.parameters['url'];
//TARGET THE SET 'LINKURL' VARIABLE AND SEND USER TO THE LINK
whyPlanAhead_btn.addEventListener(MouseEvent.CLICK, whyPlanAhead);
function whyPlanAhead(e:MouseEvent):void{
    navigateToURL(new URLRequest(linkURL),"_self");

Similar Messages

  • Is Import to DRM by action script the only way to build hierarchies?

    Hi,
    If I am getting by source file as a big generation wise excel format and even properties in excel sheet with large number of custom property field values.
    Is making a Import action script out of the excel to load to DRM is the only way, or do we hav any other option to load these hierechies to DRM from excel without going fpr manual efforts in making scripts one by one for large no of dimensions.

    hi, the import functionality can build hierarchies. It has a draw back of only building NEW hierarchies. So if your source master hierarchy is external to DRM, action script or API is best way, if it is to be automated. If this is only be imported/updated once a month the import can be used to create the "new" version. You can use then blend update your old version.

  • On-line Action script course?

    Can anyone recommend an on-line Action script course?
    I’m working on a project where that will require more coding then I am use to dealing with.
    So I need to raise my skill set fast. I’m not sure where to receive the best time and financial investment.
    It would be excellent if I could collaborate with a seasoned professional to learn more.
    If you know of a site or someone on-line please let me know.
    Thank you!

    Have you looked at Lynda.com?   They have a lot of excellent tutorials on Flash and everything else too.  Seems to be well worth the $$.  Otherwise learning through these forums really helps a lot!!

  • Newbie here, with button action script issue

    I have just started to scrach the surface with actionscript
    and I have attempted to assign it to buttons. Much to my supprise,
    it worked, sort of... All my buttons require a double click the
    first time you click on them. I was able to put
    this together, by
    using the following action script for all my buttons:
    on (release) {
    ybutton.onRelease = function() {
    gotoAndStop(28);
    So I have 2 questions. What actionscript will give me the
    single click that I am looking for? Also, is there any shortcut to
    making a broad change? In other words, will have to switch out the
    code for every button on 37 frames?
    Thank you

    1: // You needed two clicks because you have 2 onRelease.
    on (release) {
    gotoAndStop(28);
    2: Yes, it'll go fast I would copy the above and paste where
    needed then just change the frame #.

  • Using  FDM Import Action script to import data from ERPI table "tdataseg_t"

    Hi Experts
    I have extracted data from EBS using ERPI and loaded into the intermediate table "tdataseg_t"
    I am trying to use Import Action script within FDM to extract data from "tdataseg_t" table (where ERPI extract data is stored) as i could not use the normal import script.
    Requirement : I have to restrict the custom 2 dimension based on Account dimension.
    Dim Account
    Account = ???? ( i am struck here)
    If Account = 1000 to 5000 Then
    Custom2 = Right( product , 5)
    End If
    but , I could not find the exact syntax to call the Account dimension from the "tdataseg_t" table.
    Please Advise
    Thanks
    Sak
    Edited by: user12292415 on Feb 26, 2012 1:19 AM

    Hello,
    Importing data via a manual script defeats the purpose of ERPi. As it will not provide you an audit trail, drill-through/drill-back, etc.
    Your best bet is to use the default settings by the software. Just because it returns more records than you want is not a bad thing. You can conditionally change/alter the information either in an EventScript inside of FDM or by mapping the un-needed information to IGNORE.
    Thank you,

  • Action Script Import

    Hey Guys I love the idea and I know it is a daunting task to convert .fla into html5. I am working on removing any action script in any of my .fla files so that, 1: they may convert, but in doing so I realized that It may be possible to create a seperate stand alone action script...place it in the server, and the import said script into html5 the similar way you would when calling an image href, but the problem is... How if at all would I be able to import script into html5, and/or java for each individual scene related to a large .fla? My thoughts are I would need to create a new individual (Java class's) related to each individual action script scene and then import those into the html5 code! I am on track with the thought, or am I just crazy...
    In order to accheive this I would need to import the action script standalone into the root folder any recommendations?
    For example: stop(); frame 10 scene 1 layer Bck_Ground
    Then file name would be: layer 1 Bck_Ground.AS
    Java class  1Bckground. js
    .requires(
    bck_ground.as
    This only as an eample of thought not real code!
    and or the ssame ideal in HTML5?
    Could this work?
    Thanks James

    Then no offense to Adobe, but this to me is an intermediate way of creating an animated gif...Granted if I wanted to create a animated gif from.swf I have to go through several steps, but at least I don't get the annoyance of ".fla not supported"! My input to Adobe in your Wallaby creation is this...Please consider the creation of a re-write enging for pre-existing action script that will interpelate the data of each scene, and layer directly from the .fla, and then import it into several native languages that the user can select such as java, html5, possibly C, xml, and be compatible for Mobile Web, IOS, SDK, and Stand-Alone Java!, and export all media assets into a seperate file folder with the a fore mentioned extensions placed and housed with coresponding media...After-all none of us Flash Heads really want to re-write code the hours of code we spent developing for a product that can't or won't be seen by mobile applicatioins. If you can do that I would pay my top dollar for it...and I would think everybody else would agree with me! Thanks for your hard work...keep plugging along!
    James

  • Action Script to add a parent node value to the top node

    I need to add a new parent node value to a hierarchy for the top node.  The action script parameters to add a node is "Add|Version|Hierarchy|Node|Parent Node|Leaf property".  I am at a loss on what to do for the top node since there is no Parent Node above this top level, but the parameters require it.  I have reviewed both the user manual and admin manual, but did not find any assistance.  Can anybody help me?
    Thanks!

    You have the answer with you, don't get confused between Parent Node and Top Node in this context, while Adding a new node your Top Node will become your Parent Node.
    "Add|Version|Hierarchy|Node|Parent Node|Leaf property"
    If you still have confusion, simply do the below,
    1. Right Click on your Top Node and Add a new Leaf or Limb Node manually
    2. Once added, go back to Home -> Script
    3. Select Source Type as Transaction Log and then select the newly added node and Load
    4. In the bottom select Script -> Download -> Download as Action Script.
    5. Open in a Notepad and leverage it to create your new script.

  • Mapping action script object to mx:model object

    Hi all,
    I am having an action script class and an mx:model element
    with same elements. I want to assign an action script object to
    this mx:model. How can I do that one?
    Let me state it clearly.
    Say, my action script class contains two elements - user and
    rollno with required getter and setter methods.
    And I am having an mx:model element with the following
    format.
    <mx:model id="data">
    <data>
    <user/>
    <rollno/>
    </data>
    </mx:model>
    I want to assign an instance of action script class to this
    model object.
    I tried extending action action script class from Objectproxy
    and used data=actionscriptinstance.
    But it's not working properly.
    Is there anyway I can do this one?
    Thanks in advance

    The quick answer:
    <mx:model id="data">
    <data>
    <user>{ myASObj.user }</user>
    <rollno>{ myASObj.rollNo}</rollno>
    </data>
    </mx:model>
    The bigger question might be, "Why have the mx:Model?"
    The Model tag is all Strings, so you lose data typing.
    Why not just create a value object (VO) for your user data
    and pass that around?
    package samples.user {
    [Bindable]
    [RemoteClass(alias="samples.user.User")]
    public class User {
    public var user:String;
    public var rollNo:int;
    Then when the result data returns, cast to the VO.
    public var user:User = (eventObj.result as User)

  • Receive Action Script Error #2130

    My system is running Windows 8 and IE10. I have continuing problems installing and using Flash Player. I have read and reread the online procedures, checks, and solutions without much luck. Most recently after several failed attempts I was able to download the latest version of Flash Player for Windows 8 with Internet Explorer. My email account is with Outlook, which defaults to MSN.com when I sign out. When the MSN.com homepage appears I shortly receive an error message that says there is an Action Script Error #2130 and a list of affected files, including flash. I am unable to perform any other functions while this message is displayed. The message block gives me two options: Dismiss or Continue. The error message clears when I click either option, and the MSN.com homepage seems to operate normally. However, there are other issues with MSN.com which I have addressed to their support. Basically, if I click on a news headline in order to read the full article, the screen that appears is mis-formatted and unreadable. Ihave a screen capture of the error message noted above. I have tried the solutions suggested in Adobe Support, but they did not resolve the underlying issues. Please help, /hugh
    I noticed a related RE: discussion on the side of my question. When I went there I followed staff instructions to another person with similar problems. When I checked my installed version, I saw that it was the latest version for my system, but also saw debug at the bottom of the page. I then proceeded to uninstall Flash Player as staff instructions said to do. After I received the message that uninstall was successful, I again checked my installled version. It was the same as before including that it was the debug version. I repeated this action several times with the same result. Don't understand what this new problem is or how to proceed from this point.

    Thanks Pat - Sorry if I have been terse. This is not a good time for me as my Old Man [not my Father] is in failing health and requires a lot of care. Didn't need the added burden of two known problems in my computer system which no one seems to know the answer to. At least part of the problem with my email/MSN.com went away. At present I do not get an ActionScript Error #2130 when I sign out of my Outlook email account, which defaults to MSN.com. The other problem with MSN.com is still present, but so far I have not received any support from their techies, just several boilerplate messages.
    However, you are helping with my problem with Flash Player. I discovered it when trying to find the cause for the ActionScript error. I went to Adobe Support Center and began with the several guide sheets I found there. When I did the steps to find the installed] version, which by the way are contained on several different sheets, I found the version of FP installed was not the latest version. I am aware that as I have Windows 8 and IE10 changes should come down from Microsoft, so I was surprised. I tried Update Windows but there were no updates available other than an optional update to install Bing Desktop which I have installed several times, but it remains on the list as an optional update that has not been installed. As I have thought and said many times since I upgraded to Windows 8, it should have been more thoroughly debugged before they rushed it to the retail market. But that too is not an Adobe problem.
    I tried all the procedures and checks on all of the Adobe FP guide sheets I found on their support center website several times before to my surprise when I redid the steps to find the currently installed version the lastest version of FP: FP 11.7.700.169 was shown as the installed version. This was over a week ago and after I found Guide Sheet: Adobe Flash Player Support Center/Downloads at: http://www.adobe.com/support/flashplayer/downloads.html. In addition to providing a path to download the latest version of FP, it provides a list of critical updates and downloads to correct known problems in Flash Player. I downloaded every update I found that seemed to apply to my system. 
    I then checked to see if the Flash Player Action Script error message was now cleared. To my dismay it was not. Ever since I have been trying to correct that problem. It was not until after I posted this question here and you started to respond and discovered that although the latest version of FP is now installed - it is the DEBUG version, which you have told me I must uninstall and then install the standard version. That is where I learned that even though I am able to download the Adobe Flash Player Uninstaller and run it and get a message that the uninstall was successful, when I check using the Find Version procedure, I am told the latest version of FP is still installed and it is the DEBUG version.
    I have tried reinstalling the latest version, but this procedure does not work either. When I click to download Flash Player all I get is a blank Adobe box on the screen. It asks me to select a region. I select the US, There is a DOWNLOAD tab at the top which I also select. Then nothing happens. This tell me something is not working properly with this procedure.
    So I am stuck at a point where Adobe Find Version procedures tells me the latest DEBUG version of Flash Player for my system, FP11.7.700.169, is installed in my system and working properly,but I am told I must uninstall the DEBUG version and install the standard version of FP. However, the Adobe Flash Player Uninstaller does not work on my system and the Adobe Flash Player Installer does not work on my system.
    On the other hand as far as I have been able to determine Flash player is working properly as I am able to view videos on various websites, including MSN.com. And after deleting several Flash Player files I searched and found, the FP ActionScript Error #2130 has apparently stopping showing up when I am defaulted to MSN.com when I sign out of OUTlook email. I am so confused, irritated, and frustrated. I agree someone from Adobe Support should take a look at what I am reporting and determine if I have an Adobe Flash Player problem, and if so, FIX IT!
    Thanks again for taking the lead Pat, /hugh

  • My CS4 crashes when opening a new action script 3

    Hello folks,
    I’m new to Flash and am currently taking a class, so please forgive me if this turns out to be an obvious fix, but I’m using flash for the first time and have been trying to open a new flash file: action script 3 but haven’t been successful cause the program immediately crashes. I’ve checked to confirm that my laptop meets the requirements so I’m not sure what it could be.
    …Any suggestions? I’ve attached the error reports.
    Thanks for your time.
    signed,
    Hopelessly untech savy

    Thanks for the reply Ned. It does crash when opening AC2 also. And I do have the most current updates. Correction: it does open under "guest" user account in both ac2 and ac3.
    FYI. the other apps in CS4 work in my profile. And my laptop is new and meets the standards to run the app.
    ...Any suggestions? I would be most greatful for any feedback in correcting this issue.
    Thanks for your time.
    Naomi

  • Photoshop action script

    Hello,
    Can someone give me an action script which could position my layer on specific Y location depending on height of text. I have a hundreds of PSD files with text. Each text has a different height. I need a script which would put the text of every PSD file so that Y position is always 8.5 cm but that Y position should be across the middle of text. My canvas is always the same size.
    Thank You very much!!

    It would be quite easy to write such a Photoshop script if one had the specifics which you did not provide. Action Script is a Flash  feature.  However a Photoshop can most likely be written to what you want here a link for you
    Adobe Photoshop Scripting | Adobe Developer Connection
    You should also be able to record an action to do what you want if all the text layer are in the same relative place in the layers stack. By aligning the text layer to a selection the action makes. Actions do not require programming you just need to know Photoshop and how to record actions.

  • Show the user action script function is in progress

    Hi friends,
    iam using action script code to store bitmap images and
    display in the required format.
    This code takes noticable time to complete.How can i show the
    user that the operation is in progress .
    regards,
    Krishna

    The bar won't animate unless you give it a source.
    Also, it won't animate if a loop clogs up the CPU.
    Consider using callLater() for step by step execution of the
    function in sync with the application framerate.

  • I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed

    I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed edit
    Details

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • How do I use the button states in an action script?

    In my Captivate 8 project I use smart shape as buttons. The buttons have different images presented dependent on the state of the button. I have also created a simple action script that shows what happens when the button is pressed. When the button has been pressed the normal state of the button appear. I, however, want the down state of the button to remain visible util the user presses another button. How do I accomplish this? Is there variables for the buttons different state or how can I create that?
    BR,
    Madeleine

    When you talk about 'actionscript' do you mean advanced or shared actions? You cannot write actionscript within Captivate, only Javascript. If you use advanced/shared actions they'll be converted on runtime to either Actionscript (for SWF output) or Javascript (for HTML5 output).
    The states in shape buttons are the normal way buttons behave (not only in Flash). If you are indeed using shared/advanced actions, and you want the down state to remain until the next shape button is clicked, you'll have to go the way described by iFlashAppsToo. Create shapes that have the look of the down state, make them initially invisible and group all those shapes on one slide. Add two statements to the shared/advanced action (please do use shared actions, you'll save time):
    Hide Group   so that eventual down mimicked states on previously clicked buttons disappear
    Show Im_Downx    to show the down image for that button

  • Adding data to cfgrid using action script

    how can i add data to a grid row called name in action
    script. i have a cfselect control containing name of students and i
    want to add the values of the selected student from the list to
    grid.

    Did you add your instance of SpectrumCanvas to the stage with addChild()?
    If so, you should boil your posted code to a more simple example.
    If this post answered your question or helped, please mark it as such.

Maybe you are looking for