ActionScript 3.0 :: Calling Html Without Opening A New Tab?

Feb 5, 2009

I have a problem trying to call a page without it opening up a new tab. Was wondering what is the equivalent of the following command (I was told that this is AS2.0 command).

getURL('option1.html', '_self');

I tried the command below but it open option1.html in a new tab.

function callxyz(evt:Event):void{
navigateToURL (new URLRequest:"option1.html"));
}

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Calling A Mailto: Function - In IE It Is Opening A Blank Window Too With Outlook?

Aug 4, 2011

I am calling a mailto: function like this below:

ActionScript Code:
on (release) {
getURL("mailto:myEmail@mysite.com", "_blank");
}

Now problem is, in IE it is opening a blank window too with outlook.

View 4 Replies

Opening New HTML Page From Flash

Nov 26, 2009

In IE7 and IE8 block popup lock my external link (page html). I use GetUrl(url,"_blank") but not it works. I use flash cs4. With firefox it work

View 3 Replies

ActionScript 3.0 :: Opening Html On The Same Screen?

Oct 20, 2009

I want to put my flash animation o the top of the page, and when i click buttons, it should call a new html, but splitted the below half screen. the top should always be the same, and the half screen should be a new html.

View 1 Replies

ActionScript 3.0 :: Opening HTML In Frame

Mar 4, 2009

I made a navigation movie clip with buttons, whom I want to be set in one frame- so the navigation MC will stand still while the contents body will change in another frame. In AS 2 it's easy- just add the frame name in the getURL command. But I couldn't mange it in AS 3. This is the code I used on my button:

[Code]...

View 1 Replies

ActionScript 2.0 :: Opening Html Windows?

Jul 11, 2002

how can I open a window without menu or a chromless from a fullscreen swf ..flash movie.I can call javascript from swf embeded in html but its long now couldn't open a html or movie inside full screen flash

View 1 Replies

Linking Button To HTML URL Opening In Same Window?

Jun 8, 2009

So the following code allows us to open an HTML link with the click of a button

