User Tag List

Results 1 to 9 of 9

Thread: web view object problem

  1. #1
    Clicker Fusion 2.5SWF Export Module

    Join Date
    Oct 2007
    Posts
    875
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation web view object problem

    i started creating a little app where i show the web through the web view object

    i have 2 small problems, i would like to keep everything inside the web view object, because actually when i click on a website and then i click on an image url it opens/launch the default browser, how to keep that inside, i tried to put "_self" but i dont know what kind of function i need to put to achieve that.

    second problem is,

    i have a list of urls inside a txt file like this:
    "www.url01.com",
    "www.url02.com",
    etc

    how to tell to my web view object when the actual page is = to one of those in my list then its redirected to a new url?

    thanks to everyone

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. You need to change the mode to Internal. (Navigation -> Mode)
    2. You can do this by using the list object.

    Create a list object and have every URL you want to redirect in that list. Then create another list that has the new url you want to redirect to.
    Make sure that they are in order.

    List 1:
    "www.url01.com"
    "www.url02.com"
    "www.url03.com"

    List 2:
    "www.redirecturl01.com"
    "www.redirecturl02.com"
    "www.redirecturl03.com"

    Then you can use the "Find Exact" expression for the list.


    Code:
    Clicks on button "Go"
    + FindStringExact( "List", Edittext$( "Edit Box" ), -1 ) = -1
    ---------------------------------------------------------------
    Go to Webpage : Edittext$( "Edit Box" )
    
    Clicks on button "Go"
    + FindStringExact( "List", Edittext$( "Edit Box" ), -1 ) ~ -1
    ---------------------------------------------------------------
    Go to Webpage: List Line Text$( "List 2", FindStringExact( "List", Edittext$( "Edit Box" ), -1 ) )
    When you use the FindString or FindStringExact with the flag -1, then it will return -1 if it doesn't find it in the list, if it finds it it will return the line number. So you want to use that line number from List 1 to get the redirected url from List 2. So if the user goes to the URL in line 5 of List 1, then he will get redirected to the URL in line 5 of List 2.

  3. #3
    Clicker Fusion 2.5SWF Export Module

    Join Date
    Oct 2007
    Posts
    875
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much Decal im going to try that but all the urls i have need all to be redirected to "google.com".

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem. If all your urls is going to be redirected to google.com then you will only need one list.

    And then you just do, If FindStringExact returns something different then -1, then you choose the web view object to go to www.google.com

    Also if you have problems with the Web View Object, you might want to try out Web Control Object. It has a lot more features.

  5. #5
    Clicker Fusion 2.5SWF Export Module

    Join Date
    Oct 2007
    Posts
    875
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i cant find the FindStringExact function :s i cant use the Web Control Object becauseis for the developer version only of fusion 2.5 :s

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wasn't aware that the Web Control Object was only for Developer.
    THe FindStringExact is an expression.

    You need to choose "Compare two general values" under "Special Conditions" and then right click on the list object and choose FindStringExact. Then use the flag -1.
    Then you check if the value is -1 then the url is not in the list, if it returns something else than -1 then the url is in the list.

  7. #7
    Clicker Fusion 2.5SWF Export Module

    Join Date
    Oct 2007
    Posts
    875
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mhh do you have a mfa?

    if i try to add this: FindStringExact( "List", Edittext$( "Edit Box" ), -1 ) = -1 in the first compare two values i get an error message "syntax error"
    if i put: FindStringExact( "List", Edittext$( "Edit Box" ), -1 ) i get "valid expression"

    and what i have to add in the second field?

  8. #8
    Clicker Fusion 2.5SWF Export Module

    Join Date
    Oct 2007
    Posts
    875
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok i did this: i created on bouton clicked+ FindStringExact( "List", Edittext$( "Edit Box" ), -1 ) and in the second field i added -1 in the list i have all my urls, and i get redirected to google.com if the url match

    BUT if i do this (the best solution to me) i want when the user is typing something in google and then he push "enter" if the url he click later match one of those in the list then he get redirected to google.

    but at the moment if i do this ( better solution): on web view object clicked + FindStringExact( "List", Edittext$( "Edit Box" ), -1 ) =-1 even if i type any word, i get redirected to google :s


    because i dont want to create a button in my app, just want to use the web view object

    i checked but somethign is wrong in fact, if i add bouton clicked+ FindStringExact( "List", Edittext$( "Edit Box" ), -1 ) and in the second field i added -1 i get redirected to google,if i type anithing but i click on the button i get also redirected to google.... so i think its better to have a mfa file to udnerstand how you solve that :s


    i have also another problem, web view object use internet explorer apparently, i have chrome by default browser....

  9. #9
    Clicker Fusion 2.5SWF Export Module

    Join Date
    Oct 2007
    Posts
    875
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im stuck if you have a mfa it can really help

Similar Threads

  1. WEB VIEW problem with behind scene
    By arthurh in forum Android Export Module 2.5
    Replies: 6
    Last Post: 28th October 2015, 05:31 PM
  2. Controller: Point of view problem
    By Solgryn in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th February 2012, 09:44 AM
  3. Got a little Event Editor View Problem
    By Snooley in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 23rd September 2009, 05:44 PM
  4. Any help for my icon view problem ?
    By Surmulot in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 12th September 2006, 02:24 PM
  5. Problem with moving units on top-view
    By Joel_Yeah in forum File Archive
    Replies: 5
    Last Post: 9th September 2006, 04:28 PM

Posting Permissions

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