Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    please help i am new to flash..navigation problem

    please help.
    i used html <object> tag and i embeded a .swf flash file inside my html page...
    everything worked great until here....

    now i want to let the visitor of my page to be able to navigate through my .swf file
    through my own navigation bar buttons that i want to put above the .swf file...

    i want my visitor to be able to press the avigation bar buttons to play and stop and forward and backward and rewind and so on...

    i dont want my visitor to press the right mouse button when he over the flash object to navigate i want to have my own navigation static bar above the flash....

    what solutions there is to this problem....?
    what is the best solution ?


    best regards.

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    While its possible to have buttons OUTSIDE of the SWF, which can be connected using JavaScript if the Flash is designed to accept input, you have to put the buttons INSIDE of the SWF. Are you able to edit the FLA? Even if you wanted to use JavaScript you would need to edit the FLA to allow this to occur. I don't recommend putting the buttons outside, because of the unreliability and the need for JavaScript.

    So best solution is the add the buttons inside of the FLA. I don't know what you mean by move forward or backwards, because there are multiple methods to navigating inside of a flash file. You can move by frames, or by frame labels. Generally you will use a button with the gotoAndPlay(); functions.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • Users who have thanked gnomeontherun for this post:

    zoro12 (10-27-2008)

  • #3
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    regards the .fla site

    i dont have any .fla file....i have only a .swf file !!
    i am so cofused.

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Well SWF files are exported by Flash for distribution across the web. So the FLA file is the working file. Without it you can't make changes to the way the file works.

    Think of it like this: Photoshop files are .PSD files, but you can export them for the web as .JPG or .PNG. You aren't able to make the changes to the .JPG or .PNG like you are in the .PSD, because its only the exported file.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • Users who have thanked gnomeontherun for this post:

    zoro12 (10-27-2008)

  • #5
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    thank you

    thank you , now i understand everything,everything worked great for me except the previous button funnction (i have builded a javascript buttons to navigate...) here is the code for this :

    function PrevFrameFlashMovie()
    {
    var flashMovie=getFlashMovieObject("cmixPflashMovie");
    // 4 is the index of the property for _currentFrame
    if (movieIsLoaded(flashMovie)) {
    var currentFrame=flashMovie.TGetProperty("/", 4);
    var curretFrameN=parseInt(currentFrame);

    if (curretFrameN<=1) {flashMovie.GotoFrame(17);}
    else{flashMovie.GotoFrame(curretFrameN-1);}

    } //if movie is loaded
    }

    the total frames umber is 18 so its 0-17....
    i dont know whats wrong with this code i tried everything i am frustrated..

    here is the nav link http://zoro12.angelfire.com/index.html
    as you can see all the buttons are working except the "rev"button!


    bye

  • #6
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts
    thanks ...i have solved the prev button problem ....here is the solution

    function PrevFrameFlashMovie()
    {
    var flashMovie=getFlashMovieObject("cmixPflashMovie");
    // 4 is the index of the property for _currentFrame
    if (movieIsLoaded(flashMovie))
    {
    var currentFrame=flashMovie.TGetProperty("/", 4);
    var currentFrameNum=parseInt(currentFrame);
    if (currentFrameNum<=1)
    {
    flashMovie.GotoFrame(17);
    }
    else {
    flashMovie.GotoFrame(currentFrameNum-2);
    }

    }
    }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •