dcsimg
A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 28

Thread: web kit built into flash as2 named flashkit

  1. #1
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956

    web kit built into flash as2 named flashkit

    Since people on this forum get so offended when i give out free code, this thread will provide daily releases of a webkit function built right into flash as2, its going to be called flashkit, tomorrow will be its first release, and so on.

  2. #2
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    This is the first version, it simply collects raw html text from any website, http://indocastles.com/source/flashk...12_29_2015.fla

    this version is not able to collect headers yet,

  3. #3
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    hello alloy, you can also use

    trace(unescape(this));

    instead of

    trace(this.toString());

    if you wan see html code as is
    Last edited by Terrencing; 12-29-2015 at 06:49 PM.

  4. #4
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    New version of webkit in flash as2 out: this version collects a websites html, and seperates the data by its xml nodes:
    http://indocastles.com/source/flashk...12_29_2015.fla

  5. #5
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    not sure wht you try do this one, html not xml nodes, tiny similar that about it.
    Last edited by Terrencing; 12-30-2015 at 06:37 PM.

  6. #6
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    Happy new years, in this version of the flashkit-webkit it throws each html tag from a website into a object called flashkit

    for example if it finds:

    <img img type=\"image\" src=\"/Image Repository/home1.png\" onmouseover=\"this.src='/Image Repository/homebtn.png';\" \nonmouseout=\"this.src='/Image Repository/home1.png';\" /">

    you can find the image tag at _root.flashkit.img_1
    or where ever the iteration is at _root.flashkit.img_2, _root.flashkit.img_3 etc, and that object string name will contain
    the nodes guts: img type=\"image\" src=\"/Image Repository/home1.png\" onmouseover=\"this.src='/Image Repository/homebtn.png';\" \nonmouseout=\"this.src='/Image Repository/home1.png';\" /"



    http://indocastles.com/source/flashk...12_31_2015.fla

  7. #7
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    new year alloy,

    why you not just learn xml and flash together, even better and easier in AS3, try it.

  8. #8
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    Hi, in this flashkit-webkit version it can find (maybe all) closing tags now, and all the tags it finds it throws them in the flashkit object as a string name and the rest of the tag data goes in as the objects string names tag data:
    http://indocastles.com/source/flashk...t_1_1_2016.fla

    example if this is your html:
    PHP Code:
    <div %data% %data% ></div>
    <
    div %moredata% %moredata% ></div
    ^ would store as:
    flashkit
    {
    div_1: %data% %data%
    div_2: %moredata% %moredata%
    };

    the compiler would also say it found 2 closing nodes. which are
    PHP Code:
    </div

  9. #9
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    Functions that handle functions, function-ception going on..

    ok so if you use the <body> tag on your website with bgcolor like <body bgcolor="#w.e color">

    the flash canvas will now change the background to that color in its latest update,
    also fixed a bug where the script didnt want to detect the <a> tag because it was too short, but now it can discover the a tag.

    indocastles.com/source/flashkit-webkit/flashkit_1_2_2016.fla

  10. #10
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    Hi, In this version of flashkit-webkit, it includes in a sense, an image handler, it "attempts" to load up an image from your html img tags (not very rigorous right now) but here it is

    indocastles.com/source/flashkit-webkit/flashkit_1_3_2016.fla

    so if you use lets say : <img src="Image Repository/bgg.png">
    the flashkit-webkit will attempt to load from: the current url you are at + "/" + the img source so... Image Repository/bgg.png

    so far this project can load up my websites background color, and the first banner image @ indocastles.com

  11. #11
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    Hi, in this update it just improves image collection of the img tag, not a full scan yet, but managed to collect all my sites images using it on the homepage:

    http://indocastles.com/source/flashk...t_1_4_2016.fla

  12. #12
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    is good job I tell you of unescape()

    what about gif,jpg,jpeg or even all media, mp3, swf, not everybody just use png.

    one day alloy one day, you get it
    Last edited by Terrencing; 01-04-2016 at 06:36 PM.

  13. #13
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    Im more concerned as too why google is using a format called .pngjpeg and .jpgpng, I will cover other formats terrencing, it takes time.

  14. #14
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    i think the google thing is no worry if you just make that extension collectable too (whether flash display I no not.

    of corse these thing take time alloy, i wonder why you do this though, it not new that anybody load web page vars into flash before and see whole web page code.

    you need to visit http://www.onlinewebcheck.com/check.php and put your web pages to the test.

    I think when you get your own web pages html lots lots betters then you can begin to make you flash better also
    Last edited by Terrencing; 01-05-2016 at 07:01 AM.

  15. #15
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    New update for flashkit-webkit, it can center the next images to the stage if a
    PHP Code:
    <center
    tag is found, next update I will be looking to detect when it is closed, so for now it centers everything proceeded by the first open center tag:

    http://indocastles.com/source/flashk...t_1_5_2016.fla

  16. #16
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    Hi, In this version of flashkit-webkit, it detects the closing center tag on strict syntax html, meaning exactly </center> not < / center >
    so it can better display which items are centered and which aren't.

    http://indocastles.com/source/flashk...t_1_6_2016.fla

  17. #17
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956

  18. #18
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    i no look at last 2 versions, why you not make live swf version too, where can use any web adddress we like in input field and see what happenings.

    not just you html web page

    just like you I not want to keep download fla files

  19. #19
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    956
    fixed another centering bug that was literally reading all closing nodes as center: http://indocastles.com/source/flashk...t_1_8_2016.fla
    Terrencing eventually I will make a object to view that from my site, http://indocastles.com/source/flashkit-webkit/ as long as you have internet thats your library you dont have to download them they should be up for years

  20. #20
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    alloy, i no want to download your files, i just wan see it working live, i no need it, or want it.

    please make it live so can test and see

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center