Home > Uncategorized > Flash Builder Browser - the world as it should be

Flash Builder Browser - the world as it should be

What happend - the motivation
As you might now Flex Builder just got a renaming to the much more coherent Flash Builder.
On of the arguments in favor of the renaming is of cause to lower the misunderstandings between what is Flash, what is Flex, and what is Flex builder.

The Problem
New people in the Flash Platform world is often confused about what is what, when talking about Flex and the Builder tool. This renaming will of cause help solve this in the future. But what about the past? What about all these articles, pages, tutorials etc online which still interchangeably uses Flex and Flex Builder without making a differ?

The Solution
Enter Flash Builder Browser. - your way to see the future, while reading yesterdays news!
Flash Builder Browser is an easy to use browser which alters the content you read, so you wont get confused!
Start getting into the Flash Platform loop with the Flash Builder Browser!

Examples and code
Her is how the world looked yesterday:

And here is how the world looks trough Flash Builder Browser:

Get your own copy of Flash Builder Browser and start seeing the world as it is!
Download AIR application here

Get Involved
Here is the source code, giving you the option to start creating, modifying and improving the Flash Builder Browser.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication width="900" height="900" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo">
	<s:creationComplete>
		address.text = "http://www.adobe.com/products/flex/"
		browser.location = address.text;
	</s:creationComplete>
	<s:VGroup verticalCenter="0" horizontalCenter="0" height="90%" width="90%">
 
	<s:HGroup width="100%" height="30">
		<s:TextInput width="100%" id="address" />
		<s:Button label="Go" id="goBtn">
			<s:click>
			browser.location = address.text;
			</s:click>
		</s:Button>
	</s:HGroup>
	<mx:HTML width="100%" height="100%" id="browser">
		<mx:htmlRender>
				var flashBuilderPattern:RegExp = /(flex)(®)? +(builder|plugin|plug in)/ig
				if(browser.htmlLoader.window.document.body)
					browser.htmlLoader.window.document.body.innerHTML = String(browser.htmlLoader.window.document.body.innerHTML).replace(flashBuilderPattern,"Flash$2  $3");
		</mx:htmlRender>
	</mx:HTML>
	</s:VGroup>
</s:WindowedApplication>

Happy Coding

UPDATE:
Actually realized that I’d put the regexp code in the htmlRender event, which is not the best place, as it gets called over and over, and could make the browser malfunctioning.
So, even though this post is nothing more than a practical joke, I updated the source, and added some extra things to the usability! (note to self; find a hobby).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication width="900" height="900" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo">
 
	<fx:Script>
		<![CDATA[
			import mx.managers.CursorManager;
 
			private function goToUrl():void
			{
				browser.location = "http://"+address.text;
			}
		]]>
	</fx:Script>
 
	<s:states>
		<mx:State name="idle" />
		<mx:State name="loading" />
	</s:states>
 
	<s:creationComplete>
		address.text = "www.adobe.com/products/flex/"
		goToUrl();
	</s:creationComplete>
 
	<s:VGroup verticalCenter="0" horizontalCenter="0" height="90%" width="90%">
		<s:SimpleText text="Page Loaded">
			<s:text.loading>Loading page...</s:text.loading>
		</s:SimpleText>
 
	<s:HGroup width="100%" height="30">
		<s:SimpleText text="http://" fontSize="16" fontWeight="bold" />
		<s:TextInput width="100%" id="address" text="{browser.location.replace('http://','')}" enter="goToUrl()" />
		<s:Button label="Go" id="goBtn">
			<s:click>
				goToUrl();
			</s:click>
		</s:Button>
	</s:HGroup>
 
	<mx:HTML width="100%" height="100%" id="browser">
		<mx:complete>
				if(browser.htmlLoader.window.document.body)
				{
					var flashBuilderPattern:RegExp = /(flex)(®)? +(builder|plugin|plug in)/ig
					trace("laver vi søgning???");
					browser.htmlLoader.window.document.body.innerHTML = String(browser.htmlLoader.window.document.body.innerHTML).replace(flashBuilderPattern,"Flash$2  $3");
				}
				currentState = "idle";
		</mx:complete>
 
		<mx:locationChange>
			currentState = "loading";
		</mx:locationChange>
 
	</mx:HTML>
	</s:VGroup>
</s:WindowedApplication>

And of cause the AIR application has been updated as well.

And this I hope is the end of this post *ever* :-D

Download AIR application here

