Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Remote Targeting A HTML Table Cell From A Separate SWF Button


Hi,
I have multiple SWFs loaded into a tabled HTML Page.

One of the SWFs is a Nav Menu.

I am trying to remotely target a particular table cell in the middle of the page to load an SWF on this page when the Flash Nav Menu Button SWF is clicked.

I have named the table cell "main".
When the SWF Menu Button is clicked I want to load a Flash SWF into the selected table cell named "main" on the same HTML page.
I am working in Flash CS3 and Dreamweaver CS3.

One thought was to create a blank shell or starting SWF to go into the "main" named table cell. Then some how through actionscript call to that SWF to load the external SWF into it.
Another idea is to create the SWF for that tabled cell with all the individual areas built into it so when the user clicks the menu buttons then it just goes to those areas.

The main issue is being able to control or call the separate or external SWF from the Nav Menu SWF to load or change to another frame on the timeline remotely.



Any suggestions on how this can be achieved?
Thank you for your help it is appreciated.
Joseph Wraith




FlashKit > Flash Help > Flash Newbies
Posted on: 08-27-2008, 03:43 PM


View Complete Forum Thread with Replies

Sponsored Links:

Flash .swf Within Table Cell Controlling Other Items In Table Cell...
This is a bit complicated to explain, I hope I put it across ok, lol. It will help if you download the .zip file to see what I'm going on about.

Basically, I have a table with cells. At the top in the middle cell is a .swf file which is red and to either side are 2 blue JPEG images in separate cells.

I would like to know how to refer to those 2 blue JPEG images from within the .swf file.

In the past I have managed (coded within .swf files) to refer to new windows, _parent and even frames. Now all I need to do is crack referring to image ID's.

The 2 blue JPEG image ID's are : 'HeaderLeft' and 'HeaderRight'

The HTML page holding the Tables is : TableExample4.html

The red .swf file is : Menu1.swf


HERE IS THE CRUX OF THE ISSUE - this is the code on the Hit Zone of a button within the Flash .swf file which is meant to refer to the blue image's ID.

on (release) {
getURL("SampleLines.jpg", "HeaderLeft");
getURL("SampleLines.jpg", "HeaderRight");
}

SampleLines.jpg is what I want to be the replacement image. HeaderLeft and HeaderRight are the image ID tags.

At present it is not working. It should surely ! I have no idea why.



If I wanted the image to replace the parent, it's simply :

on (release) {
getURL("SampleLines.jpg", "_parent");
getURL("SampleLines.jpg", "_parent");
}

If I wanted the image to appear in a new window, it's simply :

on (release) {
getURL("SampleLines.jpg", "newWindow");
getURL("SampleLines.jpg", "newWindow");
}

If I wanted the image to appear in a frame, it's simply :

on (release) {
getURL("SampleLines.jpg", "Frame1");
getURL("SampleLines.jpg", "Frame1");
}

...So does anyone know what to do if I want the image to replace another image on the HTML page ?


I hope this makes sense !

Thanks.

View Replies !    View Related
Layering SWF On Top Of Html Table Cell
I am trying to layer an .swf file on top of an html table cell. I would prefer not to use absolute positioning because all browsers display their pixels and margins differently. I need this to line up perfectly in the table. Is there another, more simple way to do this? I don't need the flash file to be transparent at all. I just want there to be something (the html) underneath the .swf in case a user does not have the plug-in installed.

All I really need to know is how to make an .swf file overlay something in a html table cell.

Thanks!

View Replies !    View Related
How Would I Crontrol A Swf Using A Swf That Is In A Seperate Html Table Cell?
Flash Mx --- I have a web site that has seperate swf files put together in a HTML table. The question i have is this. I have it set up where the menu is a seperate swf file in a different cell from the swf I want to control. I want to be able to use that menu to change the other swf file. The whole page is in one frame. Is there some type of actionscript that would allow me to set the buttons in my menu to control the different swf that is not in the same movie.

eg. user click on the bio button on the menu.swf that is on the top cell and have it either load a swf into the body.swf in the lower cell. Or even use the GotoandPlay(); to change the frames in the body.swf that is located on the bottom cell


here is the page as it stands now. The menu will be located in the bar that is located right under the title/banner of the site

www.openeyemedia.net/v1/

Thank you

View Replies !    View Related
Scale Swf File In A Html Table Cell
I'm looking to scale an swf in a table cell.
As the browser is scaled up or down, the width of the swf shrinks and expands horizontally. But the height should say the same.

View Replies !    View Related
To Align Swf File In Html Table Cell.
When i am putting swf file into html table cell, i found out space between by swf file and table cell.

