Post Reply 
Drag-and-Drop Resizable Flash...
Nov. 27, 2008, 05:26 PM
Post: #1
Drag-and-Drop Resizable Flash...
in ref. to the filter posted here - http://prxbx.com/forums/showthread.php?t...85#pid9885


i'm in-process of updating and adding a resizability function...
the .swf is contained within a DIV tag, the DIV tag is resizable by hovering on its borders and dragging-and-dropping to the size you want...

everything works perfectly - until i try to incorporate into the toggle objects filter, which is my desired end-in-mind... toggle first, resize only after toggle...

the problem is that i need the width and height settings of the flash/object to NOT be "fixed", i want the flash/object to 'resize' when the border outline is dragged-and-dropped... and no matter what i do, when i try to rewrite z12's toggle filter to capture the width and height, it "breaks"...

i can get everything to work, even resize the flash/object with the drag-and-drop resizing of the DIV container (if that's the right terminology), but not WITH the toggle filter...


here's where i'm at so far:
Code:
Name = "Toggle: Object {4.d.3.2} 20081118 {z12} [add] [test]"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js)|$TYPE(vbs))(^$TST(keyword=*.flash.*))"
Limit = 5120
Match = "("
        "("
        "$NEST(<object(\s|"),"+</object >)|"
        "<object(^[a-z])(*/ object >&&(^*<object)*)|"
        "<embed(^[a-z])*>(^ [=a-z0-9])( </embed >)+"
        ")\0(^ </object >)(^ </textarea>)"
        "&&"
        "(^*(type=$AV(image/*)))"
        "*)"
        "$SET(flash=$GET(flash)$DTM(t))"
        "(($TST(script=*))$SET(1=\\")$SET(2=\\)|$SET(1=")$SET(2=))"
Replace = "<span class=\1flash$GET(flash)\1 style=\1display:inline\1>"
          "<a title=\1Play Media\1 onclick=\1PrxObjToggle(this)\2;return false\2;\1 onmouseover=\1PrxTitleObj(this)\1>"
          "<img alt=\1Toggle Media\1 src=\1http://local.ptron/My_HTML/43unite_HTML/player_play.png\1 style=\1border-style:none\1 /><\2/a>"
          "<br />"
          "<\2/span>"
          "<span class=\1flash$GET(flash)\1 style=\1display:none\1>"
          "<textarea style=\1display:none\1><div class="resizeMe" id="ResizeDiv">\0</div><\2/textarea>"
      "<\2/span>"
Code:
Name = "Header Top Inject: User CSS - Resizable Div [add]"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "<style type="text/css">\n"
          "#ResizeDiv {\n"
          "  overflow: auto;\n"
          "  width: auto;\n"
          "  height: auto;\n"
          "  border: 2px inset lightblue;\n"
          "  background: lightblue;\n"
          "  color: black;\n"
          "  padding: 1px;\n"
          "  }\n"
          "</style>\n"
Code:
Name = "Header Top Add: User JS Code - Resizable Div [add]"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "\t<script type="text/javascript" src="http://local.ptron/My_HTML/ErikArvidsson_HTML/genresize.js">\r\n\t</script>\r\n"

.js file is attached (observe directory structure above)...

here's an example where you can drag-and-drop the borders - http://www.flashcomguru.com/apps/fullscr...creen.html

any assistance would be GREATLY appreciated, i've been "wanting" to DYNAMICALLY RESIZE .swf's for YEARS (primarily during MLB season, lol)... and now i found a way, just can't get my fingers around why capturing the width/height in the toggle filter "breaks" that filter...


Attached File(s)
.zip  ErikArvidsson_HTML.zip (Size: 1.37 KB / Downloads: 967)
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Drag-and-Drop Resizable Flash... - ProxRocks - Nov. 27, 2008 05:26 PM
RE: Drag-and-Drop Resizable Flash... - Oddysey - Nov. 27, 2008, 06:10 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 27, 2008, 07:57 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 27, 2008, 09:31 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 27, 2008, 11:42 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 28, 2008, 01:10 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 28, 2008, 01:20 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 28, 2008, 03:24 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 29, 2008, 05:49 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 29, 2008, 01:23 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 29, 2008, 02:23 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 30, 2008, 12:29 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 30, 2008, 04:20 PM
RE: Drag-and-Drop Resizable Flash... - Oddysey - Nov. 30, 2008, 08:10 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 30, 2008, 10:25 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 02, 2008, 12:24 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 02, 2008, 09:23 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 03, 2008, 12:20 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 07, 2008, 03:32 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 09, 2008, 03:28 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 09, 2008, 05:00 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 10, 2008, 12:00 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 10, 2008, 01:48 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 10, 2008, 03:50 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 10, 2008, 06:06 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 11, 2008, 12:38 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 11, 2008, 01:28 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 11, 2008, 01:51 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 11, 2008, 07:20 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 16, 2008, 01:17 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 16, 2008, 12:21 PM
RE: Drag-and-Drop Resizable Flash... - 43unite - Dec. 16, 2008, 06:12 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 16, 2008, 10:15 PM
RE: Drag-and-Drop Resizable Flash... - bugger - Dec. 18, 2008, 05:24 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 20, 2008, 01:40 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 21, 2008, 02:15 AM
RE: Drag-and-Drop Resizable Flash... - bugger - Dec. 21, 2008, 10:03 PM
RE: Drag-and-Drop Resizable Flash... - bugger - Jan. 14, 2009, 10:16 PM
RE: Drag-and-Drop Resizable Flash... - Mele20 - Jan. 15, 2009, 08:32 AM
RE: Drag-and-Drop Resizable Flash... - bugger - Oct. 28, 2009, 09:01 AM

Forum Jump: