User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17

Thread: GetDomain$ does not work with HTTPS://

  1. #11
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: GetDomain$ does not work with HTTPS://

    Ther code for this function uses the LocalConnection object in Flash. The domain is returned by a variable in the object, that contains it. I dont do anything with the name, it comes direct out of Flash.
    I have search for http/https problems with localconnection on the internet and found nothing.
    So I dont think I can correct this.

  2. #12
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: GetDomain$ does not work with HTTPS://

    Andy, if Javascript works alright, why not use a Javascript function?

    Code:
    getDomain = function()
    {
        return window.top.location.hostname
    }
    Come to think of it (Francois ), the Flash Player object could probably do that internally via the ExternalInterface, as a fallback for whatever it's doing currently:

    Code:
    var domain:String = flash.external.ExternalInterface.call
        ("function() { return window.top.location.hostname }").toString()

  3. #13
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: GetDomain$ does not work with HTTPS://

    Hi Jamie, that's a good suggestion too, although it still amounts to the same situation of needing to use javascript to get to a new page. Would be excellent if you can hide this away from the developer but if not I shall use the work around.

    Another question then... is it possible to support relative URL's in the Flash object as this would solve the problem. Currently relative URL's dont work, ie:

    OPEN URL [ "/mypage.html" ] in current window

    Comes out something like http:///mypage.html int he browser address bar.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  4. #14
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: GetDomain$ does not work with HTTPS://

    Thanks Jamie, I'll implement this.

  5. #15
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: GetDomain$ does not work with HTTPS://

    Just realised that I have already implemented this Javascript function. In the GetWindowDomain function. You should try it, maybe it works.

  6. #16
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: GetDomain$ does not work with HTTPS://

    Quote Originally Posted by Francois
    Just realised that I have already implemented this Javascript function. In the GetWindowDomain function.
    I just wanted to point out that this function seems to return an empty string after the .swf was embedded with MochiMedia's Live Updates. Kind of annoying. Reported here.

  7. #17
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: GetDomain$ does not work with HTTPS://

    If this is the case, I do not know what to do. Jamie might have an idea?

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Get Object with https:// (secure)
    By manwich in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th May 2013, 02:04 PM
  2. Bug in Flash Object - Https links
    By BHGames in forum SWF/Flash Export Module Version 2.0
    Replies: 14
    Last Post: 9th May 2011, 09:24 AM
  3. Why does this not work
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th July 2009, 08:23 AM
  4. HTTPS in mmf2 help needed
    By SEELE in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th September 2008, 10:39 AM
  5. Should this work?
    By Clicktastic in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 19th August 2006, 03:08 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
  •