function callLink(event:MouseEvent):void
{
var myURL:URLRequest = new URLRequest("http://www.adobe.com/");[code].......

The problem is that this always opens the link in a new window. So what if I want it to open in the same window? Changing the line to:

var myURL:URLRequest = new URLRequest("http:url...); results in a compiler error.I am embedding this swf on a web page of my own, so there are no security concerns regarding giving flash access.

View 3 Replies

Html :: Automated Opening Of An External Link?

Aug 1, 2011

I have a flash intro for my website and I want after the flash is finished to automatically open an external link, how can I make this? This is the index.html:

script>
swfobject.embedSWF('main.swf', 'intro', '100%', '100%', '9','js/expressinstall.swf', {XMLSource:'intro.xml', domain: '*'},

[Code].....

View 1 Replies

ActionScript 3.0 :: Opening An External HTML Page?

Aug 13, 2011

I need to load in an external HTML webpage on the stage of one of my .SWF files. Currently I have a primary .SWF pulling from a .XML database that has a list of other .SWF files it will import and display every time you "flip" a page as this site is being designed like a book. I have a .swf working that will pull and display an external HTML page but when i try to embed that .swf into the parent book.swf (Book.swf --> book.xml --> html.swf) it doesnt work. Likely the code i am using doesnt display the HTML if testing the .swf on a local server but the moment you place it on a webserver and call it through a web browser it works.

I don not need anything special, just something that will display the HTML page in a static box that i will set with a fixed size and a scroll bar.

View 7 Replies

ActionScript 3.0 :: RegExp For Finding Opening HTML Tag?

Jan 13, 2010

I'm working with printing in flash and I need to span long articles over several pages. I have worked out a solution for finding the overflowing text for each page. But the body text in the articles are formatted with HTML and CSS, so I cannot just split the text anywhere.

Example:

bodyField.htmlText results look like this:

HTML Code:
... <P ALIGN="LEFT"><FONT FACE="Times Roman">Morbi non lectus et purus bibendum dictum</FONT></P><P ALIGN="LEFT"><FONT FACE="Times Roman">Morbi non lectus et purus bibendum dictum</FONT></P>...

If now my overflow algorithm finds that this text needs to be split up at character index 52 (the character "n" in "Morbi non"), then that leaves me without a closing P-tag at the current page and an opening P-tag on the next.

I would like to be able to find the character index of the "<" character that opens the P-tag that the split point character is within. Basically I would like to match any previous instance of "<P" before the given character index.

View 6 Replies

ActionScript 3.0 :: Opening A HTML From Multiple Frames In An Embedded Mc

Apr 1, 2011

I have a page (page1) with flash content that has an imbedded mc. The imbedded mc contains a group of thumbnail /buttons that bring up larger images (Thumb2 moves the playhead to frame 2 of the mc) there is also a unique button on each frame of the mc that should bring up a unique html page (a form) for that frame reference. When page 1 loads with the mc in it's default start position at frame 1 the form button works perfectly, however none of the other form buttons work and if I click on Thumb1 (which should be the start position mc frame 1) after clicking on any of the other form buttons, the form button for Thumb 1 no longer works. Everything else works as it should and I get no error codes.

I have the code for the form buttons located in the actions layer of the main timeline as follows;
 
TiaraFrames_mc.TSofaQAFrm_btn.addEventListener(MouseEvent.CLICK,TSofaQ AFrm);
function TSofaQAFrm(event:MouseEvent){
var TSofaQAFrmURL:String="CustomForms/Tiara/TSofaQA.html";

[Code].....

View 4 Replies

Javascript :: Opening Print-HTML-Popup From Flash?

Dec 1, 2009

is it somehow possible to open a HTML popup window from within Flash and have it receive text data from Flash which should be printed ... and this all only in AS3 and Javascript (since no server-side scripting is available)?

View 2 Replies

ActionScript 3.0 :: Linking To Any Frame Other Than The Opening From A HTML Link?

Nov 3, 2009

I have a website where my Home, About, Work and Contact pages are on four different frames on the time line. Once you click on the Work link from the opening Home page, your brought to the second frame where a little tween brings a bunch of thumbnails into view. When you click on the thumbnails, it brings you out of the .swf and into a new HTML page. The problem is getting back to the Work page in the .swf with out being brought to the opening Home page. I have used an anchor on the time line and changing my publish settings to HTML with anchors, and they do work! But, its opening my .swf in the Work frame and running through the movie back to the Home. Iv tried putting a stop(); on the Work frame, which does stop it but its a dead page, my tweens, buttons, everything is frozen.

View 1 Replies

ActionScript 2.0 :: HTML Link - Opening When Button Pressed?

Apr 25, 2010

I want to link one html page which kept in the same folder and when the button pressed it will open this html page. I have no idea how to do this and after uploading in the server it tells me " page load error. Not found". How can I do this. I attached one fla for your look.

View 1 Replies

IDE :: Flash Site Not Opening Full Screen When Import To Html?

Apr 22, 2010

Flash full screen actionscript works and opens in flash player only, but not when imported into html and open for web browsers

View 1 Replies

Button Code Not Opening External Html Pages In Flash Website?

Feb 26, 2012

- I made a flash-based website using Flash CS3 and then embedded the file into a blank html page with Dreamweaver cs3.-All my buttons, linking, and content were made in Adobe Flash CS3 using ActionScript 2.0 (AS2).The issue I am encountering is that when i click on some buttons that have get URL codes, they will not load the html files assigned to the As2 code of the button. The html files are supposed to load in a separate browser window for each html page assigned to each button. The html files are located within subfolders in my Main Site Root Folder.All my AS2 code is Object-based; meaning I applied it directly to my button symbols.

View 4 Replies

ActionScript 2.0 :: Button Not Opening External HTML Pages In Flash Website

Feb 26, 2012

I made a flash-based website using Flash CS3 and then embedded the file into a blank html page with Dreamweaver cs3. All my buttons, linking, and content were made in Adobe Flash CS3 using ActionScript 2.0 (AS2). The issue I am encountering is that when I click on some buttons that have get URL codes, they will not load the html files assigned to the As2 code of the button. The html files are supposed to load in a separate browser window for each html page assigned to each button. The html files are located within subfolders in my Main Site Root Folder. All my AS2 code is Object-based; meaning I applied it directly to my button symbols.

View 2 Replies

Calling HTML In SWF?

Mar 17, 2009

is it possible to call a simple HTML file or use iFrame in Flash?

View 5 Replies

ActionScript 3.0 :: Calling Child Html From Swf?

Mar 18, 2009

Im trying to get 10 year old flash sites all linked togther and online after a long time out of the game for a job aplication deadline.

I just need my path sorting.All I need is the action scripting code to call an html document, that is in a folder within the root. I am calling from a swf embeded in html in the root. I can get a new widdow open but it doesnt find the html file.

Im using

on (release) {
getURL("/Memory/home.html", "_blank");
}

It works in html below,

<a href="Memory/home.html" target="_blank">

how do I write it in actionscript.

View 4 Replies

AS3 :: Html Calling Function From Javascript

May 14, 2011

So my team's project has an swf embedded in JavaScript, we're actually using java servlet's to create the html/JavaScript. I am attempting to use as3's ExternalInterface to add a callback which would get called in the javascript but everything I have tried will not work.[code]so if there is a missing tag or something that's probably not my problem. NOTE I embed this correctly and get into the swf allowing it to call javascript functions(as3 calls the getStuff fn), using the ExternalInterface, which works but JS->as3 does NOT work ='I cant use the movie object for anything (the return value of getFlashMovie), if I try to use no code after works.The action script code calls the external interface addCallback function correctly(called in a try catch that's how I know)[code]The only things I can think of;

1) The embed code isnt creating the object correctly, since I cant use the movie for anything

2) my swf is being created weird and doesnt allow script access.We are using FlashBuilder to build the swf.

View 1 Replies

Flash :: Calling A Function On An HTML Page?

Feb 22, 2010

how to call a flash function from an HTML page. The idea is to have a link on my page (HTML link) that once clicked displays a movieclip in flash. I know i have to use the asfunction in HTML. So far I have just created my swf file with a function called showInfo. I've embedded the flash into an HTML page. I have then added a link on the HTML page as follows:
 
<a href="asfunction:showInfo">Link name</a> but when I click it says: "Firefox doesn't know how to open this address, because the protocol (asfunction) isn't associated with any program."
 
is there a piece of code I need to write in flash for this to work?

View 1 Replies

Professional :: Calling Function From Html Tag In Dynamic Textfield

Oct 28, 2010

I have a sprite menu which populates a dynamic textfield  with textlabels as users click individual items in the menu in addition to ordinary actions(gotoAndStop). As these labels appear in the textfield, I want to be able to link them to the frames assosciated with the menu - item frames. As you can understand from this, I am working with the timeline. By enabling  html rendering of text in the textfield, I have been able to link these output labels via a  a href - tag, but I am not able to call a function from this html. The function I am trying to call uses a switch statement to take the appropriate actions according to which label is being clicked, but the only effect I get is the html opening a browser window...... Unfortunately I do not know how to explain this any better, but here is my code for the following:

[Code]....

View 2 Replies

ActionScript 3.0 :: Running Flash Exe Calling Html File

Apr 5, 2011

I get an error when running my Flash exe file and calling a local html file. I know this is related to Security but not sure the proper way to allow local html files to run or called within my Flash exe.

View 4 Replies

ActionScript 3.0 :: Calling Another HTML / Flash With Button Event

Jan 22, 2009

I have created a flash movie with buttons. I intended for the user to press these button and open another flash movie or another html. I tried using URLRequest as such below but I got some errors when I run the flash and press the button:
function callSeries(evt:Event):void{
URLRequest("series.html");
}

Error:
TypeError: Error #1034: Type Coercion failed: cannot convert "series.html" to flash.net.URLRequest.
at mainmenu_fla::MainTimeline/callSeries()

Is this method wrong? How shall I call another html or refreshed a current flash movie embedded within a html with another new flash movie. Is this possible?

View 4 Replies

ActionScript 3.0 :: Calling Function From HTML Tag In Dynamic TextField

Oct 29, 2010

Tried several approaches for making this happen, but can't seem to do it. I could really use an example of how to do this in my particular case, since I'm not exactly a code - guru..... I have a sprite menu which populates a dynamic textfield with textlabels as users click individual items in the menu in addition to ordinary actions(gotoAndStop). As these labels appear in the textfield, I want to be able to link them to the frames assosciated with the menu - item frames. As you can understand from this, I am working with the timeline.

By enabling html rendering of text in the textfield, I have been able to link these output labels via a a href - tag, but I am not able to call a function from this html. The function I am trying to call uses a switch statement to take the appropriate actions according to which label is being clicked, but the only effect I get is the html opening a browser window...... Unfortunately I do not know how to explain this any better, but here is my code for the following:

Main Timeline, frame 1, actions layer:
ActionScript Code:
import flash.display.*;
import flash.events.*;
import flash.display.Stage;
var buttonTrace:TextField;
var sectionNames:Array = new Array("Frontpage","Introduction",
[Code] .....

View 0 Replies

ActionScript 2.0 :: Scrollbar For Dynamic Text Box Calling HTML Txt File?

Sep 21, 2009

I have a flash movie within it quite a few scenes. When I go to a certain scene it has a movie clip on it (UGFT_MC). Within this I have a dynamic text box (UGFTtxt). I have the render text as HTML selected and the variable called "data". On my main timeline at the start of this scene I have the actionscript: loadVariables("UGFT.txt","_root.UGFT_MC");

Within my text file I have the following:

data=<B>All the code I want in my text box</B>
<p><img src="test.jpg"</p> etc.

This part all works, except I have lots of text and images in the text file and need a scroll bar on my dynamic text box. I have tried the UIScrollBar and it only works some of the time, and there is no pattern as to whether the scroll bar will appear. Quite often it is just a grey area. Though the top of the text called from the file is visible.

View 0 Replies

ActionScript 3.0 :: Execute Javascript Without Calling External Functions In The Html

May 9, 2010

My needs are to execute a javascript whitout calling any external function of the html file when a flash button is clicked. I need to obtain the effect that happen when the user put in his address bar the text javascript:"alert("Hello World!"); and press enter I need to do this whitout calling any external functions, whitout calling anything in the html file, all just with the swf. Of course the script that i must call is another than javascript:"alert("Hello World!"); but let's begin with this easy script and when working i can thikn to implement the complex one

i tried this

ActionScript Code:
on(release)
{
function runJS(script:String):Void {

[Code]...

but is not working, i get a syntax error, maybe cuse of the " in "Hello World!"

I want to ask if what i need to do is possible and, if yes, why my AS code is not working.

View 4 Replies

Facebook :: Calling The Javascript And Change The Text In The HTML Page - Error #1033: Cpool Entry 36 Is Wrong Type?

Feb 9, 2010

i use FBML for the FB application.I have a flash and the flash suppose to call a javascript on the page. I read so many websites trying to figure it out but still having problem.Here is the Webpage with the javascript:

<fb:fbjs_bridge/>
<div id="swfContainer"></div>
<script>[code]....

when i test, the flash loaded. The code goes through everything and show "SENT" in the flash text box. However, it doesn't seem like it is calling the javascript and change the text in the HTML page.is there something wrong I did? i try the ExternalInteface.call method but doesn't work neither. ALSO, when i run it in FireFox, not error popup.however, when i run it in IE, I got this:

VerifyError: Error #1033: Cpool entry 36 is wrong type.

ReferenceError: Error #1065: Variable FBJS is not defined.

View 1 Replies

Flex :: StackOverflow Errors When Calling Publish After Calling Close

Mar 2, 2010

I'm getting stack overflow errors when I'm trying to publish() a NetStream after close()ing it. Pasted below is the error stack:[code]

View 1 Replies

Html :: Rendering HTML Text Containing Advanced HTML Tags Like <strong> - <em> - <span> And Advanced HTML Entities In Flex

Aug 4, 2011

I am designing a web application in Flex 4 and currently facing an issue rendering advanced HTML tags and entities in Flex 4. All I want to do is basically render an HTML text coming to me something like the one given below:-

[Code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved