[osflash] Usability Questions for Flash and Text

Martin Heidegger mastakaneda at gmail.com
Fri Nov 10 09:37:43 EST 2006


I attached a example: In my Firefox 2 it opens the link in a new tab
(context menu):
Its should open in a new tab in opera as well (of course) and in IE you
should get a new Window (as well as in Firefox < 2)

The Firefox 2 settings can be found at:
Settings > Tabs > Open new pages in: (*) new Tabs

In addition to the attached example: Here is the source:

var my_cm:ContextMenu = new ContextMenu();

function openInNewWindow(obj, item) {
    getURL(obj.targetHref, "_blank");
}

function openInThisWindow(obj, item) {
    getURL(obj.targetHref);
}

my_cm.customItems.push(new ContextMenuItem("Open in new page",
openInNewWindow));
my_cm.customItems.push(new ContextMenuItem("Open in this page",
openInThisWindow));
my_cm.hideBuiltInItems();


var mc:MovieClip = createEmptyMovieClip("test", 1);
mc.beginFill(0x888888, 100);
mc.moveTo(50, 50);
mc.lineTo(50, 300);
mc.lineTo(300, 300);
mc.lineTo(300, 50);
mc.endFill();
mc.menu = my_cm;
mc.targetHref = "NewTabTest2.html";
mc.onRelease = function() {
    getURL(this.targetHref);
}

Just for the example.

greetings
Martin.


2006/11/10, Eric Priou <erixtekila at gmail.com>:
>
> > Some news: In Firefox 2 its possible to change with the new tab
> > settings to open links in a new tab instead of in a new window. This
> > applies to all links called by any application (that invokes Firefox)
> > as well as all window.open or <a href="..." calls to the target
> > "_blank".
> >
> > This does not remove the problem of new tab but at least it would be
> > possible to create a context menu for "open here" or "open in new
> > page".
> Hi Martin,
>
> How ?
> This is an option that the user set.
> How the context menu could work ? I don't get it.
>
> Cheers.
> -----------
> Eric Priou
> (aka erixtekila)
> In progress tech blog : http://www.v-i-a.net/inprogress
> Oregano XML Socket forum : http://www.v-i-a.net/forum
>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>



-- 
ICQ: 117662935
Skype: mastakaneda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20061110/b3bf4c7b/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NewTabTest.zip
Type: application/zip
Size: 6679 bytes
Desc: not available
Url : http://osflash.org/pipermail/osflash_osflash.org/attachments/20061110/b3bf4c7b/NewTabTest-0001.zip


More information about the osflash mailing list