My swf file wxh=550px,200px; same width and height is use for my table cell but still now i found space between cell and swf file.

plse reply me,how to solve this problem.

Thanx in advance.

View Replies !    View Related
To Align Swf File In Html Table Cell.
When i am putting swf file into html table cell, i found out space between by swf file and table cell.
My swf file wxh=550px ,200px;same width and height is use for my table cell but still now i found space between cell and swf file.
plse reply me, how to solve this problem.

Thanx in advance.

View Replies !    View Related
Html In Flash Table Border And Cell Background Color
how can I add a border, and or background color in the cells, to this table?

var rowHeaders = "<b>Quantity </b><b>Price($) </b><b>Re-order Price($)";
var row_1 = "300 1180 705";
var row_2 = "500 1280 755";
var row_3 = "1000 1475 1175";
var row_4="2000 2370 2070";
var row_5 = "3000 3350 3050";
var row_6 = "5000 4650 4350";
var row_7 = "10,000 7999 7699";
table_txt.htmlText = "<textformat tabstops='[100, 200]'>";
table_txt.htmlText += rowHeaders;
table_txt.htmlText += row_1;
table_txt.htmlText += row_2 ;
table_txt.htmlText += row_3 ;
table_txt.htmlText += row_4 ;
table_txt.htmlText += row_5 ;
table_txt.htmlText += row_6 ;
table_txt.htmlText += row_7 ;

thanks B

View Replies !    View Related
Targeting Two Separate Frames In An Html Page...
I've been searching the boards for what seems like 2 days or so, but haven't yet found anything that seemed to work.

-I have a movie that when a certain button is pressed, it opens an html page that i have divided into two frames.

-I have built the frames page (in dreamweaver) to include a page called "content.htm" as the bottom frame (referenced in dreamweaver accordingly), but I need to be able to tell the content.htm page go to a specific URL from flash.

I've tried to do all this with html, but there are many of these links that have to open a different URL in the content frame, so that means a different html page for every one of them.

I've been trying to do it just by referencing the content frame with:

on (release) {
getURL ("www.thisdomain.com/sub-folder/frameset.htm", "content.htm");
}

but it just doesn't want to work when i try and reference a different html page for the content frame.

any ideas and/or help on this would be greatly appreciated.

View Replies !    View Related
Swf In Table Cell?
is there a way to have a .swf filling the content of a cell in a HTML table? (as you would for a background pic)
thanx.

View Replies !    View Related
Loading A Swf Into A Table Cell From Another Swf...
I want to insert a movieclip (a set of navigation buttons) into a table cell of an html document (which I know how to do)... but...
I want the navigation buttons within that movieclip to be able to load other swf files into other cells of the table.
Does anyone know how to go about this sort of thing in actionscript?

View Replies !    View Related
Flash In Table Cell?
Quick question...

Is there any way to place a flash movie (.swf) in an html table cell?

Thanx
Mac

View Replies !    View Related
Flash File In A Table Cell
We are inserting a Flash file into a table cell that
is within a table that is set to 100% for both heigth
and width. A table built this way will grow to fill
up 100% of the real estate within any users browser.
How do you publish the flash file so that after it's
inserted into the table cell it will expand/grow along
with the table cell it's inside of?

View Replies !    View Related
Changing Background Of A Cell In A Table
hey there,
just wondering about php.
could somebody help me with this complicated problem
---
you have two cells, background green, cell1= 10.00h, cell2= 11.00h
---
there is a form, where you can make reservation, if they want to make reservation at 10.00h, the cell should turn red after they submit, because the database knows then that it's occupated. so only cell2 will be green the next time you visit the page, and the other red.
---
and now;
to the people who understand my story
can you help me with a code...
thanks a lot!

View Replies !    View Related
Can't Get My Flash To Fill A Table Cell
Hi everyone. I'm sure I must be missing a setting somewhere (fairly new to Flash).

I have created a Flash movie with dimensions 456 px wide by 130 high. In my webpage, I have inserted it into a table cell that is 456px wide and 130px high. However, the flash does not fill the table cell: it is too narrow and there is white space to the right of it.

Any idea where I am going wrong? What should the publish settings be?

Thanks,

Shrill