Uncategorized , , ,

  1. No comments yet.
  1. May 31st, 2009 at 22:23 | #1
  2. June 1st, 2009 at 00:16 | #2
  3. June 1st, 2009 at 00:17 | #3
  4. June 1st, 2009 at 01:39 | #4
  5. June 1st, 2009 at 03:04 | #5
  6. June 1st, 2009 at 04:24 | #6
  7. June 1st, 2009 at 05:47 | #7
  8. June 1st, 2009 at 09:37 | #8
  9. June 1st, 2009 at 11:42 | #9
  10. June 1st, 2009 at 13:15 | #10
  11. June 1st, 2009 at 14:25 | #11
  12. June 1st, 2009 at 15:33 | #12
  13. June 1st, 2009 at 16:51 | #13
  14. June 1st, 2009 at 18:24 | #14
  15. June 1st, 2009 at 19:55 | #15
  16. June 1st, 2009 at 21:43 | #16
  17. June 1st, 2009 at 22:58 | #17
  18. June 2nd, 2009 at 00:21 | #18
  19. June 2nd, 2009 at 00:21 | #19
  20. June 2nd, 2009 at 09:55 | #20
  21. June 2nd, 2009 at 16:20 | #21
  22. June 2nd, 2009 at 17:58 | #22
  23. June 2nd, 2009 at 19:17 | #23
  24. June 2nd, 2009 at 22:02 | #24
  25. June 2nd, 2009 at 23:18 | #25
  26. June 3rd, 2009 at 00:52 | #26
  27. June 3rd, 2009 at 02:19 | #27
  28. June 3rd, 2009 at 03:40 | #28
  29. June 3rd, 2009 at 04:54 | #29
  30. June 3rd, 2009 at 06:01 | #30
  31. June 3rd, 2009 at 07:15 | #31
  32. June 3rd, 2009 at 08:30 | #32
  33. June 3rd, 2009 at 09:49 | #33
  34. June 3rd, 2009 at 11:22 | #34
  35. June 3rd, 2009 at 12:59 | #35
  36. June 3rd, 2009 at 13:00 | #36
  37. June 3rd, 2009 at 13:00 | #37
  38. June 3rd, 2009 at 14:33 | #38
  39. June 3rd, 2009 at 14:33 | #39
  40. June 3rd, 2009 at 15:54 | #40
  41. June 3rd, 2009 at 17:05 | #41
  42. June 3rd, 2009 at 18:10 | #42
  43. June 3rd, 2009 at 19:24 | #43
  44. June 3rd, 2009 at 19:24 | #44
  45. June 3rd, 2009 at 21:34 | #45
  46. June 3rd, 2009 at 21:35 | #46
  47. June 3rd, 2009 at 23:04 | #47
  48. June 4th, 2009 at 00:22 | #48
  49. June 4th, 2009 at 01:39 | #49
  50. June 4th, 2009 at 02:52 | #50
  51. July 1st, 2009 at 04:29 | #51
  52. July 7th, 2009 at 14:27 | #52
  53. July 7th, 2009 at 15:30 | #53
  54. July 8th, 2009 at 00:18 | #54
  55. July 8th, 2009 at 03:39 | #55
  56. July 8th, 2009 at 05:25 | #56
  57. July 8th, 2009 at 07:00 | #57
  58. July 8th, 2009 at 08:31 | #58
  59. July 8th, 2009 at 09:49 | #59
  60. July 8th, 2009 at 11:19 | #60
  61. July 8th, 2009 at 12:49 | #61
  62. July 8th, 2009 at 12:50 | #62
  63. July 8th, 2009 at 14:54 | #63
  64. July 8th, 2009 at 17:01 | #64
  65. July 8th, 2009 at 19:10 | #65
  66. July 8th, 2009 at 21:39 | #66
  67. July 8th, 2009 at 23:09 | #67
  68. July 9th, 2009 at 01:40 | #68
  69. July 9th, 2009 at 03:49 | #69
  70. July 9th, 2009 at 05:51 | #70
  71. July 9th, 2009 at 05:52 | #71
  72. July 9th, 2009 at 07:16 | #72
  73. July 9th, 2009 at 08:28 | #73
  74. July 9th, 2009 at 11:03 | #74
  75. July 9th, 2009 at 12:04 | #75
  76. July 9th, 2009 at 13:52 | #76
  77. July 9th, 2009 at 15:22 | #77
  78. July 9th, 2009 at 17:20 | #78
  79. July 9th, 2009 at 19:13 | #79
  80. July 9th, 2009 at 20:29 | #80
  81. July 10th, 2009 at 01:24 | #81
  82. July 10th, 2009 at 03:03 | #82
  83. July 10th, 2009 at 04:20 | #83
  84. July 10th, 2009 at 05:39 | #84
  85. July 10th, 2009 at 07:33 | #85
  86. July 10th, 2009 at 08:47 | #86
  87. July 10th, 2009 at 10:09 | #87
  88. July 10th, 2009 at 11:33 | #88
  89. July 10th, 2009 at 20:44 | #89
  90. July 11th, 2009 at 00:37 | #90
  91. July 11th, 2009 at 02:06 | #91
  92. July 11th, 2009 at 03:41 | #92
  93. July 11th, 2009 at 05:43 | #93
  94. July 11th, 2009 at 08:32 | #94
  95. July 11th, 2009 at 16:42 | #95
  96. July 12th, 2009 at 04:49 | #96
  97. July 12th, 2009 at 12:13 | #97
  98. July 12th, 2009 at 12:14 | #98
  99. July 12th, 2009 at 17:17 | #99
  100. July 13th, 2009 at 01:27 | #100
  101. July 13th, 2009 at 03:03 | #101
  102. July 13th, 2009 at 06:03 | #102
  103. July 14th, 2009 at 05:23 | #103
  104. July 15th, 2009 at 13:06 | #104
  105. July 15th, 2009 at 13:06 | #105
  106. July 15th, 2009 at 13:07 | #106
  107. August 22nd, 2009 at 14:51 | #107
  108. September 1st, 2009 at 01:13 | #108
  109. September 24th, 2009 at 19:22 | #109