Solved

Updating Archive News Dynamic

Posted on 2006-07-21
9
191 Views
Last Modified: 2012-06-22
Hi,

Hi,  

I am trying to update a swf *archive.swf through some kind of administration panel where I can get in and put latest news with an image and then the swf *latestnews.swf will read this and update itself automatically and as I add more news..the swf will store the news....*it could create some kind of automatic scrolling once it hits certain number* so as I add more news on the admin panel, the archive.swf will start scrolling  Tutorials and samples are welcome.

Thank you,
0
Comment
Question by:johanwilches
  • 5
  • 4
9 Comments
 
LVL 2

Accepted Solution

by:
Rawdon Hume earned 500 total points
ID: 17159896
Here you go: http://www.rabidlemming.co.uk/help2.zip

the TextLoader.swf would be the news file you post on your web page, in that you just need to set on frame 100 layer PrototypeCode the line:  var TheWebPageURLForThisMoive = "http://www.MyWebSite.com/TextLoader.html";

Change that to the web page with the TextLoader.swf on it, the TextLoader.swf will auto update every 100 fames to load any new text and automatically puts scroll bars on if their needed,

To edit the text file via an admin panel load the index.php file that you can re-name, the password and user name are admin,

All the rest has been done for you so it’s all plug and play, enjoy =0)

Any question or problems just feel free to ask
0
 

Author Comment

by:johanwilches
ID: 17162169
Thank you so much Rabidlemming....the news upload perfectly....one question...as for images if I want to add new image(s) with each news article...how could I accomplish this within that same admin......  

And on the text file...how can i call a swf from within the txt file...at the end of page1 text file there is a hyperlink...how could I call another swf from that txt file.  Ideal goal is...I have the main page *main.swf* then it calls latesnews which would be TextLoader.swf....but from this swf...how could i call another swf within that page1 txt file.

The reason I am trying this is for the archive news...give a brief description of something as you have on page1..then have say at the end of the description.."click here" to read more...then another swf loads in with the full story.  I hope its not too confusing what i'm trying to do.


thanks again,
0
 
LVL 2

Expert Comment

by:Rawdon Hume
ID: 17162853
To add an image in TextEditor.swf click the html view so that you can see the html code for all the text and paste the html code for the image you want to add, in the location you want it to appear in your text; using the same code you would do if adding an image to a web page a html page: example <img src="http://www.MyWebSite.com/images/image%20(1).jpg" width="50" height="50" /> and then click the html view off so you see the text normally and the image will be displayed. as for having a html link in flash load a swf to do that you need to use: asfunction (search for this in the flash help as it's not a keyword but their is help for using it in flash help files which comes under anchor tag). An example would be:  <A HREF=\"asfunction:RunMe, 1\">Run Function One</A> which you paste as you html link and in the time line you would have a function like:

function RunMe(Num) {
if (Num == 1) {
OutPut.text = "Hello this is my first message";
}
if (Num == 2) {
OutPut.text = "Hello this is my second message";
}
if (Num == 3) {
OutPut.text = "Hello this is my third message";
}
}

See here http://www.webwasp.co.uk/tutorials/b44-Communication/index.php for a working example bottom of the page. Hope that helps any questions just ask
0
 

Author Comment

by:johanwilches
ID: 17165183
Adding the image on the admin section worked but when I tried to save it it didnt let me and gave me an error

"Error in saving submitted data"  

I have the sample at:

http://absolute-studios.com/test/index.php

so you could test it....and the movie it's at:

http://absolute-studios.com/test/TextLoader.html

I added the code of the image on html view code and when I switch to view without the html view it works but it doesn't let me save it so textloader.html doesn't show the new changes with the pic.

The script to call the outside movie had an excellent example..thank you...just the image thing not letting me save it.....
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:johanwilches
ID: 17173041
rabidlemming what is you're email or can you email me: johan at absolutemediaworks.com   I would like to send you a proposal about how much you could do a similar project to the question I posted.  I will send all the details..thanks for the help

Johan,
0
 
LVL 2

Expert Comment

by:Rawdon Hume
ID: 17174661
hi,

You need to make sure the text files and php files all have a access level of 777, to do this use something like smartftp (www.smartftp.com/ ) and select all the files and right click, select chmod and select all the tick box's to give all the files a chmod level of 777. that will give the php files the access rights they need to write to the text files and allow the text files to be written to. I am sorry to say that my home pc has died on me and i have lost all my stuff, so i have to use a cyber café which is to expensive to do all the time. you can e-mail me at lemming29@hotmail.com but i don’t no when i will be able to help again next as I’m broke =0( so can't afford to keep coming to a cyber café sorry. if you have problems with the asfunction or the chmod level of 777 go to http://www.webwasp.co.uk/forum/index.php and ask for oldnewbie, tell him that i sent you and ask him if he could help you. he's a lot clever than me and very friendly and helpful so sure he will be able to help you if you get stuck. i will try and get my home pc fixed asap but again haven’t got the £ to do that right now and don't no for sure when I’ll be back on-line as don’t have any other means to access the net than the cyber café.

Hope this helps

Rabid Lemming
0
 

Author Comment

by:johanwilches
ID: 17184045
Thank you so much Rabid....I'm going to look at the forum if I face difficulties and also contactng oldnewbie for reference...I'm going to email you to your hotmail either today or tomorrow so we can stay in touch...I would like to send you a proposal/project and you'll just let me know.  Thank you for the help..you're very talented at what you do.

Best Regards,

Johan,
0
 
LVL 2

Expert Comment

by:Rawdon Hume
ID: 17224953
Hey,

Sure you can e-mail me but it will be a while before i can afford to fix my pc and get set up again, let me no how you get on and if you have any problems getting it all to work ? I hope to be back around the beginning of September time aprox. 11th .

Cheers
RL
0
 
LVL 2

Expert Comment

by:Rawdon Hume
ID: 17237840
Hey,

You said you e-mailed me, checked my e-mail today on a freinds laptop, didnt see anything? did you manage to get the script working ok for you in the end ?

Cheers
RL
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now