View Replies !    View Related
No Flash Installed ALT Image In A Cell Of A Table
Hey, Flash friends!
We're using Flash for playing sounds in the "Slang of the Day" feature at http://www.peakenglish.com. The only Flash part of the page is the button you click to play the sound. The problem is that if the user doesn't have the Flash plug-in, sometimes they won't realize there is an option to listen to the slang word and example because there's nothing showing there should be a "play the sound" button - no broken link, nothing. Since the swf file with the button is placed in a cell within a table, I wonder whether there is a way to use some type of Flash detector that would display a message in that cell instead of the button that would prompt the user to get the Flash plug-in if he/she doesn't have it installed. The Flash deployment kit that Macromedia offers lets you display an alternative HTML page, which wouldn't be appropriate in our case - neither would be a frameset solution. Your help is greatly appreciated AS ALWAYS
Thanks!

View Replies !    View Related
Make A Swf File A Background In A Table Cell?
Is is possible to make an swf file a background in a table cell????

View Replies !    View Related
Can You Embed Flash In The Background Of A Table Or Cell?
I would like to have a flash movie sit in the background of an html page with content sitting over top. I tried with layers but learnt by default swf will always sit over top.
So i thought maybe by embedding flash in the background of a table or cell with a nestled table sitting over top with the content.
Is this possible?

thanks in advance

View Replies !    View Related
Newbie Wants To Load Flashmovie Into A Table Cell
Hi, how can load a flashmovie into a table cell which has a placeholder in it, let's say a .jpg image. I want the flashmovie replace the image
( triggered by a mouse event) and start playing. Is that possible at all ?? Please help !

View Replies !    View Related
Using Flash Menu To Target Cell In Table
hi there

ive got a flash menu

home/about/design etc etc

when each button is clicked i want it to open a different information page within a table cell on the same page??

is this possible?

i could do it so it would "load" a different flash movie into the cell, but how do you do this?

View Replies !    View Related
Can A Flash Menu Span A Table Cell?
I'm in the middle of converting an all-flash site which you can see here:

www.mdsol.com (all flash)

into more of an html site. Basically, the only thing remaining Flash on the page as I've rebuilt is the image fader....the menu was re-built using dhtml and while this works fine on pc in various browsers, I'm getting reported probs on macs, even though this is supposed to be cross-platform compatible. So now I'm looking at possibly incorporating the original Flash menu. Unfortunately when I included this in a table cell, it butts up against the cell....is there a way to get it to drop down outside the cell over the fading images and the big callout text image next to it?

Pete

View Replies !    View Related
Want Flash Movie To Scale With Table Cell. NOT WORKING
Greetings;

I have authored a Flash movie and it is working fine. When I use the html page output by Flash it scales fine but when I cut and paste this code into a table cell the movie will not scale (in Firefox) and not showup at all in IE 7.

Help appreciated. Here is the html page output by Flash:

http://www.howardbakerphotography.com/gallery/bakerGallery.html (Scaling fine)

Here is the content placed inside a simple table cell:

http://www.howardbakerphotography.com/gallery/index3.php (Only shows up small not scaling)

Help appreciated.

Rip

View Replies !    View Related
Targeting Separate .swf From QuickTime
I'm trying to target & control the timeline in a separate .swf file from a QuickTime movie on the same page. So, if the QT movie rewinds, it will pass over the command to rewind & play the Flash clip at the appropriate spot. Seems easy... any answers?

Thanks!

-K8V

View Replies !    View Related
Targeting A Frame Label In A Movie Clip From A Button In A Separate Movie Clip.
I have two separate movie clips placed on a timeline-MovieclipA and MovieclipB. I have a button in MovieclipB clip that wants to target a frame label located in the MovieclipA timeline. Can someone help me?

View Replies !    View Related
Targeting Frame In Separate Movie
I am trying to target a frame (or label) in another movie file. When they click on the button it loads another movie, but I need them to go to a specific frame. Is there code that I can put in my first movie to load the other move and target the frame?

Thanks

View Replies !    View Related
Targeting A Specific Frame In A Separate .swf
I am trying to load a specific frame of a separate swf from a button in the swf that is loaded. So far I have been unsuccesful. Has anyone done this? Any assistance would be helpful.

[ v ]

View Replies !    View Related
Remote Actions Targeting Buttons Within MCs
I want to avoid having my code in more than one location throughout my movie. So I've placed it all on the first keyframe.
My question is, how do I send button actions to buttons that are nested within movie clips if the buttons aren't on the first frame of those MCs ?

For instance, say I have a MC instance on the stage and it has 10 frames. On frame 10 of that MC is a button called myButton_btn.

If I put this code on frame 1 of my main movie, that button never gets triggered:

myMC_mc.myButton_btn.onRelease = function(){
trace ("button clicked.");
}

View Replies !    View Related
Targeting Sections In Main Timeline From Separate Menu SWF?
Hello,

Site: http://leayah.com/leayah2.html

Not entirely new to Flash but still learning Actionscript.

