ActionScript 2.0 :: [Flash 8] Targeting And IFrame From A Link Array?
Sep 25, 2007
I have dynamic links that I'm pulling from an already published RSS feed [URL] using the xml in said document.Now, the 'client' wants the video links from this document to link to an iframe above the flash interface. No problems targeting the iframe when the links are hardcoded into the flash piece, but they want complete control (yes, I know they're asking for a miracle). Here's my piece so far:[URL]
Here's the function and variable that pulls the links and titles: Code:
Code:
function getPageTitle(ind):String{
var this_text = "<a href='" + _level0.link_array[ind] + "'>" + _level0.title_array[ind] + "</a>";
return this_text;
This is what I tried (along with just single quotes and double quotes), but to no avail: Code:
Code:
function getPageTitle(ind):String{
var this_text = "<a href='" + _level0.link_array[ind] + "'" + ", "video_swap">" + _level0.title_array[ind] + "</a>";
return this_text;
View 1 Replies
Similar Posts:
Oct 12, 2009
It just reloads the animation instead of going to the html page the button is pointed to. I can give a link to it if you need.
View 3 Replies
Jul 31, 2011
I am still used to AS2 and this is resulting quite complicated.I am trying to make it so that when the timeline stops, for a website to load within an iframe next to it.I have the .swf on the left and I want to open up content on the right.as an example, I want to open up within the iframe. This is the code I have so far:
stop();
var url:String = "google.com";
var request:URLRequest = new URLRequest(url);
[code].....
View 7 Replies
Jan 11, 2010
I have designed a flash interface for website. that the button in the left. and i want to button links that when we Click open in ( iframe) in the visual studio when I put the interface in the website .
[Code]...
View 3 Replies
Feb 27, 2011
I purchased a website template for my business and I am having some difficulty in modifying the flash navigation. The original ActionScript code for the buttons are as follows:
onClipEvent (load) {
num=4;
link = "rates.html";
}
However I am trying to have the link open in an iFrame and no matter what I try does not work. I need the link to open in the iFrame main_body. I had tried using variations of the button.onPress function without much luck.
View 2 Replies
Nov 19, 2009
I have a Flash movie that is loaded inside an iframe. In this Flash movie I have a link to a Word document. When using IE the link does not work. This only happens when using a Word doc, inside the iframe with IE. Please see [URL] Click on the first link using IE, you will see a window popping out and then disappearing instantly.
View 7 Replies
Dec 18, 2011
I'm trying to create a movieclip from the library dynamically on a certain event and then being able to target one specific movieclip by name after they've been created. I'm having problems being able to target and have tried a tone of different approaches, I think I'm close but I'm getting the error '#1006: getChildByName is not a function.'
Code:
package {
import flash.display.*;
import flash.events.*;
[code]....
View 14 Replies
Mar 15, 2012
I'm trying to push just the contents of the "txt" attribute in each "question" tag into an array named "questions" in AS3 Flash. Here is an excerpt from my xml file.
[Code]...
View 3 Replies
Oct 12, 2004
I am doing a site with a top flash nav, and Iframe with some flash and html in it.Is there a way to have the flash in the Iframe give actions to the flash nav??when you hit the porperties button, i want the nav to change to FOR SALE.something like:
on (release) {
_level0.clip.gotoAndPlay(2);
}
View 1 Replies
Mar 19, 2012
Here is an excerpt of my XML file. (It is properly formatted, and has a root node, etc., but is too long to post the entire thing. Below is just the part I am concerned with.
<question id='Q1' uId='99036' no_ans='2' txt='In a flat structure employees are not expected to provide their bosses with their opinions.' feedback='' type='MC' passingWeight='1' url='media/'>
<answer id='Q1A1' uId='311288' txt='True' weight='0'/>[code]...
What I now need is a way to grab the txt attribute value from the answer tags and be able to access them from anywhere in the fla. Keep in mind that there are two answers for every question. ie:
< answer id='Q1A1' uId='311288' txt='True' weight='0'/ >
< answer id='Q1A2' uId='311289' txt='False' weight='1'/ >
View 1 Replies
Apr 20, 2010
I'm a bit green when it comes to code and I have a specific thing I need to do which has had me going round in circles (no laughing at the back!). It must be pretty simple but I'm stumped! Basically I have 6 movieclips on the timeline with instance names 'btn1', 'btn2' etc to 'btn6'. These movieclips have an "on" and an "off" state (frame labels)
[Code]...
View 2 Replies
Feb 5, 2009
i have a series of buttons in an array, and i want to change the alpha of all of the buttons when a button (outside of this array) is clicked. i can change the alpha of all of the buttons inside the for loop, but not when the button is clicked. (the button is functional and being referenced correctly, as the trace does work.)what do i need to do differently to be able to control these buttons?
Code: Select all
var theBtns:Array = [btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8];
for(i=0;i<theBtns.length;i++){
[code]....
View 3 Replies
Apr 21, 2010
I'm a bit green when it comes to code and I have a specific thing I need to do which has had me going round in circles (no laughing at the back!). It must be pretty simple but I'm stumped!Basically I have 6 movieclips on the timeline with instance names 'btn1', 'btn2' etc to 'btn6'. These movieclips have an "on" and an "off" state (frame labels)
I make an array:
ActionScript Code:
var buttons = [btn1, btn2, btn3, btn4, btn5, btn6];
[code]....
View 5 Replies
Sep 7, 2009
This seems like it should be fairly simple, but for some reason Im getting caught up when it comes to removing a layer from my drawing app, and when moving the layers up and down in the display list. My first problem is that when I do the (canvas.removeChild(layers[value]); it removes the child of the targeted layer, but it also removes the child of the objects before it? I think anyways.
The second problem is that my layerUp function works, but my layerDown does not, even though they are the same code? Confused I am indeed. I'm sure its fairly messy since Im just learning this stuff, so sorry for that too!
[Code]....
View 0 Replies
Sep 13, 2005
I'm trying to target a dynamic text box for a slideshow that is located in an attached movieclip.This is the array:var slideShow = ["slide1", "slide2", "slide3", "slide4"]; Each slide is a movie clip that is loaded with attachMovie(). These movies each have a dynamic textbox named "slideDescription". How would I be able to target that text box and get it to change the desciption each time I move to the next slide in the array?
View 1 Replies
Jun 29, 2006
I made an array containg 3 clips and dynamically attached them to my main timeline. I can successfully tween all of them with the following code.
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
[code].....
View 2 Replies
Nov 18, 2009
I need to be able to set a property of the 3rd textfield created within this for loop:
Code:
for (var i:int = 0; i < menuArray.length; i++) {
menuText = new TextField;
menuText.name = "navBttn_" + i;
[Code].....
View 6 Replies
May 7, 2009
I have some buttons (dynamic mc's) set up with an ROLL_OVER/ROLL_OUT MouseEvent handler and have put them in an array.
Code:
var btnArray:Array = [];
for(var i:int = 0; i < 5; i++) {
var bg:Bg = new Bg();
bg.width = 173;
bg.height = 20;
bg.x = 25;
bg.y = (22 * i) + 40;
bg.name = "bg"+i;
[Code] .....
The problem is I can't seem to target the dtr mc's (Dot) at all even when they're in an array. Anyone have any strategies I can use to make this concept finally work? I've been able to do it as long as the dot mc's are a child of the button mc's, but I don't want the rollOver/rollOut effects to effect the child, therefore the separation.
View 7 Replies
Oct 8, 2008
I can get the variable into Pages.as now but the Loader will not "reload" hen the button is clicked.
View 35 Replies
Apr 11, 2012
I have an xml file that I load and parse with no problem. I have a number of buttons that are on the stage. I want to link the buttons with the xml file. I have simplified it here
The sample xml file is like this
<xml>
<item>
<name>George</name>
</item>
[code]...
I have three buttons on the stage. When I click button _1, I want to access the value in the first element in the xml file (George). And so on with button_2 and button_3.I'm guessing you put the buttons in an array. How do you link the button array with the xml array?
View 6 Replies
Apr 7, 2009
Is it possible in flash to use an iframe? I understand that you can use a dynamic textfield to import HTML text but as far as I know you cannot import images into the field.
View 3 Replies
Apr 17, 2010
anyone know how do i add a iframe inside the flash? the html is
<iframe width="100%" height="768" frameborder="no" scrolling="no" src="http://www.yoursite.com"> </iframe>
View 2 Replies
Jan 2, 2011
I have a website that I am creating in Flash CS5. There are several different pages of context and each of these pages are loaded from it's own XML file. I am trying to figure out how to add an iFrame to one of these pages. Specifically, I am trying to add the Facebook Like Box to a page and I figured the iFrame would be the best way to do it.
View 1 Replies
Jun 17, 2010
I have been using Flash for years by the skin of my teeth. I like the asthetics so I can seem to stop using it. Anyway. I just threw this website together using a flash menu at the top and an iframe in the center to change the content. I know I could just re-do the whole site and make it work but I think that I am probably missing a really simple code fix in Flash to make Firefox load the pages in the iFrame. The website is www.greathousefarm.com and I am on a mac so I did it checking Safari and it worked perfect. Than my husband checked it in Firefox and it kept opening a new window instead of loading into the frame. [code]...
Is there a simple code addition I can use to tell Firefox to target the frame?
View 1 Replies
Aug 4, 2010
An image says a thousand words:URL...A flash object in a CKEditor dialog is being blocked by the IFrame element. This only happens on Chrome. I have tried changing the z-index, that didn't work at all.
View 1 Replies
Oct 21, 2010
I've got a div over an iframe, in the iframe there's a website that contains a youtube movie. On mac firefox and safari everytyhing works fine, on windows both IE and FF put flash on top of my div.
The situation I have is really similar to google image interface, I noticed that google images manages to correctly overly an immage over a website with flash content in any browser both win and mac.
How they manage to do that? Considering they have no access to iframed page code. I tried reading their code to find solution with no success.
View 1 Replies
Dec 8, 2010
my css drop down menu is hidden behind a flash element I have on my site. I have tried changing the z index but still nothing. Please help.... here is the page.[URL]..
View 3 Replies
Jan 11, 2011
I am trying to add the a Facebook iFrame to my Flash website. Since there is no real way to actually integrate the Facebook iFrame into the website, I was thinking of simply trying to overlay the iFrame on the Flash website. This is done fairly easily from what I understand but have another issue. I want to be able to disable the iFrame when I select a button on my Flash website. Is this at all possible. Any other routes I could consider?
View 1 Replies
Jan 9, 2012
I have a flash video player that I would like to embed in other pages, so I created an iframe to do this. It has to be an iframe because it depends on other swf files that get loaded into it (plugins).
The weird thing is the video does not play when loaded inside the iframe, but if I go to the html source and cut and paste the tag outside of the iframe it works.[url]...
View 1 Replies
Nov 21, 2008
I need my SWF banners to display in an IFRAME, and after a set amount of time, they need to animate and end up behind another SWF on the page.
Currently JPGs and GIFs do this just fine, but when the IFRAME contains a SWF, it displays on top of the other SWF, not behind it.
I've already tried the following:
-setting z-index on the SWF and IFRAME
-setting wmode=transparent
I know the obvious solution here is to use object/embed code in the div, but for reasons beyond my control and too annoying to discuss here, this isn't an option. The SWFs must be placed using an IFRAME. This makes setting WMODE impossible, and when the IFRAME contains a swf, the browser ignores z-index.
View 0 Replies