Today I managed to find this error twice. It is happening in AIR applications. I had the same application in Flex and then I ported it to AIR. The error that appeared is this:
SecurityError: Error #3015: Loader.loadBytes() is not permitted to load content with executable code.
The error is saying that you’re no more allowed to [...]
In a previous article I explained how to create a custom preloader that will replace the very first flex preloader (the one that appears when starting application). That article was created using Flex Builder 2 and now needs an update because Flex Builder is at version 3 since a good time and Gumbo is on [...]
I think some of you may encountered this “wonderful” runtime error, mostly when you work in a team, building different applications that will load in another one.
Shortly the application is telling us that parts are build using different versions of Flex SDK. In my case the main application was build using Flex SDK version 3.1.0 [...]
This article is a follow-up of this two: How To Make an Image With Border and Continuing Image With Border. I’m writing it in order to show you that you can import Image With Border component in a Panel. Mike had some problems using the component so here it is.
To use Image With Border just [...]
DataGrid is a interesting, very useful component. Lots of things can be added to it. This time we will want to emphasize some row that will satisfy a predefined condition – in a DataGrid.
The application is very simple. Just to show you how you can achieve it. In order to do that we will have [...]
These days I was struggling with this problem: I needed to scroll the page (using javascript) to the embeded swf object. After some search and tests I used the following function (found here) to find the Y position of the object.
function findPosY(obj) {
var curtop = 0;
if(obj.offsetParent)
[...]
This is a small working example about how to use an image as a background for a canvas, and how to crop and resize images. I’m sure that there are different approaches to this issue, so you are welcome to add your own solutions.
In order to crop the initial image, that was already [...]
This was a tricky issue… but solvable. I needed to found a way to collapse the left panel of a HDividedBox. This can be easily done by using moveDividerTo() method or setting getDividerAt().x (for vertical getDividerAt().y) property to the desired value. The problem is this: if you want to collapse the left at double click [...]
Yesterday I’ve been working with images: loading, resizing, removing, etc. I got into a challenging issue: I had to vertically position a label after an image resize – but a resize that is triggered by setting maxWidth and maxHeight keeping also the aspect ratio.
I tried to get the new width and height after the resize [...]
Today I needed to found a way to create bitmap data object from a display object. I found a solution in Flex Cookbook (http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=1682) and having this I improved it and made it simpler.
The code follows…
public function makeBitmap(myDO:DisplayObject):BitmapData
{
var myBD:BitmapData = new BitmapData(myDO.width, myDO.height);
myBD.draw(myDO);
[...]
In the previous article I explained how to use Yahoo! Maps. Now I’ll explain how to create a custom marker and how to place it on the map. This is not an easy task because on Yahoo! Developer Network (YDN) there is not enough documentation regarding Yahoo! Maps API for AS3. Take a look at [...]
This article will explain how to create a wildcard search. What I mean is the following:
dir *.*
or
dir myfile??.txt
The old DOS searching way. The first command (if you’ll run them in Command Prompt) returns all files with extension from the current folder. The second command will return any file having its name as this: [...]
This is a very helpful piece of code. Function to escape all regular expression special chars. I came to this string having this order of characters by trial and error. So now you can use it easily by copy and paste.
What is important to know that MXML and Actionscript compiler do automatically escapes backslashes (“\”) [...]
This article will explain how to integrate the Yahoo! Maps into your Flex application. Is important to know that in this we are using Flex Builder 3 and that the example and the code won’t work in Flex Builder 2 (it seems that in Flex Builder 2 there are some compiling problems with the SWC [...]
If you need to find the length of an object, and I mean the number of children of the specified object, use the following function/method:
public static function getLength(o:Object):uint
{
var len:uint = 0;
for (var item:* in o)
if (item != "mx_internal_uid")
[...]