Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 20
  1. #1
    Join Date
    Oct 2006
    Posts
    14

    .swf in Web Object - can't jump to AMS page

    Hi All!

    I'm evaluating AMS 6, but I need some help please. Please bear with me this is a long post

    Alrighty, I have embedded this flash Calender (very cool, check it out here: http://ctl.mc.maricopa.edu/_ctl_SD/r...LCalendar.html ) inside a Web Object in an AMS 6 project.

    I have changed the XML for the calendar in one of the days according to the AMS help for "Interact with Embedded Web Objects"(to navigate to a AMS page).

    My aim is to have a HTML link in a day's comments, which a user will click, then jump to the relevant AMS page. Now, according to the Help this is easily done with:

    <a href="#Page2">Go to Page 2</a>

    and the code in the "On Navigate event" for the Web Object like so:

    -- search from right to left for a number sign (#)
    nPos = String.ReverseFind(e_URL, "#", true);

    -- did we find a # ?
    if nPos then
    -- get everything to the right of the #
    strPage = String.Mid(e_URL, nPos + 1, -1);

    --[[ jump to the page name that we extracted from
    the URL. If there is no page by that name,
    the Page.Jump won't do anything. ]]
    Page.Jump(strPage);
    end

    Now, the problem is that when I click on the HTML link in the calendar(a flash object imbedded in a Web Object remember), it does not navigate to the AMS page. If I have the same link ("<a href="#Page2">Go to Page 2</a>") in the body of the HTML below the flash object, and when clicking on it, it works 100%.

    I checked, and the "e_URL" variable, when clicking on the link in the Flash calendar, does not get populated correctly. It seems as though the "e_URL" variable is not populated at all when following the link in the flash object.

    I also tried this with Multimedia Builder(MMB) and it works great. But AMS is in all other functionality superior, so I would like to get it to work in AMS.

    Anyway, any insights will be much appreciated.

    PS: Just a pity AMS is so much more expensive than MMB

  2. #2
    Join Date
    Nov 2006
    Posts
    306
    AMS is very userfriendly instead of many other program languages.
    Im using AMS for making applications in fast time.
    Otherwise im using C++ and Java for more complex things.
    You get worth for your money, trust me.
    Otherwisde go open-source like java.

  3. #3
    Join Date
    Oct 2006
    Posts
    14
    Hi Casper, thanks for the reply. I am very impressed with AMS so far, I am just stuck with this problem at this time which is driving me nuts.

    Is there ANYBODY that might have a solution to this?

    It is very strange that the destination URL is not being populated in "e_URL".

    Any help will be greatly appreciated.

  4. #4
    Join Date
    Oct 2006
    Posts
    14

    e_URL not being populated with destination URL

    Apologies for the shameless *BUMP* , but surely somebody must have come across this before?

    Thanks!

  5. #5
    Join Date
    Nov 2006
    Posts
    306
    could you post the application as an attachment?
    than I can have a look at your problem or post your code for pageJump.
    I need some more specific information, as for
    <a href="#Page2">Go to Page 2</a>.
    The error could be everywhere yet.

    --[[ jump to the page name that we extracted from
    the URL. If there is no page by that name,
    the Page.Jump won't do anything.
    ]]
    Page.Jump(strPage);
    end
    Maybe pagename isnt correct ?
    or if e_URL == .... then .... ??

    Maybe i can help you out if you give me more specific information.

    Kind Regards,
    Casper

  6. #6
    Join Date
    Oct 2006
    Posts
    14
    Hi Casper, thanks for the effort, it is much appreciated.

    Attached is the project. You will see that in the Web Object, there is a normal link "Go to Page 2", that when you click on it, takes you to page 2. This is how it should work.

    In the Calendar, go to November 26th. You will see there is also a link to page two (it is exactly the same HTML as the one outside the .swf). When you click on it, it does NOT go to page two.

    I have set up a dialog that displays the contents of the e_URL variable. Here one can see the problem, the e_URL variable is not being correctly populated when clicking on the link in the calendar(under 26 Nov). It seems as if AMS is not passing the destination URL from the flash object into e_URL.

    Thanks again for helping out
    Attached Files

  7. #7
    Join Date
    Nov 2006
    Posts
    306
    Hey DrCode,

    np for helping
    Im at work, when I'm home, I'll put the source code on this post.
    Maybe that helps you out.
    Can't do much as I've got no AMS on work :(
    I'll be back in 6 hours

    Good luck meanwhile

    -Casper

  8. #8
    Join Date
    Oct 2006
    Posts
    14
    Thanks Casper, looking forward to hear what wisdom you might come up with

    As a work around(hopefully only until this is resolved and it works in AMS), I am doing the calendar in MMB and the rest of the App in AMS. But it complicates things and I would like to have it all working in AMS rather.


  9. #9
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    @DrCode

    I'm not sure if there is a way to get anything useful (like URL navigation events) out of a flash object without using FSCommands. I took a look at the link you provided and it sounds like the source code for the flash object is not provided. Perhaps you could put in a feature request to the developer to have the calendar pass a "nav" FSCommand containing the target URL as an argument. Then you could embed the calendar into your project as a flash object (as opposed to a web object) and trap the info you need to jump pages. I think you'll find that the appearance of the calendar is a little clearer in a flash object as well.

    I did some searching and came up with the link below as an alternative in case you can't get any love from the author of the code you are currently using:

    He sells a flash based calendar for 5 bucks and provides the source code if you're up for that:
    http://www.tufat.com/s_advanced_flash_calendar.htm

    I've also seen a few decent integrations of the google calendar that might work for your purposes, but would require your users to be connected to the Internet.
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  10. #10
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Quote Originally Posted by DrCode View Post
    Attached is the project. You will see that in the Web Object, there is a normal link "Go to Page 2", that when you click on it, takes you to page 2. This is how it should work.

    In the Calendar, go to November 26th. You will see there is also a link to page two (it is exactly the same HTML as the one outside the .swf). When you click on it, it does NOT go to page two.
    Strange...I just tried your project here and it works exactly as intended -- I click on the link, it shows the contents of e_URL in a dialog (including the #Page2 part), and then jumps to Page2.

    (I tested it on version 6.0.4.0.)
    --[[ Indigo Rose Software Developer ]]

  11. #11
    Join Date
    Oct 2006
    Posts
    14
    Hi TJS and Lorne, thanks so much for your help.

    @TJS: The code (.fla file) is freely available(follow the link in my first post), the calendar has a creative commons license. I will hack around the .fla and try some of your suggestions. The tricky part is that the text for each day is pulled in from an XML file, and thus variable, so it would not be suitable for hard coding.

    @Lorne: Did you try the link IN THE CALENDAR that shows up when you click on Nov the 26th? The one below the calendar is there for testing and yes, that one works fine. It is the one in the calendar that I cannot get working.

    Thanks for the assistance guys!

  12. #12
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Quote Originally Posted by DrCode View Post
    @Lorne: Did you try the link IN THE CALENDAR that shows up when you click on Nov the 26th? The one below the calendar is there for testing and yes, that one works fine. It is the one in the calendar that I cannot get working.
    Yes, the link in the calendar is the one I tested.
    --[[ Indigo Rose Software Developer ]]

  13. #13
    Join Date
    Oct 2006
    Posts
    14
    Lorne, that is FANTASTIC news. Bad news is that I don't know what I am doing wrong on my side then

    So, just to double-check, you followed both the one in Nov 26 and the one below the calender in the Web Object and BOTH worked?? e_URL had the correct info?

    I have another PC than the one I have been developing and will test the same project on that one.

    You are also using 6.0.4.0, no new updates or patches applied that is not in the evaluation version?

    Sorry for sounding like a "non-believer" - just trying to find out what I am doing wrong

    CASPER, or anybody else that can test the project, please let me know if you are having the same success as Lorne.

    Thanks Lorne!

  14. #14
    Join Date
    Oct 2006
    Posts
    14
    *SIGH* It fails on my other PC too.

    I'll download the latest Flash player and see if that makes a difference ...

  15. #15
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Quote Originally Posted by DrCode View Post
    Lorne, that is FANTASTIC news. Bad news is that I don't know what I am doing wrong on my side then


    So, just to double-check, you followed both the one in Nov 26 and the one below the calender in the Web Object and BOTH worked?? e_URL had the correct info?
    Yeppers.

    You are also using 6.0.4.0, no new updates or patches applied that is not in the evaluation version?
    Yep, plain vanilla 6.0.4.0.

    Sorry for sounding like a "non-believer" - just trying to find out what I am doing wrong


    It might have something to do with the version of iexplore being used...I have IE7 installed on this system.

    (Specifically: 7.0.5730.11)
    --[[ Indigo Rose Software Developer ]]

Page 1 of 2 1 2 LastLast

Similar Threads

  1. SIngle Page with A web object help
    By user1452 in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 07-08-2006, 01:21 AM
  2. HOW TO: Return a Web Browser Object to the Original URL after a Page Jump
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 02-03-2003, 09:18 AM
  3. Web Browser Object and AMS Runtime Error
    By Worm in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 01-13-2003, 06:40 PM
  4. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM
  5. Replies: 0
    Last Post: 10-04-2002, 10:09 AM

Posting Permissions

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