I made a site, but the menu isn't loading properly. If you reload the page the menu loads, but not sure why not loading every time.

Right now menu and site sections in main SWF file. Maybe I put the menu into a separate SWF file it would load properly?

If the site sections are in the main SWF timeline, then how do I do the actionscript for the menu buttons?

Ie)
menu in level7
main site in level0
site sections are "product section", "about us section", "glossary section" on main timeline

So I'm not loading any SWFs, just moving between sections on main timeline.

Help please...

View Replies !    View Related
Swf In Table Background / Cell Background Possible
ive read it cant be done? but you never know! anyone know of how it can be done?

thanks

View Replies !    View Related
Display Html Table In Html Enabled Textfield. Alternative?
hello!

i'm facing an issue due to the shortcomings of html tag support in flash.
The xml file containing the content to be displayed in a textfield (with html enabled) on the stage, contains a table. Right now, it displays each cell underneath each other, as if it were a paragraph. Any idea if there is a way to do this?

Also, is it possible to display an image inside a textfield (loading a img src="myimage.jpg" ) ?

thanks a lot!

alex

View Replies !    View Related
HTML Cell With Small Height...
I've had this problem for ages. I can't seem to make a table cell with less than ~15px height. I just want a 4px high row...

View Replies !    View Related
Opening HTML File In A Specific Cell
Hey Guys,

Just wondering what the code would be to open a new HTML file in a specific cell of the current HTML file (index.html) from a flash movie.

The site i am working on is: http://home.kooee.com.au/nickbal/index.htm

Cheers.

Nick

View Replies !    View Related
HTML Cell Will Crop My Flash Dropdown Menu...
Hi guys,

I´ve made this cool horizontal menu which has an item that displays a dropdown submenu. My flash movie is 60px high, but the dropdown menu is 220 px high... And it appears right on the bottom of the movie. Everything goes well if I play the movie in flash player... However, if put the swf with the menu inside a HTML file (in a 60px high cell), the dropdown will be cropped!

Is there any way to solve this?

Thanks in advance!

View Replies !    View Related
Image In A DataGrid Cell Based On Cell Value
I've been googling for hours and cannot find how to display an image in a cell based on its value.

I think I need to be using a cellRenderer and to complicate things my grid is being created on the fly, so I don't know how many columns it will have when the data comes back.

All I know is the columns are called col<N> where N is the column # and I want all columns to have a image displayed instead of a number that comes back from the database

for example : 1 --> green.jpg, 2---> yellow.jpg, 3 --> red.jpg

I also don't want to change the way the 1st column is rendered , only the 2nd and beyond columns.

View Replies !    View Related
HTML Table
I've been looking around the forums and the only way I'm seeing to have HTML tables in flash is to buy that component. Am I missing something? I need to be able to copy paste HTML table code right into flash, so my "client" can easily update it...

View Replies !    View Related
An HTML Table In Flash?
I'm potentially developing an application that will be displaying lots of data to the user. I'm looking to find or develop some reusable code that mimics some of the HTML Table functionality.

So basically, I'm looking for a system that can:
- Take an array of data
- Create a grid or rows and columns based on that data
- Size the rows and columns based on a spec.
- Allow for customizable colors.

I've scoured the movies section of flashkit for such a beast, but to no avail. Any help appreciated.

If I don't find something, maybe I'll code it (possibly using the new drawing capabilities of mx). Any thoughts welcome.

- Matt C

View Replies !    View Related
Simple HTML Table Help
For my non-flash site, I am creating everything in a complex set of tables, but I always run into problems when I want images to seamlessly link between table cells. I already use "border=0 cellspacing=0 cellpadding=0" in the actual table tags and I set the cells to the exact same size as the images I put in them. It still leaves a small gap between the cells though, which looks bad. Is there something I am missing for this to work such as another thing to put in the table tags?

View Replies !    View Related
Reading An HTML Table
Hey there, thanks 4 taking the time.

-How can I read an HTML generated table, to display it
in a Flash movie ?

I followed a tutorial about reading text files, but
it doesn't seem to work with HTML files.

An application reads an Oracle database which generates
a report in HTML in a table format. Should it be easier
to read the information directly from the DB ??
...I really don't think so he he, at least for me
because I have no idea about database managers. That's
why I thought reading the generated table from the
HTML file should be easier...but how ??

Thanks a lot !!

View Replies !    View Related
How To Read HTML Table
Hey there, thanks 4 taking the time.

-How can I read an HTML generated table, to display it
in a Flash movie ?

I followed a tutorial about reading text files, but
it doesn't seem to work with HTML files.

