Help with Nav Bar using Action Script 3

I am a flash NOOB to say the least.  Trying to teach myself.  Thank God for YouTube! LOL!  Anyway, I have build a Nav Bar for a site that has a sliding bar on the bottom of it that follows the mouse.  The problem with this nav bar is that when you change pages inside the site, the slider resets back to position X/Y = 0 and you really don't know what page you are on for sure without me having to identify each page in the page body itself.
Does anyone know of a way using action script to have the URL of the page sent to flash and in turn use that URL to set the X and Y position of the slider to the appropriate X and Y of the button on the Nav Bar for the page the user is on?
I have heard of using flash.external.ExternalInterface but now for sure how this really works nor if I can assign it to a variable for reference inside the action script.
Any help would be appreciated greatly!!

The Flash Nav Bar is at the top of each page.  But yes, when you click a button inside the flash nav bar it takes you away from your current page and loads a new one.  I am trying to tell the swf file which page it is on so I can set the X and Y position of the slider.
You will have to excuse me if I am so noob that I loose any of your replies to this as just as Flash is new to me, so is the lingo.
Thank you for your help.  I will research FlashVar but if you have any other ideas then I am open to them.

Similar Messages

  • Help with Nav Bar insert

    When I try to insert a Nav Bar, clicking OK in the Modify Nav
    Bar window gives the following message:
    "while executing onClick in Modify Nav Bar.htm, a JavaScript
    error occurred"
    Amateur user with no clue what this means,
    Jon

    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "zaphron" <[email protected]> wrote in
    message
    news:f4phcu$rj3$[email protected]..
    > When I try to insert a Nav Bar, clicking OK in the
    Modify Nav Bar window
    > gives
    > the following message:
    >
    > "while executing onClick in Modify Nav Bar.htm, a
    JavaScript error
    > occurred"
    >
    > Amateur user with no clue what this means,
    >
    > Jon
    >

  • Help with Web Service and Action Script

    Hi! I have a Web Service to which I should pass multiple
    parameters. I would like to implement it completely in Action
    Script for studing. What's happening is that in the call I pass 3
    parameters and the soap message created is repeating the first
    parameter. Let me explain better:
    Here is the declaration of the webService:
    quote:
    <mx:WebService
    id="ws"
    wsdl="
    http://127.0.0.1:8080/WS1/pessoaService/pessoa.wsdl">
    <mx:operation name="PesquisarPessoa">
    <mx:request>
    <PesquisarPessoaRequest>
    <id>{fieldId0.text}</id>
    <nome>{fieldNome0.text}</nome>
    <endereco>{fieldEndereco0.text}</endereco>
    </PesquisarPessoaRequest>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    Here is my action script which invokes the PesquisarPessoa
    operation:
    quote:
    private function exibirAlterarRegistro():void {
    ws.PesquisarPessoa(fieldId0.text, fieldNome0.text,
    fieldEndereco0.text);
    Here is the message catched by the web service (It repeats
    the first parameter):
    quote:
    <SOAP-ENV:Body>
    <schema:PesquisarPessoaRequest xmlns:schema="
    http://www.example.org/Pessoa">
    <schema:id>3</schema:id>
    <schema:nome>3</schema:nome>
    <schema:endereco>3</schema:endereco>
    </schema:PesquisarPessoaRequest>
    </SOAP-ENV:Body>
    Thanks!

    check the names of parameters published to the wsdl
    file.

  • Having trouble with combo box in action script 3

    I have created a combo box in action script 3.0 and have some things working and others not. I am creating a store for shirts, caps, etc..... so need different things and rates. Can anyone help me?
    [email protected]

    Creating a STORE for my website and used combo buttons with types of shirts for one button, 2nd button with color, and third with sizes.
    Using Action Script 3.0 making these work and having trouble.
    HELP meaning if you can connect to my computer remotely and see where my problem is. I am happy to pay if works.

  • How t o create breadcrumbs in flash cs 5 using action script 2.0?

    how t o create breadcrumbs in flash cs 5 using action script 2.0?
    If the user is going throungh some buttons then at last there is breadcrumb on last scene (like it is selected 1,2 or 3 button etc..)then final display should show last used button.
    Am besically looking for breadcrumb.Can anyone know how to create breadcrumb with using movie clip?or any other code?
    Can any one help me?

    My problem is when i cross first,second and then third scene then on third scene if there is any crieteria like to show the value which user have used like if user have selected "a" on first scene and "b" on second scene.then on third scene if there is criteria-
    first scene-
    second scene-
    then it should show value like-
    first scene-"a"
    second scene-"b"
    This "a","b", have separet sound file.It should show "a","b" text and also sound should play after click on button.
    Can any on help?

  • How to create volume slider for flash cs 5 using action script 2.0?

    how to create volume slider for flash cs 5 using action script 2.0?the output should like if user want to hear sound in slow pitch,medium pitch or high pitch(slow to high pitch anything).i have attach this sound to button with using this code:
    stop();
    mySoundBtn.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip");
              mySoundC.start(0, 10);  //10 represents the number of loops
              gotoAndPlay(2);
    This sound plays till 3-4 scene ahead.
    Can anyone help me?

    Hey thnx Ned.
    this sites are really helpful.but,i have used sound through button.so how it is possible to attavh the link with slider.i have created slider also.
    Below is my slider code for sound.
    onClipEvent (load) {
        mySound1 = new Sound();
        mySound1.loadSound((myScale)+"/"+(myTanpura)+"/"+(myTanpuraSwar)+"/"+(myTanpuraTempo)+".w av", true);
        mySound1.onSoundComplete = function() {
        mySound1.start();
        mySound1.start(0.058,999);
    onClipEvent (enterFrame) {
        downloaded = mySound1.getBytesLoaded();
        total = mySound1.getBytesTotal();
        if (downloaded != total) {
            _root.dl = "You have to buy this software...";
        } else {
            complete = 1;
            _root.dl = "";
        mySound1.setVolume(ratio * 2);
    This code is working for slider.I mean it scrolls the slider.but it dosent make any effect to sound.
    Below is my button code.
    stop();
    mySoundBtn4.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip4");
              mySoundC.start(0, 300);  //10 represents the number of loops
              gotoAndPlay("play1");
    this is on button's frame.not exactly on button.
    Button and Slider both are on diffrent scene.
    Can you plese help me out?

  • Using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?

    using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?

    Thanks for your swift response.
    That sounds like a good solution, but the code I have on frame 2 is this
    timer = 0;
    countup = function(){
    timer++;
    countupInterval = setInterval(countup,100);
    If I added the same actionscript to frame 3 which has a dynamic textbox with a variable timer attached wouldn't it just put the timer back to 0? What I want is the last known value that was given when it was in frame 2.
    I am thinking of temple run here, I am trying to caculate the total distance(set in the timer variable) from the previous try.
    Hope this makes sense.
    Chazwick

  • Item renderer using action script

    Hi,
    Can anybody tell me how to use item renderers using actions script,
    I have a data grid and iam using item renderer in mxml works fine but it is causing memory issues >
    So i want to know to use item renderers in action script to avoid memory issue.
    Thank You,
    Anu

    use the ClassFactory
    example:
    <!-- MyCombo.mxml -->
    <?xml version="1.0" encoding="utf-8"?>
    <mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml" >
    </mx:ComboBox >
    and in ActionScript
    private var myComboFac:ClassFactory = new ClassFactory(MyCombo);
    private function myFunction():void
        colCombo.itemRenderer = myComboFac;  
    and in DataGrid
    <mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:columns>
            <mx:DataGridColumn id="colCombo" />
        </mx:columns>
    </mx:DataGrid>
    regards
    Leonardo França
    Adobe Certified Expert Flex 3 with AIR
    Adobe Certified Expert Rich Internet Application Specialist v1.0
    Adobe Certified Expert Flash CS3 Professional
    Certified Professional Adobe Flex 2 Developer
    Adobe Certified Professional Flash MX 2004 Developer
    http://www.leonardofranca.com
    http://twitter/leofederal
    Manager AUGDF - Adobe User Group do Distrito Federal
    http://www.augdf.com.br
    http://twitter/augdf
    anu3000 escreveu:
    Hi,
    Can anybody tell me how to use item renderers using actions script,
    I have a data grid and iam using item renderer in mxml works fine but it is causing memory issues >
    So i want to know to use item renderers in action script to avoid memory issue.
    Thank You,
    Anu
    >

  • How to hide layers or movies using Action Script

    Hi All,
    I am using a few layers and would like to hide a specific
    layer using action scripts - I guess I dont mind doing it as a
    movie clip too (hiding the movide clip).
    Also I am interested in controling the final *.swf via an
    external command to hide that layer or movie clip. How do I do
    that?
    Thanks in advance,
    Steven

    rsagi: Layers are only layers while you are editing the fla.
    When compiled, layers are merged. I think the best way would be to
    use movieclips as containers and hide the "container movieclips".
    jlucchesi: from fl8_as2lr.pdf:
    "The alpha transparency value of the movie clip. Valid values
    are 0 (fully transparent) to 100
    (fully opaque). The default value is 100. Objects in a movie
    clip with _alpha set to 0 are
    active, even though they are invisible. For example, you can
    still click a button in a movie clip
    whose _alpha property is set to 0. To disable the button
    completely, you can set the movie
    clip's _visible property to false."

  • Increasing the speed for a certian frames in Flash Cs5 using Action Script 3

    I have 60 frames I want to increase the fps value for frames from 20 to 30, and the remaining frames fps value should remain the same
    Using Action Script 3 or Action Script 2
    Thank you and regards

    I have found a script online
    Q: How can I speed the frame rate or slow it down when the movie is playing? For example, I would like to slow the frame rate from the default of 20 fps to 15 fps from frame #80 to frame #150. Then frame rate should speed back up to 20 fps after frame #151, (fps = frames per second).
    A: One way is to use “interval”. An example of changing the speed of the movie from frame #80 to frame #150 is shown below.
    Create a key frame at frame #80 and place this script:
    var fps:Number = 80;
    var intervalID:Number = setInterval(this, “advanceFrame”, 1000/fps);
    stop();
    function advanceFrame() {
    clearInterval(intervalID);
    gotoAndStop(_currentframe+1);
    if (_currentframe<151) {
    intervalID = setInterval(this, “advanceFrame”, 1000/fps);
    } else {
    play();
    I have changed the values from 80 to 20 and currentframe value to 30
    I get syntax error
    at :
    intervalID = setInterval(this, “advanceFrame”, 1000/fps);
    and
    var intervalID:Number = setInterval(this, “advanceFrame”, 1000/fps);
    In flash cs5

  • 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.

  • Need help with a decimal align tab script for CS5

    I have a list that consists of 6 tabbed headers in helvetica bold, followed by a list of numbers that should right align under the headers, and these need to be in helvetica regular. The list is currently in arial font. Is it possible to change both the fonts and set the tabs to align right by using a script? If so, is there one 'out there' somewhere? I am desperate, this is for my daughter's basketball team and they need it asap!
    I am working in indesign cs5 and know how to load and run a script.
    Please HELP!
    Thank you
    Heather

    Hi,
    For some reason I can not download any attached documents from the forums, a bug?
    But anyway, send me an e-mail at "mail (curlya) nobrainer.dk" with the example doc, and i will have a look - no promisses :-)
    Thomas B. Nielsen
    http://www.nobrainer.dk

  • Ai file to psd using actions/script

    Hi, Does anyone know a way to turn an illustrator file in to a psd?
    I need to end up with a layered psd with all the layer names taken from the the illustrator layers.
    I also need the paths from those layers to be present as layers in the paths palette in the psd, ideally using the same names.
    I suspect this must be a fairly common problem.
    Any ideas, scripts or plugins?
    I think it's doable with actions and or scripting.
    Cheers,
    Tom B

    Thanks for the responses guys.
    I'm doing character artwork and need to create the separate parts of the character in groups of layers.
    Each of the body part groups contain 5 layers, with names like "outline", "texture",  "shading", etc.
    It's all very consistent and methodical and great if you want change the pose slightly or produce a Flash character from a digital painting.
    The line art that comprises the body parts is kept separate from the shading layers so I can re-stoke the line art in Photoshop when the character needs to be drawn at a different resolution (line-weight is an issue for us).
    Also the brushes available in Illustrator just aren't up to the kind of filter-riddled, messy, highly convincing digital painting I need to supply here.
    Potentially I could create a very efficient workflow, a single drawing being rendered out at a variety of resolutions, in a variety of styles, all utilising my wonderfully natural-media style Photoshop brushes, with the bonus of easy import in to Flash too.
    I tried the Export with layers method- worked for the most part with a few exceptions, thanks for the advice.
    Keeping the AI file layers simple isn't a problem- I'm such a newb they don't get complex!
    I don't believe it'll be a complete nightmare to accomplish as Adobe CS is supposed to lend it'self to just such a workflow.
    I think I'll try exporting the AI file paths to the layers bearing the same names using actions, as there seems no other built-in facility in either app to do this.
    I'd be interested to hear how one might use Smart Objects to the same end- they'd need to be a Smart Object that 's stroked in Photoshop, and editable like a normal Smart Object, am I missing something?
    Will let you know how I get on. If anyone has any brainwaves in the meantime, please don't hesitate to post more here
    Thanks,
    Tom B

  • Nav Bars and Buttons scripts...noob

    Hi
    New to web design and DW, I wonder what is the difference
    between a nav bar and a nav button? Is it that nav bars create a
    number of nav buttons of the same size all in a row (vertical or
    horizontal) while a button is an individual item that goes in a
    table cell?
    I would like to take a table row of 5 cells, and I would like
    5 navigation items that would pop out a half-dozen sub-menu items
    when I hover over the nav item. Would that be a Flash button from
    the Insert => Media menu? Or something from the Insert =>
    Image Objects options? Or neither of these?
    I have been looking around for some free DHTML code that I
    could cut and paste, but everyone now seems to be using Javascript
    which I do not understand. DHTML seems to be reserved for the
    cheesy Ebay effects now, or simple on/off buttons in a variety of
    garish colors. Does anyone have a DHTML snippet of one of these
    sliding or drop-down-type menus that I could cut and paste please?
    Or a link to one that doesn't require a degree in programming?
    Doesn't DW offer something like what I want in its internal menus?
    Perhaps I just don't know what I'm looking for?
    Thanks
    Phil

    nav bar is a series of nav buttons that may or maynot be put
    into tables.
    I usually use fireworks to create java nav bars because is
    creates all the code for you and you just drop it into DW, BUT
    while it is functional and easy, it is a mess and takes some
    getting used to and starting over (again and again) to get the code
    as clean as possible. I am just learning how to do it in CSS and it
    is way cleaner, easier to experiment with and you don't have to
    deal with all the little images, java, tables or cells.
    here are some resources if you want to go this way:
    http://movielibrary.lynda.com/html/modListing.asp?sid=29
    (training videos - very very very good)
    http://www.projectseven.com/tutorials/css/index.htm
    (training & canned navigation)
    http://css.maxdesign.com.au/listamatic/
    (css code for lost of navigation types)
    Good luck!!

  • How to create a COOL entrance page like this using action Script 3

    Hey dudes!
    so i have a project where i will be making a website.
    I will be using flash to make it interactive and visually appealing. I found a website with a really cool entrance page, please view it here:http://www.dvf.com/dvf/
    i don't really know much about the action script language so be as precise and clear please
    anyways whenever the mouse moves, the background looks like its moving.
    can someone please tell me how you could do this in flash???
    PLEEASSEEE i reallly reallly needd this. thanks so muchh

    Why don't you use several layers with appropriate alpha properties, and move these layers according to the mouse events?

Maybe you are looking for

  • T23 Ethernet Port

    Greetings, Thinkpad T23, 2647-2KU.  Some time ago the Ethernet port stopped working.  All the lights were correct, just could not ping to the outside.  Replaced the daughter board but still can't get out.  I do have wireless but would like a LAN conn

  • Mobile hotspots---what are the advantages?  better reception?

    What are the advantages of getting a mobile hotspot---such as the Verizon Jetpack 4G LTE Mobile Hotspot MiFi 4620L---over simply using the hotspot feature of a tablet (such as the Samsung Galaxy 7.7" or a Motorola Xyboard 8.2") or smartphone (such as

  • Where has the movie rental section gone on iTunes 11

    Where has the movie rental section gone in iTunes 11?  Have successfully downloaded but then cannot find them to view.

  • Java component - ora-01013 error when calling ws.createResultSetSQL

    Running Content Server 11.1.1.5 on WLS 10.3.5 in 64bit Linux environment. Same component/code runs great in dev environment, but consistently get this error in production. In production, query runs against view in same schema as system database. I ca

  • Error in Currency Conversion

    Hi Friends, While i am loading data from R/3 to BI using the 2lis_13_VDITM and 2lis_11_vaitm datasources i am gettig the error maintain conversion factors for aed/inr (currenct type 1001). I an gtting it for some data packets only. Please suggest me