An application reads an Oracle database which generates
a report in HTML in a table format. Should it be easier
to read the information directly from the DB ??
...I really don't think so he he, at least for me
because I have no idea about database managers. That's
why I thought reading the generated table from the
HTML file should be easier...but how ??

Thanks a lot !!

View Replies !    View Related
Table TAG Problem In HTML
hi plz help me that how can i place flash swf file in TABLE TAG of HTML
i m facing problem in it plz tell me hurry
thanks

View Replies !    View Related
Html <table> In Flash
hi
í need to make a table on my flash site but everything i tried wasn´t successfull.
can i put it into a dynamic text-field? if so how do i put in the full html-code?

thanx

View Replies !    View Related
Load Swf Into Html Table
hello experts,
this is my problem, i'v build a website where the menu is a flash movi inserted into a html page, in the same page i've a table called 'content', i'm using no frames, is there a way to load a certain swf movi into that content table from the flash movi with get url... but what will be the target

thx

View Replies !    View Related
SWF That Scales In Html Table
I'm creating a website that contains html and a flash SWF. The flash SWF is in an html table. The table will expand and contract as the browser is resized.
Is it possible to use actionscript to tell the SWF to scale along with the table.
(I'm using Flash 8),
thanks

View Replies !    View Related
Embeding In A .html Table?
Hey Dudes!

FLASH 8

I am using the detect for flash setting in my .html so the people who dont have flash player 9 can GET IT.

Is it possible in the string below, To tell flash to embed the .swf in a particular table in my .html?




+ '<embed src="Intro.swf" quality="high" bgcolor="#282828" '
+ 'width="1024" height="100%" name="Intro" align="center"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="high"'
+ 'allowScriptAccess="sameDomain"'
+ 'type="application/x-shockwave-flash"'
+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
+ '</embed>'
+ '</object>';

View Replies !    View Related
Import Html Table
Hi all,
I found the way how to load html page into dynamic text box. But flash supports only basic html tags where aren't table tags <tr><td>. How can I display table in flash loading from external data? XML? Thanks for any ideas. I'm using Flash 8.

chulimanga

View Replies !    View Related
HTML Table Parser
don't get excited, I've not built it yet.....but before I do - has anyone else? I figure it can't be that tricky in mx.....

View Replies !    View Related
Html Table Into Flash?
Is there a way to get a nicely formated html table into a flash text box?

View Replies !    View Related
Passing Var's Between SWF's In Separate HTML Files
Hi there,

i am trying to send some variables from one movie
to another, but both movies are embedded in a different
HTML file...Does anyone know how to do that?
Have tried already with getURL, "", 'GET', or 'POST'
but both don't seem 2 work..Do I need Javascript,
or sth. like that?

View Replies !    View Related
Separate HTMl Pages And Linking
I have a flash movie that has been broken into 8 separate .swfs, and each published as it's on Html page. Is there a way to link from one to the other, but have the link not just go the the beggining of the next .swf (just by the Html. name) but to a marker in the next .swf?
My client wants the movie broken up like this. Most scenes have atleast 15 markers for different content. So far, I have been pasting in the scenes from the other pages according to what its supposed to link to, into the scene with the link.This works alright, but it's increasing the file size for this movie,plus,since I'm not pasting the entire other .swf in, it makes navigation into the pasted scene useless, as I'm only pasting in a portion? Help,please, and better way to link would be appreciated.

View Replies !    View Related
3 Swf's, 1 Html Page - Controlling A Separate Swf
Please could someone tell me how to control a movie clip inside an external Swf. (Not an SWF that has been loaded in)

I have 3 separate swfs placed on a html page:

main.swf
med.swf
small.swf

I want a button in main.swf to control a movie clip called "mute" in med.swf, and take it to frame 2 of that movie clip.

Is this possible?

Thank you!

Skuk

View Replies !    View Related
3 Swf's, 1 Html Page - Controlling A Separate Swf
Please could someone tell me how to control a movie clip inside an external Swf. (Not an SWF that has been loaded in)

I have 3 separate swfs placed on a html page:

main.swf
med.swf
small.swf

I want a button in main.swf to control a movie clip called "mute" in med.swf, and take it to frame 2 of that movie clip.

Is this possible?

Thank you!

Skuk

View Replies !    View Related
Timing 2 Separate Movies In Html
Hi All

I have 2 separate movies on an html page which for the dial-up users I'd like to have them load in sequence instead of loading at the same time.

Is there anyway to have one movie wait to start loading until after the first movie is finished loading?

If not then I am going to have to make them both and every cell inbetween them into a single large movie.

Thanks in advance for any advice.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved